2 # From configure.in Revision: 43536 .
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 PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT 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-framework[=INSTALLDIR
]
849 Build
(MacOSX|Darwin
) framework
850 --enable-shared disable
/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
853 --enable-ipv6 Enable ipv6
(with ipv4
) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs
[24]]
856 Enable Unicode
strings (default is
yes)
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc never use gcc
862 --with-cxx=<compiler
> enable C
++ support
863 --with-suffix=.exe
set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable
/enable signal module
867 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
868 --with(out
)-threads[=DIRECTORY
]
869 disable
/enable thread support
870 --with(out
)-thread[=DIRECTORY
]
871 deprecated
; use
--with(out
)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out
)-doc-strings disable
/enable documentation
strings
874 --with(out
)-tsc enable
/disable timestamp counter profile
875 --with(out
)-pymalloc disable
/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo
&& pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables
, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1352 mv confdefs.h.new confdefs.h
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h
<<\_ACEOF
1364 #define _GNU_SOURCE 1
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1372 cat >>confdefs.h
<<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define __BSD_VISIBLE 1
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h
<<\_ACEOF
1390 #define _BSD_TYPES 1
1394 define_xopen_source
=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS
="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval
="$enable_framework"
1406 enableval
=/Library
/Frameworks
1411 PYTHONFRAMEWORKDIR
=no-framework
1412 PYTHONFRAMEWORKPREFIX
=
1413 PYTHONFRAMEWORKINSTALLDIR
=
1417 PYTHONFRAMEWORK
=Python
1418 PYTHONFRAMEWORKDIR
=Python.framework
1419 PYTHONFRAMEWORKPREFIX
=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1427 PYTHONFRAMEWORKDIR
=no-framework
1428 PYTHONFRAMEWORKPREFIX
=
1429 PYTHONFRAMEWORKINSTALLDIR
=
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1448 ac_sys_system
=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release
=`uname -v`
1453 ac_sys_release
=`uname -r`
1455 ac_md_system
=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release
=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP
="$ac_md_system$ac_md_release"
1462 cygwin
*) MACHDEP
="cygwin";;
1463 darwin
*) MACHDEP
="darwin";;
1464 atheos
*) MACHDEP
="atheos";;
1465 irix646
) MACHDEP
="irix6";;
1466 '') MACHDEP
="unknown";;
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1484 define_xopen_source
=no
;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1488 define_xopen_source
=no
;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1493 define_xopen_source
=no
;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 define_xopen_source
=no
;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD
/4.8* | Darwin
/6* )
1503 define_xopen_source
=no
;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1508 define_xopen_source
=no
;;
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source
=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1517 # has no effect, don't bother defineing them
1519 define_xopen_source
=no
1524 if test $define_xopen_source = yes
1526 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1527 # defined precisely as g++ defines it
1528 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1530 case $ac_sys_system/$ac_sys_release in
1531 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1533 cat >>confdefs.h
<<\_ACEOF
1534 #define _XOPEN_SOURCE 500
1540 cat >>confdefs.h
<<\_ACEOF
1541 #define _XOPEN_SOURCE 600
1547 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1548 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1549 # several APIs are not declared. Since this is also needed in some
1550 # cases for HP-UX, we define it globally.
1551 # except for Solaris 10, where it must not be defined,
1552 # as it implies XPG4.2
1553 case $ac_sys_system/$ac_sys_release in
1558 cat >>confdefs.h
<<\_ACEOF
1559 #define _XOPEN_SOURCE_EXTENDED 1
1566 cat >>confdefs.h
<<\_ACEOF
1567 #define _POSIX_C_SOURCE 200112L
1574 # SGI compilers allow the specification of the both the ABI and the
1575 # ISA on the command line. Depending on the values of these switches,
1576 # different and often incompatable code will be generated.
1578 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1579 # thus supply support for various ABI/ISA combinations. The MACHDEP
1580 # variable is also adjusted.
1583 if test ! -z "$SGI_ABI"
1586 LDFLAGS
="$SGI_ABI $LDFLAGS"
1587 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1589 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1590 echo "${ECHO_T}$MACHDEP" >&6
1592 # And add extra plat-mac for darwin
1595 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1596 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1597 if test -z "$EXTRAPLATDIR"
1601 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1602 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1610 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1611 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1613 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1614 # it may influence the way we can build extensions, so distutils
1617 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1619 # checks for alternative programs
1621 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1622 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1623 # just to get things to compile and link. Users are free to override OPT
1624 # when running configure or make. The build should not break if they do.
1625 # BASECFLAGS should generally not be messed with, however.
1627 # XXX shouldn't some/most/all of this code be merged with the stuff later
1628 # on that fiddles with OPT and BASECFLAGS?
1629 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1630 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1632 # Check whether --with-gcc or --without-gcc was given.
1633 if test "${with_gcc+set}" = set; then
1642 without_gcc
=$withval;;
1646 case $ac_sys_system in
1650 case $BE_HOST_CPU in
1654 BASECFLAGS
="$BASECFLAGS -export pragma"
1656 LDFLAGS
="$LDFLAGS -nodup"
1664 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1665 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1666 { (exit 1); exit 1; }; }
1669 AR
="\$(srcdir)/Modules/ar_beos"
1678 echo "$as_me:$LINENO: result: $without_gcc" >&5
1679 echo "${ECHO_T}$without_gcc" >&6
1684 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1685 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1687 # Check whether --with-cxx or --without-cxx was given.
1688 if test "${with_cxx+set}" = set; then
1705 echo "$as_me:$LINENO: result: $with_cxx" >&5
1706 echo "${ECHO_T}$with_cxx" >&6
1708 if test "$with_cxx" = "yes"
1710 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1711 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1712 { (exit 1); exit 1; }; }
1718 if test "$check_cxx" = "yes"
1720 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy
$ac_prog; ac_word
=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CXX+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$CXX"; then
1730 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir
=.
1737 for ac_exec_ext
in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CXX
="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 if test -n "$CXX"; then
1750 echo "$as_me:$LINENO: result: $CXX" >&5
1751 echo "${ECHO_T}$CXX" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$CXX" && break
1759 test -n "$CXX" || CXX
="notfound"
1761 if test "$CXX" = "notfound"
1766 ac_cpp
='$CXXCPP $CPPFLAGS'
1767 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1770 cat >conftest.
$ac_ext <<_ACEOF
1773 cat confdefs.h
>>conftest.
$ac_ext
1774 cat >>conftest.
$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1785 ac_clean_files_save
=$ac_clean_files
1786 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1790 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1791 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1792 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 # b.out is created by i960 compilers.
1806 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1808 test -f "$ac_file" ||
continue
1810 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1813 # This is the source file.
1816 # We found the default executable, but exeext='' is most
1820 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.
$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C++ compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext
=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1848 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try
='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1860 if test "$cross_compiling" = maybe
; then
1863 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C++ compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1877 ac_clean_files
=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 for ac_file
in conftest.exe conftest conftest.
*; do
1897 test -f "$ac_file" ||
continue
1899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1900 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest
$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.
$ac_ext
1919 EXEEXT
=$ac_cv_exeext
1923 ac_cpp
='$CPP $CPPFLAGS'
1924 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1933 # If the user switches compilers, we can't believe the cache
1934 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1936 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&5
1938 echo "$as_me: error: cached CC is different -- throw away $cache_file
1939 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1940 { (exit 1); exit 1; }; }
1944 ac_cpp
='$CPP $CPPFLAGS'
1945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC
="$CC" # Let the user override the test.
1959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir
=.
1964 for ac_exec_ext
in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1987 # Extract the first word of "gcc", so it can be a program name with args.
1988 set dummy gcc
; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir
=.
2002 for ac_exec_ext
in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC
="gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC
="$CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_CC"; then
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc
; ac_word
=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir
=.
2082 for ac_exec_ext
in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC
="cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2108 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc
; ac_word
=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC
="$CC" # Let the user override the test.
2120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir
=.
2125 for ac_exec_ext
in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128 ac_prog_rejected
=yes
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy
$ac_cv_prog_CC
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2147 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2153 if test -n "$CC"; then
2154 echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC
="$CC" # Let the user override the test.
2176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir
=.
2181 for ac_exec_ext
in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$CC" && break
2204 if test -z "$CC"; then
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy
$ac_prog; ac_word
=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir
=.
2223 for ac_exec_ext
in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_ac_ct_CC
="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237 echo "${ECHO_T}$ac_ct_CC" >&6
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$ac_ct_CC" && break
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO:" \
2260 "checking for C compiler version" >&5
2261 ac_compiler
=`set X $ac_compile; echo $2`
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.
$ac_ext <<_ACEOF
2281 cat confdefs.h
>>conftest.
$ac_ext
2282 cat >>conftest.
$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 ac_clean_files_save
=$ac_clean_files
2294 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2298 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302 (eval $ac_link_default) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Find the output, starting from the most likely. This scheme is
2307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2310 # Be careful to initialize this variable, since it used to be cached.
2311 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313 # b.out is created by i960 compilers.
2314 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2316 test -f "$ac_file" ||
continue
2318 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2321 # This is the source file.
2324 # We found the default executable, but exeext='' is most
2328 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 # FIXME: I believe we export ac_cv_exeext for Libtool,
2330 # but it would be cool to find out if it's true. Does anybody
2331 # maintain Libtool? --akim.
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.
$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }
2349 ac_exeext
=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try
='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2368 if test "$cross_compiling" = maybe
; then
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2385 ac_clean_files
=$ac_clean_files_save
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6
2393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2404 for ac_file
in conftest.exe conftest conftest.
*; do
2405 test -f "$ac_file" ||
continue
2407 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2408 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2422 rm -f conftest
$ac_cv_exeext
2423 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424 echo "${ECHO_T}$ac_cv_exeext" >&6
2426 rm -f conftest.
$ac_ext
2427 EXEEXT
=$ac_cv_exeext
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 cat >conftest.
$ac_ext <<_ACEOF
2437 cat confdefs.h
>>conftest.
$ac_ext
2438 cat >>conftest.
$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2458 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.
$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT
=$ac_cv_objext
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2502 rm -f conftest.
$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2506 grep -v '^ *+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try
='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try
='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2532 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS
=${CFLAGS+set}
2539 ac_save_CFLAGS
=$CFLAGS
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.
$ac_ext <<_ACEOF
2549 cat confdefs.h
>>conftest.
$ac_ext
2550 cat >>conftest.
$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS
=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2603 if test "$GCC" = yes; then
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 ac_cv_prog_cc_stdc
=no
2616 cat >conftest.
$ac_ext <<_ACEOF
2619 cat confdefs.h
>>conftest.
$ac_ext
2620 cat >>conftest.
$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2624 #include <sys/types.h>
2625 #include <sys/stat.h>
2626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2627 struct buf { int x; };
2628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2629 static char *e (p, i)
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2640 s = g (p, va_arg (v,int));
2645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2646 function prototypes and stuff, but not '\xHH' hex character constants.
2647 These don't provoke an error unfortunately, instead are silently treated
2648 as 'x'. The following induces an error, until -std1 is added to get
2649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2650 array size at least. It's necessary to write '\x00'==0 to get something
2651 that's true only with -std1. */
2652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654 int test (int i, double x);
2655 struct s1 {int (*f) (int a);};
2656 struct s2 {int (*f) (double a);};
2657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2668 # Don't try gcc -ansi; that turns off useful extensions and
2669 # breaks some systems' header files.
2670 # AIX -qlanglvl=ansi
2671 # Ultrix and OSF/1 -std1
2672 # HP-UX 10.20 and later -Ae
2673 # HP-UX older versions -Aa -D_HPUX_SOURCE
2674 # SVR4 -Xc -D__EXTENSIONS__
2675 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677 CC
="$ac_save_CC $ac_arg"
2678 rm -f conftest.
$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2682 grep -v '^ *+' conftest.er1
>conftest.err
2684 cat conftest.err
>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try
='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try
='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_stdc
=$ac_arg
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.
$ac_ext >&5
2707 rm -f conftest.err conftest.
$ac_objext
2709 rm -f conftest.
$ac_ext conftest.
$ac_objext
2714 case "x$ac_cv_prog_cc_stdc" in
2716 echo "$as_me:$LINENO: result: none needed" >&5
2717 echo "${ECHO_T}none needed" >&6 ;;
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2721 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2724 # Some people use a C++ compiler to compile C. Since we use `exit',
2725 # in C++ we need to declare it. In case someone uses the same compiler
2726 # for both compiling C and C++ we need to have the C++ compiler decide
2727 # the declaration of exit, since it's the most demanding environment.
2728 cat >conftest.
$ac_ext <<_ACEOF
2733 rm -f conftest.
$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1
>conftest.err
2739 cat conftest.err
>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try
='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try
='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration
in \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2763 cat >conftest.
$ac_ext <<_ACEOF
2766 cat confdefs.h
>>conftest.
$ac_ext
2767 cat >>conftest.
$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2779 rm -f conftest.
$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1
>conftest.err
2785 cat conftest.err
>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.
$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2828 grep -v '^ *+' conftest.er1
>conftest.err
2830 cat conftest.err
>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try
='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try
='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.
$ac_ext >&5
2852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2855 if test -n "$ac_declaration"; then
2856 echo '#ifdef __cplusplus' >>confdefs.h
2857 echo $ac_declaration >>confdefs.h
2858 echo '#endif' >>confdefs.h
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.
$ac_ext >&5
2866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2868 ac_cpp
='$CPP $CPPFLAGS'
2869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2874 # checks for UNIX variants that set C preprocessor variables
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag
in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_c_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.
$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.
$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.
$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.
$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag
in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev
/null
; then
3031 if test -s conftest.err
; then
3032 ac_cpp_err
=$ac_c_preproc_warn_flag
3033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.
$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3117 then ac_cv_prog_egrep
='grep -E'
3118 else ac_cv_prog_egrep
='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP
=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for AIX" >&5
3128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 $EGREP "yes" >/dev
/null
2>&1; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144 cat >>confdefs.h
<<\_ACEOF
3145 #define _ALL_SOURCE 1
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3156 # Check for unsupported systems
3157 case $ac_sys_system/$ac_sys_release in
3159 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3160 echo See README
for details.
3165 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3166 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3168 # Check whether --with-suffix or --without-suffix was given.
3169 if test "${with_suffix+set}" = set; then
3170 withval
="$with_suffix"
3175 *) EXEEXT
=$withval;;
3178 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3179 echo "${ECHO_T}$EXEEXT" >&6
3181 # Test whether we're running on a non-case-sensitive system, in which
3182 # case we give a warning if no ext is given
3184 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3185 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3186 if test ! -d CaseSensitiveTestDir
; then
3187 mkdir CaseSensitiveTestDir
3190 if test -d casesensitivetestdir
3192 echo "$as_me:$LINENO: result: yes" >&5
3193 echo "${ECHO_T}yes" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 rmdir CaseSensitiveTestDir
3205 gcc
) CC
="$CC -D_HAVE_BSDI";;
3209 case $ac_sys_system in
3212 cc|
*/cc
) CC
="$CC -Ae";;
3216 cc
) CC
="$CC -Wl,-Bexport";;
3219 # Some functions have a prototype only with that define, e.g. confstr
3221 cat >>confdefs.h
<<\_ACEOF
3222 #define __EXTENSIONS__ 1
3230 echo "$as_me:$LINENO: checking LIBRARY" >&5
3231 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3232 if test -z "$LIBRARY"
3234 LIBRARY
='libpython$(VERSION).a'
3236 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3237 echo "${ECHO_T}$LIBRARY" >&6
3239 # LDLIBRARY is the name of the library to link against (as opposed to the
3240 # name of the library into which to insert object files). BLDLIBRARY is also
3241 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3242 # is blank as the main program is not linked directly against LDLIBRARY.
3243 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3244 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3245 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3246 # DLLLIBRARY is the shared (i.e., DLL) library.
3248 # RUNSHARED is used to run shared python without installed libraries
3250 # INSTSONAME is the name of the shared library that will be use to install
3251 # on the system - some systems like version suffix, others don't
3258 LDLIBRARY
="$LIBRARY"
3259 BLDLIBRARY
='$(LDLIBRARY)'
3260 INSTSONAME
='$(LDLIBRARY)'
3265 # LINKCC is the command that links the python executable -- default is $(CC).
3266 # If CXX is set, and if it is needed to link a main function that was
3267 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3268 # python might then depend on the C++ runtime
3269 # This is altered for AIX in order to build the export list before
3272 echo "$as_me:$LINENO: checking LINKCC" >&5
3273 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3274 if test -z "$LINKCC"
3276 if test -z "$CXX"; then
3277 LINKCC
="\$(PURIFY) \$(CC)"
3279 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3280 $CXX -c conftest_a.cc
# 2>&5
3281 echo 'void foo(){}' > conftest_b.
$ac_ext
3282 $CC -c conftest_b.
$ac_ext # 2>&5
3283 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3284 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3286 LINKCC
="\$(PURIFY) \$(CC)"
3288 LINKCC
="\$(PURIFY) \$(CXX)"
3292 case $ac_sys_system in
3295 if test $ac_sys_release -ge 5 -o \
3296 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3299 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3301 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3304 echo "$as_me:$LINENO: result: $LINKCC" >&5
3305 echo "${ECHO_T}$LINKCC" >&6
3307 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3308 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311 enableval
="$enable_shared"
3315 if test -z "$enable_shared"
3317 case $ac_sys_system in
3319 enable_shared
="yes";;
3321 enable_shared
="no";;
3324 echo "$as_me:$LINENO: result: $enable_shared" >&5
3325 echo "${ECHO_T}$enable_shared" >&6
3327 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3328 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3329 # Check whether --enable-profiling or --disable-profiling was given.
3330 if test "${enable_profiling+set}" = set; then
3331 enableval
="$enable_profiling"
3334 if test "$cross_compiling" = yes; then
3335 ac_enable_profiling
="no"
3337 cat >conftest.
$ac_ext <<_ACEOF
3340 cat confdefs.h
>>conftest.
$ac_ext
3341 cat >>conftest.
$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 int main() { return 0; }
3345 rm -f conftest
$ac_exeext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347 (eval $ac_link) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_enable_profiling
="yes"
3358 echo "$as_me: program exited with status $ac_status" >&5
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3363 ac_enable_profiling
="no"
3365 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3369 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3370 echo "${ECHO_T}$ac_enable_profiling" >&6
3372 case "$ac_enable_profiling" in
3374 BASECFLAGS
="-pg $BASECFLAGS"
3375 LDFLAGS
="-pg $LDFLAGS"
3379 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3380 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3382 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3383 # library that we build, but we do not want to link against it (we
3384 # will find it with a -framework option). For this reason there is an
3385 # extra variable BLDLIBRARY against which Python and the extension
3386 # modules are linked, BLDLIBRARY. This is normally the same as
3387 # LDLIBRARY, but empty for MacOSX framework builds.
3388 if test "$enable_framework"
3390 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3391 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3394 BLDLIBRARY
='$(LDLIBRARY)'
3397 # Other platforms follow
3398 if test $enable_shared = "yes"; then
3400 cat >>confdefs.h
<<\_ACEOF
3401 #define Py_ENABLE_SHARED 1
3404 case $ac_sys_system in
3406 LDLIBRARY
='libpython$(VERSION).so'
3409 LDLIBRARY
='libpython$(VERSION).dll.a'
3410 DLLLIBRARY
='libpython$(VERSION).dll'
3413 LDLIBRARY
='libpython$(VERSION).so'
3414 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3415 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3416 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3418 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3419 LDLIBRARY
='libpython$(VERSION).so'
3420 BLDLIBRARY
='-L. -lpython$(VERSION)'
3421 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3422 case $ac_sys_system in
3424 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3427 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3430 LDLIBRARY
='libpython$(VERSION).sl'
3431 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3432 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3435 LDLIBRARY
='libpython$(VERSION).so'
3436 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3437 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3440 LDLIBRARY
='libpython$(VERSION).so'
3441 BLDLIBRARY
='-L. -lpython$(VERSION)'
3442 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3445 else # shared is disabled
3446 case $ac_sys_system in
3448 BLDLIBRARY
='$(LIBRARY)'
3449 LDLIBRARY
='libpython$(VERSION).dll.a'
3454 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3455 echo "${ECHO_T}$LDLIBRARY" >&6
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3459 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_RANLIB+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 if test -n "$RANLIB"; then
3466 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 RANLIB
=$ac_cv_prog_RANLIB
3485 if test -n "$RANLIB"; then
3486 echo "$as_me:$LINENO: result: $RANLIB" >&5
3487 echo "${ECHO_T}$RANLIB" >&6
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_RANLIB"; then
3495 ac_ct_RANLIB
=$RANLIB
3496 # Extract the first word of "ranlib", so it can be a program name with args.
3497 set dummy ranlib
; ac_word
=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$ac_ct_RANLIB"; then
3504 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3523 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3524 if test -n "$ac_ct_RANLIB"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3526 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 RANLIB
=$ac_ct_RANLIB
3534 RANLIB
="$ac_cv_prog_RANLIB"
3538 for ac_prog
in ar aal
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy
$ac_prog; ac_word
=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_AR+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$AR"; then
3548 ac_cv_prog_AR
="$AR" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AR
="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$AR" && break
3577 test -n "$AR" || AR
="ar"
3581 # Extract the first word of "svnversion", so it can be a program name with args.
3582 set dummy svnversion
; ac_word
=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test -n "$SVNVERSION"; then
3589 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_SVNVERSION
="found"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3608 SVNVERSION
=$ac_cv_prog_SVNVERSION
3609 if test -n "$SVNVERSION"; then
3610 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3611 echo "${ECHO_T}$SVNVERSION" >&6
3613 echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3617 if test $SVNVERSION = found
3619 SVNVERSION
="svnversion \$(srcdir)"
3621 SVNVERSION
="echo exported"
3626 # install -d does not work on BSDI or HP-UX
3627 if test -z "$INSTALL"
3629 INSTALL
="${srcdir}/install-sh -c"
3633 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3634 if test -f $ac_dir/install-sh
; then
3636 ac_install_sh
="$ac_aux_dir/install-sh -c"
3638 elif test -f $ac_dir/install.sh
; then
3640 ac_install_sh
="$ac_aux_dir/install.sh -c"
3642 elif test -f $ac_dir/shtool
; then
3644 ac_install_sh
="$ac_aux_dir/shtool install -c"
3648 if test -z "$ac_aux_dir"; then
3649 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3650 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3651 { (exit 1); exit 1; }; }
3653 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3654 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3655 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir
=.
3681 # Account for people who put trailing slashes in PATH elements.
3683 .
/ | .
// |
/cC
/* | \
3684 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3685 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3691 for ac_prog
in ginstall scoinst
install; do
3692 for ac_exec_ext
in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3694 if test $ac_prog = install &&
3695 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3703 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3715 if test "${ac_cv_path_install+set}" = set; then
3716 INSTALL
=$ac_cv_path_install
3718 # As a last resort, use the slow shell script. We don't cache a
3719 # path for INSTALL within a source directory, because that will
3720 # break other packages using the cache if that directory is
3721 # removed, or if the path is relative.
3722 INSTALL
=$ac_install_sh
3725 echo "$as_me:$LINENO: result: $INSTALL" >&5
3726 echo "${ECHO_T}$INSTALL" >&6
3728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3729 # It thinks the first close brace ends the variable substitution.
3730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3734 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3737 # Not every filesystem supports hard links
3739 if test -z "$LN" ; then
3740 case $ac_sys_system in
3742 CYGWIN
*) LN
="ln -s";;
3743 atheos
*) LN
="ln -s";;
3748 # Check for --with-pydebug
3749 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3750 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3752 # Check whether --with-pydebug or --without-pydebug was given.
3753 if test "${with_pydebug+set}" = set; then
3754 withval
="$with_pydebug"
3756 if test "$withval" != no
3759 cat >>confdefs.h
<<\_ACEOF
3763 echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6;
3766 else echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3775 # merged with this chunk of code?
3777 # Optimizer/debugger flags
3778 # ------------------------
3779 # (The following bit of code is complicated enough - please keep things
3780 # indented properly. Just pretend you're editing Python code. ;-)
3782 # There are two parallel sets of case statements below, one that checks to
3783 # see if OPT was set and one that does BASECFLAGS setting based upon
3784 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3787 # tweak OPT based on compiler and platform, only if the user didn't set
3788 # it on the command line
3794 case $ac_cv_prog_cc_g in
3796 if test "$Py_DEBUG" = 'true' ; then
3797 # Optimization messes up debuggers, so turn it off for
3799 OPT
="-g -Wall -Wstrict-prototypes"
3801 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3805 OPT
="-O3 -Wall -Wstrict-prototypes"
3808 case $ac_sys_system in
3809 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3819 # The current (beta) Monterey compiler dies with optimizations
3820 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3821 case $ac_sys_system in
3830 # tweak BASECFLAGS based on compiler and platform
3833 # Python violates C99 rules, by casting between incompatible
3834 # pointer types. GCC may generate bad code as a result of that,
3835 # so use -fno-strict-aliasing if supported.
3836 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3837 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3839 CC
="$CC -fno-strict-aliasing"
3840 if test "$cross_compiling" = yes; then
3841 ac_cv_no_strict_aliasing_ok
=no
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 int main() { return 0; }
3851 rm -f conftest
$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_no_strict_aliasing_ok
=yes
3864 echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.
$ac_ext >&5
3869 ac_cv_no_strict_aliasing_ok
=no
3871 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3874 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3875 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3876 if test $ac_cv_no_strict_aliasing_ok = yes
3878 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3880 case $ac_sys_system in
3882 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3884 # is there any other compiler on Darwin besides gcc?
3886 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 BASECFLAGS
="$BASECFLAGS -mieee"
3895 case $ac_sys_system in
3896 OpenUNIX
*|UnixWare
*)
3897 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3900 BASECFLAGS
="$BASECFLAGS -ieee -std"
3903 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3909 if test "$Py_DEBUG" = 'true'; then
3915 if test "$ac_arch_flags"
3917 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3920 # disable check for icc since it seems to pass, but generates a warning
3923 ac_cv_opt_olimit_ok
=no
3926 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3927 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3928 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 CC
="$CC -OPT:Olimit=0"
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_opt_olimit_ok
=no
3936 cat >conftest.
$ac_ext <<_ACEOF
3939 cat confdefs.h
>>conftest.
$ac_ext
3940 cat >>conftest.
$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 int main() { return 0; }
3944 rm -f conftest
$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_opt_olimit_ok
=yes
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3962 ac_cv_opt_olimit_ok
=no
3964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3969 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3970 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3971 if test $ac_cv_opt_olimit_ok = yes; then
3972 case $ac_sys_system in
3973 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3974 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3979 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3983 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3984 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3985 if test "${ac_cv_olimit_ok+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 CC
="$CC -Olimit 1500"
3990 if test "$cross_compiling" = yes; then
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 int main() { return 0; }
4001 rm -f conftest
$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4014 echo "$as_me: program exited with status $ac_status" >&5
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4021 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4026 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4027 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4028 if test $ac_cv_olimit_ok = yes; then
4029 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4033 # On some compilers, pthreads are available without further options
4034 # (e.g. MacOS X). On some of these systems, the compiler will not
4035 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4036 # So we have to see first whether pthreads are available without
4037 # options before we can check whether -Kpthread improves anything.
4038 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4039 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4040 if test "${ac_cv_pthread_is_default+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test "$cross_compiling" = yes; then
4044 ac_cv_pthread_is_default
=no
4046 cat >conftest.
$ac_ext <<_ACEOF
4049 cat confdefs.h
>>conftest.
$ac_ext
4050 cat >>conftest.
$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 #include <pthread.h>
4055 void* routine(void* p){return NULL;}
4059 if(pthread_create(&p,NULL,routine,NULL)!=0)
4061 (void)pthread_detach(p);
4066 rm -f conftest
$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4078 ac_cv_pthread_is_default
=yes
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.
$ac_ext >&5
4088 ac_cv_pthread_is_default
=no
4090 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4096 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4099 if test $ac_cv_pthread_is_default = yes
4103 # -Kpthread, if available, provides the right #defines
4104 # and linker options to make pthread_create available
4105 # Some compilers won't report that they do not support -Kpthread,
4106 # so we need to run a program to see whether it really made the
4107 # function available.
4108 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4109 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4110 if test "${ac_cv_kpthread+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test "$cross_compiling" = yes; then
4118 cat >conftest.
$ac_ext <<_ACEOF
4121 cat confdefs.h
>>conftest.
$ac_ext
4122 cat >>conftest.
$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 #include <pthread.h>
4127 void* routine(void* p){return NULL;}
4131 if(pthread_create(&p,NULL,routine,NULL)!=0)
4133 (void)pthread_detach(p);
4138 rm -f conftest
$ac_exeext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4151 echo "$as_me: program exited with status $ac_status" >&5
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.
$ac_ext >&5
4158 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4164 echo "${ECHO_T}$ac_cv_kpthread" >&6
4167 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4169 # -Kthread, if available, provides the right #defines
4170 # and linker options to make pthread_create available
4171 # Some compilers won't report that they do not support -Kthread,
4172 # so we need to run a program to see whether it really made the
4173 # function available.
4174 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4175 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4176 if test "${ac_cv_kthread+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test "$cross_compiling" = yes; then
4184 cat >conftest.
$ac_ext <<_ACEOF
4187 cat confdefs.h
>>conftest.
$ac_ext
4188 cat >>conftest.
$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 #include <pthread.h>
4193 void* routine(void* p){return NULL;}
4197 if(pthread_create(&p,NULL,routine,NULL)!=0)
4199 (void)pthread_detach(p);
4204 rm -f conftest
$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4217 echo "$as_me: program exited with status $ac_status" >&5
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.
$ac_ext >&5
4224 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4229 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4230 echo "${ECHO_T}$ac_cv_kthread" >&6
4233 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4235 # -pthread, if available, provides the right #defines
4236 # and linker options to make pthread_create available
4237 # Some compilers won't report that they do not support -pthread,
4238 # so we need to run a program to see whether it really made the
4239 # function available.
4240 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4241 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4242 if test "${ac_cv_thread+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test "$cross_compiling" = yes; then
4250 cat >conftest.
$ac_ext <<_ACEOF
4253 cat confdefs.h
>>conftest.
$ac_ext
4254 cat >>conftest.
$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 #include <pthread.h>
4259 void* routine(void* p){return NULL;}
4263 if(pthread_create(&p,NULL,routine,NULL)!=0)
4265 (void)pthread_detach(p);
4270 rm -f conftest
$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4283 echo "$as_me: program exited with status $ac_status" >&5
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.
$ac_ext >&5
4290 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4295 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4296 echo "${ECHO_T}$ac_cv_pthread" >&6
4299 # If we have set a CC compiler flag for thread support then
4300 # check if it works for CXX, too.
4304 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4305 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4308 if test "$ac_cv_kpthread" = "yes"
4310 CXX
="$CXX -Kpthread"
4311 ac_cv_cxx_thread
=yes
4312 elif test "$ac_cv_kthread" = "yes"
4315 ac_cv_cxx_thread
=yes
4316 elif test "$ac_cv_pthread" = "yes"
4319 ac_cv_cxx_thread
=yes
4322 if test $ac_cv_cxx_thread = yes
4324 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4325 $CXX -c conftest.
$ac_ext 2>&5
4326 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4327 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4329 ac_cv_cxx_thread
=yes
4335 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4336 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4341 # checks for header files
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 cat >conftest.
$ac_ext <<_ACEOF
4350 cat confdefs.h
>>conftest.
$ac_ext
4351 cat >>conftest.
$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4366 rm -f conftest.
$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1
>conftest.err
4372 cat conftest.err
>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try
='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try
='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_header_stdc
=yes
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.
$ac_ext >&5
4393 ac_cv_header_stdc
=no
4395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.
$ac_ext <<_ACEOF
4402 cat confdefs.h
>>conftest.
$ac_ext
4403 cat >>conftest.
$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev
/null
2>&1; then
4412 ac_cv_header_stdc
=no
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev
/null
2>&1; then
4433 ac_cv_header_stdc
=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4444 cat >conftest.
$ac_ext <<_ACEOF
4447 cat confdefs.h
>>conftest.
$ac_ext
4448 cat >>conftest.
$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4474 rm -f conftest
$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.
$ac_ext >&5
4492 ac_cv_header_stdc
=no
4494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4502 cat >>confdefs.h
<<\_ACEOF
4503 #define STDC_HEADERS 1
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4518 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4519 inttypes.h stdint.h unistd.h
4521 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.
$ac_ext <<_ACEOF
4530 cat confdefs.h
>>conftest.
$ac_ext
4531 cat >>conftest.
$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4535 #include <$ac_header>
4537 rm -f conftest.
$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try
='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.
$ac_ext >&5
4564 eval "$as_ac_Header=no"
4566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h
<<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4620 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4621 stropts.h termios.h thread.h \
4623 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4625 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4626 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4627 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4628 bluetooth
/bluetooth.h
4630 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632 echo "$as_me:$LINENO: checking for $ac_header" >&5
4633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640 # Is the header compilable?
4641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4643 cat >conftest.
$ac_ext <<_ACEOF
4646 cat confdefs.h
>>conftest.
$ac_ext
4647 cat >>conftest.
$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 #include <$ac_header>
4652 rm -f conftest.
$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1
>conftest.err
4658 cat conftest.err
>&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try
='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try
='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_header_compiler
=yes
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.
$ac_ext >&5
4679 ac_header_compiler
=no
4681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4683 echo "${ECHO_T}$ac_header_compiler" >&6
4685 # Is the header present?
4686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4688 cat >conftest.
$ac_ext <<_ACEOF
4691 cat confdefs.h
>>conftest.
$ac_ext
4692 cat >>conftest.
$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #include <$ac_header>
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1
>conftest.err
4701 cat conftest.err
>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev
/null
; then
4704 if test -s conftest.err
; then
4705 ac_cpp_err
=$ac_c_preproc_warn_flag
4706 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4713 if test -z "$ac_cpp_err"; then
4714 ac_header_preproc
=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.
$ac_ext >&5
4719 ac_header_preproc
=no
4721 rm -f conftest.err conftest.
$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4723 echo "${ECHO_T}$ac_header_preproc" >&6
4725 # So? What about this header?
4726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4732 ac_header_preproc
=yes
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749 ## ------------------------------------------------ ##
4750 ## Report this to http://www.python.org/python-bugs ##
4751 ## ------------------------------------------------ ##
4754 sed "s/^/$as_me: WARNING: /" >&2
4757 echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 eval "$as_ac_Header=\$ac_header_preproc"
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h
<<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4784 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4785 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4786 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.
$ac_ext <<_ACEOF
4793 cat confdefs.h
>>conftest.
$ac_ext
4794 cat >>conftest.
$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4808 rm -f conftest.
$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1
>conftest.err
4814 cat conftest.err
>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try
='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try
='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 eval "$as_ac_Header=yes"
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.
$ac_ext >&5
4835 eval "$as_ac_Header=no"
4837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4842 cat >>confdefs.h
<<_ACEOF
4843 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4846 ac_header_dirent
=$ac_hdr; break
4850 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4851 if test $ac_header_dirent = dirent.h
; then
4852 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4853 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4854 if test "${ac_cv_search_opendir+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_func_search_save_LIBS
=$LIBS
4858 ac_cv_search_opendir
=no
4859 cat >conftest.
$ac_ext <<_ACEOF
4862 cat confdefs.h
>>conftest.
$ac_ext
4863 cat >>conftest.
$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4881 rm -f conftest.
$ac_objext conftest
$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1
>conftest.err
4887 cat conftest.err
>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try
='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try
='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_search_opendir
="none required"
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.
$ac_ext >&5
4909 rm -f conftest.err conftest.
$ac_objext \
4910 conftest
$ac_exeext conftest.
$ac_ext
4911 if test "$ac_cv_search_opendir" = no
; then
4912 for ac_lib
in dir
; do
4913 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4936 rm -f conftest.
$ac_objext conftest
$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1
>conftest.err
4942 cat conftest.err
>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try
='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try
='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_search_opendir
="-l$ac_lib"
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4965 rm -f conftest.err conftest.
$ac_objext \
4966 conftest
$ac_exeext conftest.
$ac_ext
4969 LIBS
=$ac_func_search_save_LIBS
4971 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4972 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4973 if test "$ac_cv_search_opendir" != no
; then
4974 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4979 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4981 if test "${ac_cv_search_opendir+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_func_search_save_LIBS
=$LIBS
4985 ac_cv_search_opendir
=no
4986 cat >conftest.
$ac_ext <<_ACEOF
4989 cat confdefs.h
>>conftest.
$ac_ext
4990 cat >>conftest.
$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5008 rm -f conftest.
$ac_objext conftest
$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try
='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try
='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_search_opendir
="none required"
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.
$ac_ext >&5
5036 rm -f conftest.err conftest.
$ac_objext \
5037 conftest
$ac_exeext conftest.
$ac_ext
5038 if test "$ac_cv_search_opendir" = no
; then
5040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5041 cat >conftest.
$ac_ext <<_ACEOF
5044 cat confdefs.h
>>conftest.
$ac_ext
5045 cat >>conftest.
$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5063 rm -f conftest.
$ac_objext conftest
$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5067 grep -v '^ *+' conftest.er1
>conftest.err
5069 cat conftest.err
>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try
='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try
='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_search_opendir
="-l$ac_lib"
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.
$ac_ext >&5
5092 rm -f conftest.err conftest.
$ac_objext \
5093 conftest
$ac_exeext conftest.
$ac_ext
5096 LIBS
=$ac_func_search_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5099 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5100 if test "$ac_cv_search_opendir" != no
; then
5101 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5107 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5108 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5109 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 cat >conftest.
$ac_ext <<_ACEOF
5115 cat confdefs.h
>>conftest.
$ac_ext
5116 cat >>conftest.
$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <sys/types.h>
5122 return makedev(0, 0);
5127 rm -f conftest.
$ac_objext conftest
$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1
>conftest.err
5133 cat conftest.err
>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try
='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try
='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_header_sys_types_h_makedev
=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.
$ac_ext >&5
5154 ac_cv_header_sys_types_h_makedev
=no
5156 rm -f conftest.err conftest.
$ac_objext \
5157 conftest
$ac_exeext conftest.
$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5161 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5163 if test $ac_cv_header_sys_types_h_makedev = no
; then
5164 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5165 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5166 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5167 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5171 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5173 # Is the header compilable?
5174 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5175 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5176 cat >conftest.
$ac_ext <<_ACEOF
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5183 #include <sys/mkdev.h>
5185 rm -f conftest.
$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5189 grep -v '^ *+' conftest.er1
>conftest.err
5191 cat conftest.err
>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try
='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try
='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_header_compiler
=yes
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.
$ac_ext >&5
5212 ac_header_compiler
=no
5214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5216 echo "${ECHO_T}$ac_header_compiler" >&6
5218 # Is the header present?
5219 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5220 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 cat confdefs.h
>>conftest.
$ac_ext
5225 cat >>conftest.
$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <sys/mkdev.h>
5229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1
>conftest.err
5234 cat conftest.err
>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev
/null
; then
5237 if test -s conftest.err
; then
5238 ac_cpp_err
=$ac_c_preproc_warn_flag
5239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5246 if test -z "$ac_cpp_err"; then
5247 ac_header_preproc
=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.
$ac_ext >&5
5252 ac_header_preproc
=no
5254 rm -f conftest.err conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5256 echo "${ECHO_T}$ac_header_preproc" >&6
5258 # So? What about this header?
5259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5264 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5265 ac_header_preproc
=yes
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5275 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5277 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5282 ## ------------------------------------------------ ##
5283 ## Report this to http://www.python.org/python-bugs ##
5284 ## ------------------------------------------------ ##
5287 sed "s/^/$as_me: WARNING: /" >&2
5290 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5291 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5292 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5298 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5301 if test $ac_cv_header_sys_mkdev_h = yes; then
5303 cat >>confdefs.h
<<\_ACEOF
5304 #define MAJOR_IN_MKDEV 1
5311 if test $ac_cv_header_sys_mkdev_h = no
; then
5312 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5313 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5314 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5319 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5323 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5324 cat >conftest.
$ac_ext <<_ACEOF
5327 cat confdefs.h
>>conftest.
$ac_ext
5328 cat >>conftest.
$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 $ac_includes_default
5331 #include <sys/sysmacros.h>
5333 rm -f conftest.
$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1
>conftest.err
5339 cat conftest.err
>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try
='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try
='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_header_compiler
=yes
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.
$ac_ext >&5
5360 ac_header_compiler
=no
5362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 echo "${ECHO_T}$ac_header_compiler" >&6
5366 # Is the header present?
5367 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5368 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5369 cat >conftest.
$ac_ext <<_ACEOF
5372 cat confdefs.h
>>conftest.
$ac_ext
5373 cat >>conftest.
$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <sys/sysmacros.h>
5377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1
>conftest.err
5382 cat conftest.err
>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev
/null
; then
5385 if test -s conftest.err
; then
5386 ac_cpp_err
=$ac_c_preproc_warn_flag
5387 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5394 if test -z "$ac_cpp_err"; then
5395 ac_header_preproc
=yes
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.
$ac_ext >&5
5400 ac_header_preproc
=no
5402 rm -f conftest.err conftest.
$ac_ext
5403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404 echo "${ECHO_T}$ac_header_preproc" >&6
5406 # So? What about this header?
5407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5412 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5413 ac_header_preproc
=yes
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5423 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5430 ## ------------------------------------------------ ##
5431 ## Report this to http://www.python.org/python-bugs ##
5432 ## ------------------------------------------------ ##
5435 sed "s/^/$as_me: WARNING: /" >&2
5438 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5439 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5440 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5445 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5446 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5449 if test $ac_cv_header_sys_sysmacros_h = yes; then
5451 cat >>confdefs.h
<<\_ACEOF
5452 #define MAJOR_IN_SYSMACROS 1
5462 # On Solaris, term.h requires curses.h
5464 for ac_header
in term.h
5466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 cat >conftest.
$ac_ext <<_ACEOF
5475 cat confdefs.h
>>conftest.
$ac_ext
5476 cat >>conftest.
$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5479 #ifdef HAVE_CURSES_H
5484 #include <$ac_header>
5486 rm -f conftest.
$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1
>conftest.err
5492 cat conftest.err
>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try
='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try
='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_Header=yes"
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.
$ac_ext >&5
5513 eval "$as_ac_Header=no"
5515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h
<<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5529 # On Linux, netlink.h requires asm/types.h
5531 for ac_header
in linux
/netlink.h
5533 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 cat >conftest.
$ac_ext <<_ACEOF
5542 cat confdefs.h
>>conftest.
$ac_ext
5543 cat >>conftest.
$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5546 #ifdef HAVE_ASM_TYPES_H
5547 #include <asm/types.h>
5549 #ifdef HAVE_SYS_SOCKET_H
5550 #include <sys/socket.h>
5554 #include <$ac_header>
5556 rm -f conftest.
$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1
>conftest.err
5562 cat conftest.err
>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try
='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try
='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 eval "$as_ac_Header=yes"
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.
$ac_ext >&5
5583 eval "$as_ac_Header=no"
5585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5590 cat >>confdefs.h
<<_ACEOF
5591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 # checks for typedefs
5601 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5602 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5603 cat >conftest.
$ac_ext <<_ACEOF
5606 cat confdefs.h
>>conftest.
$ac_ext
5607 cat >>conftest.
$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613 $EGREP "clock_t" >/dev
/null
2>&1; then
5618 cat >>confdefs.h
<<\_ACEOF
5619 #define clock_t long
5626 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5627 echo "${ECHO_T}$was_it_defined" >&6
5629 # Check whether using makedev requires defining _OSF_SOURCE
5630 echo "$as_me:$LINENO: checking for makedev" >&5
5631 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5647 rm -f conftest.
$ac_objext conftest
$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>conftest.er1
5651 grep -v '^ *+' conftest.er1
>conftest.err
5653 cat conftest.err
>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try
='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try
='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_has_makedev
=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.
$ac_ext >&5
5674 ac_cv_has_makedev
=no
5676 rm -f conftest.err conftest.
$ac_objext \
5677 conftest
$ac_exeext conftest.
$ac_ext
5678 if test "$ac_cv_has_makedev" = "no"; then
5679 # we didn't link, try if _OSF_SOURCE will allow us to link
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 #define _OSF_SOURCE 1
5688 #include <sys/types.h>
5698 rm -f conftest.
$ac_objext conftest
$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5702 grep -v '^ *+' conftest.er1
>conftest.err
5704 cat conftest.err
>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try
='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try
='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_has_makedev
=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.
$ac_ext >&5
5725 ac_cv_has_makedev
=no
5727 rm -f conftest.err conftest.
$ac_objext \
5728 conftest
$ac_exeext conftest.
$ac_ext
5729 if test "$ac_cv_has_makedev" = "yes"; then
5731 cat >>confdefs.h
<<\_ACEOF
5732 #define _OSF_SOURCE 1
5737 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5738 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5739 if test "$ac_cv_has_makedev" = "yes"; then
5741 cat >>confdefs.h
<<\_ACEOF
5742 #define HAVE_MAKEDEV 1
5747 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5748 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5749 # defined, but the compiler does not support pragma redefine_extname,
5750 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5751 # structures (such as rlimit64) without declaring them. As a
5752 # work-around, disable LFS on such configurations
5755 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5756 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 #define _LARGEFILE_SOURCE 1
5765 #define _FILE_OFFSET_BITS 64
5766 #include <sys/resource.h>
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.
$ac_ext >&5
5805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5807 echo "${ECHO_T}$sol_lfs_bug" >&6
5808 if test "$sol_lfs_bug" = "yes"; then
5812 if test "$use_lfs" = "yes"; then
5813 # Two defines needed to enable largefile support on various platforms
5814 # These may affect some typedefs
5816 cat >>confdefs.h
<<\_ACEOF
5817 #define _LARGEFILE_SOURCE 1
5821 cat >>confdefs.h
<<\_ACEOF
5822 #define _FILE_OFFSET_BITS 64
5827 # Add some code to confdefs.h so that the test for off_t works on SCO
5828 cat >> confdefs.h
<<\EOF
5834 # Type availability checks
5835 echo "$as_me:$LINENO: checking for mode_t" >&5
5836 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5837 if test "${ac_cv_type_mode_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.
$ac_ext <<_ACEOF
5843 cat confdefs.h
>>conftest.
$ac_ext
5844 cat >>conftest.
$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 $ac_includes_default
5852 if (sizeof (mode_t))
5858 rm -f conftest.
$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1
>conftest.err
5864 cat conftest.err
>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try
='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try
='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_type_mode_t
=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.
$ac_ext >&5
5885 ac_cv_type_mode_t
=no
5887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5890 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5891 if test $ac_cv_type_mode_t = yes; then
5895 cat >>confdefs.h
<<_ACEOF
5901 echo "$as_me:$LINENO: checking for off_t" >&5
5902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5903 if test "${ac_cv_type_off_t+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.
$ac_ext <<_ACEOF
5909 cat confdefs.h
>>conftest.
$ac_ext
5910 cat >>conftest.
$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5924 rm -f conftest.
$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try
='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try
='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_type_off_t
=yes
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5956 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5957 if test $ac_cv_type_off_t = yes; then
5961 cat >>confdefs.h
<<_ACEOF
5967 echo "$as_me:$LINENO: checking for pid_t" >&5
5968 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_pid_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 cat >conftest.
$ac_ext <<_ACEOF
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5990 rm -f conftest.
$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try
='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_pid_t
=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6023 if test $ac_cv_type_pid_t = yes; then
6027 cat >>confdefs.h
<<_ACEOF
6033 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6035 if test "${ac_cv_type_signal+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 cat >conftest.
$ac_ext <<_ACEOF
6041 cat confdefs.h
>>conftest.
$ac_ext
6042 cat >>conftest.
$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6050 extern "C" void (*signal (int, void (*)(int)))(int);
6052 void (*signal ()) ();
6063 rm -f conftest.
$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1
>conftest.err
6069 cat conftest.err
>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try
='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try
='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_type_signal
=void
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.
$ac_ext >&5
6090 ac_cv_type_signal
=int
6092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6095 echo "${ECHO_T}$ac_cv_type_signal" >&6
6097 cat >>confdefs.h
<<_ACEOF
6098 #define RETSIGTYPE $ac_cv_type_signal
6102 echo "$as_me:$LINENO: checking for size_t" >&5
6103 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6104 if test "${ac_cv_type_size_t+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 cat >conftest.
$ac_ext <<_ACEOF
6110 cat confdefs.h
>>conftest.
$ac_ext
6111 cat >>conftest.
$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 $ac_includes_default
6119 if (sizeof (size_t))
6125 rm -f conftest.
$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6129 grep -v '^ *+' conftest.er1
>conftest.err
6131 cat conftest.err
>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try
='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try
='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_type_size_t
=yes
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.
$ac_ext >&5
6152 ac_cv_type_size_t
=no
6154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6158 if test $ac_cv_type_size_t = yes; then
6162 cat >>confdefs.h
<<_ACEOF
6163 #define size_t unsigned
6168 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6169 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6170 if test "${ac_cv_type_uid_t+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 cat >conftest.
$ac_ext <<_ACEOF
6176 cat confdefs.h
>>conftest.
$ac_ext
6177 cat >>conftest.
$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "uid_t" >/dev
/null
2>&1; then
6184 ac_cv_type_uid_t
=yes
6191 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6192 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6193 if test $ac_cv_type_uid_t = no
; then
6195 cat >>confdefs.h
<<\_ACEOF
6200 cat >>confdefs.h
<<\_ACEOF
6206 echo "$as_me:$LINENO: checking for ssize_t" >&5
6207 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6208 if test "${ac_cv_type_ssize_t+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 cat >conftest.
$ac_ext <<_ACEOF
6214 cat confdefs.h
>>conftest.
$ac_ext
6215 cat >>conftest.
$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6223 if (sizeof (ssize_t))
6229 rm -f conftest.
$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try
='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_type_ssize_t
=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6256 ac_cv_type_ssize_t
=no
6258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6261 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6262 if test $ac_cv_type_ssize_t = yes; then
6264 cat >>confdefs.h
<<\_ACEOF
6265 #define HAVE_SSIZE_T 1
6271 # Sizes of various common basic types
6272 # ANSI C requires sizeof(char) == 1, so no need to check it
6273 echo "$as_me:$LINENO: checking for int" >&5
6274 echo $ECHO_N "checking for int... $ECHO_C" >&6
6275 if test "${ac_cv_type_int+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.
$ac_ext <<_ACEOF
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6296 rm -f conftest.
$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1
>conftest.err
6302 cat conftest.err
>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try
='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try
='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.
$ac_ext >&5
6325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6328 echo "${ECHO_T}$ac_cv_type_int" >&6
6330 echo "$as_me:$LINENO: checking size of int" >&5
6331 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6332 if test "${ac_cv_sizeof_int+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 if test "$ac_cv_type_int" = yes; then
6336 # The cast to unsigned long works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 if test "$cross_compiling" = yes; then
6341 # Depending upon the size, compute the lo and hi bounds.
6342 cat >conftest.
$ac_ext <<_ACEOF
6345 cat confdefs.h
>>conftest.
$ac_ext
6346 cat >>conftest.
$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6359 rm -f conftest.
$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>conftest.er1
6363 grep -v '^ *+' conftest.er1
>conftest.err
6365 cat conftest.err
>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try
='test -z "$ac_c_werror_flag"
6369 || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try
='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6383 cat >conftest.
$ac_ext <<_ACEOF
6386 cat confdefs.h
>>conftest.
$ac_ext
6387 cat >>conftest.
$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6400 rm -f conftest.
$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1
>conftest.err
6406 cat conftest.err
>&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try
='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try
='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_hi
=$ac_mid; break
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.
$ac_ext >&5
6427 ac_lo
=`expr $ac_mid + 1`
6428 if test $ac_lo -le $ac_mid; then
6432 ac_mid
=`expr 2 '*' $ac_mid + 1`
6434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.
$ac_ext >&5
6440 cat >conftest.
$ac_ext <<_ACEOF
6443 cat confdefs.h
>>conftest.
$ac_ext
6444 cat >>conftest.
$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6457 rm -f conftest.
$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1
>conftest.err
6463 cat conftest.err
>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try
='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6481 cat >conftest.
$ac_ext <<_ACEOF
6484 cat confdefs.h
>>conftest.
$ac_ext
6485 cat >>conftest.
$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6498 rm -f conftest.
$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6502 grep -v '^ *+' conftest.er1
>conftest.err
6504 cat conftest.err
>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try
='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try
='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_lo
=$ac_mid; break
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.
$ac_ext >&5
6525 ac_hi
=`expr '(' $ac_mid ')' - 1`
6526 if test $ac_mid -le $ac_hi; then
6530 ac_mid
=`expr 2 '*' $ac_mid`
6532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6543 # Binary search between lo and hi bounds.
6544 while test "x$ac_lo" != "x$ac_hi"; do
6545 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6546 cat >conftest.
$ac_ext <<_ACEOF
6549 cat confdefs.h
>>conftest.
$ac_ext
6550 cat >>conftest.
$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6563 rm -f conftest.
$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>conftest.er1
6567 grep -v '^ *+' conftest.er1
>conftest.err
6569 cat conftest.err
>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try
='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try
='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.
$ac_ext >&5
6590 ac_lo
=`expr '(' $ac_mid ')' + 1`
6592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6595 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; } ;;
6603 if test "$cross_compiling" = yes; then
6604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6605 See \`config.log' for more details." >&5
6606 echo "$as_me: error: cannot run test program while cross compiling
6607 See \`config.log' for more details." >&2;}
6608 { (exit 1); exit 1; }; }
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 long longval () { return (long) (sizeof (int)); }
6618 unsigned long ulongval () { return (long) (sizeof (int)); }
6625 FILE *f = fopen ("conftest.val", "w");
6628 if (((long) (sizeof (int))) < 0)
6630 long i = longval ();
6631 if (i != ((long) (sizeof (int))))
6633 fprintf (f, "%ld\n", i);
6637 unsigned long i = ulongval ();
6638 if (i != ((long) (sizeof (int))))
6640 fprintf (f, "%lu\n", i);
6642 exit (ferror (f) || fclose (f) != 0);
6648 rm -f conftest
$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_sizeof_int
=`cat conftest.val`
6661 echo "$as_me: program exited with status $ac_status" >&5
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.
$ac_ext >&5
6666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6667 See \`config.log' for more details." >&5
6668 echo "$as_me: error: cannot compute sizeof (int), 77
6669 See \`config.log' for more details." >&2;}
6670 { (exit 1); exit 1; }; }
6672 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6681 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6682 cat >>confdefs.h
<<_ACEOF
6683 #define SIZEOF_INT $ac_cv_sizeof_int
6687 echo "$as_me:$LINENO: checking for long" >&5
6688 echo $ECHO_N "checking for long... $ECHO_C" >&6
6689 if test "${ac_cv_type_long+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6710 rm -f conftest.
$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>conftest.er1
6714 grep -v '^ *+' conftest.er1
>conftest.err
6716 cat conftest.err
>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try
='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try
='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.
$ac_ext >&5
6739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6742 echo "${ECHO_T}$ac_cv_type_long" >&6
6744 echo "$as_me:$LINENO: checking size of long" >&5
6745 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6746 if test "${ac_cv_sizeof_long+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 if test "$ac_cv_type_long" = yes; then
6750 # The cast to unsigned long works around a bug in the HP C Compiler
6751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6753 # This bug is HP SR number 8606223364.
6754 if test "$cross_compiling" = yes; then
6755 # Depending upon the size, compute the lo and hi bounds.
6756 cat >conftest.
$ac_ext <<_ACEOF
6759 cat confdefs.h
>>conftest.
$ac_ext
6760 cat >>conftest.
$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6766 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6773 rm -f conftest.
$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1
>conftest.err
6779 cat conftest.err
>&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try
='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try
='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6797 cat >conftest.
$ac_ext <<_ACEOF
6800 cat confdefs.h
>>conftest.
$ac_ext
6801 cat >>conftest.
$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6807 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6814 rm -f conftest.
$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6818 grep -v '^ *+' conftest.er1
>conftest.err
6820 cat conftest.err
>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try
='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try
='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_hi
=$ac_mid; break
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.
$ac_ext >&5
6841 ac_lo
=`expr $ac_mid + 1`
6842 if test $ac_lo -le $ac_mid; then
6846 ac_mid
=`expr 2 '*' $ac_mid + 1`
6848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.
$ac_ext >&5
6854 cat >conftest.
$ac_ext <<_ACEOF
6857 cat confdefs.h
>>conftest.
$ac_ext
6858 cat >>conftest.
$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6871 rm -f conftest.
$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6875 grep -v '^ *+' conftest.er1
>conftest.err
6877 cat conftest.err
>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try
='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try
='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6895 cat >conftest.
$ac_ext <<_ACEOF
6898 cat confdefs.h
>>conftest.
$ac_ext
6899 cat >>conftest.
$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6905 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6912 rm -f conftest.
$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6916 grep -v '^ *+' conftest.er1
>conftest.err
6918 cat conftest.err
>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try
='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try
='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_lo
=$ac_mid; break
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.
$ac_ext >&5
6939 ac_hi
=`expr '(' $ac_mid ')' - 1`
6940 if test $ac_mid -le $ac_hi; then
6944 ac_mid
=`expr 2 '*' $ac_mid`
6946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6957 # Binary search between lo and hi bounds.
6958 while test "x$ac_lo" != "x$ac_hi"; do
6959 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6970 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6977 rm -f conftest.
$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1
>conftest.err
6983 cat conftest.err
>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try
='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try
='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.
$ac_ext >&5
7004 ac_lo
=`expr '(' $ac_mid ')' + 1`
7006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7009 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; } ;;
7017 if test "$cross_compiling" = yes; then
7018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: cannot run test program while cross compiling
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7024 cat >conftest.
$ac_ext <<_ACEOF
7027 cat confdefs.h
>>conftest.
$ac_ext
7028 cat >>conftest.
$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 $ac_includes_default
7031 long longval () { return (long) (sizeof (long)); }
7032 unsigned long ulongval () { return (long) (sizeof (long)); }
7039 FILE *f = fopen ("conftest.val", "w");
7042 if (((long) (sizeof (long))) < 0)
7044 long i = longval ();
7045 if (i != ((long) (sizeof (long))))
7047 fprintf (f, "%ld\n", i);
7051 unsigned long i = ulongval ();
7052 if (i != ((long) (sizeof (long))))
7054 fprintf (f, "%lu\n", i);
7056 exit (ferror (f) || fclose (f) != 0);
7062 rm -f conftest
$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_sizeof_long
=`cat conftest.val`
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.
$ac_ext >&5
7080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7081 See \`config.log' for more details." >&5
7082 echo "$as_me: error: cannot compute sizeof (long), 77
7083 See \`config.log' for more details." >&2;}
7084 { (exit 1); exit 1; }; }
7086 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7095 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7096 cat >>confdefs.h
<<_ACEOF
7097 #define SIZEOF_LONG $ac_cv_sizeof_long
7101 echo "$as_me:$LINENO: checking for void *" >&5
7102 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7103 if test "${ac_cv_type_void_p+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7118 if (sizeof (void *))
7124 rm -f conftest.
$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>conftest.er1
7128 grep -v '^ *+' conftest.er1
>conftest.err
7130 cat conftest.err
>&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try
='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try
='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_type_void_p
=yes
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.
$ac_ext >&5
7151 ac_cv_type_void_p
=no
7153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7156 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7158 echo "$as_me:$LINENO: checking size of void *" >&5
7159 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7160 if test "${ac_cv_sizeof_void_p+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test "$ac_cv_type_void_p" = yes; then
7164 # The cast to unsigned long works around a bug in the HP C Compiler
7165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7167 # This bug is HP SR number 8606223364.
7168 if test "$cross_compiling" = yes; then
7169 # Depending upon the size, compute the lo and hi bounds.
7170 cat >conftest.
$ac_ext <<_ACEOF
7173 cat confdefs.h
>>conftest.
$ac_ext
7174 cat >>conftest.
$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7180 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7187 rm -f conftest.
$ac_objext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try
='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try
='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7221 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7228 rm -f conftest.
$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1
>conftest.err
7234 cat conftest.err
>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try
='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try
='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_hi
=$ac_mid; break
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7255 ac_lo
=`expr $ac_mid + 1`
7256 if test $ac_lo -le $ac_mid; then
7260 ac_mid
=`expr 2 '*' $ac_mid + 1`
7262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.
$ac_ext >&5
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 $ac_includes_default
7278 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7285 rm -f conftest.
$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try
='test -z "$ac_c_werror_flag"
7295 || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try
='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7309 cat >conftest.
$ac_ext <<_ACEOF
7312 cat confdefs.h
>>conftest.
$ac_ext
7313 cat >>conftest.
$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7319 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7326 rm -f conftest.
$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try
='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_lo
=$ac_mid; break
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7353 ac_hi
=`expr '(' $ac_mid ')' - 1`
7354 if test $ac_mid -le $ac_hi; then
7358 ac_mid
=`expr 2 '*' $ac_mid`
7360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.
$ac_ext >&5
7368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7371 # Binary search between lo and hi bounds.
7372 while test "x$ac_lo" != "x$ac_hi"; do
7373 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7374 cat >conftest.
$ac_ext <<_ACEOF
7377 cat confdefs.h
>>conftest.
$ac_ext
7378 cat >>conftest.
$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7384 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7391 rm -f conftest.
$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7395 grep -v '^ *+' conftest.er1
>conftest.err
7397 cat conftest.err
>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try
='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try
='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.
$ac_ext >&5
7418 ac_lo
=`expr '(' $ac_mid ')' + 1`
7420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7424 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; } ;;
7431 if test "$cross_compiling" = yes; then
7432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7433 See \`config.log' for more details." >&5
7434 echo "$as_me: error: cannot run test program while cross compiling
7435 See \`config.log' for more details." >&2;}
7436 { (exit 1); exit 1; }; }
7438 cat >conftest.
$ac_ext <<_ACEOF
7441 cat confdefs.h
>>conftest.
$ac_ext
7442 cat >>conftest.
$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 long longval () { return (long) (sizeof (void *)); }
7446 unsigned long ulongval () { return (long) (sizeof (void *)); }
7453 FILE *f = fopen ("conftest.val", "w");
7456 if (((long) (sizeof (void *))) < 0)
7458 long i = longval ();
7459 if (i != ((long) (sizeof (void *))))
7461 fprintf (f, "%ld\n", i);
7465 unsigned long i = ulongval ();
7466 if (i != ((long) (sizeof (void *))))
7468 fprintf (f, "%lu\n", i);
7470 exit (ferror (f) || fclose (f) != 0);
7476 rm -f conftest
$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 ac_cv_sizeof_void_p
=`cat conftest.val`
7489 echo "$as_me: program exited with status $ac_status" >&5
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.
$ac_ext >&5
7494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7495 See \`config.log' for more details." >&5
7496 echo "$as_me: error: cannot compute sizeof (void *), 77
7497 See \`config.log' for more details." >&2;}
7498 { (exit 1); exit 1; }; }
7500 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7505 ac_cv_sizeof_void_p
=0
7508 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7510 cat >>confdefs.h
<<_ACEOF
7511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7515 echo "$as_me:$LINENO: checking for short" >&5
7516 echo $ECHO_N "checking for short... $ECHO_C" >&6
7517 if test "${ac_cv_type_short+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 cat >conftest.
$ac_ext <<_ACEOF
7523 cat confdefs.h
>>conftest.
$ac_ext
7524 cat >>conftest.
$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7538 rm -f conftest.
$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try
='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try
='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_type_short
=yes
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.
$ac_ext >&5
7567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7569 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7570 echo "${ECHO_T}$ac_cv_type_short" >&6
7572 echo "$as_me:$LINENO: checking size of short" >&5
7573 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7574 if test "${ac_cv_sizeof_short+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 if test "$ac_cv_type_short" = yes; then
7578 # The cast to unsigned long works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 if test "$cross_compiling" = yes; then
7583 # Depending upon the size, compute the lo and hi bounds.
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7594 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7601 rm -f conftest.
$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7605 grep -v '^ *+' conftest.er1
>conftest.err
7607 cat conftest.err
>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try
='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try
='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7625 cat >conftest.
$ac_ext <<_ACEOF
7628 cat confdefs.h
>>conftest.
$ac_ext
7629 cat >>conftest.
$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7635 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7642 rm -f conftest.
$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7646 grep -v '^ *+' conftest.er1
>conftest.err
7648 cat conftest.err
>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try
='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try
='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_hi
=$ac_mid; break
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.
$ac_ext >&5
7669 ac_lo
=`expr $ac_mid + 1`
7670 if test $ac_lo -le $ac_mid; then
7674 ac_mid
=`expr 2 '*' $ac_mid + 1`
7676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.
$ac_ext >&5
7682 cat >conftest.
$ac_ext <<_ACEOF
7685 cat confdefs.h
>>conftest.
$ac_ext
7686 cat >>conftest.
$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7692 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7699 rm -f conftest.
$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7703 grep -v '^ *+' conftest.er1
>conftest.err
7705 cat conftest.err
>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try
='test -z "$ac_c_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try
='test -s conftest.$ac_objext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7723 cat >conftest.
$ac_ext <<_ACEOF
7726 cat confdefs.h
>>conftest.
$ac_ext
7727 cat >>conftest.
$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7733 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7740 rm -f conftest.
$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try
='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_lo
=$ac_mid; break
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7767 ac_hi
=`expr '(' $ac_mid ')' - 1`
7768 if test $ac_mid -le $ac_hi; then
7772 ac_mid
=`expr 2 '*' $ac_mid`
7774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7785 # Binary search between lo and hi bounds.
7786 while test "x$ac_lo" != "x$ac_hi"; do
7787 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7788 cat >conftest.
$ac_ext <<_ACEOF
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7798 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7805 rm -f conftest.
$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7809 grep -v '^ *+' conftest.er1
>conftest.err
7811 cat conftest.err
>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try
='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try
='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.
$ac_ext >&5
7832 ac_lo
=`expr '(' $ac_mid ')' + 1`
7834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7838 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; } ;;
7845 if test "$cross_compiling" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot run test program while cross compiling
7849 See \`config.log' for more details." >&2;}
7850 { (exit 1); exit 1; }; }
7852 cat >conftest.
$ac_ext <<_ACEOF
7855 cat confdefs.h
>>conftest.
$ac_ext
7856 cat >>conftest.
$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 long longval () { return (long) (sizeof (short)); }
7860 unsigned long ulongval () { return (long) (sizeof (short)); }
7867 FILE *f = fopen ("conftest.val", "w");
7870 if (((long) (sizeof (short))) < 0)
7872 long i = longval ();
7873 if (i != ((long) (sizeof (short))))
7875 fprintf (f, "%ld\n", i);
7879 unsigned long i = ulongval ();
7880 if (i != ((long) (sizeof (short))))
7882 fprintf (f, "%lu\n", i);
7884 exit (ferror (f) || fclose (f) != 0);
7890 rm -f conftest
$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_sizeof_short
=`cat conftest.val`
7903 echo "$as_me: program exited with status $ac_status" >&5
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.
$ac_ext >&5
7908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7909 See \`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (short), 77
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7914 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7919 ac_cv_sizeof_short
=0
7922 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7923 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7924 cat >>confdefs.h
<<_ACEOF
7925 #define SIZEOF_SHORT $ac_cv_sizeof_short
7929 echo "$as_me:$LINENO: checking for float" >&5
7930 echo $ECHO_N "checking for float... $ECHO_C" >&6
7931 if test "${ac_cv_type_float+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.
$ac_ext <<_ACEOF
7937 cat confdefs.h
>>conftest.
$ac_ext
7938 cat >>conftest.
$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7952 rm -f conftest.
$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7956 grep -v '^ *+' conftest.er1
>conftest.err
7958 cat conftest.err
>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try
='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try
='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_type_float
=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.
$ac_ext >&5
7981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7984 echo "${ECHO_T}$ac_cv_type_float" >&6
7986 echo "$as_me:$LINENO: checking size of float" >&5
7987 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7988 if test "${ac_cv_sizeof_float+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 if test "$ac_cv_type_float" = yes; then
7992 # The cast to unsigned long works around a bug in the HP C Compiler
7993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7995 # This bug is HP SR number 8606223364.
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.
$ac_ext <<_ACEOF
8001 cat confdefs.h
>>conftest.
$ac_ext
8002 cat >>conftest.
$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8008 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8015 rm -f conftest.
$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>conftest.er1
8019 grep -v '^ *+' conftest.er1
>conftest.err
8021 cat conftest.err
>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try
='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try
='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8049 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8056 rm -f conftest.
$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1
>conftest.err
8062 cat conftest.err
>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try
='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try
='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_hi
=$ac_mid; break
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.
$ac_ext >&5
8083 ac_lo
=`expr $ac_mid + 1`
8084 if test $ac_lo -le $ac_mid; then
8088 ac_mid
=`expr 2 '*' $ac_mid + 1`
8090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.
$ac_ext >&5
8096 cat >conftest.
$ac_ext <<_ACEOF
8099 cat confdefs.h
>>conftest.
$ac_ext
8100 cat >>conftest.
$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 $ac_includes_default
8106 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8113 rm -f conftest.
$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1
>conftest.err
8119 cat conftest.err
>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try
='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try
='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8137 cat >conftest.
$ac_ext <<_ACEOF
8140 cat confdefs.h
>>conftest.
$ac_ext
8141 cat >>conftest.
$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8147 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8154 rm -f conftest.
$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156 (eval $ac_compile) 2>conftest.er1
8158 grep -v '^ *+' conftest.er1
>conftest.err
8160 cat conftest.err
>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try
='test -z "$ac_c_werror_flag"
8164 || test ! -s conftest.err'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try
='test -s conftest.$ac_objext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_lo
=$ac_mid; break
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_hi
=`expr '(' $ac_mid ')' - 1`
8182 if test $ac_mid -le $ac_hi; then
8186 ac_mid
=`expr 2 '*' $ac_mid`
8188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.
$ac_ext >&5
8196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 # Binary search between lo and hi bounds.
8200 while test "x$ac_lo" != "x$ac_hi"; do
8201 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8202 cat >conftest.
$ac_ext <<_ACEOF
8205 cat confdefs.h
>>conftest.
$ac_ext
8206 cat >>conftest.
$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 $ac_includes_default
8212 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8219 rm -f conftest.
$ac_objext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221 (eval $ac_compile) 2>conftest.er1
8223 grep -v '^ *+' conftest.er1
>conftest.err
8225 cat conftest.err
>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try
='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try
='test -s conftest.$ac_objext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.
$ac_ext >&5
8246 ac_lo
=`expr '(' $ac_mid ')' + 1`
8248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8251 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8252 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; } ;;
8259 if test "$cross_compiling" = yes; then
8260 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8261 See \`config.log' for more details." >&5
8262 echo "$as_me: error: cannot run test program while cross compiling
8263 See \`config.log' for more details." >&2;}
8264 { (exit 1); exit 1; }; }
8266 cat >conftest.
$ac_ext <<_ACEOF
8269 cat confdefs.h
>>conftest.
$ac_ext
8270 cat >>conftest.
$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 long longval () { return (long) (sizeof (float)); }
8274 unsigned long ulongval () { return (long) (sizeof (float)); }
8281 FILE *f = fopen ("conftest.val", "w");
8284 if (((long) (sizeof (float))) < 0)
8286 long i = longval ();
8287 if (i != ((long) (sizeof (float))))
8289 fprintf (f, "%ld\n", i);
8293 unsigned long i = ulongval ();
8294 if (i != ((long) (sizeof (float))))
8296 fprintf (f, "%lu\n", i);
8298 exit (ferror (f) || fclose (f) != 0);
8304 rm -f conftest
$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_sizeof_float
=`cat conftest.val`
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8323 See \`config.log' for more details." >&5
8324 echo "$as_me: error: cannot compute sizeof (float), 77
8325 See \`config.log' for more details." >&2;}
8326 { (exit 1); exit 1; }; }
8328 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8333 ac_cv_sizeof_float
=0
8336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8337 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8338 cat >>confdefs.h
<<_ACEOF
8339 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8343 echo "$as_me:$LINENO: checking for double" >&5
8344 echo $ECHO_N "checking for double... $ECHO_C" >&6
8345 if test "${ac_cv_type_double+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.
$ac_ext <<_ACEOF
8351 cat confdefs.h
>>conftest.
$ac_ext
8352 cat >>conftest.
$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8360 if (sizeof (double))
8366 rm -f conftest.
$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8370 grep -v '^ *+' conftest.er1
>conftest.err
8372 cat conftest.err
>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try
='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try
='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_type_double
=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.
$ac_ext >&5
8393 ac_cv_type_double
=no
8395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8398 echo "${ECHO_T}$ac_cv_type_double" >&6
8400 echo "$as_me:$LINENO: checking size of double" >&5
8401 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8402 if test "${ac_cv_sizeof_double+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 if test "$ac_cv_type_double" = yes; then
8406 # The cast to unsigned long works around a bug in the HP C Compiler
8407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409 # This bug is HP SR number 8606223364.
8410 if test "$cross_compiling" = yes; then
8411 # Depending upon the size, compute the lo and hi bounds.
8412 cat >conftest.
$ac_ext <<_ACEOF
8415 cat confdefs.h
>>conftest.
$ac_ext
8416 cat >>conftest.
$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8422 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8429 rm -f conftest.
$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8433 grep -v '^ *+' conftest.er1
>conftest.err
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try
='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try
='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8453 cat >conftest.
$ac_ext <<_ACEOF
8456 cat confdefs.h
>>conftest.
$ac_ext
8457 cat >>conftest.
$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8463 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8470 rm -f conftest.
$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>conftest.er1
8474 grep -v '^ *+' conftest.er1
>conftest.err
8476 cat conftest.err
>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try
='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try
='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_hi
=$ac_mid; break
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.
$ac_ext >&5
8497 ac_lo
=`expr $ac_mid + 1`
8498 if test $ac_lo -le $ac_mid; then
8502 ac_mid
=`expr 2 '*' $ac_mid + 1`
8504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8520 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8527 rm -f conftest.
$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1
>conftest.err
8533 cat conftest.err
>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try
='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8551 cat >conftest.
$ac_ext <<_ACEOF
8554 cat confdefs.h
>>conftest.
$ac_ext
8555 cat >>conftest.
$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8561 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8568 rm -f conftest.
$ac_objext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>conftest.er1
8572 grep -v '^ *+' conftest.er1
>conftest.err
8574 cat conftest.err
>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try
='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try
='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_lo
=$ac_mid; break
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.
$ac_ext >&5
8595 ac_hi
=`expr '(' $ac_mid ')' - 1`
8596 if test $ac_mid -le $ac_hi; then
8600 ac_mid
=`expr 2 '*' $ac_mid`
8602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.
$ac_ext >&5
8610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8613 # Binary search between lo and hi bounds.
8614 while test "x$ac_lo" != "x$ac_hi"; do
8615 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8616 cat >conftest.
$ac_ext <<_ACEOF
8619 cat confdefs.h
>>conftest.
$ac_ext
8620 cat >>conftest.
$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8626 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8633 rm -f conftest.
$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8637 grep -v '^ *+' conftest.er1
>conftest.err
8639 cat conftest.err
>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try
='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try
='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.
$ac_ext >&5
8660 ac_lo
=`expr '(' $ac_mid ')' + 1`
8662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8665 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; } ;;
8673 if test "$cross_compiling" = yes; then
8674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8675 See \`config.log' for more details." >&5
8676 echo "$as_me: error: cannot run test program while cross compiling
8677 See \`config.log' for more details." >&2;}
8678 { (exit 1); exit 1; }; }
8680 cat >conftest.
$ac_ext <<_ACEOF
8683 cat confdefs.h
>>conftest.
$ac_ext
8684 cat >>conftest.
$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 long longval () { return (long) (sizeof (double)); }
8688 unsigned long ulongval () { return (long) (sizeof (double)); }
8695 FILE *f = fopen ("conftest.val", "w");
8698 if (((long) (sizeof (double))) < 0)
8700 long i = longval ();
8701 if (i != ((long) (sizeof (double))))
8703 fprintf (f, "%ld\n", i);
8707 unsigned long i = ulongval ();
8708 if (i != ((long) (sizeof (double))))
8710 fprintf (f, "%lu\n", i);
8712 exit (ferror (f) || fclose (f) != 0);
8718 rm -f conftest
$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_sizeof_double
=`cat conftest.val`
8731 echo "$as_me: program exited with status $ac_status" >&5
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.
$ac_ext >&5
8736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8737 See \`config.log' for more details." >&5
8738 echo "$as_me: error: cannot compute sizeof (double), 77
8739 See \`config.log' for more details." >&2;}
8740 { (exit 1); exit 1; }; }
8742 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8747 ac_cv_sizeof_double
=0
8750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8751 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8752 cat >>confdefs.h
<<_ACEOF
8753 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8757 echo "$as_me:$LINENO: checking for fpos_t" >&5
8758 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8759 if test "${ac_cv_type_fpos_t+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 cat >conftest.
$ac_ext <<_ACEOF
8765 cat confdefs.h
>>conftest.
$ac_ext
8766 cat >>conftest.
$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8774 if (sizeof (fpos_t))
8780 rm -f conftest.
$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>conftest.er1
8784 grep -v '^ *+' conftest.er1
>conftest.err
8786 cat conftest.err
>&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try
='test -z "$ac_c_werror_flag"
8790 || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try
='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_cv_type_fpos_t
=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.
$ac_ext >&5
8807 ac_cv_type_fpos_t
=no
8809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8812 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8814 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8815 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8816 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 if test "$ac_cv_type_fpos_t" = yes; then
8820 # The cast to unsigned long works around a bug in the HP C Compiler
8821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8823 # This bug is HP SR number 8606223364.
8824 if test "$cross_compiling" = yes; then
8825 # Depending upon the size, compute the lo and hi bounds.
8826 cat >conftest.
$ac_ext <<_ACEOF
8829 cat confdefs.h
>>conftest.
$ac_ext
8830 cat >>conftest.
$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8836 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8843 rm -f conftest.
$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1
>conftest.err
8849 cat conftest.err
>&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try
='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try
='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8867 cat >conftest.
$ac_ext <<_ACEOF
8870 cat confdefs.h
>>conftest.
$ac_ext
8871 cat >>conftest.
$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8877 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8884 rm -f conftest.
$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>conftest.er1
8888 grep -v '^ *+' conftest.er1
>conftest.err
8890 cat conftest.err
>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try
='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try
='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_hi
=$ac_mid; break
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.
$ac_ext >&5
8911 ac_lo
=`expr $ac_mid + 1`
8912 if test $ac_lo -le $ac_mid; then
8916 ac_mid
=`expr 2 '*' $ac_mid + 1`
8918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.
$ac_ext >&5
8924 cat >conftest.
$ac_ext <<_ACEOF
8927 cat confdefs.h
>>conftest.
$ac_ext
8928 cat >>conftest.
$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8934 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8941 rm -f conftest.
$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8945 grep -v '^ *+' conftest.er1
>conftest.err
8947 cat conftest.err
>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try
='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try
='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8965 cat >conftest.
$ac_ext <<_ACEOF
8968 cat confdefs.h
>>conftest.
$ac_ext
8969 cat >>conftest.
$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8975 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8982 rm -f conftest.
$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8986 grep -v '^ *+' conftest.er1
>conftest.err
8988 cat conftest.err
>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try
='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try
='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_lo
=$ac_mid; break
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.
$ac_ext >&5
9009 ac_hi
=`expr '(' $ac_mid ')' - 1`
9010 if test $ac_mid -le $ac_hi; then
9014 ac_mid
=`expr 2 '*' $ac_mid`
9016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 # Binary search between lo and hi bounds.
9028 while test "x$ac_lo" != "x$ac_hi"; do
9029 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9030 cat >conftest.
$ac_ext <<_ACEOF
9033 cat confdefs.h
>>conftest.
$ac_ext
9034 cat >>conftest.
$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9040 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9047 rm -f conftest.
$ac_objext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9049 (eval $ac_compile) 2>conftest.er1
9051 grep -v '^ *+' conftest.er1
>conftest.err
9053 cat conftest.err
>&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try
='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try
='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.
$ac_ext >&5
9074 ac_lo
=`expr '(' $ac_mid ')' + 1`
9076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9079 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; } ;;
9087 if test "$cross_compiling" = yes; then
9088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9089 See \`config.log' for more details." >&5
9090 echo "$as_me: error: cannot run test program while cross compiling
9091 See \`config.log' for more details." >&2;}
9092 { (exit 1); exit 1; }; }
9094 cat >conftest.
$ac_ext <<_ACEOF
9097 cat confdefs.h
>>conftest.
$ac_ext
9098 cat >>conftest.
$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 long longval () { return (long) (sizeof (fpos_t)); }
9102 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9109 FILE *f = fopen ("conftest.val", "w");
9112 if (((long) (sizeof (fpos_t))) < 0)
9114 long i = longval ();
9115 if (i != ((long) (sizeof (fpos_t))))
9117 fprintf (f, "%ld\n", i);
9121 unsigned long i = ulongval ();
9122 if (i != ((long) (sizeof (fpos_t))))
9124 fprintf (f, "%lu\n", i);
9126 exit (ferror (f) || fclose (f) != 0);
9132 rm -f conftest
$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9145 echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.
$ac_ext >&5
9150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9151 See \`config.log' for more details." >&5
9152 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9153 See \`config.log' for more details." >&2;}
9154 { (exit 1); exit 1; }; }
9156 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9161 ac_cv_sizeof_fpos_t
=0
9164 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9165 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9166 cat >>confdefs.h
<<_ACEOF
9167 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9171 echo "$as_me:$LINENO: checking for size_t" >&5
9172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9173 if test "${ac_cv_type_size_t+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 cat >conftest.
$ac_ext <<_ACEOF
9179 cat confdefs.h
>>conftest.
$ac_ext
9180 cat >>conftest.
$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9188 if (sizeof (size_t))
9194 rm -f conftest.
$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9198 grep -v '^ *+' conftest.er1
>conftest.err
9200 cat conftest.err
>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try
='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try
='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_size_t
=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.
$ac_ext >&5
9221 ac_cv_type_size_t
=no
9223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9226 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9228 echo "$as_me:$LINENO: checking size of size_t" >&5
9229 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9230 if test "${ac_cv_sizeof_size_t+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 if test "$ac_cv_type_size_t" = yes; then
9234 # The cast to unsigned long works around a bug in the HP C Compiler
9235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9237 # This bug is HP SR number 8606223364.
9238 if test "$cross_compiling" = yes; then
9239 # Depending upon the size, compute the lo and hi bounds.
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9250 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9257 rm -f conftest.
$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>conftest.er1
9261 grep -v '^ *+' conftest.er1
>conftest.err
9263 cat conftest.err
>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try
='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try
='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9281 cat >conftest.
$ac_ext <<_ACEOF
9284 cat confdefs.h
>>conftest.
$ac_ext
9285 cat >>conftest.
$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 $ac_includes_default
9291 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9298 rm -f conftest.
$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>conftest.er1
9302 grep -v '^ *+' conftest.er1
>conftest.err
9304 cat conftest.err
>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try
='test -z "$ac_c_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try
='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_hi
=$ac_mid; break
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.
$ac_ext >&5
9325 ac_lo
=`expr $ac_mid + 1`
9326 if test $ac_lo -le $ac_mid; then
9330 ac_mid
=`expr 2 '*' $ac_mid + 1`
9332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.
$ac_ext >&5
9338 cat >conftest.
$ac_ext <<_ACEOF
9341 cat confdefs.h
>>conftest.
$ac_ext
9342 cat >>conftest.
$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9348 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9355 rm -f conftest.
$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1
>conftest.err
9361 cat conftest.err
>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try
='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try
='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9379 cat >conftest.
$ac_ext <<_ACEOF
9382 cat confdefs.h
>>conftest.
$ac_ext
9383 cat >>conftest.
$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 $ac_includes_default
9389 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9396 rm -f conftest.
$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9400 grep -v '^ *+' conftest.er1
>conftest.err
9402 cat conftest.err
>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try
='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try
='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_lo
=$ac_mid; break
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_hi
=`expr '(' $ac_mid ')' - 1`
9424 if test $ac_mid -le $ac_hi; then
9428 ac_mid
=`expr 2 '*' $ac_mid`
9430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9441 # Binary search between lo and hi bounds.
9442 while test "x$ac_lo" != "x$ac_hi"; do
9443 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9444 cat >conftest.
$ac_ext <<_ACEOF
9447 cat confdefs.h
>>conftest.
$ac_ext
9448 cat >>conftest.
$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9454 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9461 rm -f conftest.
$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>conftest.er1
9465 grep -v '^ *+' conftest.er1
>conftest.err
9467 cat conftest.err
>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try
='test -z "$ac_c_werror_flag"
9471 || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try
='test -s conftest.$ac_objext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.
$ac_ext >&5
9488 ac_lo
=`expr '(' $ac_mid ')' + 1`
9490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9493 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9495 See \`config.log' for more details." >&5
9496 echo "$as_me: error: cannot compute sizeof (size_t), 77
9497 See \`config.log' for more details." >&2;}
9498 { (exit 1); exit 1; }; } ;;
9501 if test "$cross_compiling" = yes; then
9502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9503 See \`config.log' for more details." >&5
9504 echo "$as_me: error: cannot run test program while cross compiling
9505 See \`config.log' for more details." >&2;}
9506 { (exit 1); exit 1; }; }
9508 cat >conftest.
$ac_ext <<_ACEOF
9511 cat confdefs.h
>>conftest.
$ac_ext
9512 cat >>conftest.
$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 long longval () { return (long) (sizeof (size_t)); }
9516 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9523 FILE *f = fopen ("conftest.val", "w");
9526 if (((long) (sizeof (size_t))) < 0)
9528 long i = longval ();
9529 if (i != ((long) (sizeof (size_t))))
9531 fprintf (f, "%ld\n", i);
9535 unsigned long i = ulongval ();
9536 if (i != ((long) (sizeof (size_t))))
9538 fprintf (f, "%lu\n", i);
9540 exit (ferror (f) || fclose (f) != 0);
9546 rm -f conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_sizeof_size_t
=`cat conftest.val`
9559 echo "$as_me: program exited with status $ac_status" >&5
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.
$ac_ext >&5
9564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9565 See \`config.log' for more details." >&5
9566 echo "$as_me: error: cannot compute sizeof (size_t), 77
9567 See \`config.log' for more details." >&2;}
9568 { (exit 1); exit 1; }; }
9570 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9575 ac_cv_sizeof_size_t
=0
9578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9579 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9580 cat >>confdefs.h
<<_ACEOF
9581 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9586 echo "$as_me:$LINENO: checking for long long support" >&5
9587 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9589 cat >conftest.
$ac_ext <<_ACEOF
9592 cat confdefs.h
>>conftest.
$ac_ext
9593 cat >>conftest.
$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9599 long long x; x = (long long)0;
9604 rm -f conftest.
$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9608 grep -v '^ *+' conftest.er1
>conftest.err
9610 cat conftest.err
>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try
='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try
='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9628 cat >>confdefs.h
<<\_ACEOF
9629 #define HAVE_LONG_LONG 1
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.
$ac_ext >&5
9639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9640 echo "$as_me:$LINENO: result: $have_long_long" >&5
9641 echo "${ECHO_T}$have_long_long" >&6
9642 if test "$have_long_long" = yes ; then
9643 echo "$as_me:$LINENO: checking for long long" >&5
9644 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9645 if test "${ac_cv_type_long_long+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 cat >conftest.
$ac_ext <<_ACEOF
9651 cat confdefs.h
>>conftest.
$ac_ext
9652 cat >>conftest.
$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9658 if ((long long *) 0)
9660 if (sizeof (long long))
9666 rm -f conftest.
$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668 (eval $ac_compile) 2>conftest.er1
9670 grep -v '^ *+' conftest.er1
>conftest.err
9672 cat conftest.err
>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try
='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try
='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_type_long_long
=yes
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.
$ac_ext >&5
9693 ac_cv_type_long_long
=no
9695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9698 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9700 echo "$as_me:$LINENO: checking size of long long" >&5
9701 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9702 if test "${ac_cv_sizeof_long_long+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 if test "$ac_cv_type_long_long" = yes; then
9706 # The cast to unsigned long works around a bug in the HP C Compiler
9707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9709 # This bug is HP SR number 8606223364.
9710 if test "$cross_compiling" = yes; then
9711 # Depending upon the size, compute the lo and hi bounds.
9712 cat >conftest.
$ac_ext <<_ACEOF
9715 cat confdefs.h
>>conftest.
$ac_ext
9716 cat >>conftest.
$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9729 rm -f conftest.
$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>conftest.er1
9733 grep -v '^ *+' conftest.er1
>conftest.err
9735 cat conftest.err
>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try
='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try
='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9753 cat >conftest.
$ac_ext <<_ACEOF
9756 cat confdefs.h
>>conftest.
$ac_ext
9757 cat >>conftest.
$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9763 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9770 rm -f conftest.
$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9774 grep -v '^ *+' conftest.er1
>conftest.err
9776 cat conftest.err
>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try
='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try
='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_hi
=$ac_mid; break
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.
$ac_ext >&5
9797 ac_lo
=`expr $ac_mid + 1`
9798 if test $ac_lo -le $ac_mid; then
9802 ac_mid
=`expr 2 '*' $ac_mid + 1`
9804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9810 cat >conftest.
$ac_ext <<_ACEOF
9813 cat confdefs.h
>>conftest.
$ac_ext
9814 cat >>conftest.
$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9820 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9827 rm -f conftest.
$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>conftest.er1
9831 grep -v '^ *+' conftest.er1
>conftest.err
9833 cat conftest.err
>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try
='test -z "$ac_c_werror_flag"
9837 || test ! -s conftest.err'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try
='test -s conftest.$ac_objext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9851 cat >conftest.
$ac_ext <<_ACEOF
9854 cat confdefs.h
>>conftest.
$ac_ext
9855 cat >>conftest.
$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9868 rm -f conftest.
$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870 (eval $ac_compile) 2>conftest.er1
9872 grep -v '^ *+' conftest.er1
>conftest.err
9874 cat conftest.err
>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try
='test -z "$ac_c_werror_flag"
9878 || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try
='test -s conftest.$ac_objext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_lo
=$ac_mid; break
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.
$ac_ext >&5
9895 ac_hi
=`expr '(' $ac_mid ')' - 1`
9896 if test $ac_mid -le $ac_hi; then
9900 ac_mid
=`expr 2 '*' $ac_mid`
9902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.
$ac_ext >&5
9910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9913 # Binary search between lo and hi bounds.
9914 while test "x$ac_lo" != "x$ac_hi"; do
9915 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9916 cat >conftest.
$ac_ext <<_ACEOF
9919 cat confdefs.h
>>conftest.
$ac_ext
9920 cat >>conftest.
$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9926 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9933 rm -f conftest.
$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>conftest.er1
9937 grep -v '^ *+' conftest.er1
>conftest.err
9939 cat conftest.err
>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try
='test -z "$ac_c_werror_flag"
9943 || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try
='test -s conftest.$ac_objext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.
$ac_ext >&5
9960 ac_lo
=`expr '(' $ac_mid ')' + 1`
9962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9965 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9967 See \`config.log' for more details." >&5
9968 echo "$as_me: error: cannot compute sizeof (long long), 77
9969 See \`config.log' for more details." >&2;}
9970 { (exit 1); exit 1; }; } ;;
9973 if test "$cross_compiling" = yes; then
9974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9975 See \`config.log' for more details." >&5
9976 echo "$as_me: error: cannot run test program while cross compiling
9977 See \`config.log' for more details." >&2;}
9978 { (exit 1); exit 1; }; }
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 long longval () { return (long) (sizeof (long long)); }
9988 unsigned long ulongval () { return (long) (sizeof (long long)); }
9995 FILE *f = fopen ("conftest.val", "w");
9998 if (((long) (sizeof (long long))) < 0)
10000 long i = longval ();
10001 if (i != ((long) (sizeof (long long))))
10003 fprintf (f, "%ld\n", i);
10007 unsigned long i = ulongval ();
10008 if (i != ((long) (sizeof (long long))))
10010 fprintf (f, "%lu\n", i);
10012 exit (ferror (f) || fclose (f) != 0);
10018 rm -f conftest
$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_sizeof_long_long
=`cat conftest.val`
10031 echo "$as_me: program exited with status $ac_status" >&5
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.
$ac_ext >&5
10035 ( exit $ac_status )
10036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10037 See \`config.log' for more details." >&5
10038 echo "$as_me: error: cannot compute sizeof (long long), 77
10039 See \`config.log' for more details." >&2;}
10040 { (exit 1); exit 1; }; }
10042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10047 ac_cv_sizeof_long_long
=0
10050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10051 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10052 cat >>confdefs.h
<<_ACEOF
10053 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10059 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10060 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10062 cat >conftest.
$ac_ext <<_ACEOF
10065 cat confdefs.h
>>conftest.
$ac_ext
10066 cat >>conftest.
$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10072 uintptr_t x; x = (uintptr_t)0;
10077 rm -f conftest.
$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>conftest.er1
10081 grep -v '^ *+' conftest.er1
>conftest.err
10083 cat conftest.err
>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try
='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try
='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10101 cat >>confdefs.h
<<\_ACEOF
10102 #define HAVE_UINTPTR_T 1
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.
$ac_ext >&5
10112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10113 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10114 echo "${ECHO_T}$have_uintptr_t" >&6
10115 if test "$have_uintptr_t" = yes ; then
10116 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10117 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10118 if test "${ac_cv_type_uintptr_t+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.
$ac_ext <<_ACEOF
10124 cat confdefs.h
>>conftest.
$ac_ext
10125 cat >>conftest.
$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10131 if ((uintptr_t *) 0)
10133 if (sizeof (uintptr_t))
10139 rm -f conftest.
$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10143 grep -v '^ *+' conftest.er1
>conftest.err
10145 cat conftest.err
>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try
='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try
='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_type_uintptr_t
=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.
$ac_ext >&5
10166 ac_cv_type_uintptr_t
=no
10168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10171 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10173 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10174 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10175 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 if test "$ac_cv_type_uintptr_t" = yes; then
10179 # The cast to unsigned long works around a bug in the HP C Compiler
10180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10182 # This bug is HP SR number 8606223364.
10183 if test "$cross_compiling" = yes; then
10184 # Depending upon the size, compute the lo and hi bounds.
10185 cat >conftest.
$ac_ext <<_ACEOF
10188 cat confdefs.h
>>conftest.
$ac_ext
10189 cat >>conftest.
$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 $ac_includes_default
10195 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10202 rm -f conftest.
$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try
='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try
='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10226 cat >conftest.
$ac_ext <<_ACEOF
10229 cat confdefs.h
>>conftest.
$ac_ext
10230 cat >>conftest.
$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10236 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10243 rm -f conftest.
$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>conftest.er1
10247 grep -v '^ *+' conftest.er1
>conftest.err
10249 cat conftest.err
>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try
='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try
='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_hi
=$ac_mid; break
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.
$ac_ext >&5
10270 ac_lo
=`expr $ac_mid + 1`
10271 if test $ac_lo -le $ac_mid; then
10275 ac_mid
=`expr 2 '*' $ac_mid + 1`
10277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.
$ac_ext >&5
10283 cat >conftest.
$ac_ext <<_ACEOF
10286 cat confdefs.h
>>conftest.
$ac_ext
10287 cat >>conftest.
$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10293 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10300 rm -f conftest.
$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10304 grep -v '^ *+' conftest.er1
>conftest.err
10306 cat conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try
='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try
='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10324 cat >conftest.
$ac_ext <<_ACEOF
10327 cat confdefs.h
>>conftest.
$ac_ext
10328 cat >>conftest.
$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10334 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10341 rm -f conftest.
$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10345 grep -v '^ *+' conftest.er1
>conftest.err
10347 cat conftest.err
>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try
='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try
='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_lo
=$ac_mid; break
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.
$ac_ext >&5
10368 ac_hi
=`expr '(' $ac_mid ')' - 1`
10369 if test $ac_mid -le $ac_hi; then
10373 ac_mid
=`expr 2 '*' $ac_mid`
10375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.
$ac_ext >&5
10383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10386 # Binary search between lo and hi bounds.
10387 while test "x$ac_lo" != "x$ac_hi"; do
10388 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10389 cat >conftest.
$ac_ext <<_ACEOF
10392 cat confdefs.h
>>conftest.
$ac_ext
10393 cat >>conftest.
$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 $ac_includes_default
10399 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10406 rm -f conftest.
$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10410 grep -v '^ *+' conftest.er1
>conftest.err
10412 cat conftest.err
>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try
='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try
='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.
$ac_ext >&5
10433 ac_lo
=`expr '(' $ac_mid ')' + 1`
10435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10438 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10439 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10440 See \`config.log' for more details." >&5
10441 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10442 See \`config.log' for more details." >&2;}
10443 { (exit 1); exit 1; }; } ;;
10446 if test "$cross_compiling" = yes; then
10447 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10448 See \`config.log' for more details." >&5
10449 echo "$as_me: error: cannot run test program while cross compiling
10450 See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10453 cat >conftest.
$ac_ext <<_ACEOF
10456 cat confdefs.h
>>conftest.
$ac_ext
10457 cat >>conftest.
$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 $ac_includes_default
10460 long longval () { return (long) (sizeof (uintptr_t)); }
10461 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10463 #include <stdlib.h>
10468 FILE *f = fopen ("conftest.val", "w");
10471 if (((long) (sizeof (uintptr_t))) < 0)
10473 long i = longval ();
10474 if (i != ((long) (sizeof (uintptr_t))))
10476 fprintf (f, "%ld\n", i);
10480 unsigned long i = ulongval ();
10481 if (i != ((long) (sizeof (uintptr_t))))
10483 fprintf (f, "%lu\n", i);
10485 exit (ferror (f) || fclose (f) != 0);
10491 rm -f conftest
$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10504 echo "$as_me: program exited with status $ac_status" >&5
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.
$ac_ext >&5
10508 ( exit $ac_status )
10509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10510 See \`config.log' for more details." >&5
10511 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10512 See \`config.log' for more details." >&2;}
10513 { (exit 1); exit 1; }; }
10515 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10520 ac_cv_sizeof_uintptr_t
=0
10523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10524 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10525 cat >>confdefs.h
<<_ACEOF
10526 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10532 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10533 echo "$as_me:$LINENO: checking size of off_t" >&5
10534 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10535 if test "${ac_cv_sizeof_off_t+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 if test "$cross_compiling" = yes; then
10539 ac_cv_sizeof_off_t
=4
10541 cat >conftest.
$ac_ext <<_ACEOF
10544 cat confdefs.h
>>conftest.
$ac_ext
10545 cat >>conftest.
$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 #include <sys/types.h>
10551 FILE *f=fopen("conftestval", "w");
10553 fprintf(f, "%d\n", sizeof(off_t));
10557 rm -f conftest
$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_sizeof_off_t
=`cat conftestval`
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.
$ac_ext >&5
10574 ( exit $ac_status )
10575 ac_cv_sizeof_off_t
=0
10577 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10583 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10585 cat >>confdefs.h
<<_ACEOF
10586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10590 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10591 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10592 if test "$have_long_long" = yes -a \
10593 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10594 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10596 cat >>confdefs.h
<<\_ACEOF
10597 #define HAVE_LARGEFILE_SUPPORT 1
10600 echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10607 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10608 echo "$as_me:$LINENO: checking size of time_t" >&5
10609 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10610 if test "${ac_cv_sizeof_time_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 if test "$cross_compiling" = yes; then
10614 ac_cv_sizeof_time_t
=4
10616 cat >conftest.
$ac_ext <<_ACEOF
10619 cat confdefs.h
>>conftest.
$ac_ext
10620 cat >>conftest.
$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10626 FILE *f=fopen("conftestval", "w");
10628 fprintf(f, "%d\n", sizeof(time_t));
10632 rm -f conftest
$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_sizeof_time_t
=`cat conftestval`
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.
$ac_ext >&5
10649 ( exit $ac_status )
10650 ac_cv_sizeof_time_t
=0
10652 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10658 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10660 cat >>confdefs.h
<<_ACEOF
10661 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10666 # if have pthread_t then define SIZEOF_PTHREAD_T
10668 if test "$ac_cv_kpthread" = "yes"
10669 then CC
="$CC -Kpthread"
10670 elif test "$ac_cv_kthread" = "yes"
10671 then CC
="$CC -Kthread"
10672 elif test "$ac_cv_pthread" = "yes"
10673 then CC
="$CC -pthread"
10675 echo "$as_me:$LINENO: checking for pthread_t" >&5
10676 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10678 cat >conftest.
$ac_ext <<_ACEOF
10681 cat confdefs.h
>>conftest.
$ac_ext
10682 cat >>conftest.
$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <pthread.h>
10688 pthread_t x; x = *(pthread_t*)0;
10693 rm -f conftest.
$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>conftest.er1
10697 grep -v '^ *+' conftest.er1
>conftest.err
10699 cat conftest.err
>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try
='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try
='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.
$ac_ext >&5
10721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10722 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10723 echo "${ECHO_T}$have_pthread_t" >&6
10724 if test "$have_pthread_t" = yes ; then
10725 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10726 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10727 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10728 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_sizeof_pthread_t
=4
10734 cat >conftest.
$ac_ext <<_ACEOF
10737 cat confdefs.h
>>conftest.
$ac_ext
10738 cat >>conftest.
$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 #include <pthread.h>
10744 FILE *f=fopen("conftestval", "w");
10746 fprintf(f, "%d\n", sizeof(pthread_t));
10750 rm -f conftest
$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_sizeof_pthread_t
=`cat conftestval`
10763 echo "$as_me: program exited with status $ac_status" >&5
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.
$ac_ext >&5
10767 ( exit $ac_status )
10768 ac_cv_sizeof_pthread_t
=0
10770 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10776 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10778 cat >>confdefs.h
<<_ACEOF
10779 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10785 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10786 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10787 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10788 if test "${enable_toolbox_glue+set}" = set; then
10789 enableval
="$enable_toolbox_glue"
10793 if test -z "$enable_toolbox_glue"
10795 case $ac_sys_system/$ac_sys_release in
10797 enable_toolbox_glue
="yes";;
10799 enable_toolbox_glue
="no";;
10802 case "$enable_toolbox_glue" in
10804 extra_machdep_objs
="Python/mactoolboxglue.o"
10805 extra_undefs
="-u _PyMac_Error"
10807 cat >>confdefs.h
<<\_ACEOF
10808 #define USE_TOOLBOX_OBJECT_GLUE 1
10813 extra_machdep_objs
=""
10817 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10818 echo "${ECHO_T}$enable_toolbox_glue" >&6
10821 case $ac_sys_system/$ac_sys_release in
10822 Darwin
/[01234567].
*)
10823 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10826 OTHER_LIBTOOL_OPT
=""
10831 case $ac_sys_system/$ac_sys_release in
10832 Darwin
/[01234567].
*)
10833 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only `arch`"
10834 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10835 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10837 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10838 if test ${gcc_version} '<' 4.0
10840 LIBTOOL_CRUFT
="-lcc_dynamic"
10844 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10845 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10846 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10849 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10850 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10851 if test "$enable_framework"
10853 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10854 # -F. is needed to allow linking to the framework while
10855 # in the build location.
10857 cat >>confdefs.h
<<\_ACEOF
10858 #define WITH_NEXT_FRAMEWORK 1
10861 echo "$as_me:$LINENO: result: yes" >&5
10862 echo "${ECHO_T}yes" >&6
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 echo "$as_me:$LINENO: checking for dyld" >&5
10869 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10870 case $ac_sys_system/$ac_sys_release in
10873 cat >>confdefs.h
<<\_ACEOF
10874 #define WITH_DYLD 1
10877 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10878 echo "${ECHO_T}always on for Darwin" >&6
10881 echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10886 # Set info about shared libraries.
10892 # SO is the extension of shared libraries `(including the dot!)
10893 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10894 echo "$as_me:$LINENO: checking SO" >&5
10895 echo $ECHO_N "checking SO... $ECHO_C" >&6
10898 case $ac_sys_system in
10904 # this might also be a termcap variable, see #610332
10906 echo '====================================================================='
10908 echo '+ WARNING: You have set SO in your environment. +'
10909 echo '+ Do you really mean to change the extension for shared libraries? +'
10910 echo '+ Continuing in 10 seconds to let you to ponder. +'
10912 echo '====================================================================='
10915 echo "$as_me:$LINENO: result: $SO" >&5
10916 echo "${ECHO_T}$SO" >&6
10917 # LDSHARED is the ld *command* used to create shared library
10918 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10919 # (Shared libraries in this instance are shared modules to be loaded into
10920 # Python, as opposed to building Python itself as a shared library.)
10921 echo "$as_me:$LINENO: checking LDSHARED" >&5
10922 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10923 if test -z "$LDSHARED"
10925 case $ac_sys_system/$ac_sys_release in
10927 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10928 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10931 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10932 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10934 IRIX
/5*) LDSHARED
="ld -shared";;
10935 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10937 if test "$GCC" = "yes"
10938 then LDSHARED
='$(CC) -shared'
10939 else LDSHARED
='$(CC) -G';
10941 hp
*|HP
*) LDSHARED
="ld -b";;
10942 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10944 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10945 if test "$enable_framework" ; then
10946 # Link against the framework. All externals should be defined.
10947 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10950 # No framework. Ignore undefined symbols, assuming they come from Python
10951 LDSHARED
="$LDSHARED -undefined suppress"
10953 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10954 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10955 if test "$enable_framework" ; then
10956 # Link against the framework. All externals should be defined.
10957 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10960 # No framework, use the Python app as bundle-loader
10961 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10962 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10965 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10966 # This allows an extension to be used in any Python
10967 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10968 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10969 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10971 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10972 BLDSHARED
="$LDSHARED"
10974 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10975 if test "$enable_framework" ; then
10976 # Link against the framework. All externals should be defined.
10977 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10978 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 # No framework, use the Python app as bundle-loader
10981 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10982 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10986 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10987 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10989 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10991 LDSHARED
="$CC -shared ${LDFLAGS}"
10993 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10995 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10996 OpenUNIX
*|UnixWare
*)
10997 if test "$GCC" = "yes"
10998 then LDSHARED
='$(CC) -shared'
10999 else LDSHARED
='$(CC) -G'
11001 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11002 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11003 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11004 atheos
*) LDSHARED
="gcc -shared";;
11008 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11009 echo "${ECHO_T}$LDSHARED" >&6
11010 BLDSHARED
=${BLDSHARED-$LDSHARED}
11011 # CCSHARED are the C *flags* used to create objects to go into a shared
11012 # library (module) -- this is only needed for a few systems
11013 echo "$as_me:$LINENO: checking CCSHARED" >&5
11014 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11015 if test -z "$CCSHARED"
11017 case $ac_sys_system/$ac_sys_release in
11018 SunOS
*) if test "$GCC" = yes;
11019 then CCSHARED
="-fPIC";
11020 else CCSHARED
="-xcode=pic32";
11022 hp
*|HP
*) if test "$GCC" = yes;
11023 then CCSHARED
="-fPIC";
11024 else CCSHARED
="+z";
11026 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11027 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11028 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11029 OpenUNIX
*|UnixWare
*)
11030 if test "$GCC" = "yes"
11031 then CCSHARED
="-fPIC"
11032 else CCSHARED
="-KPIC"
11035 if test "$GCC" = "yes"
11036 then CCSHARED
="-fPIC"
11037 else CCSHARED
="-Kpic -belf"
11039 Monterey
*) CCSHARED
="-G";;
11040 IRIX
*/6*) case $CC in
11041 *gcc
*) CCSHARED
="-shared";;
11044 atheos
*) CCSHARED
="-fPIC";;
11047 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11048 echo "${ECHO_T}$CCSHARED" >&6
11049 # LINKFORSHARED are the flags passed to the $(CC) command that links
11050 # the python executable -- this is only needed for a few systems
11051 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11052 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11053 if test -z "$LINKFORSHARED"
11055 case $ac_sys_system/$ac_sys_release in
11056 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11058 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11059 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11060 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11061 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11062 # -u libsys_s pulls in all symbols in libsys
11064 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11066 # not used by the core itself but which needs to be in the core so
11067 # that dynamically loaded extension modules have access to it.
11068 # -prebind is no longer used, because it actually seems to give a
11069 # slowdown in stead of a speedup, maybe due to the large number of
11070 # dynamic loads Python does.
11072 LINKFORSHARED
="$extra_undefs"
11073 if test "$enable_framework"
11075 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11077 LINKFORSHARED
="$LINKFORSHARED";;
11078 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11079 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11080 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11081 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11082 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11084 LINKFORSHARED
="-Wl,--export-dynamic"
11086 SunOS
/5*) case $CC in
11088 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11090 LINKFORSHARED
="-Xlinker --export-dynamic"
11094 if test $enable_shared = "no"
11096 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11100 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11101 echo "${ECHO_T}$LINKFORSHARED" >&6
11104 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11105 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11106 if test ! "$LIBRARY" = "$LDLIBRARY"
11108 case $ac_sys_system in
11110 # Cygwin needs CCSHARED when building extension DLLs
11111 # but not when building the interpreter DLL.
11112 CFLAGSFORSHARED
='';;
11114 CFLAGSFORSHARED
='$(CCSHARED)'
11117 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11118 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11120 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11121 # library (with --enable-shared).
11122 # For platforms on which shared libraries are not allowed to have unresolved
11123 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11124 # if it is not required, since it creates a dependency of the shared library
11125 # to LIBS. This, in turn, means that applications linking the shared libpython
11126 # don't need to link LIBS explicitly. The default should be only changed
11127 # on systems where this approach causes problems.
11129 echo "$as_me:$LINENO: checking SHLIBS" >&5
11130 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11131 case "$ac_sys_system" in
11135 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11136 echo "${ECHO_T}$SHLIBS" >&6
11139 # checks for libraries
11141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 ac_check_lib_save_LIBS
=$LIBS
11148 cat >conftest.
$ac_ext <<_ACEOF
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11170 rm -f conftest.
$ac_objext conftest
$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11174 grep -v '^ *+' conftest.er1
>conftest.err
11176 cat conftest.err
>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try
='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try
='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_dl_dlopen
=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11197 ac_cv_lib_dl_dlopen
=no
11199 rm -f conftest.err conftest.
$ac_objext \
11200 conftest
$ac_exeext conftest.
$ac_ext
11201 LIBS
=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11205 if test $ac_cv_lib_dl_dlopen = yes; then
11206 cat >>confdefs.h
<<_ACEOF
11207 #define HAVE_LIBDL 1
11213 # Dynamic linking for SunOS/Solaris and SYSV
11215 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 ac_check_lib_save_LIBS
=$LIBS
11222 cat >conftest.
$ac_ext <<_ACEOF
11225 cat confdefs.h
>>conftest.
$ac_ext
11226 cat >>conftest.
$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11229 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11244 rm -f conftest.
$ac_objext conftest
$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>conftest.er1
11248 grep -v '^ *+' conftest.er1
>conftest.err
11250 cat conftest.err
>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try
='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try
='test -s conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_lib_dld_shl_load
=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 ac_cv_lib_dld_shl_load
=no
11273 rm -f conftest.err conftest.
$ac_objext \
11274 conftest
$ac_exeext conftest.
$ac_ext
11275 LIBS
=$ac_check_lib_save_LIBS
11277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11279 if test $ac_cv_lib_dld_shl_load = yes; then
11280 cat >>confdefs.h
<<_ACEOF
11281 #define HAVE_LIBDLD 1
11287 # Dynamic linking for HP-UX
11289 # only check for sem_ini if thread support is requested
11290 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11291 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11292 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11293 if test "${ac_cv_search_sem_init+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 ac_func_search_save_LIBS
=$LIBS
11297 ac_cv_search_sem_init
=no
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 /* Override any gcc2 internal prototype to avoid an error. */
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11320 rm -f conftest.
$ac_objext conftest
$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11324 grep -v '^ *+' conftest.er1
>conftest.err
11326 cat conftest.err
>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try
='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try
='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_search_sem_init
="none required"
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.
$ac_ext >&5
11348 rm -f conftest.err conftest.
$ac_objext \
11349 conftest
$ac_exeext conftest.
$ac_ext
11350 if test "$ac_cv_search_sem_init" = no
; then
11351 for ac_lib
in pthread rt posix4
; do
11352 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11353 cat >conftest.
$ac_ext <<_ACEOF
11356 cat confdefs.h
>>conftest.
$ac_ext
11357 cat >>conftest.
$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11360 /* Override any gcc2 internal prototype to avoid an error. */
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
11375 rm -f conftest.
$ac_objext conftest
$ac_exeext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377 (eval $ac_link) 2>conftest.er1
11379 grep -v '^ *+' conftest.er1
>conftest.err
11381 cat conftest.err
>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try
='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try
='test -s conftest$ac_exeext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_cv_search_sem_init
="-l$ac_lib"
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.
$ac_ext >&5
11404 rm -f conftest.err conftest.
$ac_objext \
11405 conftest
$ac_exeext conftest.
$ac_ext
11408 LIBS
=$ac_func_search_save_LIBS
11410 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11411 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11412 if test "$ac_cv_search_sem_init" != no
; then
11413 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11416 # 'Real Time' functions on Solaris
11417 # posix4 on Solaris 2.6
11418 # pthread (first!) on Linux
11421 # check if we need libintl for locale functions
11422 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11423 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11424 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 ac_check_lib_save_LIBS
=$LIBS
11428 LIBS
="-lintl $LIBS"
11429 cat >conftest.
$ac_ext <<_ACEOF
11432 cat confdefs.h
>>conftest.
$ac_ext
11433 cat >>conftest.
$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11436 /* Override any gcc2 internal prototype to avoid an error. */
11440 /* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442 char textdomain ();
11451 rm -f conftest.
$ac_objext conftest
$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11455 grep -v '^ *+' conftest.er1
>conftest.err
11457 cat conftest.err
>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try
='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try
='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_cv_lib_intl_textdomain
=yes
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.
$ac_ext >&5
11478 ac_cv_lib_intl_textdomain
=no
11480 rm -f conftest.err conftest.
$ac_objext \
11481 conftest
$ac_exeext conftest.
$ac_ext
11482 LIBS
=$ac_check_lib_save_LIBS
11484 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11485 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11486 if test $ac_cv_lib_intl_textdomain = yes; then
11488 cat >>confdefs.h
<<\_ACEOF
11489 #define WITH_LIBINTL 1
11495 # checks for system dependent C++ extensions support
11496 case "$ac_sys_system" in
11497 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11498 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11499 cat >conftest.
$ac_ext <<_ACEOF
11502 cat confdefs.h
>>conftest.
$ac_ext
11503 cat >>conftest.
$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include "/usr/lpp/xlC/include/load.h"
11509 loadAndInit("", 0, "")
11514 rm -f conftest.
$ac_objext conftest
$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>conftest.er1
11518 grep -v '^ *+' conftest.er1
>conftest.err
11520 cat conftest.err
>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try
='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try
='test -s conftest$ac_exeext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11537 cat >>confdefs.h
<<\_ACEOF
11538 #define AIX_GENUINE_CPLUSPLUS 1
11541 echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.
$ac_ext >&5
11547 echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6
11550 rm -f conftest.err conftest.
$ac_objext \
11551 conftest
$ac_exeext conftest.
$ac_ext;;
11555 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11556 # BeOS' sockets are stashed in libnet.
11557 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11558 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11559 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 ac_check_lib_save_LIBS
=$LIBS
11564 cat >conftest.
$ac_ext <<_ACEOF
11567 cat confdefs.h
>>conftest.
$ac_ext
11568 cat >>conftest.
$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11571 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11586 rm -f conftest.
$ac_objext conftest
$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588 (eval $ac_link) 2>conftest.er1
11590 grep -v '^ *+' conftest.er1
>conftest.err
11592 cat conftest.err
>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try
='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try
='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_lib_nsl_t_open
=yes
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.
$ac_ext >&5
11613 ac_cv_lib_nsl_t_open
=no
11615 rm -f conftest.err conftest.
$ac_objext \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 LIBS
=$ac_check_lib_save_LIBS
11619 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11620 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11621 if test $ac_cv_lib_nsl_t_open = yes; then
11625 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11626 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11627 if test "${ac_cv_lib_socket_socket+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 ac_check_lib_save_LIBS
=$LIBS
11631 LIBS
="-lsocket $LIBS $LIBS"
11632 cat >conftest.
$ac_ext <<_ACEOF
11635 cat confdefs.h
>>conftest.
$ac_ext
11636 cat >>conftest.
$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11639 /* Override any gcc2 internal prototype to avoid an error. */
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11654 rm -f conftest.
$ac_objext conftest
$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>conftest.er1
11658 grep -v '^ *+' conftest.er1
>conftest.err
11660 cat conftest.err
>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try
='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try
='test -s conftest$ac_exeext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_lib_socket_socket
=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.
$ac_ext >&5
11681 ac_cv_lib_socket_socket
=no
11683 rm -f conftest.err conftest.
$ac_objext \
11684 conftest
$ac_exeext conftest.
$ac_ext
11685 LIBS
=$ac_check_lib_save_LIBS
11687 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11688 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11689 if test $ac_cv_lib_socket_socket = yes; then
11690 LIBS
="-lsocket $LIBS"
11694 case "$ac_sys_system" in
11696 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11697 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11698 if test "${ac_cv_lib_net_socket+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 ac_check_lib_save_LIBS
=$LIBS
11702 LIBS
="-lnet $LIBS $LIBS"
11703 cat >conftest.
$ac_ext <<_ACEOF
11706 cat confdefs.h
>>conftest.
$ac_ext
11707 cat >>conftest.
$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 /* Override any gcc2 internal prototype to avoid an error. */
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11725 rm -f conftest.
$ac_objext conftest
$ac_exeext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1
>conftest.err
11731 cat conftest.err
>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try
='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try
='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_lib_net_socket
=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.
$ac_ext >&5
11752 ac_cv_lib_net_socket
=no
11754 rm -f conftest.err conftest.
$ac_objext \
11755 conftest
$ac_exeext conftest.
$ac_ext
11756 LIBS
=$ac_check_lib_save_LIBS
11758 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11759 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11760 if test $ac_cv_lib_net_socket = yes; then
11767 echo "$as_me:$LINENO: checking for --with-libs" >&5
11768 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11770 # Check whether --with-libs or --without-libs was given.
11771 if test "${with_libs+set}" = set; then
11772 withval
="$with_libs"
11774 echo "$as_me:$LINENO: result: $withval" >&5
11775 echo "${ECHO_T}$withval" >&6
11776 LIBS
="$withval $LIBS"
11779 echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6
11783 # Determine if signalmodule should be used.
11786 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11787 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11789 # Check whether --with-signal-module or --without-signal-module was given.
11790 if test "${with_signal_module+set}" = set; then
11791 withval
="$with_signal_module"
11795 if test -z "$with_signal_module"
11796 then with_signal_module
="yes"
11798 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11799 echo "${ECHO_T}$with_signal_module" >&6
11801 if test "${with_signal_module}" = "yes"; then
11802 USE_SIGNAL_MODULE
=""
11805 USE_SIGNAL_MODULE
="#"
11806 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11809 # This is used to generate Setup.config
11811 USE_THREAD_MODULE
=""
11813 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11814 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11817 # Check whether --with-dec-threads or --without-dec-threads was given.
11818 if test "${with_dec_threads+set}" = set; then
11819 withval
="$with_dec_threads"
11821 echo "$as_me:$LINENO: result: $withval" >&5
11822 echo "${ECHO_T}$withval" >&6
11824 if test "${with_thread+set}" != set; then
11825 with_thread
="$withval";
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6
11832 # Templates for things AC_DEFINEd more than once.
11833 # For a single AC_DEFINE, no template is needed.
11841 echo "$as_me:$LINENO: checking for --with-threads" >&5
11842 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11844 # Check whether --with-threads or --without-threads was given.
11845 if test "${with_threads+set}" = set; then
11846 withval
="$with_threads"
11850 # --with-thread is deprecated, but check for it anyway
11852 # Check whether --with-thread or --without-thread was given.
11853 if test "${with_thread+set}" = set; then
11854 withval
="$with_thread"
11855 with_threads
=$with_thread
11858 if test -z "$with_threads"
11859 then with_threads
="yes"
11861 echo "$as_me:$LINENO: result: $with_threads" >&5
11862 echo "${ECHO_T}$with_threads" >&6
11865 if test "$with_threads" = "no"
11867 USE_THREAD_MODULE
="#"
11868 elif test "$ac_cv_pthread_is_default" = yes
11870 cat >>confdefs.h
<<\_ACEOF
11871 #define WITH_THREAD 1
11874 # Defining _REENTRANT on system with POSIX threads should not hurt.
11875 cat >>confdefs.h
<<\_ACEOF
11876 #define _REENTRANT 1
11880 THREADOBJ
="Python/thread.o"
11881 elif test "$ac_cv_kpthread" = "yes"
11884 if test "$ac_cv_cxx_thread" = "yes"; then
11885 CXX
="$CXX -Kpthread"
11887 cat >>confdefs.h
<<\_ACEOF
11888 #define WITH_THREAD 1
11892 THREADOBJ
="Python/thread.o"
11893 elif test "$ac_cv_kthread" = "yes"
11896 if test "$ac_cv_cxx_thread" = "yes"; then
11897 CXX
="$CXX -Kthread"
11899 cat >>confdefs.h
<<\_ACEOF
11900 #define WITH_THREAD 1
11904 THREADOBJ
="Python/thread.o"
11905 elif test "$ac_cv_pthread" = "yes"
11908 if test "$ac_cv_cxx_thread" = "yes"; then
11909 CXX
="$CXX -pthread"
11911 cat >>confdefs.h
<<\_ACEOF
11912 #define WITH_THREAD 1
11916 THREADOBJ
="Python/thread.o"
11918 if test ! -z "$with_threads" -a -d "$with_threads"
11919 then LDFLAGS
="$LDFLAGS -L$with_threads"
11921 if test ! -z "$withval" -a -d "$withval"
11922 then LDFLAGS
="$LDFLAGS -L$withval"
11925 # According to the POSIX spec, a pthreads implementation must
11926 # define _POSIX_THREADS in unistd.h. Some apparently don't
11927 # (e.g. gnu pth with pthread emulation)
11928 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11929 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11930 cat >conftest.
$ac_ext <<_ACEOF
11933 cat confdefs.h
>>conftest.
$ac_ext
11934 cat >>conftest.
$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 #include <unistd.h>
11938 #ifdef _POSIX_THREADS
11943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11944 $EGREP "yes" >/dev
/null
2>&1; then
11945 unistd_defines_pthreads
=yes
11947 unistd_defines_pthreads
=no
11951 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11952 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11954 cat >>confdefs.h
<<\_ACEOF
11955 #define _REENTRANT 1
11958 if test "${ac_cv_header_cthreads_h+set}" = set; then
11959 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11960 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11961 if test "${ac_cv_header_cthreads_h+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11967 # Is the header compilable?
11968 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11969 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11970 cat >conftest.
$ac_ext <<_ACEOF
11973 cat confdefs.h
>>conftest.
$ac_ext
11974 cat >>conftest.
$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 $ac_includes_default
11977 #include <cthreads.h>
11979 rm -f conftest.
$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>conftest.er1
11983 grep -v '^ *+' conftest.er1
>conftest.err
11985 cat conftest.err
>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try
='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try
='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler
=yes
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.
$ac_ext >&5
12006 ac_header_compiler
=no
12008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12010 echo "${ECHO_T}$ac_header_compiler" >&6
12012 # Is the header present?
12013 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12014 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12015 cat >conftest.
$ac_ext <<_ACEOF
12018 cat confdefs.h
>>conftest.
$ac_ext
12019 cat >>conftest.
$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 #include <cthreads.h>
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1
>conftest.err
12028 cat conftest.err
>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev
/null
; then
12031 if test -s conftest.err
; then
12032 ac_cpp_err
=$ac_c_preproc_warn_flag
12033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc
=yes
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.
$ac_ext >&5
12046 ac_header_preproc
=no
12048 rm -f conftest.err conftest.
$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12050 echo "${ECHO_T}$ac_header_preproc" >&6
12052 # So? What about this header?
12053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12055 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12056 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12058 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12059 ac_header_preproc
=yes
12062 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12063 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12065 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12067 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12069 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12071 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12073 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12076 ## ------------------------------------------------ ##
12077 ## Report this to http://www.python.org/python-bugs ##
12078 ## ------------------------------------------------ ##
12081 sed "s/^/$as_me: WARNING: /" >&2
12084 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12085 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12086 if test "${ac_cv_header_cthreads_h+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 ac_cv_header_cthreads_h
=$ac_header_preproc
12091 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12092 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12095 if test $ac_cv_header_cthreads_h = yes; then
12096 cat >>confdefs.h
<<\_ACEOF
12097 #define WITH_THREAD 1
12100 cat >>confdefs.h
<<\_ACEOF
12101 #define C_THREADS 1
12105 cat >>confdefs.h
<<\_ACEOF
12106 #define HURD_C_THREADS 1
12109 LIBS
="$LIBS -lthreads"
12110 THREADOBJ
="Python/thread.o"
12113 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12114 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12115 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12116 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12120 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12124 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12125 cat >conftest.
$ac_ext <<_ACEOF
12128 cat confdefs.h
>>conftest.
$ac_ext
12129 cat >>conftest.
$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <mach/cthreads.h>
12134 rm -f conftest.
$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12138 grep -v '^ *+' conftest.er1
>conftest.err
12140 cat conftest.err
>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try
='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try
='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler
=yes
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.
$ac_ext >&5
12161 ac_header_compiler
=no
12163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165 echo "${ECHO_T}$ac_header_compiler" >&6
12167 # Is the header present?
12168 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12169 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <mach/cthreads.h>
12178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12181 grep -v '^ *+' conftest.er1
>conftest.err
12183 cat conftest.err
>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev
/null
; then
12186 if test -s conftest.err
; then
12187 ac_cpp_err
=$ac_c_preproc_warn_flag
12188 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12195 if test -z "$ac_cpp_err"; then
12196 ac_header_preproc
=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.
$ac_ext >&5
12201 ac_header_preproc
=no
12203 rm -f conftest.err conftest.
$ac_ext
12204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12210 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc
=yes
12217 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12231 ## ------------------------------------------------ ##
12232 ## Report this to http://www.python.org/python-bugs ##
12233 ## ------------------------------------------------ ##
12236 sed "s/^/$as_me: WARNING: /" >&2
12239 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12240 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12241 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12246 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12247 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12250 if test $ac_cv_header_mach_cthreads_h = yes; then
12251 cat >>confdefs.h
<<\_ACEOF
12252 #define WITH_THREAD 1
12255 cat >>confdefs.h
<<\_ACEOF
12256 #define C_THREADS 1
12260 cat >>confdefs.h
<<\_ACEOF
12261 #define MACH_C_THREADS 1
12264 THREADOBJ
="Python/thread.o"
12267 echo "$as_me:$LINENO: checking for --with-pth" >&5
12268 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12270 # Check whether --with-pth or --without-pth was given.
12271 if test "${with_pth+set}" = set; then
12272 withval
="$with_pth"
12273 echo "$as_me:$LINENO: result: $withval" >&5
12274 echo "${ECHO_T}$withval" >&6
12275 cat >>confdefs.h
<<\_ACEOF
12276 #define WITH_THREAD 1
12280 cat >>confdefs.h
<<\_ACEOF
12285 THREADOBJ
="Python/thread.o"
12287 echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6
12290 # Just looking for pthread_create in libpthread is not enough:
12291 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12292 # So we really have to include pthread.h, and then link.
12294 LIBS
="$LIBS -lpthread"
12295 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12296 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12297 cat >conftest.
$ac_ext <<_ACEOF
12300 cat confdefs.h
>>conftest.
$ac_ext
12301 cat >>conftest.
$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <pthread.h>
12305 void * start_routine (void *arg) { exit (0); }
12310 pthread_create (NULL, NULL, start_routine, NULL)
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12319 grep -v '^ *+' conftest.er1
>conftest.err
12321 cat conftest.err
>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try
='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try
='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12338 echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12340 cat >>confdefs.h
<<\_ACEOF
12341 #define WITH_THREAD 1
12345 THREADOBJ
="Python/thread.o"
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.
$ac_ext >&5
12352 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12353 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12354 if test "${ac_cv_func_pthread_detach+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 cat >conftest.
$ac_ext <<_ACEOF
12360 cat confdefs.h
>>conftest.
$ac_ext
12361 cat >>conftest.
$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12365 #define pthread_detach innocuous_pthread_detach
12367 /* System header to define __stub macros and hopefully few prototypes,
12368 which can conflict with char pthread_detach (); below.
12369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12370 <limits.h> exists even on freestanding compilers. */
12373 # include <limits.h>
12375 # include <assert.h>
12378 #undef pthread_detach
12380 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char pthread_detach ();
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12394 char (*f) () = pthread_detach;
12403 return f != pthread_detach;
12408 rm -f conftest.
$ac_objext conftest
$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1
>conftest.err
12414 cat conftest.err
>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try
='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try
='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_func_pthread_detach
=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.
$ac_ext >&5
12435 ac_cv_func_pthread_detach
=no
12437 rm -f conftest.err conftest.
$ac_objext \
12438 conftest
$ac_exeext conftest.
$ac_ext
12440 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12441 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12442 if test $ac_cv_func_pthread_detach = yes; then
12443 cat >>confdefs.h
<<\_ACEOF
12444 #define WITH_THREAD 1
12448 THREADOBJ
="Python/thread.o"
12451 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12452 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12453 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12454 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12458 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12460 # Is the header compilable?
12461 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12462 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12463 cat >conftest.
$ac_ext <<_ACEOF
12466 cat confdefs.h
>>conftest.
$ac_ext
12467 cat >>conftest.
$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12470 #include <atheos/threads.h>
12472 rm -f conftest.
$ac_objext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>conftest.er1
12476 grep -v '^ *+' conftest.er1
>conftest.err
12478 cat conftest.err
>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try
='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try
='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_header_compiler
=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.
$ac_ext >&5
12499 ac_header_compiler
=no
12501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 echo "${ECHO_T}$ac_header_compiler" >&6
12505 # Is the header present?
12506 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12507 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12508 cat >conftest.
$ac_ext <<_ACEOF
12511 cat confdefs.h
>>conftest.
$ac_ext
12512 cat >>conftest.
$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <atheos/threads.h>
12516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1
>conftest.err
12521 cat conftest.err
>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } >/dev
/null
; then
12524 if test -s conftest.err
; then
12525 ac_cpp_err
=$ac_c_preproc_warn_flag
12526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12533 if test -z "$ac_cpp_err"; then
12534 ac_header_preproc
=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.
$ac_ext >&5
12539 ac_header_preproc
=no
12541 rm -f conftest.err conftest.
$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 echo "${ECHO_T}$ac_header_preproc" >&6
12545 # So? What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12548 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12549 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12551 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12552 ac_header_preproc
=yes
12555 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12556 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12558 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12560 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12562 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12564 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12566 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12569 ## ------------------------------------------------ ##
12570 ## Report this to http://www.python.org/python-bugs ##
12571 ## ------------------------------------------------ ##
12574 sed "s/^/$as_me: WARNING: /" >&2
12577 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12578 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12579 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12584 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12588 if test $ac_cv_header_atheos_threads_h = yes; then
12589 cat >>confdefs.h
<<\_ACEOF
12590 #define WITH_THREAD 1
12594 cat >>confdefs.h
<<\_ACEOF
12595 #define ATHEOS_THREADS 1
12598 THREADOBJ
="Python/thread.o"
12601 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12602 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12603 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12604 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12608 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12610 # Is the header compilable?
12611 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12612 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12613 cat >conftest.
$ac_ext <<_ACEOF
12616 cat confdefs.h
>>conftest.
$ac_ext
12617 cat >>conftest.
$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 #include <kernel/OS.h>
12622 rm -f conftest.
$ac_objext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12626 grep -v '^ *+' conftest.er1
>conftest.err
12628 cat conftest.err
>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try
='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try
='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler
=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 ac_header_compiler
=no
12651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653 echo "${ECHO_T}$ac_header_compiler" >&6
12655 # Is the header present?
12656 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12657 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12658 cat >conftest.
$ac_ext <<_ACEOF
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 #include <kernel/OS.h>
12666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12667 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1
>conftest.err
12671 cat conftest.err
>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } >/dev
/null
; then
12674 if test -s conftest.err
; then
12675 ac_cpp_err
=$ac_c_preproc_warn_flag
12676 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12683 if test -z "$ac_cpp_err"; then
12684 ac_header_preproc
=yes
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.
$ac_ext >&5
12689 ac_header_preproc
=no
12691 rm -f conftest.err conftest.
$ac_ext
12692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693 echo "${ECHO_T}$ac_header_preproc" >&6
12695 # So? What about this header?
12696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12698 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12699 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12701 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12702 ac_header_preproc
=yes
12705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12706 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12708 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12710 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12712 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12714 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12716 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12719 ## ------------------------------------------------ ##
12720 ## Report this to http://www.python.org/python-bugs ##
12721 ## ------------------------------------------------ ##
12724 sed "s/^/$as_me: WARNING: /" >&2
12727 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12728 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12734 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12735 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12738 if test $ac_cv_header_kernel_OS_h = yes; then
12739 cat >>confdefs.h
<<\_ACEOF
12740 #define WITH_THREAD 1
12744 cat >>confdefs.h
<<\_ACEOF
12745 #define BEOS_THREADS 1
12748 THREADOBJ
="Python/thread.o"
12751 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12752 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12753 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_check_lib_save_LIBS
=$LIBS
12757 LIBS
="-lpthreads $LIBS"
12758 cat >conftest.
$ac_ext <<_ACEOF
12761 cat confdefs.h
>>conftest.
$ac_ext
12762 cat >>conftest.
$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char pthread_create ();
12780 rm -f conftest.
$ac_objext conftest
$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1
>conftest.err
12786 cat conftest.err
>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try
='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try
='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_lib_pthreads_pthread_create
=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.
$ac_ext >&5
12807 ac_cv_lib_pthreads_pthread_create
=no
12809 rm -f conftest.err conftest.
$ac_objext \
12810 conftest
$ac_exeext conftest.
$ac_ext
12811 LIBS
=$ac_check_lib_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12814 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12815 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12816 cat >>confdefs.h
<<\_ACEOF
12817 #define WITH_THREAD 1
12821 LIBS
="$LIBS -lpthreads"
12822 THREADOBJ
="Python/thread.o"
12825 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12826 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12827 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_check_lib_save_LIBS
=$LIBS
12832 cat >conftest.
$ac_ext <<_ACEOF
12835 cat confdefs.h
>>conftest.
$ac_ext
12836 cat >>conftest.
$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 /* Override any gcc2 internal prototype to avoid an error. */
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char pthread_create ();
12854 rm -f conftest.
$ac_objext conftest
$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12858 grep -v '^ *+' conftest.er1
>conftest.err
12860 cat conftest.err
>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try
='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try
='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_c_r_pthread_create
=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.
$ac_ext >&5
12881 ac_cv_lib_c_r_pthread_create
=no
12883 rm -f conftest.err conftest.
$ac_objext \
12884 conftest
$ac_exeext conftest.
$ac_ext
12885 LIBS
=$ac_check_lib_save_LIBS
12887 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12888 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12889 if test $ac_cv_lib_c_r_pthread_create = yes; then
12890 cat >>confdefs.h
<<\_ACEOF
12891 #define WITH_THREAD 1
12896 THREADOBJ
="Python/thread.o"
12899 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12900 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12901 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 ac_check_lib_save_LIBS
=$LIBS
12905 LIBS
="-lpthread $LIBS"
12906 cat >conftest.
$ac_ext <<_ACEOF
12909 cat confdefs.h
>>conftest.
$ac_ext
12910 cat >>conftest.
$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char __pthread_create_system ();
12923 __pthread_create_system ();
12928 rm -f conftest.
$ac_objext conftest
$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1
>conftest.err
12934 cat conftest.err
>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try
='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try
='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_lib_pthread___pthread_create_system
=yes
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.
$ac_ext >&5
12955 ac_cv_lib_pthread___pthread_create_system
=no
12957 rm -f conftest.err conftest.
$ac_objext \
12958 conftest
$ac_exeext conftest.
$ac_ext
12959 LIBS
=$ac_check_lib_save_LIBS
12961 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12962 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12963 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define WITH_THREAD 1
12969 LIBS
="$LIBS -lpthread"
12970 THREADOBJ
="Python/thread.o"
12973 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12974 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12975 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 ac_check_lib_save_LIBS
=$LIBS
12980 cat >conftest.
$ac_ext <<_ACEOF
12983 cat confdefs.h
>>conftest.
$ac_ext
12984 cat >>conftest.
$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 /* Override any gcc2 internal prototype to avoid an error. */
12991 /* We use char because int might match the return type of a gcc2
12992 builtin and then its argument prototype would still apply. */
12993 char pthread_create ();
13002 rm -f conftest.
$ac_objext conftest
$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>conftest.er1
13006 grep -v '^ *+' conftest.er1
>conftest.err
13008 cat conftest.err
>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try
='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try
='test -s conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_lib_cma_pthread_create
=yes
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.
$ac_ext >&5
13029 ac_cv_lib_cma_pthread_create
=no
13031 rm -f conftest.err conftest.
$ac_objext \
13032 conftest
$ac_exeext conftest.
$ac_ext
13033 LIBS
=$ac_check_lib_save_LIBS
13035 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13036 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13037 if test $ac_cv_lib_cma_pthread_create = yes; then
13038 cat >>confdefs.h
<<\_ACEOF
13039 #define WITH_THREAD 1
13044 THREADOBJ
="Python/thread.o"
13047 USE_THREAD_MODULE
="#"
13066 rm -f conftest.err conftest.
$ac_objext \
13067 conftest
$ac_exeext conftest.
$ac_ext
13076 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13077 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13078 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 ac_check_lib_save_LIBS
=$LIBS
13083 cat >conftest.
$ac_ext <<_ACEOF
13086 cat confdefs.h
>>conftest.
$ac_ext
13087 cat >>conftest.
$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 /* Override any gcc2 internal prototype to avoid an error. */
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13105 rm -f conftest.
$ac_objext conftest
$ac_exeext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13107 (eval $ac_link) 2>conftest.er1
13109 grep -v '^ *+' conftest.er1
>conftest.err
13111 cat conftest.err
>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try
='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try
='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_mpc_usconfig
=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.
$ac_ext >&5
13132 ac_cv_lib_mpc_usconfig
=no
13134 rm -f conftest.err conftest.
$ac_objext \
13135 conftest
$ac_exeext conftest.
$ac_ext
13136 LIBS
=$ac_check_lib_save_LIBS
13138 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13139 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13140 if test $ac_cv_lib_mpc_usconfig = yes; then
13141 cat >>confdefs.h
<<\_ACEOF
13142 #define WITH_THREAD 1
13146 THREADOBJ
="Python/thread.o"
13147 USE_THREAD_MODULE
=""
13151 if test "$posix_threads" != "yes"; then
13152 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13153 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13154 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 ac_check_lib_save_LIBS
=$LIBS
13158 LIBS
="-lthread $LIBS"
13159 cat >conftest.
$ac_ext <<_ACEOF
13162 cat confdefs.h
>>conftest.
$ac_ext
13163 cat >>conftest.
$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 /* Override any gcc2 internal prototype to avoid an error. */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13172 char thr_create ();
13181 rm -f conftest.
$ac_objext conftest
$ac_exeext
13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13183 (eval $ac_link) 2>conftest.er1
13185 grep -v '^ *+' conftest.er1
>conftest.err
13187 cat conftest.err
>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try
='test -z "$ac_c_werror_flag"
13191 || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try
='test -s conftest$ac_exeext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_lib_thread_thr_create
=yes
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.
$ac_ext >&5
13208 ac_cv_lib_thread_thr_create
=no
13210 rm -f conftest.err conftest.
$ac_objext \
13211 conftest
$ac_exeext conftest.
$ac_ext
13212 LIBS
=$ac_check_lib_save_LIBS
13214 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13215 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13216 if test $ac_cv_lib_thread_thr_create = yes; then
13217 cat >>confdefs.h
<<\_ACEOF
13218 #define WITH_THREAD 1
13221 LIBS
="$LIBS -lthread"
13222 THREADOBJ
="Python/thread.o"
13223 USE_THREAD_MODULE
=""
13228 if test "$USE_THREAD_MODULE" != "#"
13230 # If the above checks didn't disable threads, (at least) OSF1
13231 # needs this '-threads' argument during linking.
13232 case $ac_sys_system in
13233 OSF1
) LDLAST
=-threads;;
13238 if test "$posix_threads" = "yes"; then
13239 if test "$unistd_defines_pthreads" = "no"; then
13241 cat >>confdefs.h
<<\_ACEOF
13242 #define _POSIX_THREADS 1
13247 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13248 case $ac_sys_system/$ac_sys_release in
13250 cat >>confdefs.h
<<\_ACEOF
13251 #define HAVE_PTHREAD_DESTRUCTOR 1
13256 cat >>confdefs.h
<<\_ACEOF
13257 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13263 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13264 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13265 if test "${ac_cv_pthread_system_supported+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 if test "$cross_compiling" = yes; then
13269 ac_cv_pthread_system_supported
=no
13271 cat >conftest.
$ac_ext <<_ACEOF
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <pthread.h>
13278 void *foo(void *parm) {
13282 pthread_attr_t attr;
13284 if (pthread_attr_init(&attr)) exit(-1);
13285 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13286 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13290 rm -f conftest
$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_pthread_system_supported
=yes
13303 echo "$as_me: program exited with status $ac_status" >&5
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13307 ( exit $ac_status )
13308 ac_cv_pthread_system_supported
=no
13310 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13316 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13317 if test "$ac_cv_pthread_system_supported" = "yes"; then
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13325 for ac_func
in pthread_sigmask
13327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13328 echo "$as_me:$LINENO: checking for $ac_func" >&5
13329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13330 if eval "test \"\${$as_ac_var+set}\" = set"; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 cat >conftest.
$ac_ext <<_ACEOF
13336 cat confdefs.h
>>conftest.
$ac_ext
13337 cat >>conftest.
$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13341 #define $ac_func innocuous_$ac_func
13343 /* System header to define __stub macros and hopefully few prototypes,
13344 which can conflict with char $ac_func (); below.
13345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13346 <limits.h> exists even on freestanding compilers. */
13349 # include <limits.h>
13351 # include <assert.h>
13356 /* Override any gcc2 internal prototype to avoid an error. */
13361 /* We use char because int might match the return type of a gcc2
13362 builtin and then its argument prototype would still apply. */
13364 /* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13370 char (*f) () = $ac_func;
13379 return f != $ac_func;
13384 rm -f conftest.
$ac_objext conftest
$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try
='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try
='test -s conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 eval "$as_ac_var=yes"
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.
$ac_ext >&5
13411 eval "$as_ac_var=no"
13413 rm -f conftest.err conftest.
$ac_objext \
13414 conftest
$ac_exeext conftest.
$ac_ext
13416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13418 if test `eval echo '${'$as_ac_var'}'` = yes; then
13419 cat >>confdefs.h
<<_ACEOF
13420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13422 case $ac_sys_system in
13425 cat >>confdefs.h
<<\_ACEOF
13426 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13437 # Check for enable-ipv6
13440 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13441 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13442 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13443 if test "${enable_ipv6+set}" = set; then
13444 enableval
="$enable_ipv6"
13445 case "$enableval" in
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13451 *) echo "$as_me:$LINENO: result: yes" >&5
13452 echo "${ECHO_T}yes" >&6
13453 cat >>confdefs.h
<<\_ACEOF
13454 #define ENABLE_IPV6 1
13462 if test "$cross_compiling" = yes; then
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13468 cat >conftest.
$ac_ext <<_ACEOF
13471 cat confdefs.h
>>conftest.
$ac_ext
13472 cat >>conftest.
$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 /* AF_INET6 available check */
13475 #include <sys/types.h>
13476 #include <sys/socket.h>
13479 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13486 rm -f conftest
$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13501 echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.
$ac_ext >&5
13505 ( exit $ac_status )
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13510 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13513 if test "$ipv6" = "yes"; then
13514 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13515 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13516 cat >conftest.
$ac_ext <<_ACEOF
13519 cat confdefs.h
>>conftest.
$ac_ext
13520 cat >>conftest.
$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 #include <sys/types.h>
13523 #include <netinet/in.h>
13527 struct sockaddr_in6 x;
13533 rm -f conftest.
$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13537 grep -v '^ *+' conftest.er1
>conftest.err
13539 cat conftest.err
>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try
='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try
='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.
$ac_ext >&5
13562 echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6
13566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13569 if test "$ipv6" = "yes"; then
13570 cat >>confdefs.h
<<\_ACEOF
13571 #define ENABLE_IPV6 1
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13584 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13585 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13589 cat >conftest.
$ac_ext <<_ACEOF
13592 cat confdefs.h
>>conftest.
$ac_ext
13593 cat >>conftest.
$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 #include <netinet/in.h>
13597 #ifdef IPV6_INRIA_VERSION
13601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13602 $EGREP "yes" >/dev
/null
2>&1; then
13609 cat >conftest.
$ac_ext <<_ACEOF
13612 cat confdefs.h
>>conftest.
$ac_ext
13613 cat >>conftest.
$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 #include <netinet/in.h>
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "yes" >/dev
/null
2>&1; then
13625 ipv6libdir
=/usr
/local
/v
6/lib
13632 cat >conftest.
$ac_ext <<_ACEOF
13635 cat confdefs.h
>>conftest.
$ac_ext
13636 cat >>conftest.
$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13639 #include <features.h>
13640 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "yes" >/dev
/null
2>&1; then
13653 if test -d /usr
/inet6
; then
13656 ipv6libdir
=/usr
/inet
6/lib
13657 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13661 if test -f /etc
/netconfig
; then
13662 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13669 cat >conftest.
$ac_ext <<_ACEOF
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 #include <sys/param.h>
13677 #ifdef _TOSHIBA_INET6
13681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 $EGREP "yes" >/dev
/null
2>&1; then
13685 ipv6libdir
=/usr
/local
/v
6/lib
13691 cat >conftest.
$ac_ext <<_ACEOF
13694 cat confdefs.h
>>conftest.
$ac_ext
13695 cat >>conftest.
$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 #include </usr/local/v6/include/sys/v6config.h>
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "yes" >/dev
/null
2>&1; then
13707 ipv6libdir
=/usr
/local
/v
6/lib
;
13708 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13714 cat >conftest.
$ac_ext <<_ACEOF
13717 cat confdefs.h
>>conftest.
$ac_ext
13718 cat >>conftest.
$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13721 #include <sys/param.h>
13722 #ifdef _ZETA_MINAMI_INET6
13726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13727 $EGREP "yes" >/dev
/null
2>&1; then
13730 ipv6libdir
=/usr
/local
/v
6/lib
13736 if test "$ipv6type" != "unknown"; then
13740 echo "$as_me:$LINENO: result: $ipv6type" >&5
13741 echo "${ECHO_T}$ipv6type" >&6
13744 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13745 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13746 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13747 echo "using lib$ipv6lib"
13749 if test $ipv6trylibc = "yes"; then
13752 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13753 echo "You need to fetch lib$ipv6lib.a from appropriate"
13754 echo 'ipv6 kit and compile beforehand.'
13760 # Check for --with-doc-strings
13761 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13762 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13764 # Check whether --with-doc-strings or --without-doc-strings was given.
13765 if test "${with_doc_strings+set}" = set; then
13766 withval
="$with_doc_strings"
13770 if test -z "$with_doc_strings"
13771 then with_doc_strings
="yes"
13773 if test "$with_doc_strings" != "no"
13776 cat >>confdefs.h
<<\_ACEOF
13777 #define WITH_DOC_STRINGS 1
13781 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13782 echo "${ECHO_T}$with_doc_strings" >&6
13784 # Check for Python-specific malloc support
13785 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13786 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13788 # Check whether --with-tsc or --without-tsc was given.
13789 if test "${with_tsc+set}" = set; then
13790 withval
="$with_tsc"
13792 if test "$withval" != no
13795 cat >>confdefs.h
<<\_ACEOF
13799 echo "$as_me:$LINENO: result: yes" >&5
13800 echo "${ECHO_T}yes" >&6
13801 else echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6
13805 echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6
13809 # Check for Python-specific malloc support
13810 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13811 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13813 # Check whether --with-pymalloc or --without-pymalloc was given.
13814 if test "${with_pymalloc+set}" = set; then
13815 withval
="$with_pymalloc"
13819 if test -z "$with_pymalloc"
13820 then with_pymalloc
="yes"
13822 if test "$with_pymalloc" != "no"
13825 cat >>confdefs.h
<<\_ACEOF
13826 #define WITH_PYMALLOC 1
13830 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13831 echo "${ECHO_T}$with_pymalloc" >&6
13833 # Check for --with-wctype-functions
13834 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13835 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13837 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13838 if test "${with_wctype_functions+set}" = set; then
13839 withval
="$with_wctype_functions"
13841 if test "$withval" != no
13844 cat >>confdefs.h
<<\_ACEOF
13845 #define WANT_WCTYPE_FUNCTIONS 1
13848 echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6
13850 else echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6
13854 echo "$as_me:$LINENO: result: no" >&5
13855 echo "${ECHO_T}no" >&6
13858 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13862 # the dlopen() function means we might want to use dynload_shlib.o. some
13863 # platforms, such as AIX, have dlopen(), but don't want to use it.
13865 for ac_func
in dlopen
13867 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13868 echo "$as_me:$LINENO: checking for $ac_func" >&5
13869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_var+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 cat >conftest.
$ac_ext <<_ACEOF
13876 cat confdefs.h
>>conftest.
$ac_ext
13877 cat >>conftest.
$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13881 #define $ac_func innocuous_$ac_func
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func (); below.
13885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 <limits.h> exists even on freestanding compilers. */
13889 # include <limits.h>
13891 # include <assert.h>
13896 /* Override any gcc2 internal prototype to avoid an error. */
13901 /* We use char because int might match the return type of a gcc2
13902 builtin and then its argument prototype would still apply. */
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910 char (*f) () = $ac_func;
13919 return f != $ac_func;
13924 rm -f conftest.
$ac_objext conftest
$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1
>conftest.err
13930 cat conftest.err
>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try
='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try
='test -s conftest$ac_exeext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 eval "$as_ac_var=yes"
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.
$ac_ext >&5
13951 eval "$as_ac_var=no"
13953 rm -f conftest.err conftest.
$ac_objext \
13954 conftest
$ac_exeext conftest.
$ac_ext
13956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13958 if test `eval echo '${'$as_ac_var'}'` = yes; then
13959 cat >>confdefs.h
<<_ACEOF
13960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13968 # loading of modules.
13970 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13971 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13972 if test -z "$DYNLOADFILE"
13974 case $ac_sys_system/$ac_sys_release in
13975 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13976 if test "$ac_cv_func_dlopen" = yes
13977 then DYNLOADFILE
="dynload_shlib.o"
13978 else DYNLOADFILE
="dynload_aix.o"
13981 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13982 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13983 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13984 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13986 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13987 # out any dynamic loading
13988 if test "$ac_cv_func_dlopen" = yes
13989 then DYNLOADFILE
="dynload_shlib.o"
13990 else DYNLOADFILE
="dynload_stub.o"
13995 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13996 echo "${ECHO_T}$DYNLOADFILE" >&6
13997 if test "$DYNLOADFILE" != "dynload_stub.o"
14000 cat >>confdefs.h
<<\_ACEOF
14001 #define HAVE_DYNAMIC_LOADING 1
14006 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14009 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14010 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14011 if test -z "$MACHDEP_OBJS"
14013 MACHDEP_OBJS
=$extra_machdep_objs
14015 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14017 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14018 echo "${ECHO_T}MACHDEP_OBJS" >&6
14020 # checks for library functions
14097 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14098 execv fork fpathconf ftime ftruncate \
14099 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14100 getpriority getpwent getspnam getspent getsid getwd \
14101 kill killpg lchown lstat
mkfifo mknod mktime \
14102 mremap nice pathconf pause plock poll pthread_init \
14103 putenv readlink realpath \
14104 select setegid seteuid setgid \
14105 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14106 sigaction siginterrupt sigrelse strftime \
14107 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14108 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14110 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 echo "$as_me:$LINENO: checking for $ac_func" >&5
14112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14113 if eval "test \"\${$as_ac_var+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 cat >conftest.
$ac_ext <<_ACEOF
14119 cat confdefs.h
>>conftest.
$ac_ext
14120 cat >>conftest.
$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124 #define $ac_func innocuous_$ac_func
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char $ac_func (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14132 # include <limits.h>
14134 # include <assert.h>
14139 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14153 char (*f) () = $ac_func;
14162 return f != $ac_func;
14167 rm -f conftest.
$ac_objext conftest
$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14171 grep -v '^ *+' conftest.er1
>conftest.err
14173 cat conftest.err
>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try
='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try
='test -s conftest$ac_exeext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 eval "$as_ac_var=yes"
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.
$ac_ext >&5
14194 eval "$as_ac_var=no"
14196 rm -f conftest.err conftest.
$ac_objext \
14197 conftest
$ac_exeext conftest.
$ac_ext
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202 cat >>confdefs.h
<<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14210 # For some functions, having a definition is not sufficient, since
14211 # we want to take their address.
14212 echo "$as_me:$LINENO: checking for chroot" >&5
14213 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14214 cat >conftest.
$ac_ext <<_ACEOF
14217 cat confdefs.h
>>conftest.
$ac_ext
14218 cat >>conftest.
$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <unistd.h>
14229 rm -f conftest.
$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>conftest.er1
14233 grep -v '^ *+' conftest.er1
>conftest.err
14235 cat conftest.err
>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try
='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try
='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14252 cat >>confdefs.h
<<\_ACEOF
14253 #define HAVE_CHROOT 1
14256 echo "$as_me:$LINENO: result: yes" >&5
14257 echo "${ECHO_T}yes" >&6
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.
$ac_ext >&5
14262 echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6
14266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14267 echo "$as_me:$LINENO: checking for link" >&5
14268 echo $ECHO_N "checking for link... $ECHO_C" >&6
14269 cat >conftest.
$ac_ext <<_ACEOF
14272 cat confdefs.h
>>conftest.
$ac_ext
14273 cat >>conftest.
$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <unistd.h>
14284 rm -f conftest.
$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1
>conftest.err
14290 cat conftest.err
>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try
='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try
='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14307 cat >>confdefs.h
<<\_ACEOF
14308 #define HAVE_LINK 1
14311 echo "$as_me:$LINENO: result: yes" >&5
14312 echo "${ECHO_T}yes" >&6
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.
$ac_ext >&5
14317 echo "$as_me:$LINENO: result: no" >&5
14318 echo "${ECHO_T}no" >&6
14321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14322 echo "$as_me:$LINENO: checking for symlink" >&5
14323 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14324 cat >conftest.
$ac_ext <<_ACEOF
14327 cat confdefs.h
>>conftest.
$ac_ext
14328 cat >>conftest.
$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 #include <unistd.h>
14339 rm -f conftest.
$ac_objext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14343 grep -v '^ *+' conftest.er1
>conftest.err
14345 cat conftest.err
>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try
='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try
='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14362 cat >>confdefs.h
<<\_ACEOF
14363 #define HAVE_SYMLINK 1
14366 echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.
$ac_ext >&5
14372 echo "$as_me:$LINENO: result: no" >&5
14373 echo "${ECHO_T}no" >&6
14376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14377 echo "$as_me:$LINENO: checking for fchdir" >&5
14378 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14379 cat >conftest.
$ac_ext <<_ACEOF
14382 cat confdefs.h
>>conftest.
$ac_ext
14383 cat >>conftest.
$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 #include <unistd.h>
14394 rm -f conftest.
$ac_objext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396 (eval $ac_compile) 2>conftest.er1
14398 grep -v '^ *+' conftest.er1
>conftest.err
14400 cat conftest.err
>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try
='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try
='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14417 cat >>confdefs.h
<<\_ACEOF
14418 #define HAVE_FCHDIR 1
14421 echo "$as_me:$LINENO: result: yes" >&5
14422 echo "${ECHO_T}yes" >&6
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.
$ac_ext >&5
14427 echo "$as_me:$LINENO: result: no" >&5
14428 echo "${ECHO_T}no" >&6
14431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14432 echo "$as_me:$LINENO: checking for fsync" >&5
14433 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14434 cat >conftest.
$ac_ext <<_ACEOF
14437 cat confdefs.h
>>conftest.
$ac_ext
14438 cat >>conftest.
$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <unistd.h>
14449 rm -f conftest.
$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try
='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try
='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14472 cat >>confdefs.h
<<\_ACEOF
14473 #define HAVE_FSYNC 1
14476 echo "$as_me:$LINENO: result: yes" >&5
14477 echo "${ECHO_T}yes" >&6
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.
$ac_ext >&5
14482 echo "$as_me:$LINENO: result: no" >&5
14483 echo "${ECHO_T}no" >&6
14486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14487 echo "$as_me:$LINENO: checking for fdatasync" >&5
14488 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14489 cat >conftest.
$ac_ext <<_ACEOF
14492 cat confdefs.h
>>conftest.
$ac_ext
14493 cat >>conftest.
$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <unistd.h>
14504 rm -f conftest.
$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>conftest.er1
14508 grep -v '^ *+' conftest.er1
>conftest.err
14510 cat conftest.err
>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try
='test -z "$ac_c_werror_flag"
14514 || test ! -s conftest.err'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; } &&
14520 { ac_try
='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14527 cat >>confdefs.h
<<\_ACEOF
14528 #define HAVE_FDATASYNC 1
14531 echo "$as_me:$LINENO: result: yes" >&5
14532 echo "${ECHO_T}yes" >&6
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.
$ac_ext >&5
14537 echo "$as_me:$LINENO: result: no" >&5
14538 echo "${ECHO_T}no" >&6
14541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14543 # On some systems (eg. FreeBSD 5), we would find a definition of the
14544 # functions ctermid_r, setgroups in the library, but no prototype
14545 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14546 # address to avoid compiler warnings and potential miscompilations
14547 # because of the missing prototypes.
14549 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14550 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14551 cat >conftest.
$ac_ext <<_ACEOF
14554 cat confdefs.h
>>conftest.
$ac_ext
14555 cat >>conftest.
$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 #include "confdefs.h"
14564 void* p = ctermid_r
14569 rm -f conftest.
$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>conftest.er1
14573 grep -v '^ *+' conftest.er1
>conftest.err
14575 cat conftest.err
>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try
='test -z "$ac_c_werror_flag"
14579 || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try
='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14592 cat >>confdefs.h
<<\_ACEOF
14593 #define HAVE_CTERMID_R 1
14596 echo "$as_me:$LINENO: result: yes" >&5
14597 echo "${ECHO_T}yes" >&6
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.
$ac_ext >&5
14602 echo "$as_me:$LINENO: result: no" >&5
14603 echo "${ECHO_T}no" >&6
14606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14608 echo "$as_me:$LINENO: checking for flock" >&5
14609 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14610 cat >conftest.
$ac_ext <<_ACEOF
14613 cat confdefs.h
>>conftest.
$ac_ext
14614 cat >>conftest.
$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 #include "confdefs.h"
14618 #include <sys/file.h>
14628 rm -f conftest.
$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630 (eval $ac_compile) 2>conftest.er1
14632 grep -v '^ *+' conftest.er1
>conftest.err
14634 cat conftest.err
>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try
='test -z "$ac_c_werror_flag"
14638 || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try
='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14651 cat >>confdefs.h
<<\_ACEOF
14652 #define HAVE_FLOCK 1
14655 echo "$as_me:$LINENO: result: yes" >&5
14656 echo "${ECHO_T}yes" >&6
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.
$ac_ext >&5
14661 echo "$as_me:$LINENO: result: no" >&5
14662 echo "${ECHO_T}no" >&6
14665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14667 echo "$as_me:$LINENO: checking for getpagesize" >&5
14668 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14669 cat >conftest.
$ac_ext <<_ACEOF
14672 cat confdefs.h
>>conftest.
$ac_ext
14673 cat >>conftest.
$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14676 #include "confdefs.h"
14677 #include <unistd.h>
14682 void* p = getpagesize
14687 rm -f conftest.
$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689 (eval $ac_compile) 2>conftest.er1
14691 grep -v '^ *+' conftest.er1
>conftest.err
14693 cat conftest.err
>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try
='test -z "$ac_c_werror_flag"
14697 || test ! -s conftest.err'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; } &&
14703 { ac_try
='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14710 cat >>confdefs.h
<<\_ACEOF
14711 #define HAVE_GETPAGESIZE 1
14714 echo "$as_me:$LINENO: result: yes" >&5
14715 echo "${ECHO_T}yes" >&6
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 echo "$as_me:$LINENO: result: no" >&5
14721 echo "${ECHO_T}no" >&6
14724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14726 for ac_prog
in true
14728 # Extract the first word of "$ac_prog", so it can be a program name with args.
14729 set dummy
$ac_prog; ac_word
=$2
14730 echo "$as_me:$LINENO: checking for $ac_word" >&5
14731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14732 if test "${ac_cv_prog_TRUE+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 if test -n "$TRUE"; then
14736 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14739 for as_dir
in $PATH
14742 test -z "$as_dir" && as_dir
=.
14743 for ac_exec_ext
in '' $ac_executable_extensions; do
14744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 ac_cv_prog_TRUE
="$ac_prog"
14746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14754 TRUE
=$ac_cv_prog_TRUE
14755 if test -n "$TRUE"; then
14756 echo "$as_me:$LINENO: result: $TRUE" >&5
14757 echo "${ECHO_T}$TRUE" >&6
14759 echo "$as_me:$LINENO: result: no" >&5
14760 echo "${ECHO_T}no" >&6
14763 test -n "$TRUE" && break
14765 test -n "$TRUE" || TRUE
="/bin/true"
14768 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14769 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14770 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 ac_check_lib_save_LIBS
=$LIBS
14775 cat >conftest.
$ac_ext <<_ACEOF
14778 cat confdefs.h
>>conftest.
$ac_ext
14779 cat >>conftest.
$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 /* Override any gcc2 internal prototype to avoid an error. */
14786 /* We use char because int might match the return type of a gcc2
14787 builtin and then its argument prototype would still apply. */
14797 rm -f conftest.
$ac_objext conftest
$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>conftest.er1
14801 grep -v '^ *+' conftest.er1
>conftest.err
14803 cat conftest.err
>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try
='test -z "$ac_c_werror_flag"
14807 || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try
='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_lib_c_inet_aton
=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.
$ac_ext >&5
14824 ac_cv_lib_c_inet_aton
=no
14826 rm -f conftest.err conftest.
$ac_objext \
14827 conftest
$ac_exeext conftest.
$ac_ext
14828 LIBS
=$ac_check_lib_save_LIBS
14830 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14831 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14832 if test $ac_cv_lib_c_inet_aton = yes; then
14836 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14837 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14838 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 ac_check_lib_save_LIBS
=$LIBS
14842 LIBS
="-lresolv $LIBS"
14843 cat >conftest.
$ac_ext <<_ACEOF
14846 cat confdefs.h
>>conftest.
$ac_ext
14847 cat >>conftest.
$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14865 rm -f conftest.
$ac_objext conftest
$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14869 grep -v '^ *+' conftest.er1
>conftest.err
14871 cat conftest.err
>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try
='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try
='test -s conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_lib_resolv_inet_aton
=yes
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.
$ac_ext >&5
14892 ac_cv_lib_resolv_inet_aton
=no
14894 rm -f conftest.err conftest.
$ac_objext \
14895 conftest
$ac_exeext conftest.
$ac_ext
14896 LIBS
=$ac_check_lib_save_LIBS
14898 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14899 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14900 if test $ac_cv_lib_resolv_inet_aton = yes; then
14901 cat >>confdefs.h
<<_ACEOF
14902 #define HAVE_LIBRESOLV 1
14905 LIBS
="-lresolv $LIBS"
14913 echo "$as_me:$LINENO: checking for hstrerror" >&5
14914 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14915 cat >conftest.
$ac_ext <<_ACEOF
14918 cat confdefs.h
>>conftest.
$ac_ext
14919 cat >>conftest.
$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14922 #include "confdefs.h"
14928 void* p = hstrerror; hstrerror(0)
14933 rm -f conftest.
$ac_objext conftest
$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1
>conftest.err
14939 cat conftest.err
>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try
='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14956 cat >>confdefs.h
<<\_ACEOF
14957 #define HAVE_HSTRERROR 1
14960 echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.
$ac_ext >&5
14966 echo "$as_me:$LINENO: result: no" >&5
14967 echo "${ECHO_T}no" >&6
14970 rm -f conftest.err conftest.
$ac_objext \
14971 conftest
$ac_exeext conftest.
$ac_ext
14973 echo "$as_me:$LINENO: checking for inet_aton" >&5
14974 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 #include "confdefs.h"
14983 #include <sys/types.h>
14984 #include <sys/socket.h>
14985 #include <netinet/in.h>
14986 #include <arpa/inet.h>
14991 void* p = inet_aton;inet_aton(0,0)
14996 rm -f conftest.
$ac_objext conftest
$ac_exeext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>conftest.er1
15000 grep -v '^ *+' conftest.er1
>conftest.err
15002 cat conftest.err
>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try
='test -z "$ac_c_werror_flag"
15006 || test ! -s conftest.err'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try
='test -s conftest$ac_exeext'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15019 cat >>confdefs.h
<<\_ACEOF
15020 #define HAVE_INET_ATON 1
15023 echo "$as_me:$LINENO: result: yes" >&5
15024 echo "${ECHO_T}yes" >&6
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.
$ac_ext >&5
15029 echo "$as_me:$LINENO: result: no" >&5
15030 echo "${ECHO_T}no" >&6
15033 rm -f conftest.err conftest.
$ac_objext \
15034 conftest
$ac_exeext conftest.
$ac_ext
15036 echo "$as_me:$LINENO: checking for inet_pton" >&5
15037 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15038 cat >conftest.
$ac_ext <<_ACEOF
15041 cat confdefs.h
>>conftest.
$ac_ext
15042 cat >>conftest.
$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15045 #include "confdefs.h"
15046 #include <sys/types.h>
15047 #include <sys/socket.h>
15048 #include <netinet/in.h>
15049 #include <arpa/inet.h>
15054 void* p = inet_pton
15059 rm -f conftest.
$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15063 grep -v '^ *+' conftest.er1
>conftest.err
15065 cat conftest.err
>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try
='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try
='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15082 cat >>confdefs.h
<<\_ACEOF
15083 #define HAVE_INET_PTON 1
15086 echo "$as_me:$LINENO: result: yes" >&5
15087 echo "${ECHO_T}yes" >&6
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.
$ac_ext >&5
15092 echo "$as_me:$LINENO: result: no" >&5
15093 echo "${ECHO_T}no" >&6
15096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15098 # On some systems, setgroups is in unistd.h, on others, in grp.h
15099 echo "$as_me:$LINENO: checking for setgroups" >&5
15100 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15101 cat >conftest.
$ac_ext <<_ACEOF
15104 cat confdefs.h
>>conftest.
$ac_ext
15105 cat >>conftest.
$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 #include "confdefs.h"
15109 #include <unistd.h>
15117 void* p = setgroups
15122 rm -f conftest.
$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1
>conftest.err
15128 cat conftest.err
>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try
='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try
='test -s conftest.$ac_objext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15145 cat >>confdefs.h
<<\_ACEOF
15146 #define HAVE_SETGROUPS 1
15149 echo "$as_me:$LINENO: result: yes" >&5
15150 echo "${ECHO_T}yes" >&6
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15155 echo "$as_me:$LINENO: result: no" >&5
15156 echo "${ECHO_T}no" >&6
15159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15161 # check for openpty and forkpty
15164 for ac_func
in openpty
15166 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15167 echo "$as_me:$LINENO: checking for $ac_func" >&5
15168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15169 if eval "test \"\${$as_ac_var+set}\" = set"; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 cat >conftest.
$ac_ext <<_ACEOF
15175 cat confdefs.h
>>conftest.
$ac_ext
15176 cat >>conftest.
$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15180 #define $ac_func innocuous_$ac_func
15182 /* System header to define __stub macros and hopefully few prototypes,
15183 which can conflict with char $ac_func (); below.
15184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15185 <limits.h> exists even on freestanding compilers. */
15188 # include <limits.h>
15190 # include <assert.h>
15195 /* Override any gcc2 internal prototype to avoid an error. */
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15203 /* The GNU C library defines this for functions which it implements
15204 to always fail with ENOSYS. Some functions are actually named
15205 something starting with __ and the normal name is an alias. */
15206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15209 char (*f) () = $ac_func;
15218 return f != $ac_func;
15223 rm -f conftest.
$ac_objext conftest
$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>conftest.er1
15227 grep -v '^ *+' conftest.er1
>conftest.err
15229 cat conftest.err
>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try
='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try
='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 eval "$as_ac_var=yes"
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.
$ac_ext >&5
15250 eval "$as_ac_var=no"
15252 rm -f conftest.err conftest.
$ac_objext \
15253 conftest
$ac_exeext conftest.
$ac_ext
15255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15257 if test `eval echo '${'$as_ac_var'}'` = yes; then
15258 cat >>confdefs.h
<<_ACEOF
15259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15264 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15265 if test "${ac_cv_lib_util_openpty+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 ac_check_lib_save_LIBS
=$LIBS
15269 LIBS
="-lutil $LIBS"
15270 cat >conftest.
$ac_ext <<_ACEOF
15273 cat confdefs.h
>>conftest.
$ac_ext
15274 cat >>conftest.
$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15277 /* Override any gcc2 internal prototype to avoid an error. */
15281 /* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15292 rm -f conftest.
$ac_objext conftest
$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>conftest.er1
15296 grep -v '^ *+' conftest.er1
>conftest.err
15298 cat conftest.err
>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try
='test -z "$ac_c_werror_flag"
15302 || test ! -s conftest.err'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try
='test -s conftest$ac_exeext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_lib_util_openpty
=yes
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.
$ac_ext >&5
15319 ac_cv_lib_util_openpty
=no
15321 rm -f conftest.err conftest.
$ac_objext \
15322 conftest
$ac_exeext conftest.
$ac_ext
15323 LIBS
=$ac_check_lib_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15326 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15327 if test $ac_cv_lib_util_openpty = yes; then
15328 cat >>confdefs.h
<<\_ACEOF
15329 #define HAVE_OPENPTY 1
15331 LIBS
="$LIBS -lutil"
15333 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15334 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15335 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 ac_check_lib_save_LIBS
=$LIBS
15340 cat >conftest.
$ac_ext <<_ACEOF
15343 cat confdefs.h
>>conftest.
$ac_ext
15344 cat >>conftest.
$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15347 /* Override any gcc2 internal prototype to avoid an error. */
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15362 rm -f conftest.
$ac_objext conftest
$ac_exeext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>conftest.er1
15366 grep -v '^ *+' conftest.er1
>conftest.err
15368 cat conftest.err
>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try
='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try
='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_lib_bsd_openpty
=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.
$ac_ext >&5
15389 ac_cv_lib_bsd_openpty
=no
15391 rm -f conftest.err conftest.
$ac_objext \
15392 conftest
$ac_exeext conftest.
$ac_ext
15393 LIBS
=$ac_check_lib_save_LIBS
15395 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15396 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15397 if test $ac_cv_lib_bsd_openpty = yes; then
15398 cat >>confdefs.h
<<\_ACEOF
15399 #define HAVE_OPENPTY 1
15412 for ac_func
in forkpty
15414 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 echo "$as_me:$LINENO: checking for $ac_func" >&5
15416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15417 if eval "test \"\${$as_ac_var+set}\" = set"; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 cat >conftest.
$ac_ext <<_ACEOF
15423 cat confdefs.h
>>conftest.
$ac_ext
15424 cat >>conftest.
$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15428 #define $ac_func innocuous_$ac_func
15430 /* System header to define __stub macros and hopefully few prototypes,
15431 which can conflict with char $ac_func (); below.
15432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433 <limits.h> exists even on freestanding compilers. */
15436 # include <limits.h>
15438 # include <assert.h>
15443 /* Override any gcc2 internal prototype to avoid an error. */
15448 /* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15451 /* The GNU C library defines this for functions which it implements
15452 to always fail with ENOSYS. Some functions are actually named
15453 something starting with __ and the normal name is an alias. */
15454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457 char (*f) () = $ac_func;
15466 return f != $ac_func;
15471 rm -f conftest.
$ac_objext conftest
$ac_exeext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15473 (eval $ac_link) 2>conftest.er1
15475 grep -v '^ *+' conftest.er1
>conftest.err
15477 cat conftest.err
>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try
='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try
='test -s conftest$ac_exeext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 eval "$as_ac_var=yes"
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.
$ac_ext >&5
15498 eval "$as_ac_var=no"
15500 rm -f conftest.err conftest.
$ac_objext \
15501 conftest
$ac_exeext conftest.
$ac_ext
15503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15505 if test `eval echo '${'$as_ac_var'}'` = yes; then
15506 cat >>confdefs.h
<<_ACEOF
15507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15512 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15513 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 ac_check_lib_save_LIBS
=$LIBS
15517 LIBS
="-lutil $LIBS"
15518 cat >conftest.
$ac_ext <<_ACEOF
15521 cat confdefs.h
>>conftest.
$ac_ext
15522 cat >>conftest.
$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15525 /* Override any gcc2 internal prototype to avoid an error. */
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15540 rm -f conftest.
$ac_objext conftest
$ac_exeext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15542 (eval $ac_link) 2>conftest.er1
15544 grep -v '^ *+' conftest.er1
>conftest.err
15546 cat conftest.err
>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try
='test -z "$ac_c_werror_flag"
15550 || test ! -s conftest.err'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; } &&
15556 { ac_try
='test -s conftest$ac_exeext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_cv_lib_util_forkpty
=yes
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.
$ac_ext >&5
15567 ac_cv_lib_util_forkpty
=no
15569 rm -f conftest.err conftest.
$ac_objext \
15570 conftest
$ac_exeext conftest.
$ac_ext
15571 LIBS
=$ac_check_lib_save_LIBS
15573 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15574 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15575 if test $ac_cv_lib_util_forkpty = yes; then
15576 cat >>confdefs.h
<<\_ACEOF
15577 #define HAVE_FORKPTY 1
15579 LIBS
="$LIBS -lutil"
15581 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15582 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15583 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 ac_check_lib_save_LIBS
=$LIBS
15588 cat >conftest.
$ac_ext <<_ACEOF
15591 cat confdefs.h
>>conftest.
$ac_ext
15592 cat >>conftest.
$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15595 /* Override any gcc2 internal prototype to avoid an error. */
15599 /* We use char because int might match the return type of a gcc2
15600 builtin and then its argument prototype would still apply. */
15610 rm -f conftest.
$ac_objext conftest
$ac_exeext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15612 (eval $ac_link) 2>conftest.er1
15614 grep -v '^ *+' conftest.er1
>conftest.err
15616 cat conftest.err
>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try
='test -z "$ac_c_werror_flag"
15620 || test ! -s conftest.err'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try
='test -s conftest$ac_exeext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_cv_lib_bsd_forkpty
=yes
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.
$ac_ext >&5
15637 ac_cv_lib_bsd_forkpty
=no
15639 rm -f conftest.err conftest.
$ac_objext \
15640 conftest
$ac_exeext conftest.
$ac_ext
15641 LIBS
=$ac_check_lib_save_LIBS
15643 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15644 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15645 if test $ac_cv_lib_bsd_forkpty = yes; then
15646 cat >>confdefs.h
<<\_ACEOF
15647 #define HAVE_FORKPTY 1
15660 # check for long file support functions
15667 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15669 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15670 echo "$as_me:$LINENO: checking for $ac_func" >&5
15671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15672 if eval "test \"\${$as_ac_var+set}\" = set"; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 cat >conftest.
$ac_ext <<_ACEOF
15678 cat confdefs.h
>>conftest.
$ac_ext
15679 cat >>conftest.
$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15683 #define $ac_func innocuous_$ac_func
15685 /* System header to define __stub macros and hopefully few prototypes,
15686 which can conflict with char $ac_func (); below.
15687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15688 <limits.h> exists even on freestanding compilers. */
15691 # include <limits.h>
15693 # include <assert.h>
15698 /* Override any gcc2 internal prototype to avoid an error. */
15703 /* We use char because int might match the return type of a gcc2
15704 builtin and then its argument prototype would still apply. */
15706 /* The GNU C library defines this for functions which it implements
15707 to always fail with ENOSYS. Some functions are actually named
15708 something starting with __ and the normal name is an alias. */
15709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15712 char (*f) () = $ac_func;
15721 return f != $ac_func;
15726 rm -f conftest.
$ac_objext conftest
$ac_exeext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15728 (eval $ac_link) 2>conftest.er1
15730 grep -v '^ *+' conftest.er1
>conftest.err
15732 cat conftest.err
>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try
='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try
='test -s conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 eval "$as_ac_var=yes"
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.
$ac_ext >&5
15753 eval "$as_ac_var=no"
15755 rm -f conftest.err conftest.
$ac_objext \
15756 conftest
$ac_exeext conftest.
$ac_ext
15758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15760 if test `eval echo '${'$as_ac_var'}'` = yes; then
15761 cat >>confdefs.h
<<_ACEOF
15762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15774 for ac_func
in dup2 getcwd strdup strerror memmove
15776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15777 echo "$as_me:$LINENO: checking for $ac_func" >&5
15778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15779 if eval "test \"\${$as_ac_var+set}\" = set"; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 cat >conftest.
$ac_ext <<_ACEOF
15785 cat confdefs.h
>>conftest.
$ac_ext
15786 cat >>conftest.
$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15790 #define $ac_func innocuous_$ac_func
15792 /* System header to define __stub macros and hopefully few prototypes,
15793 which can conflict with char $ac_func (); below.
15794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795 <limits.h> exists even on freestanding compilers. */
15798 # include <limits.h>
15800 # include <assert.h>
15805 /* Override any gcc2 internal prototype to avoid an error. */
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15813 /* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15819 char (*f) () = $ac_func;
15828 return f != $ac_func;
15833 rm -f conftest.
$ac_objext conftest
$ac_exeext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835 (eval $ac_link) 2>conftest.er1
15837 grep -v '^ *+' conftest.er1
>conftest.err
15839 cat conftest.err
>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try
='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try
='test -s conftest$ac_exeext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.
$ac_ext >&5
15860 eval "$as_ac_var=no"
15862 rm -f conftest.err conftest.
$ac_objext \
15863 conftest
$ac_exeext conftest.
$ac_ext
15865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15867 if test `eval echo '${'$as_ac_var'}'` = yes; then
15868 cat >>confdefs.h
<<_ACEOF
15869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15874 "$ac_func.$ac_objext" | \
15875 *" $ac_func.$ac_objext" | \
15876 "$ac_func.$ac_objext "* | \
15877 *" $ac_func.$ac_objext "* ) ;;
15878 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15886 for ac_func
in getpgrp
15888 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15889 echo "$as_me:$LINENO: checking for $ac_func" >&5
15890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15891 if eval "test \"\${$as_ac_var+set}\" = set"; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 cat >conftest.
$ac_ext <<_ACEOF
15897 cat confdefs.h
>>conftest.
$ac_ext
15898 cat >>conftest.
$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15902 #define $ac_func innocuous_$ac_func
15904 /* System header to define __stub macros and hopefully few prototypes,
15905 which can conflict with char $ac_func (); below.
15906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15907 <limits.h> exists even on freestanding compilers. */
15910 # include <limits.h>
15912 # include <assert.h>
15917 /* Override any gcc2 internal prototype to avoid an error. */
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15925 /* The GNU C library defines this for functions which it implements
15926 to always fail with ENOSYS. Some functions are actually named
15927 something starting with __ and the normal name is an alias. */
15928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15931 char (*f) () = $ac_func;
15940 return f != $ac_func;
15945 rm -f conftest.
$ac_objext conftest
$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>conftest.er1
15949 grep -v '^ *+' conftest.er1
>conftest.err
15951 cat conftest.err
>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try
='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try
='test -s conftest$ac_exeext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 eval "$as_ac_var=yes"
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.
$ac_ext >&5
15972 eval "$as_ac_var=no"
15974 rm -f conftest.err conftest.
$ac_objext \
15975 conftest
$ac_exeext conftest.
$ac_ext
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15979 if test `eval echo '${'$as_ac_var'}'` = yes; then
15980 cat >>confdefs.h
<<_ACEOF
15981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 cat >conftest.
$ac_ext <<_ACEOF
15986 cat confdefs.h
>>conftest.
$ac_ext
15987 cat >>conftest.
$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <unistd.h>
15998 rm -f conftest.
$ac_objext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>conftest.er1
16002 grep -v '^ *+' conftest.er1
>conftest.err
16004 cat conftest.err
>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try
='test -z "$ac_c_werror_flag"
16008 || test ! -s conftest.err'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try
='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16021 cat >>confdefs.h
<<\_ACEOF
16022 #define GETPGRP_HAVE_ARG 1
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.
$ac_ext >&5
16031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16037 for ac_func
in setpgrp
16039 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16040 echo "$as_me:$LINENO: checking for $ac_func" >&5
16041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16042 if eval "test \"\${$as_ac_var+set}\" = set"; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 cat >conftest.
$ac_ext <<_ACEOF
16048 cat confdefs.h
>>conftest.
$ac_ext
16049 cat >>conftest.
$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16053 #define $ac_func innocuous_$ac_func
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func (); below.
16057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16058 <limits.h> exists even on freestanding compilers. */
16061 # include <limits.h>
16063 # include <assert.h>
16068 /* Override any gcc2 internal prototype to avoid an error. */
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16082 char (*f) () = $ac_func;
16091 return f != $ac_func;
16096 rm -f conftest.
$ac_objext conftest
$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1
>conftest.err
16102 cat conftest.err
>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try
='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try
='test -s conftest$ac_exeext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 eval "$as_ac_var=yes"
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.
$ac_ext >&5
16123 eval "$as_ac_var=no"
16125 rm -f conftest.err conftest.
$ac_objext \
16126 conftest
$ac_exeext conftest.
$ac_ext
16128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16130 if test `eval echo '${'$as_ac_var'}'` = yes; then
16131 cat >>confdefs.h
<<_ACEOF
16132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16134 cat >conftest.
$ac_ext <<_ACEOF
16137 cat confdefs.h
>>conftest.
$ac_ext
16138 cat >>conftest.
$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 #include <unistd.h>
16149 rm -f conftest.
$ac_objext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16151 (eval $ac_compile) 2>conftest.er1
16153 grep -v '^ *+' conftest.er1
>conftest.err
16155 cat conftest.err
>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try
='test -z "$ac_c_werror_flag"
16159 || test ! -s conftest.err'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try
='test -s conftest.$ac_objext'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16172 cat >>confdefs.h
<<\_ACEOF
16173 #define SETPGRP_HAVE_ARG 1
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16188 for ac_func
in gettimeofday
16190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 echo "$as_me:$LINENO: checking for $ac_func" >&5
16192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16193 if eval "test \"\${$as_ac_var+set}\" = set"; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 cat >conftest.
$ac_ext <<_ACEOF
16199 cat confdefs.h
>>conftest.
$ac_ext
16200 cat >>conftest.
$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16212 # include <limits.h>
16214 # include <assert.h>
16219 /* Override any gcc2 internal prototype to avoid an error. */
16224 /* We use char because int might match the return type of a gcc2
16225 builtin and then its argument prototype would still apply. */
16227 /* The GNU C library defines this for functions which it implements
16228 to always fail with ENOSYS. Some functions are actually named
16229 something starting with __ and the normal name is an alias. */
16230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16233 char (*f) () = $ac_func;
16242 return f != $ac_func;
16247 rm -f conftest.
$ac_objext conftest
$ac_exeext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>conftest.er1
16251 grep -v '^ *+' conftest.er1
>conftest.err
16253 cat conftest.err
>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try
='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try
='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.
$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.err conftest.
$ac_objext \
16277 conftest
$ac_exeext conftest.
$ac_ext
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h
<<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285 cat >conftest.
$ac_ext <<_ACEOF
16288 cat confdefs.h
>>conftest.
$ac_ext
16289 cat >>conftest.
$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <sys/time.h>
16295 gettimeofday((struct timeval*)0,(struct timezone*)0);
16300 rm -f conftest.
$ac_objext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16302 (eval $ac_compile) 2>conftest.er1
16304 grep -v '^ *+' conftest.er1
>conftest.err
16306 cat conftest.err
>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try
='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try
='test -s conftest.$ac_objext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.
$ac_ext >&5
16328 cat >>confdefs.h
<<\_ACEOF
16329 #define GETTIMEOFDAY_NO_TZ 1
16334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16340 echo "$as_me:$LINENO: checking for major" >&5
16341 echo $ECHO_N "checking for major... $ECHO_C" >&6
16342 cat >conftest.
$ac_ext <<_ACEOF
16345 cat confdefs.h
>>conftest.
$ac_ext
16346 cat >>conftest.
$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 #if defined(MAJOR_IN_MKDEV)
16350 #include <sys/mkdev.h>
16351 #elif defined(MAJOR_IN_SYSMACROS)
16352 #include <sys/sysmacros.h>
16354 #include <sys/types.h>
16361 makedev(major(0),minor(0));
16367 rm -f conftest.
$ac_objext conftest
$ac_exeext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>conftest.er1
16371 grep -v '^ *+' conftest.er1
>conftest.err
16373 cat conftest.err
>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try
='test -z "$ac_c_werror_flag"
16377 || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try
='test -s conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16391 cat >>confdefs.h
<<\_ACEOF
16392 #define HAVE_DEVICE_MACROS 1
16395 echo "$as_me:$LINENO: result: yes" >&5
16396 echo "${ECHO_T}yes" >&6
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.
$ac_ext >&5
16403 echo "$as_me:$LINENO: result: no" >&5
16404 echo "${ECHO_T}no" >&6
16407 rm -f conftest.err conftest.
$ac_objext \
16408 conftest
$ac_exeext conftest.
$ac_ext
16410 # On OSF/1 V5.1, getaddrinfo is available, but a define
16411 # for [no]getaddrinfo in netdb.h.
16412 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16413 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16414 cat >conftest.
$ac_ext <<_ACEOF
16417 cat confdefs.h
>>conftest.
$ac_ext
16418 cat >>conftest.
$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16421 #include <sys/types.h>
16422 #include <sys/socket.h>
16430 getaddrinfo(NULL, NULL, NULL, NULL);
16436 rm -f conftest.
$ac_objext conftest
$ac_exeext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>conftest.er1
16440 grep -v '^ *+' conftest.er1
>conftest.err
16442 cat conftest.err
>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try
='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try
='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16459 echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6
16461 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16462 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16463 if test "$cross_compiling" = yes; then
16464 echo "$as_me:$LINENO: result: buggy" >&5
16465 echo "${ECHO_T}buggy" >&6
16466 buggygetaddrinfo
=yes
16468 cat >conftest.
$ac_ext <<_ACEOF
16471 cat confdefs.h
>>conftest.
$ac_ext
16472 cat >>conftest.
$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16475 #include <sys/types.h>
16477 #include <string.h>
16478 #include <sys/socket.h>
16479 #include <netinet/in.h>
16483 int passive, gaierr, inet4 = 0, inet6 = 0;
16484 struct addrinfo hints, *ai, *aitop;
16485 char straddr[INET6_ADDRSTRLEN], strport[16];
16487 for (passive = 0; passive <= 1; passive++) {
16488 memset(&hints, 0, sizeof(hints));
16489 hints.ai_family = AF_UNSPEC;
16490 hints.ai_flags = passive ? AI_PASSIVE : 0;
16491 hints.ai_socktype = SOCK_STREAM;
16492 hints.ai_protocol = IPPROTO_TCP;
16493 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16494 (void)gai_strerror(gaierr);
16497 for (ai = aitop; ai; ai = ai->ai_next) {
16498 if (ai->ai_addr == NULL ||
16499 ai->ai_addrlen == 0 ||
16500 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16501 straddr, sizeof(straddr), strport, sizeof(strport),
16502 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16505 switch (ai->ai_family) {
16507 if (strcmp(strport, "54321") != 0) {
16511 if (strcmp(straddr, "0.0.0.0") != 0) {
16515 if (strcmp(straddr, "127.0.0.1") != 0) {
16522 if (strcmp(strport, "54321") != 0) {
16526 if (strcmp(straddr, "::") != 0) {
16530 if (strcmp(straddr, "::1") != 0) {
16540 /* another family support? */
16546 if (!(inet4 == 0 || inet4 == 2))
16548 if (!(inet6 == 0 || inet6 == 2))
16552 freeaddrinfo(aitop);
16557 freeaddrinfo(aitop);
16562 rm -f conftest
$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564 (eval $ac_link) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 echo "$as_me:$LINENO: result: good" >&5
16574 echo "${ECHO_T}good" >&6
16575 buggygetaddrinfo
=no
16577 echo "$as_me: program exited with status $ac_status" >&5
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.
$ac_ext >&5
16581 ( exit $ac_status )
16582 echo "$as_me:$LINENO: result: buggy" >&5
16583 echo "${ECHO_T}buggy" >&6
16584 buggygetaddrinfo
=yes
16586 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.
$ac_ext >&5
16593 echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595 buggygetaddrinfo
=yes
16598 rm -f conftest.err conftest.
$ac_objext \
16599 conftest
$ac_exeext conftest.
$ac_ext
16601 if test "$buggygetaddrinfo" = "yes"; then
16602 if test "$ipv6" = "yes"; then
16603 echo 'Fatal: You must get working getaddrinfo() function.'
16604 echo ' or you can specify "--disable-ipv6"'.
16609 cat >>confdefs.h
<<\_ACEOF
16610 #define HAVE_GETADDRINFO 1
16615 for ac_func
in getnameinfo
16617 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618 echo "$as_me:$LINENO: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 cat >conftest.
$ac_ext <<_ACEOF
16626 cat confdefs.h
>>conftest.
$ac_ext
16627 cat >>conftest.
$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define $ac_func innocuous_$ac_func
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16639 # include <limits.h>
16641 # include <assert.h>
16646 /* Override any gcc2 internal prototype to avoid an error. */
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16660 char (*f) () = $ac_func;
16669 return f != $ac_func;
16674 rm -f conftest.
$ac_objext conftest
$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1
>conftest.err
16680 cat conftest.err
>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try
='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try
='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 eval "$as_ac_var=yes"
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.
$ac_ext >&5
16701 eval "$as_ac_var=no"
16703 rm -f conftest.err conftest.
$ac_objext \
16704 conftest
$ac_exeext conftest.
$ac_ext
16706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708 if test `eval echo '${'$as_ac_var'}'` = yes; then
16709 cat >>confdefs.h
<<_ACEOF
16710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 # checks for structures
16718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16720 if test "${ac_cv_header_time+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 cat >conftest.
$ac_ext <<_ACEOF
16726 cat confdefs.h
>>conftest.
$ac_ext
16727 cat >>conftest.
$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <sys/types.h>
16730 #include <sys/time.h>
16736 if ((struct tm *) 0)
16742 rm -f conftest.
$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>conftest.er1
16746 grep -v '^ *+' conftest.er1
>conftest.err
16748 cat conftest.err
>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try
='test -z "$ac_c_werror_flag"
16752 || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try
='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_header_time
=yes
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.
$ac_ext >&5
16769 ac_cv_header_time
=no
16771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16773 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16774 echo "${ECHO_T}$ac_cv_header_time" >&6
16775 if test $ac_cv_header_time = yes; then
16777 cat >>confdefs.h
<<\_ACEOF
16778 #define TIME_WITH_SYS_TIME 1
16783 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16785 if test "${ac_cv_struct_tm+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 cat >conftest.
$ac_ext <<_ACEOF
16791 cat confdefs.h
>>conftest.
$ac_ext
16792 cat >>conftest.
$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <sys/types.h>
16800 struct tm *tp; tp->tm_sec;
16805 rm -f conftest.
$ac_objext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807 (eval $ac_compile) 2>conftest.er1
16809 grep -v '^ *+' conftest.er1
>conftest.err
16811 cat conftest.err
>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try
='test -z "$ac_c_werror_flag"
16815 || test ! -s conftest.err'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try
='test -s conftest.$ac_objext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_cv_struct_tm
=time.h
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.
$ac_ext >&5
16832 ac_cv_struct_tm
=sys
/time.h
16834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16836 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16837 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16838 if test $ac_cv_struct_tm = sys
/time.h
; then
16840 cat >>confdefs.h
<<\_ACEOF
16841 #define TM_IN_SYS_TIME 1
16846 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16847 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16848 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 cat >conftest.
$ac_ext <<_ACEOF
16854 cat confdefs.h
>>conftest.
$ac_ext
16855 cat >>conftest.
$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <$ac_cv_struct_tm>
16864 static struct tm ac_aggr;
16865 if (ac_aggr.tm_zone)
16871 rm -f conftest.
$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16875 grep -v '^ *+' conftest.er1
>conftest.err
16877 cat conftest.err
>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try
='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try
='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_member_struct_tm_tm_zone
=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.
$ac_ext >&5
16898 cat >conftest.
$ac_ext <<_ACEOF
16901 cat confdefs.h
>>conftest.
$ac_ext
16902 cat >>conftest.
$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/types.h>
16905 #include <$ac_cv_struct_tm>
16911 static struct tm ac_aggr;
16912 if (sizeof ac_aggr.tm_zone)
16918 rm -f conftest.
$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16922 grep -v '^ *+' conftest.er1
>conftest.err
16924 cat conftest.err
>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try
='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try
='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_member_struct_tm_tm_zone
=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.
$ac_ext >&5
16945 ac_cv_member_struct_tm_tm_zone
=no
16947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16951 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16952 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16953 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16955 cat >>confdefs.h
<<_ACEOF
16956 #define HAVE_STRUCT_TM_TM_ZONE 1
16962 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16964 cat >>confdefs.h
<<\_ACEOF
16965 #define HAVE_TM_ZONE 1
16969 echo "$as_me:$LINENO: checking for tzname" >&5
16970 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16971 if test "${ac_cv_var_tzname+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 cat >conftest.
$ac_ext <<_ACEOF
16977 cat confdefs.h
>>conftest.
$ac_ext
16978 cat >>conftest.
$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16981 #ifndef tzname /* For SGI. */
16982 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16993 rm -f conftest.
$ac_objext conftest
$ac_exeext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16995 (eval $ac_link) 2>conftest.er1
16997 grep -v '^ *+' conftest.er1
>conftest.err
16999 cat conftest.err
>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try
='test -z "$ac_c_werror_flag"
17003 || test ! -s conftest.err'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try
='test -s conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_var_tzname
=yes
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.
$ac_ext >&5
17020 ac_cv_var_tzname
=no
17022 rm -f conftest.err conftest.
$ac_objext \
17023 conftest
$ac_exeext conftest.
$ac_ext
17025 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17026 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17027 if test $ac_cv_var_tzname = yes; then
17029 cat >>confdefs.h
<<\_ACEOF
17030 #define HAVE_TZNAME 1
17036 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17037 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17038 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.
$ac_ext <<_ACEOF
17044 cat confdefs.h
>>conftest.
$ac_ext
17045 cat >>conftest.
$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17051 static struct stat ac_aggr;
17052 if (ac_aggr.st_rdev)
17058 rm -f conftest.
$ac_objext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060 (eval $ac_compile) 2>conftest.er1
17062 grep -v '^ *+' conftest.er1
>conftest.err
17064 cat conftest.err
>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try
='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try
='test -s conftest.$ac_objext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_cv_member_struct_stat_st_rdev
=yes
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 cat >conftest.
$ac_ext <<_ACEOF
17088 cat confdefs.h
>>conftest.
$ac_ext
17089 cat >>conftest.
$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 $ac_includes_default
17095 static struct stat ac_aggr;
17096 if (sizeof ac_aggr.st_rdev)
17102 rm -f conftest.
$ac_objext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>conftest.er1
17106 grep -v '^ *+' conftest.er1
>conftest.err
17108 cat conftest.err
>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try
='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try
='test -s conftest.$ac_objext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_member_struct_stat_st_rdev
=yes
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.
$ac_ext >&5
17129 ac_cv_member_struct_stat_st_rdev
=no
17131 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17135 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17137 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17139 cat >>confdefs.h
<<_ACEOF
17140 #define HAVE_STRUCT_STAT_ST_RDEV 1
17146 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17147 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17148 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.
$ac_ext <<_ACEOF
17154 cat confdefs.h
>>conftest.
$ac_ext
17155 cat >>conftest.
$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 $ac_includes_default
17161 static struct stat ac_aggr;
17162 if (ac_aggr.st_blksize)
17168 rm -f conftest.
$ac_objext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170 (eval $ac_compile) 2>conftest.er1
17172 grep -v '^ *+' conftest.er1
>conftest.err
17174 cat conftest.err
>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try
='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try
='test -s conftest.$ac_objext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_member_struct_stat_st_blksize
=yes
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.
$ac_ext >&5
17195 cat >conftest.
$ac_ext <<_ACEOF
17198 cat confdefs.h
>>conftest.
$ac_ext
17199 cat >>conftest.
$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17205 static struct stat ac_aggr;
17206 if (sizeof ac_aggr.st_blksize)
17212 rm -f conftest.
$ac_objext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>conftest.er1
17216 grep -v '^ *+' conftest.er1
>conftest.err
17218 cat conftest.err
>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try
='test -z "$ac_c_werror_flag"
17222 || test ! -s conftest.err'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try
='test -s conftest.$ac_objext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_member_struct_stat_st_blksize
=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.
$ac_ext >&5
17239 ac_cv_member_struct_stat_st_blksize
=no
17241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17247 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17249 cat >>confdefs.h
<<_ACEOF
17250 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17256 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17257 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17258 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.
$ac_ext <<_ACEOF
17264 cat confdefs.h
>>conftest.
$ac_ext
17265 cat >>conftest.
$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17271 static struct stat ac_aggr;
17272 if (ac_aggr.st_flags)
17278 rm -f conftest.
$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280 (eval $ac_compile) 2>conftest.er1
17282 grep -v '^ *+' conftest.er1
>conftest.err
17284 cat conftest.err
>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try
='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try
='test -s conftest.$ac_objext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_member_struct_stat_st_flags
=yes
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.
$ac_ext >&5
17305 cat >conftest.
$ac_ext <<_ACEOF
17308 cat confdefs.h
>>conftest.
$ac_ext
17309 cat >>conftest.
$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17315 static struct stat ac_aggr;
17316 if (sizeof ac_aggr.st_flags)
17322 rm -f conftest.
$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17326 grep -v '^ *+' conftest.er1
>conftest.err
17328 cat conftest.err
>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try
='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try
='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_member_struct_stat_st_flags
=yes
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.
$ac_ext >&5
17349 ac_cv_member_struct_stat_st_flags
=no
17351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17355 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17356 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17357 if test $ac_cv_member_struct_stat_st_flags = yes; then
17359 cat >>confdefs.h
<<_ACEOF
17360 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17366 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17367 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17368 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 cat >conftest.
$ac_ext <<_ACEOF
17374 cat confdefs.h
>>conftest.
$ac_ext
17375 cat >>conftest.
$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 $ac_includes_default
17381 static struct stat ac_aggr;
17382 if (ac_aggr.st_gen)
17388 rm -f conftest.
$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1
>conftest.err
17394 cat conftest.err
>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try
='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try
='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_member_struct_stat_st_gen
=yes
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.
$ac_ext >&5
17415 cat >conftest.
$ac_ext <<_ACEOF
17418 cat confdefs.h
>>conftest.
$ac_ext
17419 cat >>conftest.
$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 $ac_includes_default
17425 static struct stat ac_aggr;
17426 if (sizeof ac_aggr.st_gen)
17432 rm -f conftest.
$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17436 grep -v '^ *+' conftest.er1
>conftest.err
17438 cat conftest.err
>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try
='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try
='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_member_struct_stat_st_gen
=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.
$ac_ext >&5
17459 ac_cv_member_struct_stat_st_gen
=no
17461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17465 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17466 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17467 if test $ac_cv_member_struct_stat_st_gen = yes; then
17469 cat >>confdefs.h
<<_ACEOF
17470 #define HAVE_STRUCT_STAT_ST_GEN 1
17476 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17477 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17478 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 cat >conftest.
$ac_ext <<_ACEOF
17484 cat confdefs.h
>>conftest.
$ac_ext
17485 cat >>conftest.
$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17491 static struct stat ac_aggr;
17492 if (ac_aggr.st_birthtime)
17498 rm -f conftest.
$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>conftest.er1
17502 grep -v '^ *+' conftest.er1
>conftest.err
17504 cat conftest.err
>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try
='test -z "$ac_c_werror_flag"
17508 || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try
='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_member_struct_stat_st_birthtime
=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.
$ac_ext >&5
17525 cat >conftest.
$ac_ext <<_ACEOF
17528 cat confdefs.h
>>conftest.
$ac_ext
17529 cat >>conftest.
$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17535 static struct stat ac_aggr;
17536 if (sizeof ac_aggr.st_birthtime)
17542 rm -f conftest.
$ac_objext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>conftest.er1
17546 grep -v '^ *+' conftest.er1
>conftest.err
17548 cat conftest.err
>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try
='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try
='test -s conftest.$ac_objext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_cv_member_struct_stat_st_birthtime
=yes
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.
$ac_ext >&5
17569 ac_cv_member_struct_stat_st_birthtime
=no
17571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17576 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17577 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17579 cat >>confdefs.h
<<_ACEOF
17580 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17586 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17587 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17588 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.
$ac_ext <<_ACEOF
17594 cat confdefs.h
>>conftest.
$ac_ext
17595 cat >>conftest.
$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 $ac_includes_default
17601 static struct stat ac_aggr;
17602 if (ac_aggr.st_blocks)
17608 rm -f conftest.
$ac_objext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17610 (eval $ac_compile) 2>conftest.er1
17612 grep -v '^ *+' conftest.er1
>conftest.err
17614 cat conftest.err
>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try
='test -z "$ac_c_werror_flag"
17618 || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try
='test -s conftest.$ac_objext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_member_struct_stat_st_blocks
=yes
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.
$ac_ext >&5
17635 cat >conftest.
$ac_ext <<_ACEOF
17638 cat confdefs.h
>>conftest.
$ac_ext
17639 cat >>conftest.
$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17645 static struct stat ac_aggr;
17646 if (sizeof ac_aggr.st_blocks)
17652 rm -f conftest.
$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1
>conftest.err
17658 cat conftest.err
>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try
='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try
='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_member_struct_stat_st_blocks
=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.
$ac_ext >&5
17679 ac_cv_member_struct_stat_st_blocks
=no
17681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17687 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17689 cat >>confdefs.h
<<_ACEOF
17690 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17694 cat >>confdefs.h
<<\_ACEOF
17695 #define HAVE_ST_BLOCKS 1
17700 "fileblocks.$ac_objext" | \
17701 *" fileblocks.$ac_objext" | \
17702 "fileblocks.$ac_objext "* | \
17703 *" fileblocks.$ac_objext "* ) ;;
17704 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17711 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17712 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17713 if test "${ac_cv_header_time_altzone+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 cat >conftest.
$ac_ext <<_ACEOF
17719 cat confdefs.h
>>conftest.
$ac_ext
17720 cat >>conftest.
$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17731 rm -f conftest.
$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17735 grep -v '^ *+' conftest.er1
>conftest.err
17737 cat conftest.err
>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try
='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try
='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_cv_header_time_altzone
=yes
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.
$ac_ext >&5
17758 ac_cv_header_time_altzone
=no
17760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17763 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17764 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17765 if test $ac_cv_header_time_altzone = yes; then
17767 cat >>confdefs.h
<<\_ACEOF
17768 #define HAVE_ALTZONE 1
17774 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17775 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17776 cat >conftest.
$ac_ext <<_ACEOF
17779 cat confdefs.h
>>conftest.
$ac_ext
17780 cat >>conftest.
$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17783 #include <sys/types.h>
17784 #include <sys/select.h>
17785 #include <sys/time.h>
17795 rm -f conftest.
$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1
>conftest.err
17801 cat conftest.err
>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try
='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try
='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17819 cat >>confdefs.h
<<\_ACEOF
17820 #define SYS_SELECT_WITH_SYS_TIME 1
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.
$ac_ext >&5
17830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17831 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17832 echo "${ECHO_T}$was_it_defined" >&6
17834 echo "$as_me:$LINENO: checking for addrinfo" >&5
17835 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17836 if test "${ac_cv_struct_addrinfo+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 cat >conftest.
$ac_ext <<_ACEOF
17842 cat confdefs.h
>>conftest.
$ac_ext
17843 cat >>conftest.
$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17846 # include <netdb.h>
17855 rm -f conftest.
$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17859 grep -v '^ *+' conftest.er1
>conftest.err
17861 cat conftest.err
>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try
='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try
='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_cv_struct_addrinfo
=yes
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.
$ac_ext >&5
17882 ac_cv_struct_addrinfo
=no
17884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17887 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17888 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17889 if test $ac_cv_struct_addrinfo = yes; then
17891 cat >>confdefs.h
<<\_ACEOF
17892 #define HAVE_ADDRINFO 1
17897 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17898 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17899 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 cat >conftest.
$ac_ext <<_ACEOF
17905 cat confdefs.h
>>conftest.
$ac_ext
17906 cat >>conftest.
$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17909 # include <sys/types.h>
17910 # include <sys/socket.h>
17914 struct sockaddr_storage s
17919 rm -f conftest.
$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17923 grep -v '^ *+' conftest.er1
>conftest.err
17925 cat conftest.err
>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try
='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try
='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_cv_struct_sockaddr_storage
=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.
$ac_ext >&5
17946 ac_cv_struct_sockaddr_storage
=no
17948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17952 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17953 if test $ac_cv_struct_sockaddr_storage = yes; then
17955 cat >>confdefs.h
<<\_ACEOF
17956 #define HAVE_SOCKADDR_STORAGE 1
17961 # checks for compiler characteristics
17964 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17965 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17966 if test "${ac_cv_c_char_unsigned+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 cat >conftest.
$ac_ext <<_ACEOF
17972 cat confdefs.h
>>conftest.
$ac_ext
17973 cat >>conftest.
$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 $ac_includes_default
17979 static int test_array [1 - 2 * !(((char) -1) < 0)];
17986 rm -f conftest.
$ac_objext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>conftest.er1
17990 grep -v '^ *+' conftest.er1
>conftest.err
17992 cat conftest.err
>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try
='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try
='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_c_char_unsigned
=no
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.
$ac_ext >&5
18013 ac_cv_c_char_unsigned
=yes
18015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18017 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18018 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18019 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18020 cat >>confdefs.h
<<\_ACEOF
18021 #define __CHAR_UNSIGNED__ 1
18026 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18027 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18028 if test "${ac_cv_c_const+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 cat >conftest.
$ac_ext <<_ACEOF
18034 cat confdefs.h
>>conftest.
$ac_ext
18035 cat >>conftest.
$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18041 /* FIXME: Include the comments suggested by Paul. */
18042 #ifndef __cplusplus
18043 /* Ultrix mips cc rejects this. */
18044 typedef int charset[2];
18046 /* SunOS 4.1.1 cc rejects this. */
18047 char const *const *ccp;
18049 /* NEC SVR4.0.2 mips cc rejects this. */
18050 struct point {int x, y;};
18051 static struct point const zero = {0,0};
18052 /* AIX XL C 1.02.0.0 rejects this.
18053 It does not let you subtract one const X* pointer from another in
18054 an arm of an if-expression whose if-part is not a constant
18056 const char *g = "string";
18057 ccp = &g + (g ? g-g : 0);
18058 /* HPUX 7.0 cc rejects these. */
18061 ccp = (char const *const *) p;
18062 { /* SCO 3.2v4 cc rejects this. */
18064 char const *s = 0 ? (char *) 0 : (char const *) 0;
18068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18069 int x[] = {25, 17};
18070 const int *foo = &x[0];
18073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18074 typedef const int *iptr;
18078 { /* AIX XL C 1.02.0.0 rejects this saying
18079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18080 struct s { int j; const int *ap[3]; };
18081 struct s *b; b->j = 5;
18083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18084 const int foo = 10;
18092 rm -f conftest.
$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1
>conftest.err
18098 cat conftest.err
>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try
='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try
='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.
$ac_ext >&5
18121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18124 echo "${ECHO_T}$ac_cv_c_const" >&6
18125 if test $ac_cv_c_const = no
; then
18127 cat >>confdefs.h
<<\_ACEOF
18135 echo "$as_me:$LINENO: checking for working volatile" >&5
18136 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18137 cat >conftest.
$ac_ext <<_ACEOF
18140 cat confdefs.h
>>conftest.
$ac_ext
18141 cat >>conftest.
$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18147 volatile int x; x = 0;
18152 rm -f conftest.
$ac_objext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>conftest.er1
18156 grep -v '^ *+' conftest.er1
>conftest.err
18158 cat conftest.err
>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try
='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try
='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.
$ac_ext >&5
18180 cat >>confdefs.h
<<\_ACEOF
18186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18187 echo "$as_me:$LINENO: result: $works" >&5
18188 echo "${ECHO_T}$works" >&6
18191 echo "$as_me:$LINENO: checking for working signed char" >&5
18192 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18193 cat >conftest.
$ac_ext <<_ACEOF
18196 cat confdefs.h
>>conftest.
$ac_ext
18197 cat >>conftest.
$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18208 rm -f conftest.
$ac_objext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18210 (eval $ac_compile) 2>conftest.er1
18212 grep -v '^ *+' conftest.er1
>conftest.err
18214 cat conftest.err
>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try
='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try
='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.
$ac_ext >&5
18236 cat >>confdefs.h
<<\_ACEOF
18242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18243 echo "$as_me:$LINENO: result: $works" >&5
18244 echo "${ECHO_T}$works" >&6
18247 echo "$as_me:$LINENO: checking for prototypes" >&5
18248 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18249 cat >conftest.
$ac_ext <<_ACEOF
18252 cat confdefs.h
>>conftest.
$ac_ext
18253 cat >>conftest.
$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 int foo(int x) { return 0; }
18264 rm -f conftest.
$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18268 grep -v '^ *+' conftest.er1
>conftest.err
18270 cat conftest.err
>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try
='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try
='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18288 cat >>confdefs.h
<<\_ACEOF
18289 #define HAVE_PROTOTYPES 1
18292 have_prototypes
=yes
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.
$ac_ext >&5
18299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18300 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18301 echo "${ECHO_T}$have_prototypes" >&6
18304 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18305 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18306 cat >conftest.
$ac_ext <<_ACEOF
18309 cat confdefs.h
>>conftest.
$ac_ext
18310 cat >>conftest.
$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 #include <stdarg.h>
18314 int foo(int x, ...) {
18318 va_arg(va, char *);
18319 va_arg(va, double);
18326 return foo(10, "", 3.14);
18331 rm -f conftest.
$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18335 grep -v '^ *+' conftest.er1
>conftest.err
18337 cat conftest.err
>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try
='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try
='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18355 cat >>confdefs.h
<<\_ACEOF
18356 #define HAVE_STDARG_PROTOTYPES 1
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18367 echo "$as_me:$LINENO: result: $works" >&5
18368 echo "${ECHO_T}$works" >&6
18370 # check for socketpair
18371 echo "$as_me:$LINENO: checking for socketpair" >&5
18372 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18373 cat >conftest.
$ac_ext <<_ACEOF
18376 cat confdefs.h
>>conftest.
$ac_ext
18377 cat >>conftest.
$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 #include <sys/types.h>
18381 #include <sys/socket.h>
18391 rm -f conftest.
$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393 (eval $ac_compile) 2>conftest.er1
18395 grep -v '^ *+' conftest.er1
>conftest.err
18397 cat conftest.err
>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try
='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try
='test -s conftest.$ac_objext'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18414 cat >>confdefs.h
<<\_ACEOF
18415 #define HAVE_SOCKETPAIR 1
18418 echo "$as_me:$LINENO: result: yes" >&5
18419 echo "${ECHO_T}yes" >&6
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.
$ac_ext >&5
18424 echo "$as_me:$LINENO: result: no" >&5
18425 echo "${ECHO_T}no" >&6
18428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18430 # check if sockaddr has sa_len member
18431 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18432 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18433 cat >conftest.
$ac_ext <<_ACEOF
18436 cat confdefs.h
>>conftest.
$ac_ext
18437 cat >>conftest.
$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include <sys/types.h>
18440 #include <sys/socket.h>
18450 rm -f conftest.
$ac_objext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18452 (eval $ac_compile) 2>conftest.er1
18454 grep -v '^ *+' conftest.er1
>conftest.err
18456 cat conftest.err
>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try
='test -z "$ac_c_werror_flag"
18460 || test ! -s conftest.err'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try
='test -s conftest.$ac_objext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 echo "$as_me:$LINENO: result: yes" >&5
18473 echo "${ECHO_T}yes" >&6
18475 cat >>confdefs.h
<<\_ACEOF
18476 #define HAVE_SOCKADDR_SA_LEN 1
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.
$ac_ext >&5
18483 echo "$as_me:$LINENO: result: no" >&5
18484 echo "${ECHO_T}no" >&6
18486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18488 va_list_is_array
=no
18489 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18490 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18491 cat >conftest.
$ac_ext <<_ACEOF
18494 cat confdefs.h
>>conftest.
$ac_ext
18495 cat >>conftest.
$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 #ifdef HAVE_STDARG_PROTOTYPES
18499 #include <stdarg.h>
18501 #include <varargs.h>
18507 va_list list1, list2; list1 = list2;
18512 rm -f conftest.
$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514 (eval $ac_compile) 2>conftest.er1
18516 grep -v '^ *+' conftest.er1
>conftest.err
18518 cat conftest.err
>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try
='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try
='test -s conftest.$ac_objext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.
$ac_ext >&5
18541 cat >>confdefs.h
<<\_ACEOF
18542 #define VA_LIST_IS_ARRAY 1
18545 va_list_is_array
=yes
18548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18549 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18550 echo "${ECHO_T}$va_list_is_array" >&6
18552 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18556 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18557 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18558 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 cat >conftest.
$ac_ext <<_ACEOF
18564 cat confdefs.h
>>conftest.
$ac_ext
18565 cat >>conftest.
$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18569 #define gethostbyname_r innocuous_gethostbyname_r
18571 /* System header to define __stub macros and hopefully few prototypes,
18572 which can conflict with char gethostbyname_r (); below.
18573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18574 <limits.h> exists even on freestanding compilers. */
18577 # include <limits.h>
18579 # include <assert.h>
18582 #undef gethostbyname_r
18584 /* Override any gcc2 internal prototype to avoid an error. */
18589 /* We use char because int might match the return type of a gcc2
18590 builtin and then its argument prototype would still apply. */
18591 char gethostbyname_r ();
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18598 char (*f) () = gethostbyname_r;
18607 return f != gethostbyname_r;
18612 rm -f conftest.
$ac_objext conftest
$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>conftest.er1
18616 grep -v '^ *+' conftest.er1
>conftest.err
18618 cat conftest.err
>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try
='test -z "$ac_c_werror_flag"
18622 || test ! -s conftest.err'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try
='test -s conftest$ac_exeext'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_func_gethostbyname_r
=yes
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.
$ac_ext >&5
18639 ac_cv_func_gethostbyname_r
=no
18641 rm -f conftest.err conftest.
$ac_objext \
18642 conftest
$ac_exeext conftest.
$ac_ext
18644 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18645 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18646 if test $ac_cv_func_gethostbyname_r = yes; then
18648 cat >>confdefs.h
<<\_ACEOF
18649 #define HAVE_GETHOSTBYNAME_R 1
18652 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18653 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18655 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18656 cat >conftest.
$ac_ext <<_ACEOF
18659 cat confdefs.h
>>conftest.
$ac_ext
18660 cat >>conftest.
$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18663 # include <netdb.h>
18670 struct hostent *he, *res;
18675 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18681 rm -f conftest.
$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683 (eval $ac_compile) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try
='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try
='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18704 cat >>confdefs.h
<<\_ACEOF
18705 #define HAVE_GETHOSTBYNAME_R 1
18709 cat >>confdefs.h
<<\_ACEOF
18710 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18713 echo "$as_me:$LINENO: result: yes" >&5
18714 echo "${ECHO_T}yes" >&6
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.
$ac_ext >&5
18721 echo "$as_me:$LINENO: result: no" >&5
18722 echo "${ECHO_T}no" >&6
18723 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18724 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18725 cat >conftest.
$ac_ext <<_ACEOF
18728 cat confdefs.h
>>conftest.
$ac_ext
18729 cat >>conftest.
$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18732 # include <netdb.h>
18739 struct hostent *he;
18744 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18750 rm -f conftest.
$ac_objext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18754 grep -v '^ *+' conftest.er1
>conftest.err
18756 cat conftest.err
>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try
='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try
='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18773 cat >>confdefs.h
<<\_ACEOF
18774 #define HAVE_GETHOSTBYNAME_R 1
18778 cat >>confdefs.h
<<\_ACEOF
18779 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18782 echo "$as_me:$LINENO: result: yes" >&5
18783 echo "${ECHO_T}yes" >&6
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.
$ac_ext >&5
18790 echo "$as_me:$LINENO: result: no" >&5
18791 echo "${ECHO_T}no" >&6
18792 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18793 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18794 cat >conftest.
$ac_ext <<_ACEOF
18797 cat confdefs.h
>>conftest.
$ac_ext
18798 cat >>conftest.
$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 # include <netdb.h>
18808 struct hostent *he;
18809 struct hostent_data data;
18811 (void) gethostbyname_r(name, he, &data);
18817 rm -f conftest.
$ac_objext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819 (eval $ac_compile) 2>conftest.er1
18821 grep -v '^ *+' conftest.er1
>conftest.err
18823 cat conftest.err
>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try
='test -z "$ac_c_werror_flag"
18827 || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try
='test -s conftest.$ac_objext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18840 cat >>confdefs.h
<<\_ACEOF
18841 #define HAVE_GETHOSTBYNAME_R 1
18845 cat >>confdefs.h
<<\_ACEOF
18846 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18849 echo "$as_me:$LINENO: result: yes" >&5
18850 echo "${ECHO_T}yes" >&6
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.
$ac_ext >&5
18857 echo "$as_me:$LINENO: result: no" >&5
18858 echo "${ECHO_T}no" >&6
18861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18873 for ac_func
in gethostbyname
18875 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18876 echo "$as_me:$LINENO: checking for $ac_func" >&5
18877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18878 if eval "test \"\${$as_ac_var+set}\" = set"; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cat >conftest.
$ac_ext <<_ACEOF
18884 cat confdefs.h
>>conftest.
$ac_ext
18885 cat >>conftest.
$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18889 #define $ac_func innocuous_$ac_func
18891 /* System header to define __stub macros and hopefully few prototypes,
18892 which can conflict with char $ac_func (); below.
18893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18894 <limits.h> exists even on freestanding compilers. */
18897 # include <limits.h>
18899 # include <assert.h>
18904 /* Override any gcc2 internal prototype to avoid an error. */
18909 /* We use char because int might match the return type of a gcc2
18910 builtin and then its argument prototype would still apply. */
18912 /* The GNU C library defines this for functions which it implements
18913 to always fail with ENOSYS. Some functions are actually named
18914 something starting with __ and the normal name is an alias. */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18918 char (*f) () = $ac_func;
18927 return f != $ac_func;
18932 rm -f conftest.
$ac_objext conftest
$ac_exeext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18934 (eval $ac_link) 2>conftest.er1
18936 grep -v '^ *+' conftest.er1
>conftest.err
18938 cat conftest.err
>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try
='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try
='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 eval "$as_ac_var=yes"
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.
$ac_ext >&5
18959 eval "$as_ac_var=no"
18961 rm -f conftest.err conftest.
$ac_objext \
18962 conftest
$ac_exeext conftest.
$ac_ext
18964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18966 if test `eval echo '${'$as_ac_var'}'` = yes; then
18967 cat >>confdefs.h
<<_ACEOF
18968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18983 # checks for system services
18986 # Linux requires this for correct f.p. operations
18987 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18988 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18989 if test "${ac_cv_func___fpu_control+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 cat >conftest.
$ac_ext <<_ACEOF
18995 cat confdefs.h
>>conftest.
$ac_ext
18996 cat >>conftest.
$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18998 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19000 #define __fpu_control innocuous___fpu_control
19002 /* System header to define __stub macros and hopefully few prototypes,
19003 which can conflict with char __fpu_control (); below.
19004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19005 <limits.h> exists even on freestanding compilers. */
19008 # include <limits.h>
19010 # include <assert.h>
19013 #undef __fpu_control
19015 /* Override any gcc2 internal prototype to avoid an error. */
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022 char __fpu_control ();
19023 /* The GNU C library defines this for functions which it implements
19024 to always fail with ENOSYS. Some functions are actually named
19025 something starting with __ and the normal name is an alias. */
19026 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19029 char (*f) () = __fpu_control;
19038 return f != __fpu_control;
19043 rm -f conftest.
$ac_objext conftest
$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19047 grep -v '^ *+' conftest.er1
>conftest.err
19049 cat conftest.err
>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try
='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try
='test -s conftest$ac_exeext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_func___fpu_control
=yes
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.
$ac_ext >&5
19070 ac_cv_func___fpu_control
=no
19072 rm -f conftest.err conftest.
$ac_objext \
19073 conftest
$ac_exeext conftest.
$ac_ext
19075 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19076 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19077 if test $ac_cv_func___fpu_control = yes; then
19081 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19082 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19083 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 ac_check_lib_save_LIBS
=$LIBS
19087 LIBS
="-lieee $LIBS"
19088 cat >conftest.
$ac_ext <<_ACEOF
19091 cat confdefs.h
>>conftest.
$ac_ext
19092 cat >>conftest.
$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 /* Override any gcc2 internal prototype to avoid an error. */
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char __fpu_control ();
19110 rm -f conftest.
$ac_objext conftest
$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1
>conftest.err
19116 cat conftest.err
>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try
='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try
='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_lib_ieee___fpu_control
=yes
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.
$ac_ext >&5
19137 ac_cv_lib_ieee___fpu_control
=no
19139 rm -f conftest.err conftest.
$ac_objext \
19140 conftest
$ac_exeext conftest.
$ac_ext
19141 LIBS
=$ac_check_lib_save_LIBS
19143 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19144 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19145 if test $ac_cv_lib_ieee___fpu_control = yes; then
19146 cat >>confdefs.h
<<_ACEOF
19147 #define HAVE_LIBIEEE 1
19150 LIBS
="-lieee $LIBS"
19158 # Check for --with-fpectl
19159 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19160 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19162 # Check whether --with-fpectl or --without-fpectl was given.
19163 if test "${with_fpectl+set}" = set; then
19164 withval
="$with_fpectl"
19166 if test "$withval" != no
19169 cat >>confdefs.h
<<\_ACEOF
19170 #define WANT_SIGFPE_HANDLER 1
19173 echo "$as_me:$LINENO: result: yes" >&5
19174 echo "${ECHO_T}yes" >&6
19175 else echo "$as_me:$LINENO: result: no" >&5
19176 echo "${ECHO_T}no" >&6
19179 echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6
19183 # check for --with-libm=...
19185 case $ac_sys_system in
19190 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19191 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19193 # Check whether --with-libm or --without-libm was given.
19194 if test "${with_libm+set}" = set; then
19195 withval
="$with_libm"
19197 if test "$withval" = no
19199 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19200 echo "${ECHO_T}force LIBM empty" >&6
19201 elif test "$withval" != yes
19203 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19204 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19205 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19206 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19207 { (exit 1); exit 1; }; }
19210 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19211 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19214 # check for --with-libc=...
19216 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19217 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19219 # Check whether --with-libc or --without-libc was given.
19220 if test "${with_libc+set}" = set; then
19221 withval
="$with_libc"
19223 if test "$withval" = no
19225 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19226 echo "${ECHO_T}force LIBC empty" >&6
19227 elif test "$withval" != yes
19229 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19230 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19231 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19232 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19233 { (exit 1); exit 1; }; }
19236 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19237 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19240 # check for hypot() in math library
19244 for ac_func
in hypot
19246 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19247 echo "$as_me:$LINENO: checking for $ac_func" >&5
19248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_var+set}\" = set"; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 cat >conftest.
$ac_ext <<_ACEOF
19255 cat confdefs.h
>>conftest.
$ac_ext
19256 cat >>conftest.
$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19260 #define $ac_func innocuous_$ac_func
19262 /* System header to define __stub macros and hopefully few prototypes,
19263 which can conflict with char $ac_func (); below.
19264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19265 <limits.h> exists even on freestanding compilers. */
19268 # include <limits.h>
19270 # include <assert.h>
19275 /* Override any gcc2 internal prototype to avoid an error. */
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19289 char (*f) () = $ac_func;
19298 return f != $ac_func;
19303 rm -f conftest.
$ac_objext conftest
$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1
>conftest.err
19309 cat conftest.err
>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try
='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try
='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 eval "$as_ac_var=yes"
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.
$ac_ext >&5
19330 eval "$as_ac_var=no"
19332 rm -f conftest.err conftest.
$ac_objext \
19333 conftest
$ac_exeext conftest.
$ac_ext
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19337 if test `eval echo '${'$as_ac_var'}'` = yes; then
19338 cat >>confdefs.h
<<_ACEOF
19339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19344 "$ac_func.$ac_objext" | \
19345 *" $ac_func.$ac_objext" | \
19346 "$ac_func.$ac_objext "* | \
19347 *" $ac_func.$ac_objext "* ) ;;
19348 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19357 # check for wchar.h
19358 if test "${ac_cv_header_wchar_h+set}" = set; then
19359 echo "$as_me:$LINENO: checking for wchar.h" >&5
19360 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19361 if test "${ac_cv_header_wchar_h+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19365 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19367 # Is the header compilable?
19368 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19369 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19370 cat >conftest.
$ac_ext <<_ACEOF
19373 cat confdefs.h
>>conftest.
$ac_ext
19374 cat >>conftest.
$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19379 rm -f conftest.
$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1
>conftest.err
19385 cat conftest.err
>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try
='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try
='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_header_compiler
=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.
$ac_ext >&5
19406 ac_header_compiler
=no
19408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19410 echo "${ECHO_T}$ac_header_compiler" >&6
19412 # Is the header present?
19413 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19414 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19415 cat >conftest.
$ac_ext <<_ACEOF
19418 cat confdefs.h
>>conftest.
$ac_ext
19419 cat >>conftest.
$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1
>conftest.err
19428 cat conftest.err
>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } >/dev
/null
; then
19431 if test -s conftest.err
; then
19432 ac_cpp_err
=$ac_c_preproc_warn_flag
19433 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19440 if test -z "$ac_cpp_err"; then
19441 ac_header_preproc
=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.
$ac_ext >&5
19446 ac_header_preproc
=no
19448 rm -f conftest.err conftest.
$ac_ext
19449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19450 echo "${ECHO_T}$ac_header_preproc" >&6
19452 # So? What about this header?
19453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19456 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19458 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19459 ac_header_preproc
=yes
19462 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19463 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19465 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19467 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19469 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19471 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19473 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19476 ## ------------------------------------------------ ##
19477 ## Report this to http://www.python.org/python-bugs ##
19478 ## ------------------------------------------------ ##
19481 sed "s/^/$as_me: WARNING: /" >&2
19484 echo "$as_me:$LINENO: checking for wchar.h" >&5
19485 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19486 if test "${ac_cv_header_wchar_h+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 ac_cv_header_wchar_h
=$ac_header_preproc
19491 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19492 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19495 if test $ac_cv_header_wchar_h = yes; then
19498 cat >>confdefs.h
<<\_ACEOF
19499 #define HAVE_WCHAR_H 1
19511 # determine wchar_t size
19512 if test "$wchar_h" = yes
19514 echo "$as_me:$LINENO: checking for wchar_t" >&5
19515 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19516 if test "${ac_cv_type_wchar_t+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 cat >conftest.
$ac_ext <<_ACEOF
19522 cat confdefs.h
>>conftest.
$ac_ext
19523 cat >>conftest.
$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19532 if (sizeof (wchar_t))
19538 rm -f conftest.
$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1
>conftest.err
19544 cat conftest.err
>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try
='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try
='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_type_wchar_t
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 ac_cv_type_wchar_t
=no
19567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19570 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19572 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19573 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19574 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 if test "$ac_cv_type_wchar_t" = yes; then
19578 # The cast to unsigned long works around a bug in the HP C Compiler
19579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19581 # This bug is HP SR number 8606223364.
19582 if test "$cross_compiling" = yes; then
19583 # Depending upon the size, compute the lo and hi bounds.
19584 cat >conftest.
$ac_ext <<_ACEOF
19587 cat confdefs.h
>>conftest.
$ac_ext
19588 cat >>conftest.
$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19595 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19602 rm -f conftest.
$ac_objext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604 (eval $ac_compile) 2>conftest.er1
19606 grep -v '^ *+' conftest.er1
>conftest.err
19608 cat conftest.err
>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try
='test -z "$ac_c_werror_flag"
19612 || test ! -s conftest.err'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try
='test -s conftest.$ac_objext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19626 cat >conftest.
$ac_ext <<_ACEOF
19629 cat confdefs.h
>>conftest.
$ac_ext
19630 cat >>conftest.
$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19637 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19644 rm -f conftest.
$ac_objext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>conftest.er1
19648 grep -v '^ *+' conftest.er1
>conftest.err
19650 cat conftest.err
>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try
='test -z "$ac_c_werror_flag"
19654 || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try
='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_hi
=$ac_mid; break
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.
$ac_ext >&5
19671 ac_lo
=`expr $ac_mid + 1`
19672 if test $ac_lo -le $ac_mid; then
19676 ac_mid
=`expr 2 '*' $ac_mid + 1`
19678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.
$ac_ext >&5
19684 cat >conftest.
$ac_ext <<_ACEOF
19687 cat confdefs.h
>>conftest.
$ac_ext
19688 cat >>conftest.
$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19695 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19702 rm -f conftest.
$ac_objext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19706 grep -v '^ *+' conftest.er1
>conftest.err
19708 cat conftest.err
>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try
='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try
='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19726 cat >conftest.
$ac_ext <<_ACEOF
19729 cat confdefs.h
>>conftest.
$ac_ext
19730 cat >>conftest.
$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19737 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19744 rm -f conftest.
$ac_objext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746 (eval $ac_compile) 2>conftest.er1
19748 grep -v '^ *+' conftest.er1
>conftest.err
19750 cat conftest.err
>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try
='test -z "$ac_c_werror_flag"
19754 || test ! -s conftest.err'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try
='test -s conftest.$ac_objext'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_lo
=$ac_mid; break
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.
$ac_ext >&5
19771 ac_hi
=`expr '(' $ac_mid ')' - 1`
19772 if test $ac_mid -le $ac_hi; then
19776 ac_mid
=`expr 2 '*' $ac_mid`
19778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.
$ac_ext >&5
19786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19789 # Binary search between lo and hi bounds.
19790 while test "x$ac_lo" != "x$ac_hi"; do
19791 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19792 cat >conftest.
$ac_ext <<_ACEOF
19795 cat confdefs.h
>>conftest.
$ac_ext
19796 cat >>conftest.
$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19803 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19810 rm -f conftest.
$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812 (eval $ac_compile) 2>conftest.er1
19814 grep -v '^ *+' conftest.er1
>conftest.err
19816 cat conftest.err
>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try
='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try
='test -s conftest.$ac_objext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.
$ac_ext >&5
19837 ac_lo
=`expr '(' $ac_mid ')' + 1`
19839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19842 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19844 See \`config.log' for more details." >&5
19845 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19846 See \`config.log' for more details." >&2;}
19847 { (exit 1); exit 1; }; } ;;
19850 if test "$cross_compiling" = yes; then
19851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19852 See \`config.log' for more details." >&5
19853 echo "$as_me: error: cannot run test program while cross compiling
19854 See \`config.log' for more details." >&2;}
19855 { (exit 1); exit 1; }; }
19857 cat >conftest.
$ac_ext <<_ACEOF
19860 cat confdefs.h
>>conftest.
$ac_ext
19861 cat >>conftest.
$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19865 long longval () { return (long) (sizeof (wchar_t)); }
19866 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19868 #include <stdlib.h>
19873 FILE *f = fopen ("conftest.val", "w");
19876 if (((long) (sizeof (wchar_t))) < 0)
19878 long i = longval ();
19879 if (i != ((long) (sizeof (wchar_t))))
19881 fprintf (f, "%ld\n", i);
19885 unsigned long i = ulongval ();
19886 if (i != ((long) (sizeof (wchar_t))))
19888 fprintf (f, "%lu\n", i);
19890 exit (ferror (f) || fclose (f) != 0);
19896 rm -f conftest
$ac_exeext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19898 (eval $ac_link) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19909 echo "$as_me: program exited with status $ac_status" >&5
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.
$ac_ext >&5
19913 ( exit $ac_status )
19914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19915 See \`config.log' for more details." >&5
19916 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19917 See \`config.log' for more details." >&2;}
19918 { (exit 1); exit 1; }; }
19920 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19925 ac_cv_sizeof_wchar_t
=0
19928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19929 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19930 cat >>confdefs.h
<<_ACEOF
19931 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19937 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19938 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19940 cat >conftest.
$ac_ext <<_ACEOF
19943 cat confdefs.h
>>conftest.
$ac_ext
19944 cat >>conftest.
$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19948 #if TCL_UTF_MAX != 6
19949 # error "NOT UCS4_TCL"
19959 rm -f conftest.
$ac_objext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19961 (eval $ac_compile) 2>conftest.er1
19963 grep -v '^ *+' conftest.er1
>conftest.err
19965 cat conftest.err
>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try
='test -z "$ac_c_werror_flag"
19969 || test ! -s conftest.err'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try
='test -s conftest.$ac_objext'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19983 cat >>confdefs.h
<<\_ACEOF
19984 #define HAVE_UCS4_TCL 1
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.
$ac_ext >&5
19994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19995 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19996 echo "${ECHO_T}$have_ucs4_tcl" >&6
19998 # check whether wchar_t is signed or not
19999 if test "$wchar_h" = yes
20001 # check whether wchar_t is signed or not
20002 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20003 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20004 if test "${ac_cv_wchar_t_signed+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if test "$cross_compiling" = yes; then
20009 ac_cv_wchar_t_signed
=yes
20011 cat >conftest.
$ac_ext <<_ACEOF
20014 cat confdefs.h
>>conftest.
$ac_ext
20015 cat >>conftest.
$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20021 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20025 rm -f conftest
$ac_exeext
20026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20027 (eval $ac_link) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_wchar_t_signed
=yes
20038 echo "$as_me: program exited with status $ac_status" >&5
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.
$ac_ext >&5
20042 ( exit $ac_status )
20043 ac_cv_wchar_t_signed
=no
20045 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20049 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20050 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20053 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20054 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20055 # Check whether --enable-unicode or --disable-unicode was given.
20056 if test "${enable_unicode+set}" = set; then
20057 enableval
="$enable_unicode"
20063 if test $enable_unicode = yes
20065 # Without any arguments, Py_UNICODE defaults to two-byte mode
20066 case "$have_ucs4_tcl" in
20067 yes) enable_unicode
="ucs4"
20069 *) enable_unicode
="ucs2"
20076 case "$enable_unicode" in
20077 ucs2
) unicode_size
="2"
20078 cat >>confdefs.h
<<\_ACEOF
20079 #define Py_UNICODE_SIZE 2
20083 ucs4
) unicode_size
="4"
20084 cat >>confdefs.h
<<\_ACEOF
20085 #define Py_UNICODE_SIZE 4
20095 if test "$enable_unicode" = "no"
20098 echo "$as_me:$LINENO: result: not used" >&5
20099 echo "${ECHO_T}not used" >&6
20101 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20103 cat >>confdefs.h
<<\_ACEOF
20104 #define Py_USING_UNICODE 1
20108 # wchar_t is only usable if it maps to an unsigned type
20109 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20110 -a "$ac_cv_wchar_t_signed" = "no"
20112 PY_UNICODE_TYPE
="wchar_t"
20114 cat >>confdefs.h
<<\_ACEOF
20115 #define HAVE_USABLE_WCHAR_T 1
20118 cat >>confdefs.h
<<\_ACEOF
20119 #define PY_UNICODE_TYPE wchar_t
20122 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20124 PY_UNICODE_TYPE
="unsigned short"
20125 cat >>confdefs.h
<<\_ACEOF
20126 #define PY_UNICODE_TYPE unsigned short
20129 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20131 PY_UNICODE_TYPE
="unsigned long"
20132 cat >>confdefs.h
<<\_ACEOF
20133 #define PY_UNICODE_TYPE unsigned long
20137 PY_UNICODE_TYPE
="no type found"
20139 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20140 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20143 # check for endianness
20144 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20145 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20146 if test "${ac_cv_c_bigendian+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 # See if sys/param.h defines the BYTE_ORDER macro.
20150 cat >conftest.
$ac_ext <<_ACEOF
20153 cat confdefs.h
>>conftest.
$ac_ext
20154 cat >>conftest.
$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <sys/types.h>
20157 #include <sys/param.h>
20162 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20163 bogus endian macros
20170 rm -f conftest.
$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20174 grep -v '^ *+' conftest.er1
>conftest.err
20176 cat conftest.err
>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try
='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try
='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 # It does; now see whether it defined to BIG_ENDIAN or not.
20193 cat >conftest.
$ac_ext <<_ACEOF
20196 cat confdefs.h
>>conftest.
$ac_ext
20197 cat >>conftest.
$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include <sys/types.h>
20200 #include <sys/param.h>
20205 #if BYTE_ORDER != BIG_ENDIAN
20213 rm -f conftest.
$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1
>conftest.err
20219 cat conftest.err
>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try
='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try
='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_c_bigendian
=yes
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.
$ac_ext >&5
20240 ac_cv_c_bigendian
=no
20242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.
$ac_ext >&5
20247 # It does not; compile a test program.
20248 if test "$cross_compiling" = yes; then
20249 # try to guess the endianness by grepping values into an object file
20250 ac_cv_c_bigendian
=unknown
20251 cat >conftest.
$ac_ext <<_ACEOF
20254 cat confdefs.h
>>conftest.
$ac_ext
20255 cat >>conftest.
$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20258 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20259 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20260 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20261 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20262 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20266 _ascii (); _ebcdic ();
20271 rm -f conftest.
$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1
>conftest.err
20277 cat conftest.err
>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try
='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try
='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20294 ac_cv_c_bigendian
=yes
20296 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20297 if test "$ac_cv_c_bigendian" = unknown
; then
20298 ac_cv_c_bigendian
=no
20300 # finding both strings is unlikely to happen, but who knows?
20301 ac_cv_c_bigendian
=unknown
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.
$ac_ext >&5
20309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20311 cat >conftest.
$ac_ext <<_ACEOF
20314 cat confdefs.h
>>conftest.
$ac_ext
20315 cat >>conftest.
$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20320 /* Are we little or big endian? From Harbison&Steele. */
20324 char c[sizeof (long)];
20327 exit (u.c[sizeof (long) - 1] == 1);
20330 rm -f conftest
$ac_exeext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20332 (eval $ac_link) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_c_bigendian
=no
20343 echo "$as_me: program exited with status $ac_status" >&5
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.
$ac_ext >&5
20347 ( exit $ac_status )
20348 ac_cv_c_bigendian
=yes
20350 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20357 case $ac_cv_c_bigendian in
20360 cat >>confdefs.h
<<\_ACEOF
20361 #define WORDS_BIGENDIAN 1
20367 { { echo "$as_me:$LINENO: error: unknown endianness
20368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20369 echo "$as_me: error: unknown endianness
20370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20371 { (exit 1); exit 1; }; } ;;
20375 # Check whether right shifting a negative integer extends the sign bit
20376 # or fills with zeros (like the Cray J90, according to Tim Peters).
20377 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20378 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20379 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 if test "$cross_compiling" = yes; then
20384 ac_cv_rshift_extends_sign
=yes
20386 cat >conftest.
$ac_ext <<_ACEOF
20389 cat confdefs.h
>>conftest.
$ac_ext
20390 cat >>conftest.
$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20395 exit(((-1)>>3 == -1) ? 0 : 1);
20399 rm -f conftest
$ac_exeext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_rshift_extends_sign
=yes
20412 echo "$as_me: program exited with status $ac_status" >&5
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.
$ac_ext >&5
20416 ( exit $ac_status )
20417 ac_cv_rshift_extends_sign
=no
20419 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20423 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20424 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20425 if test "$ac_cv_rshift_extends_sign" = no
20428 cat >>confdefs.h
<<\_ACEOF
20429 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20434 # check for getc_unlocked and related locking functions
20435 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20436 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20437 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 cat >conftest.
$ac_ext <<_ACEOF
20444 cat confdefs.h
>>conftest.
$ac_ext
20445 cat >>conftest.
$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20452 FILE *f = fopen("/dev/null", "r");
20461 rm -f conftest.
$ac_objext conftest
$ac_exeext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20463 (eval $ac_link) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1
>conftest.err
20467 cat conftest.err
>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try
='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try
='test -s conftest$ac_exeext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_have_getc_unlocked
=yes
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.
$ac_ext >&5
20488 ac_cv_have_getc_unlocked
=no
20490 rm -f conftest.err conftest.
$ac_objext \
20491 conftest
$ac_exeext conftest.
$ac_ext
20494 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20495 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20496 if test "$ac_cv_have_getc_unlocked" = yes
20499 cat >>confdefs.h
<<\_ACEOF
20500 #define HAVE_GETC_UNLOCKED 1
20505 # check where readline lives
20506 # save the value of LIBS so we don't actually link Python with readline
20507 LIBS_no_readline
=$LIBS
20509 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20510 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20511 if test "${ac_cv_lib_readline_readline+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 ac_check_lib_save_LIBS
=$LIBS
20515 LIBS
="-lreadline $LIBS"
20516 cat >conftest.
$ac_ext <<_ACEOF
20519 cat confdefs.h
>>conftest.
$ac_ext
20520 cat >>conftest.
$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20523 /* Override any gcc2 internal prototype to avoid an error. */
20527 /* We use char because int might match the return type of a gcc2
20528 builtin and then its argument prototype would still apply. */
20538 rm -f conftest.
$ac_objext conftest
$ac_exeext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20540 (eval $ac_link) 2>conftest.er1
20542 grep -v '^ *+' conftest.er1
>conftest.err
20544 cat conftest.err
>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } &&
20547 { ac_try
='test -z "$ac_c_werror_flag"
20548 || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try
='test -s conftest$ac_exeext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_lib_readline_readline
=yes
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.
$ac_ext >&5
20565 ac_cv_lib_readline_readline
=no
20567 rm -f conftest.err conftest.
$ac_objext \
20568 conftest
$ac_exeext conftest.
$ac_ext
20569 LIBS
=$ac_check_lib_save_LIBS
20571 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20572 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20573 if test $ac_cv_lib_readline_readline = yes; then
20574 cat >>confdefs.h
<<_ACEOF
20575 #define HAVE_LIBREADLINE 1
20578 LIBS
="-lreadline $LIBS"
20582 if test "$ac_cv_have_readline_readline" = no
20585 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20586 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20587 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 ac_check_lib_save_LIBS
=$LIBS
20591 LIBS
="-ltermcap $LIBS"
20592 cat >conftest.
$ac_ext <<_ACEOF
20595 cat confdefs.h
>>conftest.
$ac_ext
20596 cat >>conftest.
$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 /* Override any gcc2 internal prototype to avoid an error. */
20603 /* We use char because int might match the return type of a gcc2
20604 builtin and then its argument prototype would still apply. */
20614 rm -f conftest.
$ac_objext conftest
$ac_exeext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20616 (eval $ac_link) 2>conftest.er1
20618 grep -v '^ *+' conftest.er1
>conftest.err
20620 cat conftest.err
>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try
='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try
='test -s conftest$ac_exeext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_lib_termcap_readline
=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.
$ac_ext >&5
20641 ac_cv_lib_termcap_readline
=no
20643 rm -f conftest.err conftest.
$ac_objext \
20644 conftest
$ac_exeext conftest.
$ac_ext
20645 LIBS
=$ac_check_lib_save_LIBS
20647 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20648 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20649 if test $ac_cv_lib_termcap_readline = yes; then
20650 cat >>confdefs.h
<<_ACEOF
20651 #define HAVE_LIBTERMCAP 1
20654 LIBS
="-ltermcap $LIBS"
20660 # check for readline 2.1
20661 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20662 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20663 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 ac_check_lib_save_LIBS
=$LIBS
20667 LIBS
="-lreadline $LIBS"
20668 cat >conftest.
$ac_ext <<_ACEOF
20671 cat confdefs.h
>>conftest.
$ac_ext
20672 cat >>conftest.
$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20675 /* Override any gcc2 internal prototype to avoid an error. */
20679 /* We use char because int might match the return type of a gcc2
20680 builtin and then its argument prototype would still apply. */
20681 char rl_callback_handler_install ();
20685 rl_callback_handler_install ();
20690 rm -f conftest.
$ac_objext conftest
$ac_exeext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20692 (eval $ac_link) 2>conftest.er1
20694 grep -v '^ *+' conftest.er1
>conftest.err
20696 cat conftest.err
>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
20699 { ac_try
='test -z "$ac_c_werror_flag"
20700 || test ! -s conftest.err'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; } &&
20706 { ac_try
='test -s conftest$ac_exeext'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_lib_readline_rl_callback_handler_install
=yes
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.
$ac_ext >&5
20717 ac_cv_lib_readline_rl_callback_handler_install
=no
20719 rm -f conftest.err conftest.
$ac_objext \
20720 conftest
$ac_exeext conftest.
$ac_ext
20721 LIBS
=$ac_check_lib_save_LIBS
20723 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20724 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20725 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20727 cat >>confdefs.h
<<\_ACEOF
20728 #define HAVE_RL_CALLBACK 1
20734 # check for readline 2.2
20735 cat >conftest.
$ac_ext <<_ACEOF
20738 cat confdefs.h
>>conftest.
$ac_ext
20739 cat >>conftest.
$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 #include <readline/readline.h>
20743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20746 grep -v '^ *+' conftest.er1
>conftest.err
20748 cat conftest.err
>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } >/dev
/null
; then
20751 if test -s conftest.err
; then
20752 ac_cpp_err
=$ac_c_preproc_warn_flag
20753 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20760 if test -z "$ac_cpp_err"; then
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.
$ac_ext >&5
20768 rm -f conftest.err conftest.
$ac_ext
20769 if test $have_readline = yes
20771 cat >conftest.
$ac_ext <<_ACEOF
20774 cat confdefs.h
>>conftest.
$ac_ext
20775 cat >>conftest.
$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 #include <readline/readline.h>
20780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20781 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20783 cat >>confdefs.h
<<\_ACEOF
20784 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20792 # check for readline 4.0
20793 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20794 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20795 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 ac_check_lib_save_LIBS
=$LIBS
20799 LIBS
="-lreadline $LIBS"
20800 cat >conftest.
$ac_ext <<_ACEOF
20803 cat confdefs.h
>>conftest.
$ac_ext
20804 cat >>conftest.
$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20807 /* Override any gcc2 internal prototype to avoid an error. */
20811 /* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20813 char rl_pre_input_hook ();
20817 rl_pre_input_hook ();
20822 rm -f conftest.
$ac_objext conftest
$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>conftest.er1
20826 grep -v '^ *+' conftest.er1
>conftest.err
20828 cat conftest.err
>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } &&
20831 { ac_try
='test -z "$ac_c_werror_flag"
20832 || test ! -s conftest.err'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try
='test -s conftest$ac_exeext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_cv_lib_readline_rl_pre_input_hook
=yes
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.
$ac_ext >&5
20849 ac_cv_lib_readline_rl_pre_input_hook
=no
20851 rm -f conftest.err conftest.
$ac_objext \
20852 conftest
$ac_exeext conftest.
$ac_ext
20853 LIBS
=$ac_check_lib_save_LIBS
20855 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20856 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20857 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20859 cat >>confdefs.h
<<\_ACEOF
20860 #define HAVE_RL_PRE_INPUT_HOOK 1
20866 # check for readline 4.2
20867 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20868 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20869 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 ac_check_lib_save_LIBS
=$LIBS
20873 LIBS
="-lreadline $LIBS"
20874 cat >conftest.
$ac_ext <<_ACEOF
20877 cat confdefs.h
>>conftest.
$ac_ext
20878 cat >>conftest.
$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20881 /* Override any gcc2 internal prototype to avoid an error. */
20885 /* We use char because int might match the return type of a gcc2
20886 builtin and then its argument prototype would still apply. */
20887 char rl_completion_matches ();
20891 rl_completion_matches ();
20896 rm -f conftest.
$ac_objext conftest
$ac_exeext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20898 (eval $ac_link) 2>conftest.er1
20900 grep -v '^ *+' conftest.er1
>conftest.err
20902 cat conftest.err
>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try
='test -z "$ac_c_werror_flag"
20906 || test ! -s conftest.err'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try
='test -s conftest$ac_exeext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 ac_cv_lib_readline_rl_completion_matches
=yes
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.
$ac_ext >&5
20923 ac_cv_lib_readline_rl_completion_matches
=no
20925 rm -f conftest.err conftest.
$ac_objext \
20926 conftest
$ac_exeext conftest.
$ac_ext
20927 LIBS
=$ac_check_lib_save_LIBS
20929 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20930 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20931 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20933 cat >>confdefs.h
<<\_ACEOF
20934 #define HAVE_RL_COMPLETION_MATCHES 1
20940 # also in readline 4.2
20941 cat >conftest.
$ac_ext <<_ACEOF
20944 cat confdefs.h
>>conftest.
$ac_ext
20945 cat >>conftest.
$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <readline/readline.h>
20949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1
>conftest.err
20954 cat conftest.err
>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } >/dev
/null
; then
20957 if test -s conftest.err
; then
20958 ac_cpp_err
=$ac_c_preproc_warn_flag
20959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20966 if test -z "$ac_cpp_err"; then
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.
$ac_ext >&5
20974 rm -f conftest.err conftest.
$ac_ext
20975 if test $have_readline = yes
20977 cat >conftest.
$ac_ext <<_ACEOF
20980 cat confdefs.h
>>conftest.
$ac_ext
20981 cat >>conftest.
$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 #include <readline/readline.h>
20986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20987 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20989 cat >>confdefs.h
<<\_ACEOF
20990 #define HAVE_RL_CATCH_SIGNAL 1
20998 # End of readline checks: restore LIBS
20999 LIBS
=$LIBS_no_readline
21001 echo "$as_me:$LINENO: checking for broken nice()" >&5
21002 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21003 if test "${ac_cv_broken_nice+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 if test "$cross_compiling" = yes; then
21008 ac_cv_broken_nice
=no
21010 cat >conftest.
$ac_ext <<_ACEOF
21013 cat confdefs.h
>>conftest.
$ac_ext
21014 cat >>conftest.
$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21019 int val1 = nice(1);
21020 if (val1 != -1 && val1 == nice(2))
21026 rm -f conftest
$ac_exeext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21028 (eval $ac_link) 2>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 ac_cv_broken_nice
=yes
21039 echo "$as_me: program exited with status $ac_status" >&5
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.
$ac_ext >&5
21043 ( exit $ac_status )
21044 ac_cv_broken_nice
=no
21046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21050 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21051 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21052 if test "$ac_cv_broken_nice" = yes
21055 cat >>confdefs.h
<<\_ACEOF
21056 #define HAVE_BROKEN_NICE 1
21061 echo "$as_me:$LINENO: checking for broken poll()" >&5
21062 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21063 if test "$cross_compiling" = yes; then
21064 ac_cv_broken_poll
=no
21066 cat >conftest.
$ac_ext <<_ACEOF
21069 cat confdefs.h
>>conftest.
$ac_ext
21070 cat >>conftest.
$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21077 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21081 int poll_test = poll (&poll_struct, 1, 0);
21087 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21098 rm -f conftest
$ac_exeext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 (eval $ac_link) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_broken_poll
=yes
21111 echo "$as_me: program exited with status $ac_status" >&5
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.
$ac_ext >&5
21115 ( exit $ac_status )
21116 ac_cv_broken_poll
=no
21118 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21120 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21121 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21122 if test "$ac_cv_broken_poll" = yes
21125 cat >>confdefs.h
<<\_ACEOF
21126 #define HAVE_BROKEN_POLL 1
21131 # Before we can test tzset, we need to check if struct tm has a tm_zone
21132 # (which is not required by ISO C or UNIX spec) and/or if we support
21134 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21135 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21136 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 cat >conftest.
$ac_ext <<_ACEOF
21142 cat confdefs.h
>>conftest.
$ac_ext
21143 cat >>conftest.
$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <sys/types.h>
21146 #include <$ac_cv_struct_tm>
21152 static struct tm ac_aggr;
21153 if (ac_aggr.tm_zone)
21159 rm -f conftest.
$ac_objext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>conftest.er1
21163 grep -v '^ *+' conftest.er1
>conftest.err
21165 cat conftest.err
>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try
='test -z "$ac_c_werror_flag"
21169 || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try
='test -s conftest.$ac_objext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 ac_cv_member_struct_tm_tm_zone
=yes
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.
$ac_ext >&5
21186 cat >conftest.
$ac_ext <<_ACEOF
21189 cat confdefs.h
>>conftest.
$ac_ext
21190 cat >>conftest.
$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <$ac_cv_struct_tm>
21199 static struct tm ac_aggr;
21200 if (sizeof ac_aggr.tm_zone)
21206 rm -f conftest.
$ac_objext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
21210 grep -v '^ *+' conftest.er1
>conftest.err
21212 cat conftest.err
>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
21215 { ac_try
='test -z "$ac_c_werror_flag"
21216 || test ! -s conftest.err'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try
='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_cv_member_struct_tm_tm_zone
=yes
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.
$ac_ext >&5
21233 ac_cv_member_struct_tm_tm_zone
=no
21235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21239 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21240 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21241 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21243 cat >>confdefs.h
<<_ACEOF
21244 #define HAVE_STRUCT_TM_TM_ZONE 1
21250 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21252 cat >>confdefs.h
<<\_ACEOF
21253 #define HAVE_TM_ZONE 1
21257 echo "$as_me:$LINENO: checking for tzname" >&5
21258 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21259 if test "${ac_cv_var_tzname+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 cat >conftest.
$ac_ext <<_ACEOF
21265 cat confdefs.h
>>conftest.
$ac_ext
21266 cat >>conftest.
$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21269 #ifndef tzname /* For SGI. */
21270 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21281 rm -f conftest.
$ac_objext conftest
$ac_exeext
21282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21283 (eval $ac_link) 2>conftest.er1
21285 grep -v '^ *+' conftest.er1
>conftest.err
21287 cat conftest.err
>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } &&
21290 { ac_try
='test -z "$ac_c_werror_flag"
21291 || test ! -s conftest.err'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try
='test -s conftest$ac_exeext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 ac_cv_var_tzname
=yes
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.
$ac_ext >&5
21308 ac_cv_var_tzname
=no
21310 rm -f conftest.err conftest.
$ac_objext \
21311 conftest
$ac_exeext conftest.
$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21314 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21315 if test $ac_cv_var_tzname = yes; then
21317 cat >>confdefs.h
<<\_ACEOF
21318 #define HAVE_TZNAME 1
21325 # check tzset(3) exists and works like we expect it to
21326 echo "$as_me:$LINENO: checking for working tzset()" >&5
21327 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21328 if test "${ac_cv_working_tzset+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 if test "$cross_compiling" = yes; then
21333 ac_cv_working_tzset
=no
21335 cat >conftest.
$ac_ext <<_ACEOF
21338 cat confdefs.h
>>conftest.
$ac_ext
21339 cat >>conftest.
$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21342 #include <stdlib.h>
21344 #include <string.h>
21347 extern char *tzname[];
21352 /* Note that we need to ensure that not only does tzset(3)
21353 do 'something' with localtime, but it works as documented
21354 in the library reference and as expected by the test suite.
21355 This includes making sure that tzname is set properly if
21356 tm->tm_zone does not exist since it is the alternative way
21357 of getting timezone info.
21359 Red Hat 6.2 doesn't understand the southern hemisphere
21360 after New Year's Day.
21363 time_t groundhogday = 1044144000; /* GMT-based */
21364 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21366 putenv("TZ=UTC+0");
21368 if (localtime(&groundhogday)->tm_hour != 0)
21371 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21372 if (strcmp(tzname[0], "UTC") ||
21373 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21377 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21379 if (localtime(&groundhogday)->tm_hour != 19)
21382 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21386 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21388 if (localtime(&groundhogday)->tm_hour != 11)
21391 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21395 #if HAVE_STRUCT_TM_TM_ZONE
21396 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21398 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21406 rm -f conftest
$ac_exeext
21407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21408 (eval $ac_link) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_cv_working_tzset
=yes
21419 echo "$as_me: program exited with status $ac_status" >&5
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.
$ac_ext >&5
21423 ( exit $ac_status )
21424 ac_cv_working_tzset
=no
21426 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21430 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21431 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21432 if test "$ac_cv_working_tzset" = yes
21435 cat >>confdefs.h
<<\_ACEOF
21436 #define HAVE_WORKING_TZSET 1
21441 # Look for subsecond timestamps in struct stat
21442 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21443 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21444 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 cat >conftest.
$ac_ext <<_ACEOF
21450 cat confdefs.h
>>conftest.
$ac_ext
21451 cat >>conftest.
$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <sys/stat.h>
21459 st.st_mtim.tv_nsec = 1;
21465 rm -f conftest.
$ac_objext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21467 (eval $ac_compile) 2>conftest.er1
21469 grep -v '^ *+' conftest.er1
>conftest.err
21471 cat conftest.err
>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
21474 { ac_try
='test -z "$ac_c_werror_flag"
21475 || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try
='test -s conftest.$ac_objext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_stat_tv_nsec
=yes
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.
$ac_ext >&5
21492 ac_cv_stat_tv_nsec
=no
21494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21497 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21498 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21499 if test "$ac_cv_stat_tv_nsec" = yes
21502 cat >>confdefs.h
<<\_ACEOF
21503 #define HAVE_STAT_TV_NSEC 1
21508 # Look for BSD style subsecond timestamps in struct stat
21509 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21510 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21511 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 cat >conftest.
$ac_ext <<_ACEOF
21517 cat confdefs.h
>>conftest.
$ac_ext
21518 cat >>conftest.
$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 #include <sys/stat.h>
21526 st.st_mtimespec.tv_nsec = 1;
21532 rm -f conftest.
$ac_objext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21534 (eval $ac_compile) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1
>conftest.err
21538 cat conftest.err
>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try
='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try
='test -s conftest.$ac_objext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_stat_tv_nsec2
=yes
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.
$ac_ext >&5
21559 ac_cv_stat_tv_nsec2
=no
21561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21564 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21565 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21566 if test "$ac_cv_stat_tv_nsec2" = yes
21569 cat >>confdefs.h
<<\_ACEOF
21570 #define HAVE_STAT_TV_NSEC2 1
21575 # On HP/UX 11.0, mvwdelch is a block with a return statement
21576 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21577 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21578 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 cat >conftest.
$ac_ext <<_ACEOF
21584 cat confdefs.h
>>conftest.
$ac_ext
21585 cat >>conftest.
$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <curses.h>
21593 rtn = mvwdelch(0,0,0);
21599 rm -f conftest.
$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21603 grep -v '^ *+' conftest.er1
>conftest.err
21605 cat conftest.err
>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try
='test -z "$ac_c_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try
='test -s conftest.$ac_objext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_mvwdelch_is_expression
=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.
$ac_ext >&5
21626 ac_cv_mvwdelch_is_expression
=no
21628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21631 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21632 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21634 if test "$ac_cv_mvwdelch_is_expression" = yes
21637 cat >>confdefs.h
<<\_ACEOF
21638 #define MVWDELCH_IS_EXPRESSION 1
21643 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21644 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21645 if test "${ac_cv_window_has_flags+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 cat >conftest.
$ac_ext <<_ACEOF
21651 cat confdefs.h
>>conftest.
$ac_ext
21652 cat >>conftest.
$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <curses.h>
21666 rm -f conftest.
$ac_objext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21668 (eval $ac_compile) 2>conftest.er1
21670 grep -v '^ *+' conftest.er1
>conftest.err
21672 cat conftest.err
>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
21675 { ac_try
='test -z "$ac_c_werror_flag"
21676 || test ! -s conftest.err'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; } &&
21682 { ac_try
='test -s conftest.$ac_objext'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 ac_cv_window_has_flags
=yes
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.
$ac_ext >&5
21693 ac_cv_window_has_flags
=no
21695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21698 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21699 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21702 if test "$ac_cv_window_has_flags" = yes
21705 cat >>confdefs.h
<<\_ACEOF
21706 #define WINDOW_HAS_FLAGS 1
21711 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21712 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21714 if test -e /dev
/ptmx
21716 echo "$as_me:$LINENO: result: yes" >&5
21717 echo "${ECHO_T}yes" >&6
21719 cat >>confdefs.h
<<\_ACEOF
21720 #define HAVE_DEV_PTMX 1
21724 echo "$as_me:$LINENO: result: no" >&5
21725 echo "${ECHO_T}no" >&6
21728 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21729 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21731 if test -e /dev
/ptc
21733 echo "$as_me:$LINENO: result: yes" >&5
21734 echo "${ECHO_T}yes" >&6
21736 cat >>confdefs.h
<<\_ACEOF
21737 #define HAVE_DEV_PTC 1
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21745 echo "$as_me:$LINENO: checking for socklen_t" >&5
21746 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21747 if test "${ac_cv_type_socklen_t+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 cat >conftest.
$ac_ext <<_ACEOF
21753 cat confdefs.h
>>conftest.
$ac_ext
21754 cat >>conftest.
$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21757 #ifdef HAVE_SYS_TYPES_H
21758 #include <sys/types.h>
21760 #ifdef HAVE_SYS_SOCKET_H
21761 #include <sys/socket.h>
21768 if ((socklen_t *) 0)
21770 if (sizeof (socklen_t))
21776 rm -f conftest.
$ac_objext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778 (eval $ac_compile) 2>conftest.er1
21780 grep -v '^ *+' conftest.er1
>conftest.err
21782 cat conftest.err
>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try
='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try
='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_type_socklen_t
=yes
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.
$ac_ext >&5
21803 ac_cv_type_socklen_t
=no
21805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21807 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21808 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21809 if test $ac_cv_type_socklen_t = yes; then
21813 cat >>confdefs.h
<<\_ACEOF
21814 #define socklen_t int
21822 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21824 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21828 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21829 echo "$as_me:$LINENO: checking for build directories" >&5
21830 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21831 for dir
in $SRCDIRS; do
21832 if test ! -d $dir; then
21836 echo "$as_me:$LINENO: result: done" >&5
21837 echo "${ECHO_T}done" >&6
21839 # generate output files
21840 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21842 cat >confcache
<<\_ACEOF
21843 # This file is a shell script that caches the results of configure
21844 # tests run on this system so they can be shared between configure
21845 # scripts and configure runs, see configure's option --config-cache.
21846 # It is not useful on other systems. If it contains results you don't
21847 # want to keep, you may remove or edit it.
21849 # config.status only pays attention to the cache file if you give it
21850 # the --recheck option to rerun configure.
21852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21854 # following values.
21858 # The following way of writing the cache mishandles newlines in values,
21859 # but we know of no workaround that is simple, portable, and efficient.
21860 # So, don't put newlines in cache variables' values.
21861 # Ultrix sh set writes to stderr and can't be redirected directly,
21862 # and sets the high bit in the cache file unless we assign to the vars.
21865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21867 # `set' does not quote correctly, so add quotes (double-quote
21868 # substitution turns \\\\ into \\, and sed turns \\ into \).
21871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21874 # `set' quotes correctly as required by POSIX, so do not add quotes.
21876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21885 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21887 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21888 if test -w $cache_file; then
21889 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21890 cat confcache
>$cache_file
21892 echo "not updating unwritable cache $cache_file"
21897 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21898 # Let make expand exec_prefix.
21899 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21903 # trailing colons and then remove the whole line if VPATH becomes empty
21904 # (actually we leave an empty line to preserve line numbers).
21905 if test "x$srcdir" = x.
; then
21906 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21907 s/:*\$(srcdir):*/:/;
21908 s/:*\${srcdir}:*/:/;
21910 s/^\([^=]*=[ ]*\):*/\1/;
21916 DEFS
=-DHAVE_CONFIG_H
21920 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21921 # 1. Remove the extension, and $U if already installed.
21922 ac_i
=`echo "$ac_i" |
21923 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21925 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21926 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21928 LIBOBJS
=$ac_libobjs
21930 LTLIBOBJS
=$ac_ltlibobjs
21934 : ${CONFIG_STATUS=./config.status}
21935 ac_clean_files_save
=$ac_clean_files
21936 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21939 cat >$CONFIG_STATUS <<_ACEOF
21941 # Generated by $as_me.
21942 # Run this file to recreate the current configuration.
21943 # Compiler output produced by configure, useful for debugging
21944 # configure, is in config.log if it exists.
21947 ac_cs_recheck=false
21949 SHELL=\${CONFIG_SHELL-$SHELL}
21952 cat >>$CONFIG_STATUS <<\_ACEOF
21953 ## --------------------- ##
21954 ## M4sh Initialization. ##
21955 ## --------------------- ##
21957 # Be Bourne compatible
21958 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21962 # is contrary to our usage. Disable this feature.
21963 alias -g '${1+"$@"}'='"$@"'
21964 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21967 DUALCASE
=1; export DUALCASE
# for MKS sh
21969 # Support unset when possible.
21970 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21977 # Work around bugs in pre-3.0 UWIN ksh.
21978 $as_unset ENV MAIL MAILPATH
21985 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21986 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21987 LC_TELEPHONE LC_TIME
21989 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21990 eval $as_var=C
; export $as_var
21996 # Required to use basename.
21997 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22003 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22004 as_basename
=basename
22010 # Name of the executable.
22011 as_me
=`$as_basename "$0" ||
22012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22013 X"$0" : 'X\(//\)$' \| \
22014 X"$0" : 'X\(/\)$' \| \
22015 . : '\(.\)' 2>/dev/null ||
22017 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22018 /^X\/\(\/\/\)$/{ s//\1/; q; }
22019 /^X\/\(\/\).*/{ s//\1/; q; }
22023 # PATH needs CR, and LINENO needs CR and PATH.
22024 # Avoid depending upon Character Ranges.
22025 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22026 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22027 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22028 as_cr_digits
='0123456789'
22029 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22031 # The user is always right.
22032 if test "${PATH_SEPARATOR+set}" != set; then
22033 echo "#! /bin/sh" >conf$$.sh
22034 echo "exit 0" >>conf$$.sh
22036 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22045 as_lineno_1
=$LINENO
22046 as_lineno_2
=$LINENO
22047 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22048 test "x$as_lineno_1" != "x$as_lineno_2" &&
22049 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22050 # Find who we are. Look in the path if we contain no path at all
22053 *[\\/]* ) as_myself
=$0 ;;
22054 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22055 for as_dir
in $PATH
22058 test -z "$as_dir" && as_dir
=.
22059 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22064 # We did not find ourselves, most probably we were run as `sh COMMAND'
22065 # in which case we are not to be found in the path.
22066 if test "x$as_myself" = x
; then
22069 if test ! -f "$as_myself"; then
22070 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22071 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22072 { (exit 1); exit 1; }; }
22074 case $CONFIG_SHELL in
22076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22077 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22080 test -z "$as_dir" && as_dir
=.
22081 for as_base
in sh bash ksh sh5
; do
22084 if ("$as_dir/$as_base" -c '
22085 as_lineno_1=$LINENO
22086 as_lineno_2=$LINENO
22087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22088 test "x$as_lineno_1" != "x$as_lineno_2" &&
22089 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22090 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22091 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22092 CONFIG_SHELL
=$as_dir/$as_base
22093 export CONFIG_SHELL
22094 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22103 # uniformly replaced by the line number. The first 'sed' inserts a
22104 # line-number line before each line; the second 'sed' does the real
22105 # work. The second script uses 'N' to pair each line-number line
22106 # with the numbered line, and appends trailing '-' during
22107 # substitution so that $LINENO is not a special case at line end.
22108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22109 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22110 sed '=' <$as_myself |
22115 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22118 s,^['$as_cr_digits']*\n,,
22119 ' >$as_me.lineno
&&
22120 chmod +x
$as_me.lineno ||
22121 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22122 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22123 { (exit 1); exit 1; }; }
22125 # Don't try to exec as it changes $[0], causing all sort of problems
22126 # (the dirname of $[0] is not the place where we might find the
22127 # original and so on. Autoconf is especially sensible to this).
22129 # Exit status is that of the last command.
22134 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22135 *c
*,-n*) ECHO_N
= ECHO_C
='
22137 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22138 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22141 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22147 rm -f conf$$ conf$$.exe conf$$.
file
22149 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22150 # We could just check for DJGPP; but this test a) works b) is more generic
22151 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22152 if test -f conf$$.exe
; then
22153 # Don't use ln at all; we don't have any links
22158 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22163 rm -f conf$$ conf$$.exe conf$$.
file
22165 if mkdir
-p .
2>/dev
/null
; then
22168 test -d .
/-p && rmdir .
/-p
22172 as_executable_p
="test -f"
22174 # Sed expression to map a string onto a valid CPP name.
22175 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22177 # Sed expression to map a string onto a valid variable name.
22178 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22182 # We need space, tab and new line, in precisely that order.
22192 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22193 # report actual input values of CONFIG_FILES etc. instead of their
22194 # values after options handling. Logging --version etc. is OK.
22198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22199 ## Running $as_me. ##
22204 This file was extended by python $as_me 2.5, which was
22205 generated by GNU Autoconf 2.59. Invocation command line was
22207 CONFIG_FILES = $CONFIG_FILES
22208 CONFIG_HEADERS = $CONFIG_HEADERS
22209 CONFIG_LINKS = $CONFIG_LINKS
22210 CONFIG_COMMANDS = $CONFIG_COMMANDS
22214 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22218 # Files that config.status was made for.
22219 if test -n "$ac_config_files"; then
22220 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22223 if test -n "$ac_config_headers"; then
22224 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22227 if test -n "$ac_config_links"; then
22228 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22231 if test -n "$ac_config_commands"; then
22232 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22235 cat >>$CONFIG_STATUS <<\_ACEOF
22238 \`$as_me' instantiates files from templates according to the
22239 current configuration.
22241 Usage: $0 [OPTIONS] [FILE]...
22243 -h, --help print this help, then exit
22244 -V, --version print version number, then exit
22245 -q, --quiet do not print progress messages
22246 -d, --debug don't remove temporary files
22247 --recheck update $as_me by reconfiguring in the same conditions
22248 --file=FILE[:TEMPLATE]
22249 instantiate the configuration file FILE
22250 --header=FILE[:TEMPLATE]
22251 instantiate the configuration header FILE
22253 Configuration files:
22256 Configuration headers:
22259 Report bugs to <bug-autoconf@gnu.org>."
22262 cat >>$CONFIG_STATUS <<_ACEOF
22264 python config.status 2.5
22265 configured by $0, generated by GNU Autoconf 2.59,
22266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22268 Copyright (C) 2003 Free Software Foundation, Inc.
22269 This config.status script is free software; the Free Software Foundation
22270 gives unlimited permission to copy, distribute and modify it."
22275 cat >>$CONFIG_STATUS <<\_ACEOF
22276 # If no file are specified by the user, then we need to provide default
22277 # value. By we need to know if files were specified by the user.
22283 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22284 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22292 *) # This is not an option, so the user has probably given explicit
22295 ac_need_defaults
=false
;;
22299 # Handling of the options.
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22302 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22304 --version |
--vers* |
-V )
22305 echo "$ac_cs_version"; exit 0 ;;
22307 # Conflict between --help and --header
22308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22309 Try \`$0 --help' for more information." >&5
22310 echo "$as_me: error: ambiguous option: $1
22311 Try \`$0 --help' for more information." >&2;}
22312 { (exit 1); exit 1; }; };;
22313 --help |
--hel |
-h )
22314 echo "$ac_cs_usage"; exit 0 ;;
22315 --debug |
--d* |
-d )
22317 --file |
--fil |
--fi |
--f )
22319 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22320 ac_need_defaults
=false
;;
22321 --header |
--heade |
--head |
--hea )
22323 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22324 ac_need_defaults
=false
;;
22325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22326 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22329 # This is an error.
22330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22331 Try \`$0 --help' for more information." >&5
22332 echo "$as_me: error: unrecognized option: $1
22333 Try \`$0 --help' for more information." >&2;}
22334 { (exit 1); exit 1; }; } ;;
22336 *) ac_config_targets
="$ac_config_targets $1" ;;
22342 ac_configure_extra_args
=
22344 if $ac_cs_silent; then
22346 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22350 cat >>$CONFIG_STATUS <<_ACEOF
22351 if \$ac_cs_recheck; then
22352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 for ac_config_target
in $ac_config_targets
22365 case "$ac_config_target" in
22366 # Handling of arguments.
22367 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22368 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22369 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22372 { (exit 1); exit 1; }; };;
22376 # If the user did not use the arguments to specify the items to instantiate,
22377 # then the envvar interface is used. Set only those that are not.
22378 # We use the long form for the default assignment because of an extremely
22379 # bizarre bug on SunOS 4.1.3.
22380 if $ac_need_defaults; then
22381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22385 # Have a temporary directory for convenience. Make it in the build tree
22386 # simply because there is no reason to put it here, and in addition,
22387 # creating and moving files from /tmp can sometimes cause problems.
22388 # Create a temporary directory, and hook for its removal unless debugging.
22391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22392 trap '{ (exit 1); exit 1; }' 1 2 13 15
22395 # Create a (secure) tmp directory for tmp files.
22398 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22399 test -n "$tmp" && test -d "$tmp"
22402 tmp
=.
/confstat$$
-$RANDOM
22403 (umask 077 && mkdir
$tmp)
22406 echo "$me: cannot create a temporary directory in ." >&2
22407 { (exit 1); exit 1; }
22412 cat >>$CONFIG_STATUS <<_ACEOF
22415 # CONFIG_FILES section.
22418 # No need to generate the scripts if there are no CONFIG_FILES.
22419 # This happens for instance when ./config.status config.h
22420 if test -n "\$CONFIG_FILES"; then
22421 # Protect against being on the right side of a sed subst in config.status.
22422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22424 s,@SHELL@,$SHELL,;t t
22425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22431 s,@exec_prefix@,$exec_prefix,;t t
22432 s,@prefix@,$prefix,;t t
22433 s,@program_transform_name@,$program_transform_name,;t t
22434 s,@bindir@,$bindir,;t t
22435 s,@sbindir@,$sbindir,;t t
22436 s,@libexecdir@,$libexecdir,;t t
22437 s,@datadir@,$datadir,;t t
22438 s,@sysconfdir@,$sysconfdir,;t t
22439 s,@sharedstatedir@,$sharedstatedir,;t t
22440 s,@localstatedir@,$localstatedir,;t t
22441 s,@libdir@,$libdir,;t t
22442 s,@includedir@,$includedir,;t t
22443 s,@oldincludedir@,$oldincludedir,;t t
22444 s,@infodir@,$infodir,;t t
22445 s,@mandir@,$mandir,;t t
22446 s,@build_alias@,$build_alias,;t t
22447 s,@host_alias@,$host_alias,;t t
22448 s,@target_alias@,$target_alias,;t t
22449 s,@DEFS@,$DEFS,;t t
22450 s,@ECHO_C@,$ECHO_C,;t t
22451 s,@ECHO_N@,$ECHO_N,;t t
22452 s,@ECHO_T@,$ECHO_T,;t t
22453 s,@LIBS@,$LIBS,;t t
22454 s,@VERSION@,$VERSION,;t t
22455 s,@SOVERSION@,$SOVERSION,;t t
22456 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22457 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22458 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22459 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22460 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22461 s,@MACHDEP@,$MACHDEP,;t t
22462 s,@SGI_ABI@,$SGI_ABI,;t t
22463 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22464 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22465 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22467 s,@MAINOBJ@,$MAINOBJ,;t t
22468 s,@EXEEXT@,$EXEEXT,;t t
22470 s,@CFLAGS@,$CFLAGS,;t t
22471 s,@LDFLAGS@,$LDFLAGS,;t t
22472 s,@CPPFLAGS@,$CPPFLAGS,;t t
22473 s,@ac_ct_CC@,$ac_ct_CC,;t t
22474 s,@OBJEXT@,$OBJEXT,;t t
22476 s,@EGREP@,$EGREP,;t t
22477 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22478 s,@LIBRARY@,$LIBRARY,;t t
22479 s,@LDLIBRARY@,$LDLIBRARY,;t t
22480 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22481 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22482 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22483 s,@INSTSONAME@,$INSTSONAME,;t t
22484 s,@RUNSHARED@,$RUNSHARED,;t t
22485 s,@LINKCC@,$LINKCC,;t t
22486 s,@RANLIB@,$RANLIB,;t t
22487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22489 s,@SVNVERSION@,$SVNVERSION,;t t
22490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22495 s,@BASECFLAGS@,$BASECFLAGS,;t t
22496 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22497 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22499 s,@LDSHARED@,$LDSHARED,;t t
22500 s,@BLDSHARED@,$BLDSHARED,;t t
22501 s,@CCSHARED@,$CCSHARED,;t t
22502 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22503 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22504 s,@SHLIBS@,$SHLIBS,;t t
22505 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22506 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22507 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22508 s,@LDLAST@,$LDLAST,;t t
22509 s,@THREADOBJ@,$THREADOBJ,;t t
22510 s,@DLINCLDIR@,$DLINCLDIR,;t t
22511 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22512 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22513 s,@TRUE@,$TRUE,;t t
22514 s,@LIBOBJS@,$LIBOBJS,;t t
22515 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22518 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22519 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22520 s,@LIBM@,$LIBM,;t t
22521 s,@LIBC@,$LIBC,;t t
22522 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22523 s,@THREADHEADERS@,$THREADHEADERS,;t t
22524 s,@SRCDIRS@,$SRCDIRS,;t t
22525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22530 cat >>$CONFIG_STATUS <<\_ACEOF
22531 # Split the substitutions into bite-sized pieces for seds with
22532 # small command number limits, like on Digital OSF/1 and HP-UX.
22533 ac_max_sed_lines
=48
22534 ac_sed_frag
=1 # Number of current file.
22535 ac_beg
=1 # First line for current file.
22536 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22539 while $ac_more_lines; do
22540 if test $ac_beg -gt 1; then
22541 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22543 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22545 if test ! -s $tmp/subs.frag
; then
22546 ac_more_lines
=false
22548 # The purpose of the label and of the branching condition is to
22549 # speed up the sed processing (if there are no `@' at all, there
22550 # is no need to browse any of the substitutions).
22551 # These are the two extra sed commands mentioned above.
22553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22554 if test -z "$ac_sed_cmds"; then
22555 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22557 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22559 ac_sed_frag
=`expr $ac_sed_frag + 1`
22561 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22564 if test -z "$ac_sed_cmds"; then
22567 fi # test -n "$CONFIG_FILES"
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22574 - |
*:- |
*:-:* ) # input from stdin
22576 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22577 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22578 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22579 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22580 * ) ac_file_in
=$ac_file.
in ;;
22583 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22584 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22586 X"$ac_file" : 'X\(//\)[^/]' \| \
22587 X"$ac_file" : 'X\(//\)$' \| \
22588 X"$ac_file" : 'X\(/\)' \| \
22589 . : '\(.\)' 2>/dev/null ||
22591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22593 /^X\(\/\/\)$/{ s//\1/; q; }
22594 /^X\(\/\).*/{ s//\1/; q; }
22596 { if $as_mkdir_p; then
22601 while test ! -d "$as_dir"; do
22602 as_dirs
="$as_dir $as_dirs"
22603 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605 X"$as_dir" : 'X\(//\)[^/]' \| \
22606 X"$as_dir" : 'X\(//\)$' \| \
22607 X"$as_dir" : 'X\(/\)' \| \
22608 . : '\(.\)' 2>/dev/null ||
22610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22612 /^X\(\/\/\)$/{ s//\1/; q; }
22613 /^X\(\/\).*/{ s//\1/; q; }
22616 test ! -n "$as_dirs" || mkdir
$as_dirs
22617 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22619 { (exit 1); exit 1; }; }; }
22623 if test "$ac_dir" != .
; then
22624 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22625 # A "../" for each directory in $ac_dir_suffix.
22626 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22628 ac_dir_suffix
= ac_top_builddir
=
22632 .
) # No --srcdir option. We are building in place.
22634 if test -z "$ac_top_builddir"; then
22637 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22639 [\\/]* | ?
:[\\/]* ) # Absolute path.
22640 ac_srcdir
=$srcdir$ac_dir_suffix;
22641 ac_top_srcdir
=$srcdir ;;
22642 *) # Relative path.
22643 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22644 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22647 # Do not use `cd foo && pwd` to compute absolute paths, because
22648 # the directories may not exist.
22650 .
) ac_abs_builddir
="$ac_dir";;
22653 .
) ac_abs_builddir
=`pwd`;;
22654 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22655 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22658 case $ac_abs_builddir in
22659 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22661 case ${ac_top_builddir}.
in
22662 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22663 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22664 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22667 case $ac_abs_builddir in
22668 .
) ac_abs_srcdir
=$ac_srcdir;;
22671 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22672 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22673 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22676 case $ac_abs_builddir in
22677 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22679 case $ac_top_srcdir in
22680 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22681 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22682 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22688 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22689 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22692 if test x
"$ac_file" != x-
; then
22693 { echo "$as_me:$LINENO: creating $ac_file" >&5
22694 echo "$as_me: creating $ac_file" >&6;}
22697 # Let's still pretend it is `configure' which instantiates (i.e., don't
22698 # use $as_me), people would be surprised to read:
22699 # /* config.h. Generated by config.status. */
22700 if test x
"$ac_file" = x-
; then
22703 configure_input
="$ac_file. "
22705 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22706 sed 's,.*/,,'` by configure."
22708 # First look for the input files in the build tree, otherwise in the
22710 ac_file_inputs
=`IFS=:
22711 for f in $ac_file_in; do
22713 -) echo $tmp/stdin ;;
22715 # Absolute (can't be DOS-style, as IFS=:)
22716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22717 echo "$as_me: error: cannot find input file: $f" >&2;}
22718 { (exit 1); exit 1; }; }
22721 if test -f "$f"; then
22724 elif test -f "$srcdir/$f"; then
22729 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22730 echo "$as_me: error: cannot find input file: $f" >&2;}
22731 { (exit 1); exit 1; }; }
22734 done` ||
{ (exit 1); exit 1; }
22736 cat >>$CONFIG_STATUS <<_ACEOF
22740 cat >>$CONFIG_STATUS <<\_ACEOF
22742 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22743 s
,@configure_input@
,$configure_input,;t t
22744 s
,@srcdir@
,$ac_srcdir,;t t
22745 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22746 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22747 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22748 s
,@builddir@
,$ac_builddir,;t t
22749 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22750 s
,@top_builddir@
,$ac_top_builddir,;t t
22751 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22752 s
,@INSTALL@
,$ac_INSTALL,;t t
22753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22755 if test x"$ac_file" != x-; then
22756 mv $tmp/out $ac_file
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22767 # CONFIG_HEADER section.
22770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22773 # ac_d sets the value in "#define NAME VALUE" lines.
22774 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22775 ac_dB
='[ ].*$,\1#\2'
22778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22779 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22780 ac_uB
='$,\1#\2define\3'
22784 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22787 - |
*:- |
*:-:* ) # input from stdin
22789 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22790 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22791 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22792 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22793 * ) ac_file_in
=$ac_file.
in ;;
22796 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22797 echo "$as_me: creating $ac_file" >&6;}
22799 # First look for the input files in the build tree, otherwise in the
22801 ac_file_inputs
=`IFS=:
22802 for f in $ac_file_in; do
22804 -) echo $tmp/stdin ;;
22806 # Absolute (can't be DOS-style, as IFS=:)
22807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22808 echo "$as_me: error: cannot find input file: $f" >&2;}
22809 { (exit 1); exit 1; }; }
22810 # Do quote $f, to prevent DOS paths from being IFS'd.
22813 if test -f "$f"; then
22816 elif test -f "$srcdir/$f"; then
22821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22822 echo "$as_me: error: cannot find input file: $f" >&2;}
22823 { (exit 1); exit 1; }; }
22826 done` ||
{ (exit 1); exit 1; }
22827 # Remove the trailing spaces.
22828 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22833 # `conftest.undefs', that substitutes the proper values into
22834 # config.h.in to produce config.h. The first handles `#define'
22835 # templates, and the second `#undef' templates.
22836 # And first: Protect against being on the right side of a sed subst in
22837 # config.status. Protect against being in an unquoted here document
22838 # in config.status.
22839 rm -f conftest.defines conftest.undefs
22840 # Using a here document instead of a string reduces the quoting nightmare.
22841 # Putting comments in sed scripts is not portable.
22843 # `end' is used to avoid that the second main sed command (meant for
22844 # 0-ary CPP macros) applies to n-ary macro definitions.
22845 # See the Autoconf documentation for `clear'.
22846 cat >confdef2sed.
sed <<\_ACEOF
22851 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22853 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22856 # If some macros were called several times there might be several times
22857 # the same #defines, which is useless. Nevertheless, we may not want to
22858 # sort them, since we want the *last* AC-DEFINE to be honored.
22859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22861 rm -f confdef2sed.sed
22863 # This sed command replaces #undef with comments. This is necessary, for
22864 # example, in the case of _POSIX_SOURCE, which is predefined and required
22865 # on some systems where configure will not decide to define it.
22866 cat >>conftest.undefs <<\_ACEOF
22867 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22870 # Break up conftest.defines because some shells have a limit on the size
22871 # of here documents, and old seds have small limits too (100 cmds).
22872 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22873 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22874 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22875 echo ' :' >>$CONFIG_STATUS
22876 rm -f conftest.tail
22877 while grep . conftest.defines >/dev/null
22879 # Write a limited-size here document to $tmp/defines.sed.
22880 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22881 # Speed up: don't consider the non `#define' lines.
22882 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22883 # Work around the forget-to-reset-the-flag bug.
22884 echo 't clr' >>$CONFIG_STATUS
22885 echo ': clr' >>$CONFIG_STATUS
22886 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22888 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22890 mv $tmp/out $tmp/in
22892 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22893 rm -f conftest.defines
22894 mv conftest.
tail conftest.defines
22896 rm -f conftest.defines
22897 echo ' fi # grep' >>$CONFIG_STATUS
22898 echo >>$CONFIG_STATUS
22900 # Break up conftest.undefs because some shells have a limit on the size
22901 # of here documents, and old seds have small limits too (100 cmds).
22902 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22903 rm -f conftest.
tail
22904 while grep . conftest.undefs
>/dev
/null
22906 # Write a limited-size here document to $tmp/undefs.sed.
22907 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22908 # Speed up: don't consider the non
`#undef'
22909 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22910 # Work around the forget-to-reset-the-flag bug.
22911 echo 't clr' >>$CONFIG_STATUS
22912 echo ': clr' >>$CONFIG_STATUS
22913 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22915 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22917 mv $tmp/out $tmp/in
22919 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22920 rm -f conftest.undefs
22921 mv conftest.tail conftest.undefs
22923 rm -f conftest.undefs
22925 cat >>$CONFIG_STATUS <<\_ACEOF
22926 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22927 # use $as_me), people would be surprised to read:
22928 # /* config.h. Generated by config.status. */
22929 if test x
"$ac_file" = x-
; then
22930 echo "/* Generated by configure. */" >$tmp/config.h
22932 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22934 cat $tmp/in >>$tmp/config.h
22936 if test x
"$ac_file" != x-
; then
22937 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22939 echo "$as_me: $ac_file is unchanged" >&6;}
22941 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22943 X"$ac_file" : 'X\(//\)[^/]' \| \
22944 X"$ac_file" : 'X\(//\)$' \| \
22945 X"$ac_file" : 'X\(/\)' \| \
22946 . : '\(.\)' 2>/dev/null ||
22948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22950 /^X\(\/\/\)$/{ s//\1/; q; }
22951 /^X\(\/\).*/{ s//\1/; q; }
22953 { if $as_mkdir_p; then
22958 while test ! -d "$as_dir"; do
22959 as_dirs
="$as_dir $as_dirs"
22960 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22962 X"$as_dir" : 'X\(//\)[^/]' \| \
22963 X"$as_dir" : 'X\(//\)$' \| \
22964 X"$as_dir" : 'X\(/\)' \| \
22965 . : '\(.\)' 2>/dev/null ||
22967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22969 /^X\(\/\/\)$/{ s//\1/; q; }
22970 /^X\(\/\).*/{ s//\1/; q; }
22973 test ! -n "$as_dirs" || mkdir
$as_dirs
22974 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22976 { (exit 1); exit 1; }; }; }
22979 mv $tmp/config.h
$ac_file
22983 rm -f $tmp/config.h
22988 cat >>$CONFIG_STATUS <<\_ACEOF
22990 { (exit 0); exit 0; }
22992 chmod +x
$CONFIG_STATUS
22993 ac_clean_files
=$ac_clean_files_save
22996 # configure is writing to config.log, and then calls config.status.
22997 # config.status does its own redirection, appending to config.log.
22998 # Unfortunately, on DOS this fails, as config.log is still kept open
22999 # by configure, so config.status won't be able to write to it; its
23000 # output is simply discarded. So we exec the FD to /dev/null,
23001 # effectively closing config.log, so it can be properly (re)opened and
23002 # appended to by config.status. When coming back to configure, we
23003 # need to make the FD available again.
23004 if test "$no_create" != yes; then
23006 ac_config_status_args
=
23007 test "$silent" = yes &&
23008 ac_config_status_args
="$ac_config_status_args --quiet"
23010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23013 # would make configure fail if this is the last instruction.
23014 $ac_cs_success ||
{ (exit 1); exit 1; }
23018 echo "creating Setup"
23019 if test ! -f Modules
/Setup
23021 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23024 echo "creating Setup.local"
23025 if test ! -f Modules
/Setup.
local
23027 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23030 echo "creating Makefile"
23031 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23032 -s Modules Modules
/Setup.config \
23033 Modules
/Setup.
local Modules
/Setup
23034 mv config.c Modules