2 # From configure.in Revision: 43615 .
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
/[01567]\..
*)
10823 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10826 OTHER_LIBTOOL_OPT
=""
10831 case $ac_sys_system/$ac_sys_release in
10832 Darwin
/[01567]\..
*)
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 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
13984 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
13985 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13987 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13988 # out any dynamic loading
13989 if test "$ac_cv_func_dlopen" = yes
13990 then DYNLOADFILE
="dynload_shlib.o"
13991 else DYNLOADFILE
="dynload_stub.o"
13996 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13997 echo "${ECHO_T}$DYNLOADFILE" >&6
13998 if test "$DYNLOADFILE" != "dynload_stub.o"
14001 cat >>confdefs.h
<<\_ACEOF
14002 #define HAVE_DYNAMIC_LOADING 1
14007 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14010 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14011 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14012 if test -z "$MACHDEP_OBJS"
14014 MACHDEP_OBJS
=$extra_machdep_objs
14016 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14018 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14019 echo "${ECHO_T}MACHDEP_OBJS" >&6
14021 # checks for library functions
14098 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14099 execv fork fpathconf ftime ftruncate \
14100 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14101 getpriority getpwent getspnam getspent getsid getwd \
14102 kill killpg lchown lstat
mkfifo mknod mktime \
14103 mremap nice pathconf pause plock poll pthread_init \
14104 putenv readlink realpath \
14105 select setegid seteuid setgid \
14106 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14107 sigaction siginterrupt sigrelse strftime \
14108 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14109 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14111 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_var+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.
$ac_ext <<_ACEOF
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14133 # include <limits.h>
14135 # include <assert.h>
14140 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14148 /* The GNU C library defines this for functions which it implements
14149 to always fail with ENOSYS. Some functions are actually named
14150 something starting with __ and the normal name is an alias. */
14151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14154 char (*f) () = $ac_func;
14163 return f != $ac_func;
14168 rm -f conftest.
$ac_objext conftest
$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1
>conftest.err
14174 cat conftest.err
>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try
='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.
$ac_ext >&5
14195 eval "$as_ac_var=no"
14197 rm -f conftest.err conftest.
$ac_objext \
14198 conftest
$ac_exeext conftest.
$ac_ext
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h
<<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14211 # For some functions, having a definition is not sufficient, since
14212 # we want to take their address.
14213 echo "$as_me:$LINENO: checking for chroot" >&5
14214 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14215 cat >conftest.
$ac_ext <<_ACEOF
14218 cat confdefs.h
>>conftest.
$ac_ext
14219 cat >>conftest.
$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <unistd.h>
14230 rm -f conftest.
$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1
>conftest.err
14236 cat conftest.err
>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try
='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try
='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14253 cat >>confdefs.h
<<\_ACEOF
14254 #define HAVE_CHROOT 1
14257 echo "$as_me:$LINENO: result: yes" >&5
14258 echo "${ECHO_T}yes" >&6
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.
$ac_ext >&5
14263 echo "$as_me:$LINENO: result: no" >&5
14264 echo "${ECHO_T}no" >&6
14267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 echo "$as_me:$LINENO: checking for link" >&5
14269 echo $ECHO_N "checking for link... $ECHO_C" >&6
14270 cat >conftest.
$ac_ext <<_ACEOF
14273 cat confdefs.h
>>conftest.
$ac_ext
14274 cat >>conftest.
$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <unistd.h>
14285 rm -f conftest.
$ac_objext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>conftest.er1
14289 grep -v '^ *+' conftest.er1
>conftest.err
14291 cat conftest.err
>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try
='test -z "$ac_c_werror_flag"
14295 || test ! -s conftest.err'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try
='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14308 cat >>confdefs.h
<<\_ACEOF
14309 #define HAVE_LINK 1
14312 echo "$as_me:$LINENO: result: yes" >&5
14313 echo "${ECHO_T}yes" >&6
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.
$ac_ext >&5
14318 echo "$as_me:$LINENO: result: no" >&5
14319 echo "${ECHO_T}no" >&6
14322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14323 echo "$as_me:$LINENO: checking for symlink" >&5
14324 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14325 cat >conftest.
$ac_ext <<_ACEOF
14328 cat confdefs.h
>>conftest.
$ac_ext
14329 cat >>conftest.
$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <unistd.h>
14340 rm -f conftest.
$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>conftest.er1
14344 grep -v '^ *+' conftest.er1
>conftest.err
14346 cat conftest.err
>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try
='test -z "$ac_c_werror_flag"
14350 || test ! -s conftest.err'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try
='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14363 cat >>confdefs.h
<<\_ACEOF
14364 #define HAVE_SYMLINK 1
14367 echo "$as_me:$LINENO: result: yes" >&5
14368 echo "${ECHO_T}yes" >&6
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.
$ac_ext >&5
14373 echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6
14377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14378 echo "$as_me:$LINENO: checking for fchdir" >&5
14379 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14380 cat >conftest.
$ac_ext <<_ACEOF
14383 cat confdefs.h
>>conftest.
$ac_ext
14384 cat >>conftest.
$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #include <unistd.h>
14395 rm -f conftest.
$ac_objext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397 (eval $ac_compile) 2>conftest.er1
14399 grep -v '^ *+' conftest.er1
>conftest.err
14401 cat conftest.err
>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try
='test -z "$ac_c_werror_flag"
14405 || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try
='test -s conftest.$ac_objext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14418 cat >>confdefs.h
<<\_ACEOF
14419 #define HAVE_FCHDIR 1
14422 echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.
$ac_ext >&5
14428 echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14433 echo "$as_me:$LINENO: checking for fsync" >&5
14434 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14435 cat >conftest.
$ac_ext <<_ACEOF
14438 cat confdefs.h
>>conftest.
$ac_ext
14439 cat >>conftest.
$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <unistd.h>
14450 rm -f conftest.
$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14454 grep -v '^ *+' conftest.er1
>conftest.err
14456 cat conftest.err
>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try
='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try
='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14473 cat >>confdefs.h
<<\_ACEOF
14474 #define HAVE_FSYNC 1
14477 echo "$as_me:$LINENO: result: yes" >&5
14478 echo "${ECHO_T}yes" >&6
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.
$ac_ext >&5
14483 echo "$as_me:$LINENO: result: no" >&5
14484 echo "${ECHO_T}no" >&6
14487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14488 echo "$as_me:$LINENO: checking for fdatasync" >&5
14489 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <unistd.h>
14505 rm -f conftest.
$ac_objext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507 (eval $ac_compile) 2>conftest.er1
14509 grep -v '^ *+' conftest.er1
>conftest.err
14511 cat conftest.err
>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try
='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try
='test -s conftest.$ac_objext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14528 cat >>confdefs.h
<<\_ACEOF
14529 #define HAVE_FDATASYNC 1
14532 echo "$as_me:$LINENO: result: yes" >&5
14533 echo "${ECHO_T}yes" >&6
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.
$ac_ext >&5
14538 echo "$as_me:$LINENO: result: no" >&5
14539 echo "${ECHO_T}no" >&6
14542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14544 # On some systems (eg. FreeBSD 5), we would find a definition of the
14545 # functions ctermid_r, setgroups in the library, but no prototype
14546 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14547 # address to avoid compiler warnings and potential miscompilations
14548 # because of the missing prototypes.
14550 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14551 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14552 cat >conftest.
$ac_ext <<_ACEOF
14555 cat confdefs.h
>>conftest.
$ac_ext
14556 cat >>conftest.
$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14559 #include "confdefs.h"
14565 void* p = ctermid_r
14570 rm -f conftest.
$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572 (eval $ac_compile) 2>conftest.er1
14574 grep -v '^ *+' conftest.er1
>conftest.err
14576 cat conftest.err
>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try
='test -z "$ac_c_werror_flag"
14580 || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try
='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14593 cat >>confdefs.h
<<\_ACEOF
14594 #define HAVE_CTERMID_R 1
14597 echo "$as_me:$LINENO: result: yes" >&5
14598 echo "${ECHO_T}yes" >&6
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.
$ac_ext >&5
14603 echo "$as_me:$LINENO: result: no" >&5
14604 echo "${ECHO_T}no" >&6
14607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14609 echo "$as_me:$LINENO: checking for flock" >&5
14610 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14611 cat >conftest.
$ac_ext <<_ACEOF
14614 cat confdefs.h
>>conftest.
$ac_ext
14615 cat >>conftest.
$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 #include "confdefs.h"
14619 #include <sys/file.h>
14629 rm -f conftest.
$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1
>conftest.err
14635 cat conftest.err
>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try
='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try
='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14652 cat >>confdefs.h
<<\_ACEOF
14653 #define HAVE_FLOCK 1
14656 echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.
$ac_ext >&5
14662 echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14668 echo "$as_me:$LINENO: checking for getpagesize" >&5
14669 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14670 cat >conftest.
$ac_ext <<_ACEOF
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14677 #include "confdefs.h"
14678 #include <unistd.h>
14683 void* p = getpagesize
14688 rm -f conftest.
$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14692 grep -v '^ *+' conftest.er1
>conftest.err
14694 cat conftest.err
>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try
='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try
='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14711 cat >>confdefs.h
<<\_ACEOF
14712 #define HAVE_GETPAGESIZE 1
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.
$ac_ext >&5
14721 echo "$as_me:$LINENO: result: no" >&5
14722 echo "${ECHO_T}no" >&6
14725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14727 for ac_prog
in true
14729 # Extract the first word of "$ac_prog", so it can be a program name with args.
14730 set dummy
$ac_prog; ac_word
=$2
14731 echo "$as_me:$LINENO: checking for $ac_word" >&5
14732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14733 if test "${ac_cv_prog_TRUE+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 if test -n "$TRUE"; then
14737 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14740 for as_dir
in $PATH
14743 test -z "$as_dir" && as_dir
=.
14744 for ac_exec_ext
in '' $ac_executable_extensions; do
14745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14746 ac_cv_prog_TRUE
="$ac_prog"
14747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14755 TRUE
=$ac_cv_prog_TRUE
14756 if test -n "$TRUE"; then
14757 echo "$as_me:$LINENO: result: $TRUE" >&5
14758 echo "${ECHO_T}$TRUE" >&6
14760 echo "$as_me:$LINENO: result: no" >&5
14761 echo "${ECHO_T}no" >&6
14764 test -n "$TRUE" && break
14766 test -n "$TRUE" || TRUE
="/bin/true"
14769 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14770 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14771 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 ac_check_lib_save_LIBS
=$LIBS
14776 cat >conftest.
$ac_ext <<_ACEOF
14779 cat confdefs.h
>>conftest.
$ac_ext
14780 cat >>conftest.
$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14783 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14798 rm -f conftest.
$ac_objext conftest
$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14802 grep -v '^ *+' conftest.er1
>conftest.err
14804 cat conftest.err
>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try
='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try
='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_cv_lib_c_inet_aton
=yes
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.
$ac_ext >&5
14825 ac_cv_lib_c_inet_aton
=no
14827 rm -f conftest.err conftest.
$ac_objext \
14828 conftest
$ac_exeext conftest.
$ac_ext
14829 LIBS
=$ac_check_lib_save_LIBS
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14832 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14833 if test $ac_cv_lib_c_inet_aton = yes; then
14837 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14838 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14839 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 ac_check_lib_save_LIBS
=$LIBS
14843 LIBS
="-lresolv $LIBS"
14844 cat >conftest.
$ac_ext <<_ACEOF
14847 cat confdefs.h
>>conftest.
$ac_ext
14848 cat >>conftest.
$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14851 /* Override any gcc2 internal prototype to avoid an error. */
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14866 rm -f conftest.
$ac_objext conftest
$ac_exeext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14868 (eval $ac_link) 2>conftest.er1
14870 grep -v '^ *+' conftest.er1
>conftest.err
14872 cat conftest.err
>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
14875 { ac_try
='test -z "$ac_c_werror_flag"
14876 || test ! -s conftest.err'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try
='test -s conftest$ac_exeext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_resolv_inet_aton
=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.
$ac_ext >&5
14893 ac_cv_lib_resolv_inet_aton
=no
14895 rm -f conftest.err conftest.
$ac_objext \
14896 conftest
$ac_exeext conftest.
$ac_ext
14897 LIBS
=$ac_check_lib_save_LIBS
14899 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14900 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14901 if test $ac_cv_lib_resolv_inet_aton = yes; then
14902 cat >>confdefs.h
<<_ACEOF
14903 #define HAVE_LIBRESOLV 1
14906 LIBS
="-lresolv $LIBS"
14914 echo "$as_me:$LINENO: checking for hstrerror" >&5
14915 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14916 cat >conftest.
$ac_ext <<_ACEOF
14919 cat confdefs.h
>>conftest.
$ac_ext
14920 cat >>conftest.
$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14923 #include "confdefs.h"
14929 void* p = hstrerror; hstrerror(0)
14934 rm -f conftest.
$ac_objext conftest
$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14938 grep -v '^ *+' conftest.er1
>conftest.err
14940 cat conftest.err
>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try
='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try
='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14957 cat >>confdefs.h
<<\_ACEOF
14958 #define HAVE_HSTRERROR 1
14961 echo "$as_me:$LINENO: result: yes" >&5
14962 echo "${ECHO_T}yes" >&6
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.
$ac_ext >&5
14967 echo "$as_me:$LINENO: result: no" >&5
14968 echo "${ECHO_T}no" >&6
14971 rm -f conftest.err conftest.
$ac_objext \
14972 conftest
$ac_exeext conftest.
$ac_ext
14974 echo "$as_me:$LINENO: checking for inet_aton" >&5
14975 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14976 cat >conftest.
$ac_ext <<_ACEOF
14979 cat confdefs.h
>>conftest.
$ac_ext
14980 cat >>conftest.
$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 #include "confdefs.h"
14984 #include <sys/types.h>
14985 #include <sys/socket.h>
14986 #include <netinet/in.h>
14987 #include <arpa/inet.h>
14992 void* p = inet_aton;inet_aton(0,0)
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15001 grep -v '^ *+' conftest.er1
>conftest.err
15003 cat conftest.err
>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try
='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try
='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15020 cat >>confdefs.h
<<\_ACEOF
15021 #define HAVE_INET_ATON 1
15024 echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.
$ac_ext >&5
15030 echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15034 rm -f conftest.err conftest.
$ac_objext \
15035 conftest
$ac_exeext conftest.
$ac_ext
15037 echo "$as_me:$LINENO: checking for inet_pton" >&5
15038 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15039 cat >conftest.
$ac_ext <<_ACEOF
15042 cat confdefs.h
>>conftest.
$ac_ext
15043 cat >>conftest.
$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15046 #include "confdefs.h"
15047 #include <sys/types.h>
15048 #include <sys/socket.h>
15049 #include <netinet/in.h>
15050 #include <arpa/inet.h>
15055 void* p = inet_pton
15060 rm -f conftest.
$ac_objext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15062 (eval $ac_compile) 2>conftest.er1
15064 grep -v '^ *+' conftest.er1
>conftest.err
15066 cat conftest.err
>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try
='test -z "$ac_c_werror_flag"
15070 || test ! -s conftest.err'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try
='test -s conftest.$ac_objext'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15083 cat >>confdefs.h
<<\_ACEOF
15084 #define HAVE_INET_PTON 1
15087 echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.
$ac_ext >&5
15093 echo "$as_me:$LINENO: result: no" >&5
15094 echo "${ECHO_T}no" >&6
15097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15099 # On some systems, setgroups is in unistd.h, on others, in grp.h
15100 echo "$as_me:$LINENO: checking for setgroups" >&5
15101 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15102 cat >conftest.
$ac_ext <<_ACEOF
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 #include "confdefs.h"
15110 #include <unistd.h>
15118 void* p = setgroups
15123 rm -f conftest.
$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1
>conftest.err
15129 cat conftest.err
>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try
='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try
='test -s conftest.$ac_objext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15146 cat >>confdefs.h
<<\_ACEOF
15147 #define HAVE_SETGROUPS 1
15150 echo "$as_me:$LINENO: result: yes" >&5
15151 echo "${ECHO_T}yes" >&6
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.
$ac_ext >&5
15156 echo "$as_me:$LINENO: result: no" >&5
15157 echo "${ECHO_T}no" >&6
15160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15162 # check for openpty and forkpty
15165 for ac_func
in openpty
15167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15168 echo "$as_me:$LINENO: checking for $ac_func" >&5
15169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15170 if eval "test \"\${$as_ac_var+set}\" = set"; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 cat >conftest.
$ac_ext <<_ACEOF
15176 cat confdefs.h
>>conftest.
$ac_ext
15177 cat >>conftest.
$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15181 #define $ac_func innocuous_$ac_func
15183 /* System header to define __stub macros and hopefully few prototypes,
15184 which can conflict with char $ac_func (); below.
15185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15186 <limits.h> exists even on freestanding compilers. */
15189 # include <limits.h>
15191 # include <assert.h>
15196 /* Override any gcc2 internal prototype to avoid an error. */
15201 /* We use char because int might match the return type of a gcc2
15202 builtin and then its argument prototype would still apply. */
15204 /* The GNU C library defines this for functions which it implements
15205 to always fail with ENOSYS. Some functions are actually named
15206 something starting with __ and the normal name is an alias. */
15207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15210 char (*f) () = $ac_func;
15219 return f != $ac_func;
15224 rm -f conftest.
$ac_objext conftest
$ac_exeext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15226 (eval $ac_link) 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try
='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try
='test -s conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 eval "$as_ac_var=yes"
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.
$ac_ext >&5
15251 eval "$as_ac_var=no"
15253 rm -f conftest.err conftest.
$ac_objext \
15254 conftest
$ac_exeext conftest.
$ac_ext
15256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15258 if test `eval echo '${'$as_ac_var'}'` = yes; then
15259 cat >>confdefs.h
<<_ACEOF
15260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15264 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15265 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15266 if test "${ac_cv_lib_util_openpty+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 ac_check_lib_save_LIBS
=$LIBS
15270 LIBS
="-lutil $LIBS"
15271 cat >conftest.
$ac_ext <<_ACEOF
15274 cat confdefs.h
>>conftest.
$ac_ext
15275 cat >>conftest.
$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15278 /* Override any gcc2 internal prototype to avoid an error. */
15282 /* We use char because int might match the return type of a gcc2
15283 builtin and then its argument prototype would still apply. */
15293 rm -f conftest.
$ac_objext conftest
$ac_exeext
15294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15295 (eval $ac_link) 2>conftest.er1
15297 grep -v '^ *+' conftest.er1
>conftest.err
15299 cat conftest.err
>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try
='test -z "$ac_c_werror_flag"
15303 || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try
='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_util_openpty
=yes
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.
$ac_ext >&5
15320 ac_cv_lib_util_openpty
=no
15322 rm -f conftest.err conftest.
$ac_objext \
15323 conftest
$ac_exeext conftest.
$ac_ext
15324 LIBS
=$ac_check_lib_save_LIBS
15326 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15327 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15328 if test $ac_cv_lib_util_openpty = yes; then
15329 cat >>confdefs.h
<<\_ACEOF
15330 #define HAVE_OPENPTY 1
15332 LIBS
="$LIBS -lutil"
15334 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15335 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15336 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 ac_check_lib_save_LIBS
=$LIBS
15341 cat >conftest.
$ac_ext <<_ACEOF
15344 cat confdefs.h
>>conftest.
$ac_ext
15345 cat >>conftest.
$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any gcc2 internal prototype to avoid an error. */
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15363 rm -f conftest.
$ac_objext conftest
$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try
='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try
='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_lib_bsd_openpty
=yes
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.
$ac_ext >&5
15390 ac_cv_lib_bsd_openpty
=no
15392 rm -f conftest.err conftest.
$ac_objext \
15393 conftest
$ac_exeext conftest.
$ac_ext
15394 LIBS
=$ac_check_lib_save_LIBS
15396 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15397 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15398 if test $ac_cv_lib_bsd_openpty = yes; then
15399 cat >>confdefs.h
<<\_ACEOF
15400 #define HAVE_OPENPTY 1
15413 for ac_func
in forkpty
15415 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15416 echo "$as_me:$LINENO: checking for $ac_func" >&5
15417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15418 if eval "test \"\${$as_ac_var+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 cat >conftest.
$ac_ext <<_ACEOF
15424 cat confdefs.h
>>conftest.
$ac_ext
15425 cat >>conftest.
$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15429 #define $ac_func innocuous_$ac_func
15431 /* System header to define __stub macros and hopefully few prototypes,
15432 which can conflict with char $ac_func (); below.
15433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15434 <limits.h> exists even on freestanding compilers. */
15437 # include <limits.h>
15439 # include <assert.h>
15444 /* Override any gcc2 internal prototype to avoid an error. */
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15452 /* The GNU C library defines this for functions which it implements
15453 to always fail with ENOSYS. Some functions are actually named
15454 something starting with __ and the normal name is an alias. */
15455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15458 char (*f) () = $ac_func;
15467 return f != $ac_func;
15472 rm -f conftest.
$ac_objext conftest
$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>conftest.er1
15476 grep -v '^ *+' conftest.er1
>conftest.err
15478 cat conftest.err
>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try
='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try
='test -s conftest$ac_exeext'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 eval "$as_ac_var=yes"
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.
$ac_ext >&5
15499 eval "$as_ac_var=no"
15501 rm -f conftest.err conftest.
$ac_objext \
15502 conftest
$ac_exeext conftest.
$ac_ext
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15506 if test `eval echo '${'$as_ac_var'}'` = yes; then
15507 cat >>confdefs.h
<<_ACEOF
15508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15512 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15513 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15514 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 ac_check_lib_save_LIBS
=$LIBS
15518 LIBS
="-lutil $LIBS"
15519 cat >conftest.
$ac_ext <<_ACEOF
15522 cat confdefs.h
>>conftest.
$ac_ext
15523 cat >>conftest.
$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15526 /* Override any gcc2 internal prototype to avoid an error. */
15530 /* We use char because int might match the return type of a gcc2
15531 builtin and then its argument prototype would still apply. */
15541 rm -f conftest.
$ac_objext conftest
$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543 (eval $ac_link) 2>conftest.er1
15545 grep -v '^ *+' conftest.er1
>conftest.err
15547 cat conftest.err
>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try
='test -z "$ac_c_werror_flag"
15551 || test ! -s conftest.err'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try
='test -s conftest$ac_exeext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_cv_lib_util_forkpty
=yes
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.
$ac_ext >&5
15568 ac_cv_lib_util_forkpty
=no
15570 rm -f conftest.err conftest.
$ac_objext \
15571 conftest
$ac_exeext conftest.
$ac_ext
15572 LIBS
=$ac_check_lib_save_LIBS
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15575 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15576 if test $ac_cv_lib_util_forkpty = yes; then
15577 cat >>confdefs.h
<<\_ACEOF
15578 #define HAVE_FORKPTY 1
15580 LIBS
="$LIBS -lutil"
15582 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15583 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15584 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 ac_check_lib_save_LIBS
=$LIBS
15589 cat >conftest.
$ac_ext <<_ACEOF
15592 cat confdefs.h
>>conftest.
$ac_ext
15593 cat >>conftest.
$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15596 /* Override any gcc2 internal prototype to avoid an error. */
15600 /* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15611 rm -f conftest.
$ac_objext conftest
$ac_exeext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15613 (eval $ac_link) 2>conftest.er1
15615 grep -v '^ *+' conftest.er1
>conftest.err
15617 cat conftest.err
>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try
='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try
='test -s conftest$ac_exeext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_cv_lib_bsd_forkpty
=yes
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.
$ac_ext >&5
15638 ac_cv_lib_bsd_forkpty
=no
15640 rm -f conftest.err conftest.
$ac_objext \
15641 conftest
$ac_exeext conftest.
$ac_ext
15642 LIBS
=$ac_check_lib_save_LIBS
15644 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15645 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15646 if test $ac_cv_lib_bsd_forkpty = yes; then
15647 cat >>confdefs.h
<<\_ACEOF
15648 #define HAVE_FORKPTY 1
15661 # check for long file support functions
15668 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15671 echo "$as_me:$LINENO: checking for $ac_func" >&5
15672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15673 if eval "test \"\${$as_ac_var+set}\" = set"; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 cat >conftest.
$ac_ext <<_ACEOF
15679 cat confdefs.h
>>conftest.
$ac_ext
15680 cat >>conftest.
$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15684 #define $ac_func innocuous_$ac_func
15686 /* System header to define __stub macros and hopefully few prototypes,
15687 which can conflict with char $ac_func (); below.
15688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15689 <limits.h> exists even on freestanding compilers. */
15692 # include <limits.h>
15694 # include <assert.h>
15699 /* Override any gcc2 internal prototype to avoid an error. */
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15707 /* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15713 char (*f) () = $ac_func;
15722 return f != $ac_func;
15727 rm -f conftest.
$ac_objext conftest
$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>conftest.er1
15731 grep -v '^ *+' conftest.er1
>conftest.err
15733 cat conftest.err
>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try
='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try
='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 eval "$as_ac_var=yes"
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.
$ac_ext >&5
15754 eval "$as_ac_var=no"
15756 rm -f conftest.err conftest.
$ac_objext \
15757 conftest
$ac_exeext conftest.
$ac_ext
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15761 if test `eval echo '${'$as_ac_var'}'` = yes; then
15762 cat >>confdefs.h
<<_ACEOF
15763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15775 for ac_func
in dup2 getcwd strdup strerror memmove
15777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15778 echo "$as_me:$LINENO: checking for $ac_func" >&5
15779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15780 if eval "test \"\${$as_ac_var+set}\" = set"; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 cat >conftest.
$ac_ext <<_ACEOF
15786 cat confdefs.h
>>conftest.
$ac_ext
15787 cat >>conftest.
$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15791 #define $ac_func innocuous_$ac_func
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func (); below.
15795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 <limits.h> exists even on freestanding compilers. */
15799 # include <limits.h>
15801 # include <assert.h>
15806 /* Override any gcc2 internal prototype to avoid an error. */
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15814 /* The GNU C library defines this for functions which it implements
15815 to always fail with ENOSYS. Some functions are actually named
15816 something starting with __ and the normal name is an alias. */
15817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 char (*f) () = $ac_func;
15829 return f != $ac_func;
15834 rm -f conftest.
$ac_objext conftest
$ac_exeext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>conftest.er1
15838 grep -v '^ *+' conftest.er1
>conftest.err
15840 cat conftest.err
>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try
='test -z "$ac_c_werror_flag"
15844 || test ! -s conftest.err'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try
='test -s conftest$ac_exeext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 eval "$as_ac_var=yes"
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.
$ac_ext >&5
15861 eval "$as_ac_var=no"
15863 rm -f conftest.err conftest.
$ac_objext \
15864 conftest
$ac_exeext conftest.
$ac_ext
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15868 if test `eval echo '${'$as_ac_var'}'` = yes; then
15869 cat >>confdefs.h
<<_ACEOF
15870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15875 "$ac_func.$ac_objext" | \
15876 *" $ac_func.$ac_objext" | \
15877 "$ac_func.$ac_objext "* | \
15878 *" $ac_func.$ac_objext "* ) ;;
15879 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15887 for ac_func
in getpgrp
15889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_var+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 cat >conftest.
$ac_ext <<_ACEOF
15898 cat confdefs.h
>>conftest.
$ac_ext
15899 cat >>conftest.
$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15911 # include <limits.h>
15913 # include <assert.h>
15918 /* Override any gcc2 internal prototype to avoid an error. */
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932 char (*f) () = $ac_func;
15941 return f != $ac_func;
15946 rm -f conftest.
$ac_objext conftest
$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>conftest.er1
15950 grep -v '^ *+' conftest.er1
>conftest.err
15952 cat conftest.err
>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try
='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try
='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 eval "$as_ac_var=yes"
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.
$ac_ext >&5
15973 eval "$as_ac_var=no"
15975 rm -f conftest.err conftest.
$ac_objext \
15976 conftest
$ac_exeext conftest.
$ac_ext
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15980 if test `eval echo '${'$as_ac_var'}'` = yes; then
15981 cat >>confdefs.h
<<_ACEOF
15982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15984 cat >conftest.
$ac_ext <<_ACEOF
15987 cat confdefs.h
>>conftest.
$ac_ext
15988 cat >>conftest.
$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <unistd.h>
15999 rm -f conftest.
$ac_objext
16000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>conftest.er1
16003 grep -v '^ *+' conftest.er1
>conftest.err
16005 cat conftest.err
>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try
='test -z "$ac_c_werror_flag"
16009 || test ! -s conftest.err'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try
='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16022 cat >>confdefs.h
<<\_ACEOF
16023 #define GETPGRP_HAVE_ARG 1
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16038 for ac_func
in setpgrp
16040 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16041 echo "$as_me:$LINENO: checking for $ac_func" >&5
16042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16043 if eval "test \"\${$as_ac_var+set}\" = set"; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 cat >conftest.
$ac_ext <<_ACEOF
16049 cat confdefs.h
>>conftest.
$ac_ext
16050 cat >>conftest.
$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16054 #define $ac_func innocuous_$ac_func
16056 /* System header to define __stub macros and hopefully few prototypes,
16057 which can conflict with char $ac_func (); below.
16058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16059 <limits.h> exists even on freestanding compilers. */
16062 # include <limits.h>
16064 # include <assert.h>
16069 /* Override any gcc2 internal prototype to avoid an error. */
16074 /* We use char because int might match the return type of a gcc2
16075 builtin and then its argument prototype would still apply. */
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16083 char (*f) () = $ac_func;
16092 return f != $ac_func;
16097 rm -f conftest.
$ac_objext conftest
$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>conftest.er1
16101 grep -v '^ *+' conftest.er1
>conftest.err
16103 cat conftest.err
>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try
='test -z "$ac_c_werror_flag"
16107 || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try
='test -s conftest$ac_exeext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 eval "$as_ac_var=yes"
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.
$ac_ext >&5
16124 eval "$as_ac_var=no"
16126 rm -f conftest.err conftest.
$ac_objext \
16127 conftest
$ac_exeext conftest.
$ac_ext
16129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16131 if test `eval echo '${'$as_ac_var'}'` = yes; then
16132 cat >>confdefs.h
<<_ACEOF
16133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16135 cat >conftest.
$ac_ext <<_ACEOF
16138 cat confdefs.h
>>conftest.
$ac_ext
16139 cat >>conftest.
$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <unistd.h>
16150 rm -f conftest.
$ac_objext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16152 (eval $ac_compile) 2>conftest.er1
16154 grep -v '^ *+' conftest.er1
>conftest.err
16156 cat conftest.err
>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try
='test -z "$ac_c_werror_flag"
16160 || test ! -s conftest.err'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try
='test -s conftest.$ac_objext'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16173 cat >>confdefs.h
<<\_ACEOF
16174 #define SETPGRP_HAVE_ARG 1
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.
$ac_ext >&5
16183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16189 for ac_func
in gettimeofday
16191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16192 echo "$as_me:$LINENO: checking for $ac_func" >&5
16193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_var+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 cat >conftest.
$ac_ext <<_ACEOF
16200 cat confdefs.h
>>conftest.
$ac_ext
16201 cat >>conftest.
$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16205 #define $ac_func innocuous_$ac_func
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char $ac_func (); below.
16209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16210 <limits.h> exists even on freestanding compilers. */
16213 # include <limits.h>
16215 # include <assert.h>
16220 /* Override any gcc2 internal prototype to avoid an error. */
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16234 char (*f) () = $ac_func;
16243 return f != $ac_func;
16248 rm -f conftest.
$ac_objext conftest
$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16252 grep -v '^ *+' conftest.er1
>conftest.err
16254 cat conftest.err
>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try
='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try
='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 eval "$as_ac_var=yes"
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.
$ac_ext >&5
16275 eval "$as_ac_var=no"
16277 rm -f conftest.err conftest.
$ac_objext \
16278 conftest
$ac_exeext conftest.
$ac_ext
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16282 if test `eval echo '${'$as_ac_var'}'` = yes; then
16283 cat >>confdefs.h
<<_ACEOF
16284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16286 cat >conftest.
$ac_ext <<_ACEOF
16289 cat confdefs.h
>>conftest.
$ac_ext
16290 cat >>conftest.
$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <sys/time.h>
16296 gettimeofday((struct timeval*)0,(struct timezone*)0);
16301 rm -f conftest.
$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>conftest.er1
16305 grep -v '^ *+' conftest.er1
>conftest.err
16307 cat conftest.err
>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try
='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try
='test -s conftest.$ac_objext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.
$ac_ext >&5
16329 cat >>confdefs.h
<<\_ACEOF
16330 #define GETTIMEOFDAY_NO_TZ 1
16335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16341 echo "$as_me:$LINENO: checking for major" >&5
16342 echo $ECHO_N "checking for major... $ECHO_C" >&6
16343 cat >conftest.
$ac_ext <<_ACEOF
16346 cat confdefs.h
>>conftest.
$ac_ext
16347 cat >>conftest.
$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16350 #if defined(MAJOR_IN_MKDEV)
16351 #include <sys/mkdev.h>
16352 #elif defined(MAJOR_IN_SYSMACROS)
16353 #include <sys/sysmacros.h>
16355 #include <sys/types.h>
16362 makedev(major(0),minor(0));
16368 rm -f conftest.
$ac_objext conftest
$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>conftest.er1
16372 grep -v '^ *+' conftest.er1
>conftest.err
16374 cat conftest.err
>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try
='test -z "$ac_c_werror_flag"
16378 || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try
='test -s conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16392 cat >>confdefs.h
<<\_ACEOF
16393 #define HAVE_DEVICE_MACROS 1
16396 echo "$as_me:$LINENO: result: yes" >&5
16397 echo "${ECHO_T}yes" >&6
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.
$ac_ext >&5
16404 echo "$as_me:$LINENO: result: no" >&5
16405 echo "${ECHO_T}no" >&6
16408 rm -f conftest.err conftest.
$ac_objext \
16409 conftest
$ac_exeext conftest.
$ac_ext
16411 # On OSF/1 V5.1, getaddrinfo is available, but a define
16412 # for [no]getaddrinfo in netdb.h.
16413 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16414 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16415 cat >conftest.
$ac_ext <<_ACEOF
16418 cat confdefs.h
>>conftest.
$ac_ext
16419 cat >>conftest.
$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 #include <sys/types.h>
16423 #include <sys/socket.h>
16431 getaddrinfo(NULL, NULL, NULL, NULL);
16437 rm -f conftest.
$ac_objext conftest
$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439 (eval $ac_link) 2>conftest.er1
16441 grep -v '^ *+' conftest.er1
>conftest.err
16443 cat conftest.err
>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try
='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try
='test -s conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16460 echo "$as_me:$LINENO: result: yes" >&5
16461 echo "${ECHO_T}yes" >&6
16462 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16463 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16464 if test "$cross_compiling" = yes; then
16465 echo "$as_me:$LINENO: result: buggy" >&5
16466 echo "${ECHO_T}buggy" >&6
16467 buggygetaddrinfo
=yes
16469 cat >conftest.
$ac_ext <<_ACEOF
16472 cat confdefs.h
>>conftest.
$ac_ext
16473 cat >>conftest.
$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16476 #include <sys/types.h>
16478 #include <string.h>
16479 #include <sys/socket.h>
16480 #include <netinet/in.h>
16484 int passive, gaierr, inet4 = 0, inet6 = 0;
16485 struct addrinfo hints, *ai, *aitop;
16486 char straddr[INET6_ADDRSTRLEN], strport[16];
16488 for (passive = 0; passive <= 1; passive++) {
16489 memset(&hints, 0, sizeof(hints));
16490 hints.ai_family = AF_UNSPEC;
16491 hints.ai_flags = passive ? AI_PASSIVE : 0;
16492 hints.ai_socktype = SOCK_STREAM;
16493 hints.ai_protocol = IPPROTO_TCP;
16494 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16495 (void)gai_strerror(gaierr);
16498 for (ai = aitop; ai; ai = ai->ai_next) {
16499 if (ai->ai_addr == NULL ||
16500 ai->ai_addrlen == 0 ||
16501 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16502 straddr, sizeof(straddr), strport, sizeof(strport),
16503 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16506 switch (ai->ai_family) {
16508 if (strcmp(strport, "54321") != 0) {
16512 if (strcmp(straddr, "0.0.0.0") != 0) {
16516 if (strcmp(straddr, "127.0.0.1") != 0) {
16523 if (strcmp(strport, "54321") != 0) {
16527 if (strcmp(straddr, "::") != 0) {
16531 if (strcmp(straddr, "::1") != 0) {
16541 /* another family support? */
16547 if (!(inet4 == 0 || inet4 == 2))
16549 if (!(inet6 == 0 || inet6 == 2))
16553 freeaddrinfo(aitop);
16558 freeaddrinfo(aitop);
16563 rm -f conftest
$ac_exeext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565 (eval $ac_link) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 echo "$as_me:$LINENO: result: good" >&5
16575 echo "${ECHO_T}good" >&6
16576 buggygetaddrinfo
=no
16578 echo "$as_me: program exited with status $ac_status" >&5
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.
$ac_ext >&5
16582 ( exit $ac_status )
16583 echo "$as_me:$LINENO: result: buggy" >&5
16584 echo "${ECHO_T}buggy" >&6
16585 buggygetaddrinfo
=yes
16587 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.
$ac_ext >&5
16594 echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6
16596 buggygetaddrinfo
=yes
16599 rm -f conftest.err conftest.
$ac_objext \
16600 conftest
$ac_exeext conftest.
$ac_ext
16602 if test "$buggygetaddrinfo" = "yes"; then
16603 if test "$ipv6" = "yes"; then
16604 echo 'Fatal: You must get working getaddrinfo() function.'
16605 echo ' or you can specify "--disable-ipv6"'.
16610 cat >>confdefs.h
<<\_ACEOF
16611 #define HAVE_GETADDRINFO 1
16616 for ac_func
in getnameinfo
16618 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16619 echo "$as_me:$LINENO: checking for $ac_func" >&5
16620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16621 if eval "test \"\${$as_ac_var+set}\" = set"; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 cat >conftest.
$ac_ext <<_ACEOF
16627 cat confdefs.h
>>conftest.
$ac_ext
16628 cat >>conftest.
$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16632 #define $ac_func innocuous_$ac_func
16634 /* System header to define __stub macros and hopefully few prototypes,
16635 which can conflict with char $ac_func (); below.
16636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16637 <limits.h> exists even on freestanding compilers. */
16640 # include <limits.h>
16642 # include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16652 /* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16655 /* The GNU C library defines this for functions which it implements
16656 to always fail with ENOSYS. Some functions are actually named
16657 something starting with __ and the normal name is an alias. */
16658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16661 char (*f) () = $ac_func;
16670 return f != $ac_func;
16675 rm -f conftest.
$ac_objext conftest
$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>conftest.er1
16679 grep -v '^ *+' conftest.er1
>conftest.err
16681 cat conftest.err
>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try
='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try
='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 eval "$as_ac_var=yes"
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.
$ac_ext >&5
16702 eval "$as_ac_var=no"
16704 rm -f conftest.err conftest.
$ac_objext \
16705 conftest
$ac_exeext conftest.
$ac_ext
16707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710 cat >>confdefs.h
<<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16718 # checks for structures
16719 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16721 if test "${ac_cv_header_time+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 cat >conftest.
$ac_ext <<_ACEOF
16727 cat confdefs.h
>>conftest.
$ac_ext
16728 cat >>conftest.
$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <sys/types.h>
16731 #include <sys/time.h>
16737 if ((struct tm *) 0)
16743 rm -f conftest.
$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16747 grep -v '^ *+' conftest.er1
>conftest.err
16749 cat conftest.err
>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try
='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try
='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_cv_header_time
=yes
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.
$ac_ext >&5
16770 ac_cv_header_time
=no
16772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16774 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16775 echo "${ECHO_T}$ac_cv_header_time" >&6
16776 if test $ac_cv_header_time = yes; then
16778 cat >>confdefs.h
<<\_ACEOF
16779 #define TIME_WITH_SYS_TIME 1
16784 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16786 if test "${ac_cv_struct_tm+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 cat >conftest.
$ac_ext <<_ACEOF
16792 cat confdefs.h
>>conftest.
$ac_ext
16793 cat >>conftest.
$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <sys/types.h>
16801 struct tm *tp; tp->tm_sec;
16806 rm -f conftest.
$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>conftest.er1
16810 grep -v '^ *+' conftest.er1
>conftest.err
16812 cat conftest.err
>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try
='test -z "$ac_c_werror_flag"
16816 || test ! -s conftest.err'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try
='test -s conftest.$ac_objext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_cv_struct_tm
=time.h
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.
$ac_ext >&5
16833 ac_cv_struct_tm
=sys
/time.h
16835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16838 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16839 if test $ac_cv_struct_tm = sys
/time.h
; then
16841 cat >>confdefs.h
<<\_ACEOF
16842 #define TM_IN_SYS_TIME 1
16847 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16848 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16849 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 cat >conftest.
$ac_ext <<_ACEOF
16855 cat confdefs.h
>>conftest.
$ac_ext
16856 cat >>conftest.
$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 #include <sys/types.h>
16859 #include <$ac_cv_struct_tm>
16865 static struct tm ac_aggr;
16866 if (ac_aggr.tm_zone)
16872 rm -f conftest.
$ac_objext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16874 (eval $ac_compile) 2>conftest.er1
16876 grep -v '^ *+' conftest.er1
>conftest.err
16878 cat conftest.err
>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try
='test -z "$ac_c_werror_flag"
16882 || test ! -s conftest.err'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try
='test -s conftest.$ac_objext'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_member_struct_tm_tm_zone
=yes
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.
$ac_ext >&5
16899 cat >conftest.
$ac_ext <<_ACEOF
16902 cat confdefs.h
>>conftest.
$ac_ext
16903 cat >>conftest.
$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 #include <sys/types.h>
16906 #include <$ac_cv_struct_tm>
16912 static struct tm ac_aggr;
16913 if (sizeof ac_aggr.tm_zone)
16919 rm -f conftest.
$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16923 grep -v '^ *+' conftest.er1
>conftest.err
16925 cat conftest.err
>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try
='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try
='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_member_struct_tm_tm_zone
=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.
$ac_ext >&5
16946 ac_cv_member_struct_tm_tm_zone
=no
16948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16953 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16954 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16956 cat >>confdefs.h
<<_ACEOF
16957 #define HAVE_STRUCT_TM_TM_ZONE 1
16963 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16965 cat >>confdefs.h
<<\_ACEOF
16966 #define HAVE_TM_ZONE 1
16970 echo "$as_me:$LINENO: checking for tzname" >&5
16971 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16972 if test "${ac_cv_var_tzname+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 cat >conftest.
$ac_ext <<_ACEOF
16978 cat confdefs.h
>>conftest.
$ac_ext
16979 cat >>conftest.
$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16982 #ifndef tzname /* For SGI. */
16983 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16994 rm -f conftest.
$ac_objext conftest
$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>conftest.er1
16998 grep -v '^ *+' conftest.er1
>conftest.err
17000 cat conftest.err
>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try
='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try
='test -s conftest$ac_exeext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_cv_var_tzname
=yes
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.
$ac_ext >&5
17021 ac_cv_var_tzname
=no
17023 rm -f conftest.err conftest.
$ac_objext \
17024 conftest
$ac_exeext conftest.
$ac_ext
17026 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17027 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17028 if test $ac_cv_var_tzname = yes; then
17030 cat >>confdefs.h
<<\_ACEOF
17031 #define HAVE_TZNAME 1
17037 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17038 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17039 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 cat >conftest.
$ac_ext <<_ACEOF
17045 cat confdefs.h
>>conftest.
$ac_ext
17046 cat >>conftest.
$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17052 static struct stat ac_aggr;
17053 if (ac_aggr.st_rdev)
17059 rm -f conftest.
$ac_objext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>conftest.er1
17063 grep -v '^ *+' conftest.er1
>conftest.err
17065 cat conftest.err
>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try
='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try
='test -s conftest.$ac_objext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_member_struct_stat_st_rdev
=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.
$ac_ext >&5
17086 cat >conftest.
$ac_ext <<_ACEOF
17089 cat confdefs.h
>>conftest.
$ac_ext
17090 cat >>conftest.
$ac_ext <<_ACEOF
17091 /* end confdefs.h. */
17092 $ac_includes_default
17096 static struct stat ac_aggr;
17097 if (sizeof ac_aggr.st_rdev)
17103 rm -f conftest.
$ac_objext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17105 (eval $ac_compile) 2>conftest.er1
17107 grep -v '^ *+' conftest.er1
>conftest.err
17109 cat conftest.err
>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try
='test -z "$ac_c_werror_flag"
17113 || test ! -s conftest.err'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try
='test -s conftest.$ac_objext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_member_struct_stat_st_rdev
=yes
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.
$ac_ext >&5
17130 ac_cv_member_struct_stat_st_rdev
=no
17132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17137 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17138 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17140 cat >>confdefs.h
<<_ACEOF
17141 #define HAVE_STRUCT_STAT_ST_RDEV 1
17147 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17148 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17149 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 cat >conftest.
$ac_ext <<_ACEOF
17155 cat confdefs.h
>>conftest.
$ac_ext
17156 cat >>conftest.
$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 $ac_includes_default
17162 static struct stat ac_aggr;
17163 if (ac_aggr.st_blksize)
17169 rm -f conftest.
$ac_objext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17171 (eval $ac_compile) 2>conftest.er1
17173 grep -v '^ *+' conftest.er1
>conftest.err
17175 cat conftest.err
>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try
='test -z "$ac_c_werror_flag"
17179 || test ! -s conftest.err'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try
='test -s conftest.$ac_objext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_cv_member_struct_stat_st_blksize
=yes
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.
$ac_ext >&5
17196 cat >conftest.
$ac_ext <<_ACEOF
17199 cat confdefs.h
>>conftest.
$ac_ext
17200 cat >>conftest.
$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 $ac_includes_default
17206 static struct stat ac_aggr;
17207 if (sizeof ac_aggr.st_blksize)
17213 rm -f conftest.
$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>conftest.er1
17217 grep -v '^ *+' conftest.er1
>conftest.err
17219 cat conftest.err
>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try
='test -z "$ac_c_werror_flag"
17223 || test ! -s conftest.err'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; } &&
17229 { ac_try
='test -s conftest.$ac_objext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_member_struct_stat_st_blksize
=yes
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.
$ac_ext >&5
17240 ac_cv_member_struct_stat_st_blksize
=no
17242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17248 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17250 cat >>confdefs.h
<<_ACEOF
17251 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17257 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17258 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17259 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 cat >conftest.
$ac_ext <<_ACEOF
17265 cat confdefs.h
>>conftest.
$ac_ext
17266 cat >>conftest.
$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17272 static struct stat ac_aggr;
17273 if (ac_aggr.st_flags)
17279 rm -f conftest.
$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17283 grep -v '^ *+' conftest.er1
>conftest.err
17285 cat conftest.err
>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try
='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try
='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_member_struct_stat_st_flags
=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.
$ac_ext >&5
17306 cat >conftest.
$ac_ext <<_ACEOF
17309 cat confdefs.h
>>conftest.
$ac_ext
17310 cat >>conftest.
$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 $ac_includes_default
17316 static struct stat ac_aggr;
17317 if (sizeof ac_aggr.st_flags)
17323 rm -f conftest.
$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>conftest.er1
17327 grep -v '^ *+' conftest.er1
>conftest.err
17329 cat conftest.err
>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try
='test -z "$ac_c_werror_flag"
17333 || test ! -s conftest.err'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try
='test -s conftest.$ac_objext'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17345 ac_cv_member_struct_stat_st_flags
=yes
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.
$ac_ext >&5
17350 ac_cv_member_struct_stat_st_flags
=no
17352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17357 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17358 if test $ac_cv_member_struct_stat_st_flags = yes; then
17360 cat >>confdefs.h
<<_ACEOF
17361 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17367 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17368 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17369 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 cat >conftest.
$ac_ext <<_ACEOF
17375 cat confdefs.h
>>conftest.
$ac_ext
17376 cat >>conftest.
$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17382 static struct stat ac_aggr;
17383 if (ac_aggr.st_gen)
17389 rm -f conftest.
$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1
>conftest.err
17395 cat conftest.err
>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try
='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try
='test -s conftest.$ac_objext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_member_struct_stat_st_gen
=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 cat >conftest.
$ac_ext <<_ACEOF
17419 cat confdefs.h
>>conftest.
$ac_ext
17420 cat >>conftest.
$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 $ac_includes_default
17426 static struct stat ac_aggr;
17427 if (sizeof ac_aggr.st_gen)
17433 rm -f conftest.
$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435 (eval $ac_compile) 2>conftest.er1
17437 grep -v '^ *+' conftest.er1
>conftest.err
17439 cat conftest.err
>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try
='test -z "$ac_c_werror_flag"
17443 || test ! -s conftest.err'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try
='test -s conftest.$ac_objext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_cv_member_struct_stat_st_gen
=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.
$ac_ext >&5
17460 ac_cv_member_struct_stat_st_gen
=no
17462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17467 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17468 if test $ac_cv_member_struct_stat_st_gen = yes; then
17470 cat >>confdefs.h
<<_ACEOF
17471 #define HAVE_STRUCT_STAT_ST_GEN 1
17477 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17478 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17479 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.
$ac_ext <<_ACEOF
17485 cat confdefs.h
>>conftest.
$ac_ext
17486 cat >>conftest.
$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17492 static struct stat ac_aggr;
17493 if (ac_aggr.st_birthtime)
17499 rm -f conftest.
$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17503 grep -v '^ *+' conftest.er1
>conftest.err
17505 cat conftest.err
>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try
='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try
='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_member_struct_stat_st_birthtime
=yes
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.
$ac_ext >&5
17526 cat >conftest.
$ac_ext <<_ACEOF
17529 cat confdefs.h
>>conftest.
$ac_ext
17530 cat >>conftest.
$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17536 static struct stat ac_aggr;
17537 if (sizeof ac_aggr.st_birthtime)
17543 rm -f conftest.
$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1
>conftest.err
17549 cat conftest.err
>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try
='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try
='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_member_struct_stat_st_birthtime
=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.
$ac_ext >&5
17570 ac_cv_member_struct_stat_st_birthtime
=no
17572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17578 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17580 cat >>confdefs.h
<<_ACEOF
17581 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17587 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17588 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17589 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 cat >conftest.
$ac_ext <<_ACEOF
17595 cat confdefs.h
>>conftest.
$ac_ext
17596 cat >>conftest.
$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17602 static struct stat ac_aggr;
17603 if (ac_aggr.st_blocks)
17609 rm -f conftest.
$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17613 grep -v '^ *+' conftest.er1
>conftest.err
17615 cat conftest.err
>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try
='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try
='test -s conftest.$ac_objext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_member_struct_stat_st_blocks
=yes
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.
$ac_ext >&5
17636 cat >conftest.
$ac_ext <<_ACEOF
17639 cat confdefs.h
>>conftest.
$ac_ext
17640 cat >>conftest.
$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17646 static struct stat ac_aggr;
17647 if (sizeof ac_aggr.st_blocks)
17653 rm -f conftest.
$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17657 grep -v '^ *+' conftest.er1
>conftest.err
17659 cat conftest.err
>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try
='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try
='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_member_struct_stat_st_blocks
=yes
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.
$ac_ext >&5
17680 ac_cv_member_struct_stat_st_blocks
=no
17682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17688 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17690 cat >>confdefs.h
<<_ACEOF
17691 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17695 cat >>confdefs.h
<<\_ACEOF
17696 #define HAVE_ST_BLOCKS 1
17701 "fileblocks.$ac_objext" | \
17702 *" fileblocks.$ac_objext" | \
17703 "fileblocks.$ac_objext "* | \
17704 *" fileblocks.$ac_objext "* ) ;;
17705 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17712 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17713 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17714 if test "${ac_cv_header_time_altzone+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 cat >conftest.
$ac_ext <<_ACEOF
17720 cat confdefs.h
>>conftest.
$ac_ext
17721 cat >>conftest.
$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17732 rm -f conftest.
$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1
>conftest.err
17738 cat conftest.err
>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try
='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try
='test -s conftest.$ac_objext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_header_time_altzone
=yes
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.
$ac_ext >&5
17759 ac_cv_header_time_altzone
=no
17761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17765 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17766 if test $ac_cv_header_time_altzone = yes; then
17768 cat >>confdefs.h
<<\_ACEOF
17769 #define HAVE_ALTZONE 1
17775 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17776 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17777 cat >conftest.
$ac_ext <<_ACEOF
17780 cat confdefs.h
>>conftest.
$ac_ext
17781 cat >>conftest.
$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 #include <sys/types.h>
17785 #include <sys/select.h>
17786 #include <sys/time.h>
17796 rm -f conftest.
$ac_objext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17798 (eval $ac_compile) 2>conftest.er1
17800 grep -v '^ *+' conftest.er1
>conftest.err
17802 cat conftest.err
>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try
='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try
='test -s conftest.$ac_objext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17820 cat >>confdefs.h
<<\_ACEOF
17821 #define SYS_SELECT_WITH_SYS_TIME 1
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.
$ac_ext >&5
17831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17832 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17833 echo "${ECHO_T}$was_it_defined" >&6
17835 echo "$as_me:$LINENO: checking for addrinfo" >&5
17836 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17837 if test "${ac_cv_struct_addrinfo+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 cat >conftest.
$ac_ext <<_ACEOF
17843 cat confdefs.h
>>conftest.
$ac_ext
17844 cat >>conftest.
$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17847 # include <netdb.h>
17856 rm -f conftest.
$ac_objext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17860 grep -v '^ *+' conftest.er1
>conftest.err
17862 cat conftest.err
>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try
='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try
='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_struct_addrinfo
=yes
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.
$ac_ext >&5
17883 ac_cv_struct_addrinfo
=no
17885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17889 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17890 if test $ac_cv_struct_addrinfo = yes; then
17892 cat >>confdefs.h
<<\_ACEOF
17893 #define HAVE_ADDRINFO 1
17898 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17899 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17900 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 cat >conftest.
$ac_ext <<_ACEOF
17906 cat confdefs.h
>>conftest.
$ac_ext
17907 cat >>conftest.
$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17910 # include <sys/types.h>
17911 # include <sys/socket.h>
17915 struct sockaddr_storage s
17920 rm -f conftest.
$ac_objext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17924 grep -v '^ *+' conftest.er1
>conftest.err
17926 cat conftest.err
>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try
='test -z "$ac_c_werror_flag"
17930 || test ! -s conftest.err'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try
='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_struct_sockaddr_storage
=yes
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.
$ac_ext >&5
17947 ac_cv_struct_sockaddr_storage
=no
17949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17952 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17953 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17954 if test $ac_cv_struct_sockaddr_storage = yes; then
17956 cat >>confdefs.h
<<\_ACEOF
17957 #define HAVE_SOCKADDR_STORAGE 1
17962 # checks for compiler characteristics
17965 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17966 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17967 if test "${ac_cv_c_char_unsigned+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 cat >conftest.
$ac_ext <<_ACEOF
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17980 static int test_array [1 - 2 * !(((char) -1) < 0)];
17987 rm -f conftest.
$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989 (eval $ac_compile) 2>conftest.er1
17991 grep -v '^ *+' conftest.er1
>conftest.err
17993 cat conftest.err
>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try
='test -z "$ac_c_werror_flag"
17997 || test ! -s conftest.err'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try
='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_c_char_unsigned
=no
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.
$ac_ext >&5
18014 ac_cv_c_char_unsigned
=yes
18016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18019 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18020 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18021 cat >>confdefs.h
<<\_ACEOF
18022 #define __CHAR_UNSIGNED__ 1
18027 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18028 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18029 if test "${ac_cv_c_const+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 cat >conftest.
$ac_ext <<_ACEOF
18035 cat confdefs.h
>>conftest.
$ac_ext
18036 cat >>conftest.
$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18042 /* FIXME: Include the comments suggested by Paul. */
18043 #ifndef __cplusplus
18044 /* Ultrix mips cc rejects this. */
18045 typedef int charset[2];
18047 /* SunOS 4.1.1 cc rejects this. */
18048 char const *const *ccp;
18050 /* NEC SVR4.0.2 mips cc rejects this. */
18051 struct point {int x, y;};
18052 static struct point const zero = {0,0};
18053 /* AIX XL C 1.02.0.0 rejects this.
18054 It does not let you subtract one const X* pointer from another in
18055 an arm of an if-expression whose if-part is not a constant
18057 const char *g = "string";
18058 ccp = &g + (g ? g-g : 0);
18059 /* HPUX 7.0 cc rejects these. */
18062 ccp = (char const *const *) p;
18063 { /* SCO 3.2v4 cc rejects this. */
18065 char const *s = 0 ? (char *) 0 : (char const *) 0;
18069 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18070 int x[] = {25, 17};
18071 const int *foo = &x[0];
18074 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18075 typedef const int *iptr;
18079 { /* AIX XL C 1.02.0.0 rejects this saying
18080 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18081 struct s { int j; const int *ap[3]; };
18082 struct s *b; b->j = 5;
18084 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18085 const int foo = 10;
18093 rm -f conftest.
$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18097 grep -v '^ *+' conftest.er1
>conftest.err
18099 cat conftest.err
>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try
='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try
='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.
$ac_ext >&5
18122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18124 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18125 echo "${ECHO_T}$ac_cv_c_const" >&6
18126 if test $ac_cv_c_const = no
; then
18128 cat >>confdefs.h
<<\_ACEOF
18136 echo "$as_me:$LINENO: checking for working volatile" >&5
18137 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18138 cat >conftest.
$ac_ext <<_ACEOF
18141 cat confdefs.h
>>conftest.
$ac_ext
18142 cat >>conftest.
$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18148 volatile int x; x = 0;
18153 rm -f conftest.
$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>conftest.er1
18157 grep -v '^ *+' conftest.er1
>conftest.err
18159 cat conftest.err
>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try
='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try
='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.
$ac_ext >&5
18181 cat >>confdefs.h
<<\_ACEOF
18187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18188 echo "$as_me:$LINENO: result: $works" >&5
18189 echo "${ECHO_T}$works" >&6
18192 echo "$as_me:$LINENO: checking for working signed char" >&5
18193 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18194 cat >conftest.
$ac_ext <<_ACEOF
18197 cat confdefs.h
>>conftest.
$ac_ext
18198 cat >>conftest.
$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18209 rm -f conftest.
$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211 (eval $ac_compile) 2>conftest.er1
18213 grep -v '^ *+' conftest.er1
>conftest.err
18215 cat conftest.err
>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try
='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try
='test -s conftest.$ac_objext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.
$ac_ext >&5
18237 cat >>confdefs.h
<<\_ACEOF
18243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18244 echo "$as_me:$LINENO: result: $works" >&5
18245 echo "${ECHO_T}$works" >&6
18248 echo "$as_me:$LINENO: checking for prototypes" >&5
18249 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18250 cat >conftest.
$ac_ext <<_ACEOF
18253 cat confdefs.h
>>conftest.
$ac_ext
18254 cat >>conftest.
$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 int foo(int x) { return 0; }
18265 rm -f conftest.
$ac_objext
18266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18267 (eval $ac_compile) 2>conftest.er1
18269 grep -v '^ *+' conftest.er1
>conftest.err
18271 cat conftest.err
>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try
='test -z "$ac_c_werror_flag"
18275 || test ! -s conftest.err'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try
='test -s conftest.$ac_objext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18289 cat >>confdefs.h
<<\_ACEOF
18290 #define HAVE_PROTOTYPES 1
18293 have_prototypes
=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.
$ac_ext >&5
18300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18301 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18302 echo "${ECHO_T}$have_prototypes" >&6
18305 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18306 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18307 cat >conftest.
$ac_ext <<_ACEOF
18310 cat confdefs.h
>>conftest.
$ac_ext
18311 cat >>conftest.
$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 #include <stdarg.h>
18315 int foo(int x, ...) {
18319 va_arg(va, char *);
18320 va_arg(va, double);
18327 return foo(10, "", 3.14);
18332 rm -f conftest.
$ac_objext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334 (eval $ac_compile) 2>conftest.er1
18336 grep -v '^ *+' conftest.er1
>conftest.err
18338 cat conftest.err
>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try
='test -z "$ac_c_werror_flag"
18342 || test ! -s conftest.err'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try
='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18356 cat >>confdefs.h
<<\_ACEOF
18357 #define HAVE_STDARG_PROTOTYPES 1
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.
$ac_ext >&5
18367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18368 echo "$as_me:$LINENO: result: $works" >&5
18369 echo "${ECHO_T}$works" >&6
18371 # check for socketpair
18372 echo "$as_me:$LINENO: checking for socketpair" >&5
18373 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18374 cat >conftest.
$ac_ext <<_ACEOF
18377 cat confdefs.h
>>conftest.
$ac_ext
18378 cat >>conftest.
$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 #include <sys/types.h>
18382 #include <sys/socket.h>
18392 rm -f conftest.
$ac_objext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18394 (eval $ac_compile) 2>conftest.er1
18396 grep -v '^ *+' conftest.er1
>conftest.err
18398 cat conftest.err
>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try
='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try
='test -s conftest.$ac_objext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18415 cat >>confdefs.h
<<\_ACEOF
18416 #define HAVE_SOCKETPAIR 1
18419 echo "$as_me:$LINENO: result: yes" >&5
18420 echo "${ECHO_T}yes" >&6
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.
$ac_ext >&5
18425 echo "$as_me:$LINENO: result: no" >&5
18426 echo "${ECHO_T}no" >&6
18429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18431 # check if sockaddr has sa_len member
18432 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18433 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18434 cat >conftest.
$ac_ext <<_ACEOF
18437 cat confdefs.h
>>conftest.
$ac_ext
18438 cat >>conftest.
$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <sys/types.h>
18441 #include <sys/socket.h>
18451 rm -f conftest.
$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1
>conftest.err
18457 cat conftest.err
>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try
='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try
='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 echo "$as_me:$LINENO: result: yes" >&5
18474 echo "${ECHO_T}yes" >&6
18476 cat >>confdefs.h
<<\_ACEOF
18477 #define HAVE_SOCKADDR_SA_LEN 1
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.
$ac_ext >&5
18484 echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18489 va_list_is_array
=no
18490 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18491 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18492 cat >conftest.
$ac_ext <<_ACEOF
18495 cat confdefs.h
>>conftest.
$ac_ext
18496 cat >>conftest.
$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18499 #ifdef HAVE_STDARG_PROTOTYPES
18500 #include <stdarg.h>
18502 #include <varargs.h>
18508 va_list list1, list2; list1 = list2;
18513 rm -f conftest.
$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18517 grep -v '^ *+' conftest.er1
>conftest.err
18519 cat conftest.err
>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try
='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try
='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.
$ac_ext >&5
18542 cat >>confdefs.h
<<\_ACEOF
18543 #define VA_LIST_IS_ARRAY 1
18546 va_list_is_array
=yes
18549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18550 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18551 echo "${ECHO_T}$va_list_is_array" >&6
18553 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18557 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18558 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18559 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 cat >conftest.
$ac_ext <<_ACEOF
18565 cat confdefs.h
>>conftest.
$ac_ext
18566 cat >>conftest.
$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define gethostbyname_r innocuous_gethostbyname_r
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char gethostbyname_r (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18578 # include <limits.h>
18580 # include <assert.h>
18583 #undef gethostbyname_r
18585 /* Override any gcc2 internal prototype to avoid an error. */
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char gethostbyname_r ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18599 char (*f) () = gethostbyname_r;
18608 return f != gethostbyname_r;
18613 rm -f conftest.
$ac_objext conftest
$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18617 grep -v '^ *+' conftest.er1
>conftest.err
18619 cat conftest.err
>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try
='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try
='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_func_gethostbyname_r
=yes
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.
$ac_ext >&5
18640 ac_cv_func_gethostbyname_r
=no
18642 rm -f conftest.err conftest.
$ac_objext \
18643 conftest
$ac_exeext conftest.
$ac_ext
18645 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18646 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18647 if test $ac_cv_func_gethostbyname_r = yes; then
18649 cat >>confdefs.h
<<\_ACEOF
18650 #define HAVE_GETHOSTBYNAME_R 1
18653 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18654 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18656 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18657 cat >conftest.
$ac_ext <<_ACEOF
18660 cat confdefs.h
>>conftest.
$ac_ext
18661 cat >>conftest.
$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 # include <netdb.h>
18671 struct hostent *he, *res;
18676 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18682 rm -f conftest.
$ac_objext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18684 (eval $ac_compile) 2>conftest.er1
18686 grep -v '^ *+' conftest.er1
>conftest.err
18688 cat conftest.err
>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try
='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try
='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18705 cat >>confdefs.h
<<\_ACEOF
18706 #define HAVE_GETHOSTBYNAME_R 1
18710 cat >>confdefs.h
<<\_ACEOF
18711 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18714 echo "$as_me:$LINENO: result: yes" >&5
18715 echo "${ECHO_T}yes" >&6
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.
$ac_ext >&5
18722 echo "$as_me:$LINENO: result: no" >&5
18723 echo "${ECHO_T}no" >&6
18724 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18725 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18726 cat >conftest.
$ac_ext <<_ACEOF
18729 cat confdefs.h
>>conftest.
$ac_ext
18730 cat >>conftest.
$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18733 # include <netdb.h>
18740 struct hostent *he;
18745 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18751 rm -f conftest.
$ac_objext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753 (eval $ac_compile) 2>conftest.er1
18755 grep -v '^ *+' conftest.er1
>conftest.err
18757 cat conftest.err
>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try
='test -z "$ac_c_werror_flag"
18761 || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try
='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18774 cat >>confdefs.h
<<\_ACEOF
18775 #define HAVE_GETHOSTBYNAME_R 1
18779 cat >>confdefs.h
<<\_ACEOF
18780 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18783 echo "$as_me:$LINENO: result: yes" >&5
18784 echo "${ECHO_T}yes" >&6
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.
$ac_ext >&5
18791 echo "$as_me:$LINENO: result: no" >&5
18792 echo "${ECHO_T}no" >&6
18793 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18794 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18795 cat >conftest.
$ac_ext <<_ACEOF
18798 cat confdefs.h
>>conftest.
$ac_ext
18799 cat >>conftest.
$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 # include <netdb.h>
18809 struct hostent *he;
18810 struct hostent_data data;
18812 (void) gethostbyname_r(name, he, &data);
18818 rm -f conftest.
$ac_objext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820 (eval $ac_compile) 2>conftest.er1
18822 grep -v '^ *+' conftest.er1
>conftest.err
18824 cat conftest.err
>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try
='test -z "$ac_c_werror_flag"
18828 || test ! -s conftest.err'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try
='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18841 cat >>confdefs.h
<<\_ACEOF
18842 #define HAVE_GETHOSTBYNAME_R 1
18846 cat >>confdefs.h
<<\_ACEOF
18847 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18850 echo "$as_me:$LINENO: result: yes" >&5
18851 echo "${ECHO_T}yes" >&6
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.
$ac_ext >&5
18858 echo "$as_me:$LINENO: result: no" >&5
18859 echo "${ECHO_T}no" >&6
18862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18874 for ac_func
in gethostbyname
18876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18877 echo "$as_me:$LINENO: checking for $ac_func" >&5
18878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18879 if eval "test \"\${$as_ac_var+set}\" = set"; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 cat >conftest.
$ac_ext <<_ACEOF
18885 cat confdefs.h
>>conftest.
$ac_ext
18886 cat >>conftest.
$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18890 #define $ac_func innocuous_$ac_func
18892 /* System header to define __stub macros and hopefully few prototypes,
18893 which can conflict with char $ac_func (); below.
18894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18895 <limits.h> exists even on freestanding compilers. */
18898 # include <limits.h>
18900 # include <assert.h>
18905 /* Override any gcc2 internal prototype to avoid an error. */
18910 /* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18913 /* The GNU C library defines this for functions which it implements
18914 to always fail with ENOSYS. Some functions are actually named
18915 something starting with __ and the normal name is an alias. */
18916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18919 char (*f) () = $ac_func;
18928 return f != $ac_func;
18933 rm -f conftest.
$ac_objext conftest
$ac_exeext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935 (eval $ac_link) 2>conftest.er1
18937 grep -v '^ *+' conftest.er1
>conftest.err
18939 cat conftest.err
>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try
='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try
='test -s conftest$ac_exeext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 eval "$as_ac_var=yes"
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.
$ac_ext >&5
18960 eval "$as_ac_var=no"
18962 rm -f conftest.err conftest.
$ac_objext \
18963 conftest
$ac_exeext conftest.
$ac_ext
18965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18967 if test `eval echo '${'$as_ac_var'}'` = yes; then
18968 cat >>confdefs.h
<<_ACEOF
18969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984 # checks for system services
18987 # Linux requires this for correct f.p. operations
18988 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18989 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18990 if test "${ac_cv_func___fpu_control+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 cat >conftest.
$ac_ext <<_ACEOF
18996 cat confdefs.h
>>conftest.
$ac_ext
18997 cat >>conftest.
$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19001 #define __fpu_control innocuous___fpu_control
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char __fpu_control (); below.
19005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006 <limits.h> exists even on freestanding compilers. */
19009 # include <limits.h>
19011 # include <assert.h>
19014 #undef __fpu_control
19016 /* Override any gcc2 internal prototype to avoid an error. */
19021 /* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19023 char __fpu_control ();
19024 /* The GNU C library defines this for functions which it implements
19025 to always fail with ENOSYS. Some functions are actually named
19026 something starting with __ and the normal name is an alias. */
19027 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19030 char (*f) () = __fpu_control;
19039 return f != __fpu_control;
19044 rm -f conftest.
$ac_objext conftest
$ac_exeext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19046 (eval $ac_link) 2>conftest.er1
19048 grep -v '^ *+' conftest.er1
>conftest.err
19050 cat conftest.err
>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try
='test -z "$ac_c_werror_flag"
19054 || test ! -s conftest.err'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try
='test -s conftest$ac_exeext'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_cv_func___fpu_control
=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.
$ac_ext >&5
19071 ac_cv_func___fpu_control
=no
19073 rm -f conftest.err conftest.
$ac_objext \
19074 conftest
$ac_exeext conftest.
$ac_ext
19076 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19077 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19078 if test $ac_cv_func___fpu_control = yes; then
19082 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19083 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19084 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 ac_check_lib_save_LIBS
=$LIBS
19088 LIBS
="-lieee $LIBS"
19089 cat >conftest.
$ac_ext <<_ACEOF
19092 cat confdefs.h
>>conftest.
$ac_ext
19093 cat >>conftest.
$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19096 /* Override any gcc2 internal prototype to avoid an error. */
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19102 char __fpu_control ();
19111 rm -f conftest.
$ac_objext conftest
$ac_exeext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19113 (eval $ac_link) 2>conftest.er1
19115 grep -v '^ *+' conftest.er1
>conftest.err
19117 cat conftest.err
>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try
='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try
='test -s conftest$ac_exeext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_lib_ieee___fpu_control
=yes
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.
$ac_ext >&5
19138 ac_cv_lib_ieee___fpu_control
=no
19140 rm -f conftest.err conftest.
$ac_objext \
19141 conftest
$ac_exeext conftest.
$ac_ext
19142 LIBS
=$ac_check_lib_save_LIBS
19144 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19145 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19146 if test $ac_cv_lib_ieee___fpu_control = yes; then
19147 cat >>confdefs.h
<<_ACEOF
19148 #define HAVE_LIBIEEE 1
19151 LIBS
="-lieee $LIBS"
19159 # Check for --with-fpectl
19160 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19161 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19163 # Check whether --with-fpectl or --without-fpectl was given.
19164 if test "${with_fpectl+set}" = set; then
19165 withval
="$with_fpectl"
19167 if test "$withval" != no
19170 cat >>confdefs.h
<<\_ACEOF
19171 #define WANT_SIGFPE_HANDLER 1
19174 echo "$as_me:$LINENO: result: yes" >&5
19175 echo "${ECHO_T}yes" >&6
19176 else echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19180 echo "$as_me:$LINENO: result: no" >&5
19181 echo "${ECHO_T}no" >&6
19184 # check for --with-libm=...
19186 case $ac_sys_system in
19191 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19192 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19194 # Check whether --with-libm or --without-libm was given.
19195 if test "${with_libm+set}" = set; then
19196 withval
="$with_libm"
19198 if test "$withval" = no
19200 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19201 echo "${ECHO_T}force LIBM empty" >&6
19202 elif test "$withval" != yes
19204 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19205 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19206 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19207 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19208 { (exit 1); exit 1; }; }
19211 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19212 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19215 # check for --with-libc=...
19217 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19218 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19220 # Check whether --with-libc or --without-libc was given.
19221 if test "${with_libc+set}" = set; then
19222 withval
="$with_libc"
19224 if test "$withval" = no
19226 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19227 echo "${ECHO_T}force LIBC empty" >&6
19228 elif test "$withval" != yes
19230 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19231 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19232 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19233 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19234 { (exit 1); exit 1; }; }
19237 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19238 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19241 # check for hypot() in math library
19245 for ac_func
in hypot
19247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19248 echo "$as_me:$LINENO: checking for $ac_func" >&5
19249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19250 if eval "test \"\${$as_ac_var+set}\" = set"; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 cat >conftest.
$ac_ext <<_ACEOF
19256 cat confdefs.h
>>conftest.
$ac_ext
19257 cat >>conftest.
$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define $ac_func innocuous_$ac_func
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19269 # include <limits.h>
19271 # include <assert.h>
19276 /* Override any gcc2 internal prototype to avoid an error. */
19281 /* We use char because int might match the return type of a gcc2
19282 builtin and then its argument prototype would still apply. */
19284 /* The GNU C library defines this for functions which it implements
19285 to always fail with ENOSYS. Some functions are actually named
19286 something starting with __ and the normal name is an alias. */
19287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19290 char (*f) () = $ac_func;
19299 return f != $ac_func;
19304 rm -f conftest.
$ac_objext conftest
$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19308 grep -v '^ *+' conftest.er1
>conftest.err
19310 cat conftest.err
>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try
='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try
='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 eval "$as_ac_var=yes"
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.
$ac_ext >&5
19331 eval "$as_ac_var=no"
19333 rm -f conftest.err conftest.
$ac_objext \
19334 conftest
$ac_exeext conftest.
$ac_ext
19336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19338 if test `eval echo '${'$as_ac_var'}'` = yes; then
19339 cat >>confdefs.h
<<_ACEOF
19340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19345 "$ac_func.$ac_objext" | \
19346 *" $ac_func.$ac_objext" | \
19347 "$ac_func.$ac_objext "* | \
19348 *" $ac_func.$ac_objext "* ) ;;
19349 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19358 # check for wchar.h
19359 if test "${ac_cv_header_wchar_h+set}" = set; then
19360 echo "$as_me:$LINENO: checking for wchar.h" >&5
19361 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19362 if test "${ac_cv_header_wchar_h+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19366 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19368 # Is the header compilable?
19369 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19370 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19371 cat >conftest.
$ac_ext <<_ACEOF
19374 cat confdefs.h
>>conftest.
$ac_ext
19375 cat >>conftest.
$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 $ac_includes_default
19380 rm -f conftest.
$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1
>conftest.err
19386 cat conftest.err
>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try
='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try
='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_header_compiler
=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.
$ac_ext >&5
19407 ac_header_compiler
=no
19409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19411 echo "${ECHO_T}$ac_header_compiler" >&6
19413 # Is the header present?
19414 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19415 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19416 cat >conftest.
$ac_ext <<_ACEOF
19419 cat confdefs.h
>>conftest.
$ac_ext
19420 cat >>conftest.
$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1
>conftest.err
19429 cat conftest.err
>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } >/dev
/null
; then
19432 if test -s conftest.err
; then
19433 ac_cpp_err
=$ac_c_preproc_warn_flag
19434 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19441 if test -z "$ac_cpp_err"; then
19442 ac_header_preproc
=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.
$ac_ext >&5
19447 ac_header_preproc
=no
19449 rm -f conftest.err conftest.
$ac_ext
19450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451 echo "${ECHO_T}$ac_header_preproc" >&6
19453 # So? What about this header?
19454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19457 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19459 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19460 ac_header_preproc
=yes
19463 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19464 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19466 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19468 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19470 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19472 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19474 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19477 ## ------------------------------------------------ ##
19478 ## Report this to http://www.python.org/python-bugs ##
19479 ## ------------------------------------------------ ##
19482 sed "s/^/$as_me: WARNING: /" >&2
19485 echo "$as_me:$LINENO: checking for wchar.h" >&5
19486 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19487 if test "${ac_cv_header_wchar_h+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 ac_cv_header_wchar_h
=$ac_header_preproc
19492 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19493 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19496 if test $ac_cv_header_wchar_h = yes; then
19499 cat >>confdefs.h
<<\_ACEOF
19500 #define HAVE_WCHAR_H 1
19512 # determine wchar_t size
19513 if test "$wchar_h" = yes
19515 echo "$as_me:$LINENO: checking for wchar_t" >&5
19516 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19517 if test "${ac_cv_type_wchar_t+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 cat >conftest.
$ac_ext <<_ACEOF
19523 cat confdefs.h
>>conftest.
$ac_ext
19524 cat >>conftest.
$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19533 if (sizeof (wchar_t))
19539 rm -f conftest.
$ac_objext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19541 (eval $ac_compile) 2>conftest.er1
19543 grep -v '^ *+' conftest.er1
>conftest.err
19545 cat conftest.err
>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try
='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try
='test -s conftest.$ac_objext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_type_wchar_t
=yes
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.
$ac_ext >&5
19566 ac_cv_type_wchar_t
=no
19568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19570 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19571 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19573 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19574 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19575 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 if test "$ac_cv_type_wchar_t" = yes; then
19579 # The cast to unsigned long works around a bug in the HP C Compiler
19580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19582 # This bug is HP SR number 8606223364.
19583 if test "$cross_compiling" = yes; then
19584 # Depending upon the size, compute the lo and hi bounds.
19585 cat >conftest.
$ac_ext <<_ACEOF
19588 cat confdefs.h
>>conftest.
$ac_ext
19589 cat >>conftest.
$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19596 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19603 rm -f conftest.
$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605 (eval $ac_compile) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1
>conftest.err
19609 cat conftest.err
>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try
='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try
='test -s conftest.$ac_objext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19627 cat >conftest.
$ac_ext <<_ACEOF
19630 cat confdefs.h
>>conftest.
$ac_ext
19631 cat >>conftest.
$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19638 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19645 rm -f conftest.
$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19649 grep -v '^ *+' conftest.er1
>conftest.err
19651 cat conftest.err
>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try
='test -z "$ac_c_werror_flag"
19655 || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try
='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_hi
=$ac_mid; break
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.
$ac_ext >&5
19672 ac_lo
=`expr $ac_mid + 1`
19673 if test $ac_lo -le $ac_mid; then
19677 ac_mid
=`expr 2 '*' $ac_mid + 1`
19679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 cat >conftest.
$ac_ext <<_ACEOF
19688 cat confdefs.h
>>conftest.
$ac_ext
19689 cat >>conftest.
$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19696 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19703 rm -f conftest.
$ac_objext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>conftest.er1
19707 grep -v '^ *+' conftest.er1
>conftest.err
19709 cat conftest.err
>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try
='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try
='test -s conftest.$ac_objext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19727 cat >conftest.
$ac_ext <<_ACEOF
19730 cat confdefs.h
>>conftest.
$ac_ext
19731 cat >>conftest.
$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19738 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19745 rm -f conftest.
$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19749 grep -v '^ *+' conftest.er1
>conftest.err
19751 cat conftest.err
>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try
='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try
='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_lo
=$ac_mid; break
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.
$ac_ext >&5
19772 ac_hi
=`expr '(' $ac_mid ')' - 1`
19773 if test $ac_mid -le $ac_hi; then
19777 ac_mid
=`expr 2 '*' $ac_mid`
19779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.
$ac_ext >&5
19787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19790 # Binary search between lo and hi bounds.
19791 while test "x$ac_lo" != "x$ac_hi"; do
19792 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19793 cat >conftest.
$ac_ext <<_ACEOF
19796 cat confdefs.h
>>conftest.
$ac_ext
19797 cat >>conftest.
$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19804 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19811 rm -f conftest.
$ac_objext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19813 (eval $ac_compile) 2>conftest.er1
19815 grep -v '^ *+' conftest.er1
>conftest.err
19817 cat conftest.err
>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try
='test -z "$ac_c_werror_flag"
19821 || test ! -s conftest.err'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; } &&
19827 { ac_try
='test -s conftest.$ac_objext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.
$ac_ext >&5
19838 ac_lo
=`expr '(' $ac_mid ')' + 1`
19840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19843 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19844 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19845 See \`config.log' for more details." >&5
19846 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19847 See \`config.log' for more details." >&2;}
19848 { (exit 1); exit 1; }; } ;;
19851 if test "$cross_compiling" = yes; then
19852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19853 See \`config.log' for more details." >&5
19854 echo "$as_me: error: cannot run test program while cross compiling
19855 See \`config.log' for more details." >&2;}
19856 { (exit 1); exit 1; }; }
19858 cat >conftest.
$ac_ext <<_ACEOF
19861 cat confdefs.h
>>conftest.
$ac_ext
19862 cat >>conftest.
$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19866 long longval () { return (long) (sizeof (wchar_t)); }
19867 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19869 #include <stdlib.h>
19874 FILE *f = fopen ("conftest.val", "w");
19877 if (((long) (sizeof (wchar_t))) < 0)
19879 long i = longval ();
19880 if (i != ((long) (sizeof (wchar_t))))
19882 fprintf (f, "%ld\n", i);
19886 unsigned long i = ulongval ();
19887 if (i != ((long) (sizeof (wchar_t))))
19889 fprintf (f, "%lu\n", i);
19891 exit (ferror (f) || fclose (f) != 0);
19897 rm -f conftest
$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19910 echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.
$ac_ext >&5
19914 ( exit $ac_status )
19915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19916 See \`config.log' for more details." >&5
19917 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19918 See \`config.log' for more details." >&2;}
19919 { (exit 1); exit 1; }; }
19921 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19926 ac_cv_sizeof_wchar_t
=0
19929 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19930 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19931 cat >>confdefs.h
<<_ACEOF
19932 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19938 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19939 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19941 cat >conftest.
$ac_ext <<_ACEOF
19944 cat confdefs.h
>>conftest.
$ac_ext
19945 cat >>conftest.
$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19949 #if TCL_UTF_MAX != 6
19950 # error "NOT UCS4_TCL"
19960 rm -f conftest.
$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>conftest.er1
19964 grep -v '^ *+' conftest.er1
>conftest.err
19966 cat conftest.err
>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try
='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try
='test -s conftest.$ac_objext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19984 cat >>confdefs.h
<<\_ACEOF
19985 #define HAVE_UCS4_TCL 1
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.
$ac_ext >&5
19995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19996 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19997 echo "${ECHO_T}$have_ucs4_tcl" >&6
19999 # check whether wchar_t is signed or not
20000 if test "$wchar_h" = yes
20002 # check whether wchar_t is signed or not
20003 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20004 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20005 if test "${ac_cv_wchar_t_signed+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 if test "$cross_compiling" = yes; then
20010 ac_cv_wchar_t_signed
=yes
20012 cat >conftest.
$ac_ext <<_ACEOF
20015 cat confdefs.h
>>conftest.
$ac_ext
20016 cat >>conftest.
$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20022 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20026 rm -f conftest
$ac_exeext
20027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028 (eval $ac_link) 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_wchar_t_signed
=yes
20039 echo "$as_me: program exited with status $ac_status" >&5
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.
$ac_ext >&5
20043 ( exit $ac_status )
20044 ac_cv_wchar_t_signed
=no
20046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20051 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20054 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20055 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20056 # Check whether --enable-unicode or --disable-unicode was given.
20057 if test "${enable_unicode+set}" = set; then
20058 enableval
="$enable_unicode"
20064 if test $enable_unicode = yes
20066 # Without any arguments, Py_UNICODE defaults to two-byte mode
20067 case "$have_ucs4_tcl" in
20068 yes) enable_unicode
="ucs4"
20070 *) enable_unicode
="ucs2"
20077 case "$enable_unicode" in
20078 ucs2
) unicode_size
="2"
20079 cat >>confdefs.h
<<\_ACEOF
20080 #define Py_UNICODE_SIZE 2
20084 ucs4
) unicode_size
="4"
20085 cat >>confdefs.h
<<\_ACEOF
20086 #define Py_UNICODE_SIZE 4
20096 if test "$enable_unicode" = "no"
20099 echo "$as_me:$LINENO: result: not used" >&5
20100 echo "${ECHO_T}not used" >&6
20102 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20104 cat >>confdefs.h
<<\_ACEOF
20105 #define Py_USING_UNICODE 1
20109 # wchar_t is only usable if it maps to an unsigned type
20110 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20111 -a "$ac_cv_wchar_t_signed" = "no"
20113 PY_UNICODE_TYPE
="wchar_t"
20115 cat >>confdefs.h
<<\_ACEOF
20116 #define HAVE_USABLE_WCHAR_T 1
20119 cat >>confdefs.h
<<\_ACEOF
20120 #define PY_UNICODE_TYPE wchar_t
20123 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20125 PY_UNICODE_TYPE
="unsigned short"
20126 cat >>confdefs.h
<<\_ACEOF
20127 #define PY_UNICODE_TYPE unsigned short
20130 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20132 PY_UNICODE_TYPE
="unsigned long"
20133 cat >>confdefs.h
<<\_ACEOF
20134 #define PY_UNICODE_TYPE unsigned long
20138 PY_UNICODE_TYPE
="no type found"
20140 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20141 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20144 # check for endianness
20145 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20146 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20147 if test "${ac_cv_c_bigendian+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 # See if sys/param.h defines the BYTE_ORDER macro.
20151 cat >conftest.
$ac_ext <<_ACEOF
20154 cat confdefs.h
>>conftest.
$ac_ext
20155 cat >>conftest.
$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 #include <sys/types.h>
20158 #include <sys/param.h>
20163 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20164 bogus endian macros
20171 rm -f conftest.
$ac_objext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20173 (eval $ac_compile) 2>conftest.er1
20175 grep -v '^ *+' conftest.er1
>conftest.err
20177 cat conftest.err
>&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
20180 { ac_try
='test -z "$ac_c_werror_flag"
20181 || test ! -s conftest.err'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try
='test -s conftest.$ac_objext'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 # It does; now see whether it defined to BIG_ENDIAN or not.
20194 cat >conftest.
$ac_ext <<_ACEOF
20197 cat confdefs.h
>>conftest.
$ac_ext
20198 cat >>conftest.
$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 #include <sys/types.h>
20201 #include <sys/param.h>
20206 #if BYTE_ORDER != BIG_ENDIAN
20214 rm -f conftest.
$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20218 grep -v '^ *+' conftest.er1
>conftest.err
20220 cat conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try
='test -z "$ac_c_werror_flag"
20224 || test ! -s conftest.err'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try
='test -s conftest.$ac_objext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_c_bigendian
=yes
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.
$ac_ext >&5
20241 ac_cv_c_bigendian
=no
20243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.
$ac_ext >&5
20248 # It does not; compile a test program.
20249 if test "$cross_compiling" = yes; then
20250 # try to guess the endianness by grepping values into an object file
20251 ac_cv_c_bigendian
=unknown
20252 cat >conftest.
$ac_ext <<_ACEOF
20255 cat confdefs.h
>>conftest.
$ac_ext
20256 cat >>conftest.
$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20259 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20260 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20261 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20262 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20263 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20267 _ascii (); _ebcdic ();
20272 rm -f conftest.
$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>conftest.er1
20276 grep -v '^ *+' conftest.er1
>conftest.err
20278 cat conftest.err
>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try
='test -z "$ac_c_werror_flag"
20282 || test ! -s conftest.err'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try
='test -s conftest.$ac_objext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20295 ac_cv_c_bigendian
=yes
20297 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20298 if test "$ac_cv_c_bigendian" = unknown
; then
20299 ac_cv_c_bigendian
=no
20301 # finding both strings is unlikely to happen, but who knows?
20302 ac_cv_c_bigendian
=unknown
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.
$ac_ext >&5
20310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20312 cat >conftest.
$ac_ext <<_ACEOF
20315 cat confdefs.h
>>conftest.
$ac_ext
20316 cat >>conftest.
$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20321 /* Are we little or big endian? From Harbison&Steele. */
20325 char c[sizeof (long)];
20328 exit (u.c[sizeof (long) - 1] == 1);
20331 rm -f conftest
$ac_exeext
20332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20333 (eval $ac_link) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 ac_cv_c_bigendian
=no
20344 echo "$as_me: program exited with status $ac_status" >&5
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.
$ac_ext >&5
20348 ( exit $ac_status )
20349 ac_cv_c_bigendian
=yes
20351 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20356 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20357 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20358 case $ac_cv_c_bigendian in
20361 cat >>confdefs.h
<<\_ACEOF
20362 #define WORDS_BIGENDIAN 1
20368 { { echo "$as_me:$LINENO: error: unknown endianness
20369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20370 echo "$as_me: error: unknown endianness
20371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20372 { (exit 1); exit 1; }; } ;;
20376 # Check whether right shifting a negative integer extends the sign bit
20377 # or fills with zeros (like the Cray J90, according to Tim Peters).
20378 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20379 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20380 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 if test "$cross_compiling" = yes; then
20385 ac_cv_rshift_extends_sign
=yes
20387 cat >conftest.
$ac_ext <<_ACEOF
20390 cat confdefs.h
>>conftest.
$ac_ext
20391 cat >>conftest.
$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20396 exit(((-1)>>3 == -1) ? 0 : 1);
20400 rm -f conftest
$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_rshift_extends_sign
=yes
20413 echo "$as_me: program exited with status $ac_status" >&5
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.
$ac_ext >&5
20417 ( exit $ac_status )
20418 ac_cv_rshift_extends_sign
=no
20420 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20424 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20425 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20426 if test "$ac_cv_rshift_extends_sign" = no
20429 cat >>confdefs.h
<<\_ACEOF
20430 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20435 # check for getc_unlocked and related locking functions
20436 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20437 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20438 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 cat >conftest.
$ac_ext <<_ACEOF
20445 cat confdefs.h
>>conftest.
$ac_ext
20446 cat >>conftest.
$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20453 FILE *f = fopen("/dev/null", "r");
20462 rm -f conftest.
$ac_objext conftest
$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1
>conftest.err
20468 cat conftest.err
>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try
='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try
='test -s conftest$ac_exeext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_have_getc_unlocked
=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.
$ac_ext >&5
20489 ac_cv_have_getc_unlocked
=no
20491 rm -f conftest.err conftest.
$ac_objext \
20492 conftest
$ac_exeext conftest.
$ac_ext
20495 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20496 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20497 if test "$ac_cv_have_getc_unlocked" = yes
20500 cat >>confdefs.h
<<\_ACEOF
20501 #define HAVE_GETC_UNLOCKED 1
20506 # check where readline lives
20507 # save the value of LIBS so we don't actually link Python with readline
20508 LIBS_no_readline
=$LIBS
20510 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20511 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20512 if test "${ac_cv_lib_readline_readline+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 ac_check_lib_save_LIBS
=$LIBS
20516 LIBS
="-lreadline $LIBS"
20517 cat >conftest.
$ac_ext <<_ACEOF
20520 cat confdefs.h
>>conftest.
$ac_ext
20521 cat >>conftest.
$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 /* Override any gcc2 internal prototype to avoid an error. */
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20539 rm -f conftest.
$ac_objext conftest
$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>conftest.er1
20543 grep -v '^ *+' conftest.er1
>conftest.err
20545 cat conftest.err
>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try
='test -z "$ac_c_werror_flag"
20549 || test ! -s conftest.err'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try
='test -s conftest$ac_exeext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_lib_readline_readline
=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.
$ac_ext >&5
20566 ac_cv_lib_readline_readline
=no
20568 rm -f conftest.err conftest.
$ac_objext \
20569 conftest
$ac_exeext conftest.
$ac_ext
20570 LIBS
=$ac_check_lib_save_LIBS
20572 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20573 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20574 if test $ac_cv_lib_readline_readline = yes; then
20575 cat >>confdefs.h
<<_ACEOF
20576 #define HAVE_LIBREADLINE 1
20579 LIBS
="-lreadline $LIBS"
20583 if test "$ac_cv_have_readline_readline" = no
20586 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20587 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20588 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 ac_check_lib_save_LIBS
=$LIBS
20592 LIBS
="-ltermcap $LIBS"
20593 cat >conftest.
$ac_ext <<_ACEOF
20596 cat confdefs.h
>>conftest.
$ac_ext
20597 cat >>conftest.
$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20600 /* Override any gcc2 internal prototype to avoid an error. */
20604 /* We use char because int might match the return type of a gcc2
20605 builtin and then its argument prototype would still apply. */
20615 rm -f conftest.
$ac_objext conftest
$ac_exeext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20617 (eval $ac_link) 2>conftest.er1
20619 grep -v '^ *+' conftest.er1
>conftest.err
20621 cat conftest.err
>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try
='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try
='test -s conftest$ac_exeext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 ac_cv_lib_termcap_readline
=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.
$ac_ext >&5
20642 ac_cv_lib_termcap_readline
=no
20644 rm -f conftest.err conftest.
$ac_objext \
20645 conftest
$ac_exeext conftest.
$ac_ext
20646 LIBS
=$ac_check_lib_save_LIBS
20648 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20649 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20650 if test $ac_cv_lib_termcap_readline = yes; then
20651 cat >>confdefs.h
<<_ACEOF
20652 #define HAVE_LIBTERMCAP 1
20655 LIBS
="-ltermcap $LIBS"
20661 # check for readline 2.1
20662 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20663 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20664 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 ac_check_lib_save_LIBS
=$LIBS
20668 LIBS
="-lreadline $LIBS"
20669 cat >conftest.
$ac_ext <<_ACEOF
20672 cat confdefs.h
>>conftest.
$ac_ext
20673 cat >>conftest.
$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 /* Override any gcc2 internal prototype to avoid an error. */
20680 /* We use char because int might match the return type of a gcc2
20681 builtin and then its argument prototype would still apply. */
20682 char rl_callback_handler_install ();
20686 rl_callback_handler_install ();
20691 rm -f conftest.
$ac_objext conftest
$ac_exeext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20693 (eval $ac_link) 2>conftest.er1
20695 grep -v '^ *+' conftest.er1
>conftest.err
20697 cat conftest.err
>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try
='test -z "$ac_c_werror_flag"
20701 || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try
='test -s conftest$ac_exeext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_lib_readline_rl_callback_handler_install
=yes
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.
$ac_ext >&5
20718 ac_cv_lib_readline_rl_callback_handler_install
=no
20720 rm -f conftest.err conftest.
$ac_objext \
20721 conftest
$ac_exeext conftest.
$ac_ext
20722 LIBS
=$ac_check_lib_save_LIBS
20724 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20725 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20726 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20728 cat >>confdefs.h
<<\_ACEOF
20729 #define HAVE_RL_CALLBACK 1
20735 # check for readline 2.2
20736 cat >conftest.
$ac_ext <<_ACEOF
20739 cat confdefs.h
>>conftest.
$ac_ext
20740 cat >>conftest.
$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <readline/readline.h>
20744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20747 grep -v '^ *+' conftest.er1
>conftest.err
20749 cat conftest.err
>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } >/dev
/null
; then
20752 if test -s conftest.err
; then
20753 ac_cpp_err
=$ac_c_preproc_warn_flag
20754 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20761 if test -z "$ac_cpp_err"; then
20764 echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.
$ac_ext >&5
20769 rm -f conftest.err conftest.
$ac_ext
20770 if test $have_readline = yes
20772 cat >conftest.
$ac_ext <<_ACEOF
20775 cat confdefs.h
>>conftest.
$ac_ext
20776 cat >>conftest.
$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 #include <readline/readline.h>
20781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20782 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20784 cat >>confdefs.h
<<\_ACEOF
20785 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20793 # check for readline 4.0
20794 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20795 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20796 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 ac_check_lib_save_LIBS
=$LIBS
20800 LIBS
="-lreadline $LIBS"
20801 cat >conftest.
$ac_ext <<_ACEOF
20804 cat confdefs.h
>>conftest.
$ac_ext
20805 cat >>conftest.
$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 /* Override any gcc2 internal prototype to avoid an error. */
20812 /* We use char because int might match the return type of a gcc2
20813 builtin and then its argument prototype would still apply. */
20814 char rl_pre_input_hook ();
20818 rl_pre_input_hook ();
20823 rm -f conftest.
$ac_objext conftest
$ac_exeext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20825 (eval $ac_link) 2>conftest.er1
20827 grep -v '^ *+' conftest.er1
>conftest.err
20829 cat conftest.err
>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try
='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try
='test -s conftest$ac_exeext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 ac_cv_lib_readline_rl_pre_input_hook
=yes
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.
$ac_ext >&5
20850 ac_cv_lib_readline_rl_pre_input_hook
=no
20852 rm -f conftest.err conftest.
$ac_objext \
20853 conftest
$ac_exeext conftest.
$ac_ext
20854 LIBS
=$ac_check_lib_save_LIBS
20856 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20857 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20858 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20860 cat >>confdefs.h
<<\_ACEOF
20861 #define HAVE_RL_PRE_INPUT_HOOK 1
20867 # check for readline 4.2
20868 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20869 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20870 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 ac_check_lib_save_LIBS
=$LIBS
20874 LIBS
="-lreadline $LIBS"
20875 cat >conftest.
$ac_ext <<_ACEOF
20878 cat confdefs.h
>>conftest.
$ac_ext
20879 cat >>conftest.
$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20882 /* Override any gcc2 internal prototype to avoid an error. */
20886 /* We use char because int might match the return type of a gcc2
20887 builtin and then its argument prototype would still apply. */
20888 char rl_completion_matches ();
20892 rl_completion_matches ();
20897 rm -f conftest.
$ac_objext conftest
$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>conftest.er1
20901 grep -v '^ *+' conftest.er1
>conftest.err
20903 cat conftest.err
>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try
='test -z "$ac_c_werror_flag"
20907 || test ! -s conftest.err'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; } &&
20913 { ac_try
='test -s conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 ac_cv_lib_readline_rl_completion_matches
=yes
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.
$ac_ext >&5
20924 ac_cv_lib_readline_rl_completion_matches
=no
20926 rm -f conftest.err conftest.
$ac_objext \
20927 conftest
$ac_exeext conftest.
$ac_ext
20928 LIBS
=$ac_check_lib_save_LIBS
20930 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20931 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20932 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20934 cat >>confdefs.h
<<\_ACEOF
20935 #define HAVE_RL_COMPLETION_MATCHES 1
20941 # also in readline 4.2
20942 cat >conftest.
$ac_ext <<_ACEOF
20945 cat confdefs.h
>>conftest.
$ac_ext
20946 cat >>conftest.
$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 #include <readline/readline.h>
20950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1
>conftest.err
20955 cat conftest.err
>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev
/null
; then
20958 if test -s conftest.err
; then
20959 ac_cpp_err
=$ac_c_preproc_warn_flag
20960 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20967 if test -z "$ac_cpp_err"; then
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.
$ac_ext >&5
20975 rm -f conftest.err conftest.
$ac_ext
20976 if test $have_readline = yes
20978 cat >conftest.
$ac_ext <<_ACEOF
20981 cat confdefs.h
>>conftest.
$ac_ext
20982 cat >>conftest.
$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 #include <readline/readline.h>
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20990 cat >>confdefs.h
<<\_ACEOF
20991 #define HAVE_RL_CATCH_SIGNAL 1
20999 # End of readline checks: restore LIBS
21000 LIBS
=$LIBS_no_readline
21002 echo "$as_me:$LINENO: checking for broken nice()" >&5
21003 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21004 if test "${ac_cv_broken_nice+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 if test "$cross_compiling" = yes; then
21009 ac_cv_broken_nice
=no
21011 cat >conftest.
$ac_ext <<_ACEOF
21014 cat confdefs.h
>>conftest.
$ac_ext
21015 cat >>conftest.
$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21020 int val1 = nice(1);
21021 if (val1 != -1 && val1 == nice(2))
21027 rm -f conftest
$ac_exeext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21029 (eval $ac_link) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 ac_cv_broken_nice
=yes
21040 echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.
$ac_ext >&5
21044 ( exit $ac_status )
21045 ac_cv_broken_nice
=no
21047 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21051 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21052 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21053 if test "$ac_cv_broken_nice" = yes
21056 cat >>confdefs.h
<<\_ACEOF
21057 #define HAVE_BROKEN_NICE 1
21062 echo "$as_me:$LINENO: checking for broken poll()" >&5
21063 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21064 if test "$cross_compiling" = yes; then
21065 ac_cv_broken_poll
=no
21067 cat >conftest.
$ac_ext <<_ACEOF
21070 cat confdefs.h
>>conftest.
$ac_ext
21071 cat >>conftest.
$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21078 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21082 int poll_test = poll (&poll_struct, 1, 0);
21088 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21099 rm -f conftest
$ac_exeext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21101 (eval $ac_link) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_broken_poll
=yes
21112 echo "$as_me: program exited with status $ac_status" >&5
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.
$ac_ext >&5
21116 ( exit $ac_status )
21117 ac_cv_broken_poll
=no
21119 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21121 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21122 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21123 if test "$ac_cv_broken_poll" = yes
21126 cat >>confdefs.h
<<\_ACEOF
21127 #define HAVE_BROKEN_POLL 1
21132 # Before we can test tzset, we need to check if struct tm has a tm_zone
21133 # (which is not required by ISO C or UNIX spec) and/or if we support
21135 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21136 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21137 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 cat >conftest.
$ac_ext <<_ACEOF
21143 cat confdefs.h
>>conftest.
$ac_ext
21144 cat >>conftest.
$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <sys/types.h>
21147 #include <$ac_cv_struct_tm>
21153 static struct tm ac_aggr;
21154 if (ac_aggr.tm_zone)
21160 rm -f conftest.
$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>conftest.er1
21164 grep -v '^ *+' conftest.er1
>conftest.err
21166 cat conftest.err
>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try
='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try
='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_member_struct_tm_tm_zone
=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.
$ac_ext >&5
21187 cat >conftest.
$ac_ext <<_ACEOF
21190 cat confdefs.h
>>conftest.
$ac_ext
21191 cat >>conftest.
$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 #include <sys/types.h>
21194 #include <$ac_cv_struct_tm>
21200 static struct tm ac_aggr;
21201 if (sizeof ac_aggr.tm_zone)
21207 rm -f conftest.
$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21211 grep -v '^ *+' conftest.er1
>conftest.err
21213 cat conftest.err
>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try
='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try
='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_member_struct_tm_tm_zone
=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.
$ac_ext >&5
21234 ac_cv_member_struct_tm_tm_zone
=no
21236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21242 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21244 cat >>confdefs.h
<<_ACEOF
21245 #define HAVE_STRUCT_TM_TM_ZONE 1
21251 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21253 cat >>confdefs.h
<<\_ACEOF
21254 #define HAVE_TM_ZONE 1
21258 echo "$as_me:$LINENO: checking for tzname" >&5
21259 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21260 if test "${ac_cv_var_tzname+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 cat >conftest.
$ac_ext <<_ACEOF
21266 cat confdefs.h
>>conftest.
$ac_ext
21267 cat >>conftest.
$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21270 #ifndef tzname /* For SGI. */
21271 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21282 rm -f conftest.
$ac_objext conftest
$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284 (eval $ac_link) 2>conftest.er1
21286 grep -v '^ *+' conftest.er1
>conftest.err
21288 cat conftest.err
>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try
='test -z "$ac_c_werror_flag"
21292 || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try
='test -s conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_var_tzname
=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.
$ac_ext >&5
21309 ac_cv_var_tzname
=no
21311 rm -f conftest.err conftest.
$ac_objext \
21312 conftest
$ac_exeext conftest.
$ac_ext
21314 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21315 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21316 if test $ac_cv_var_tzname = yes; then
21318 cat >>confdefs.h
<<\_ACEOF
21319 #define HAVE_TZNAME 1
21326 # check tzset(3) exists and works like we expect it to
21327 echo "$as_me:$LINENO: checking for working tzset()" >&5
21328 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21329 if test "${ac_cv_working_tzset+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 if test "$cross_compiling" = yes; then
21334 ac_cv_working_tzset
=no
21336 cat >conftest.
$ac_ext <<_ACEOF
21339 cat confdefs.h
>>conftest.
$ac_ext
21340 cat >>conftest.
$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21343 #include <stdlib.h>
21345 #include <string.h>
21348 extern char *tzname[];
21353 /* Note that we need to ensure that not only does tzset(3)
21354 do 'something' with localtime, but it works as documented
21355 in the library reference and as expected by the test suite.
21356 This includes making sure that tzname is set properly if
21357 tm->tm_zone does not exist since it is the alternative way
21358 of getting timezone info.
21360 Red Hat 6.2 doesn't understand the southern hemisphere
21361 after New Year's Day.
21364 time_t groundhogday = 1044144000; /* GMT-based */
21365 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21367 putenv("TZ=UTC+0");
21369 if (localtime(&groundhogday)->tm_hour != 0)
21372 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21373 if (strcmp(tzname[0], "UTC") ||
21374 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21378 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21380 if (localtime(&groundhogday)->tm_hour != 19)
21383 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21387 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21389 if (localtime(&groundhogday)->tm_hour != 11)
21392 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21396 #if HAVE_STRUCT_TM_TM_ZONE
21397 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21399 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21407 rm -f conftest
$ac_exeext
21408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21409 (eval $ac_link) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_working_tzset
=yes
21420 echo "$as_me: program exited with status $ac_status" >&5
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.
$ac_ext >&5
21424 ( exit $ac_status )
21425 ac_cv_working_tzset
=no
21427 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21432 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21433 if test "$ac_cv_working_tzset" = yes
21436 cat >>confdefs.h
<<\_ACEOF
21437 #define HAVE_WORKING_TZSET 1
21442 # Look for subsecond timestamps in struct stat
21443 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21444 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21445 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 cat >conftest.
$ac_ext <<_ACEOF
21451 cat confdefs.h
>>conftest.
$ac_ext
21452 cat >>conftest.
$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include <sys/stat.h>
21460 st.st_mtim.tv_nsec = 1;
21466 rm -f conftest.
$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468 (eval $ac_compile) 2>conftest.er1
21470 grep -v '^ *+' conftest.er1
>conftest.err
21472 cat conftest.err
>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try
='test -z "$ac_c_werror_flag"
21476 || test ! -s conftest.err'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try
='test -s conftest.$ac_objext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 ac_cv_stat_tv_nsec
=yes
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.
$ac_ext >&5
21493 ac_cv_stat_tv_nsec
=no
21495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21498 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21499 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21500 if test "$ac_cv_stat_tv_nsec" = yes
21503 cat >>confdefs.h
<<\_ACEOF
21504 #define HAVE_STAT_TV_NSEC 1
21509 # Look for BSD style subsecond timestamps in struct stat
21510 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21511 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21512 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 cat >conftest.
$ac_ext <<_ACEOF
21518 cat confdefs.h
>>conftest.
$ac_ext
21519 cat >>conftest.
$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 #include <sys/stat.h>
21527 st.st_mtimespec.tv_nsec = 1;
21533 rm -f conftest.
$ac_objext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>conftest.er1
21537 grep -v '^ *+' conftest.er1
>conftest.err
21539 cat conftest.err
>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try
='test -z "$ac_c_werror_flag"
21543 || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try
='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_stat_tv_nsec2
=yes
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.
$ac_ext >&5
21560 ac_cv_stat_tv_nsec2
=no
21562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21565 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21566 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21567 if test "$ac_cv_stat_tv_nsec2" = yes
21570 cat >>confdefs.h
<<\_ACEOF
21571 #define HAVE_STAT_TV_NSEC2 1
21576 # On HP/UX 11.0, mvwdelch is a block with a return statement
21577 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21578 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21579 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 cat >conftest.
$ac_ext <<_ACEOF
21585 cat confdefs.h
>>conftest.
$ac_ext
21586 cat >>conftest.
$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <curses.h>
21594 rtn = mvwdelch(0,0,0);
21600 rm -f conftest.
$ac_objext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21604 grep -v '^ *+' conftest.er1
>conftest.err
21606 cat conftest.err
>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try
='test -z "$ac_c_werror_flag"
21610 || test ! -s conftest.err'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try
='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_mvwdelch_is_expression
=yes
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.
$ac_ext >&5
21627 ac_cv_mvwdelch_is_expression
=no
21629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21632 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21633 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21635 if test "$ac_cv_mvwdelch_is_expression" = yes
21638 cat >>confdefs.h
<<\_ACEOF
21639 #define MVWDELCH_IS_EXPRESSION 1
21644 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21645 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21646 if test "${ac_cv_window_has_flags+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21649 cat >conftest.
$ac_ext <<_ACEOF
21652 cat confdefs.h
>>conftest.
$ac_ext
21653 cat >>conftest.
$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 #include <curses.h>
21667 rm -f conftest.
$ac_objext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21671 grep -v '^ *+' conftest.er1
>conftest.err
21673 cat conftest.err
>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
21676 { ac_try
='test -z "$ac_c_werror_flag"
21677 || test ! -s conftest.err'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } &&
21683 { ac_try
='test -s conftest.$ac_objext'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }; then
21689 ac_cv_window_has_flags
=yes
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.
$ac_ext >&5
21694 ac_cv_window_has_flags
=no
21696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21700 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21703 if test "$ac_cv_window_has_flags" = yes
21706 cat >>confdefs.h
<<\_ACEOF
21707 #define WINDOW_HAS_FLAGS 1
21712 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21713 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21715 if test -e /dev
/ptmx
21717 echo "$as_me:$LINENO: result: yes" >&5
21718 echo "${ECHO_T}yes" >&6
21720 cat >>confdefs.h
<<\_ACEOF
21721 #define HAVE_DEV_PTMX 1
21725 echo "$as_me:$LINENO: result: no" >&5
21726 echo "${ECHO_T}no" >&6
21729 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21730 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21732 if test -e /dev
/ptc
21734 echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6
21737 cat >>confdefs.h
<<\_ACEOF
21738 #define HAVE_DEV_PTC 1
21742 echo "$as_me:$LINENO: result: no" >&5
21743 echo "${ECHO_T}no" >&6
21746 echo "$as_me:$LINENO: checking for socklen_t" >&5
21747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21748 if test "${ac_cv_type_socklen_t+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 cat >conftest.
$ac_ext <<_ACEOF
21754 cat confdefs.h
>>conftest.
$ac_ext
21755 cat >>conftest.
$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21758 #ifdef HAVE_SYS_TYPES_H
21759 #include <sys/types.h>
21761 #ifdef HAVE_SYS_SOCKET_H
21762 #include <sys/socket.h>
21769 if ((socklen_t *) 0)
21771 if (sizeof (socklen_t))
21777 rm -f conftest.
$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779 (eval $ac_compile) 2>conftest.er1
21781 grep -v '^ *+' conftest.er1
>conftest.err
21783 cat conftest.err
>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try
='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try
='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_type_socklen_t
=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.
$ac_ext >&5
21804 ac_cv_type_socklen_t
=no
21806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21809 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21810 if test $ac_cv_type_socklen_t = yes; then
21814 cat >>confdefs.h
<<\_ACEOF
21815 #define socklen_t int
21823 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21825 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21829 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21830 echo "$as_me:$LINENO: checking for build directories" >&5
21831 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21832 for dir
in $SRCDIRS; do
21833 if test ! -d $dir; then
21837 echo "$as_me:$LINENO: result: done" >&5
21838 echo "${ECHO_T}done" >&6
21840 # generate output files
21841 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21843 cat >confcache
<<\_ACEOF
21844 # This file is a shell script that caches the results of configure
21845 # tests run on this system so they can be shared between configure
21846 # scripts and configure runs, see configure's option --config-cache.
21847 # It is not useful on other systems. If it contains results you don't
21848 # want to keep, you may remove or edit it.
21850 # config.status only pays attention to the cache file if you give it
21851 # the --recheck option to rerun configure.
21853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21855 # following values.
21859 # The following way of writing the cache mishandles newlines in values,
21860 # but we know of no workaround that is simple, portable, and efficient.
21861 # So, don't put newlines in cache variables' values.
21862 # Ultrix sh set writes to stderr and can't be redirected directly,
21863 # and sets the high bit in the cache file unless we assign to the vars.
21866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21868 # `set' does not quote correctly, so add quotes (double-quote
21869 # substitution turns \\\\ into \\, and sed turns \\ into \).
21872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21875 # `set' quotes correctly as required by POSIX, so do not add quotes.
21877 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21886 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21888 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21889 if test -w $cache_file; then
21890 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21891 cat confcache
>$cache_file
21893 echo "not updating unwritable cache $cache_file"
21898 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21899 # Let make expand exec_prefix.
21900 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21904 # trailing colons and then remove the whole line if VPATH becomes empty
21905 # (actually we leave an empty line to preserve line numbers).
21906 if test "x$srcdir" = x.
; then
21907 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21908 s/:*\$(srcdir):*/:/;
21909 s/:*\${srcdir}:*/:/;
21911 s/^\([^=]*=[ ]*\):*/\1/;
21917 DEFS
=-DHAVE_CONFIG_H
21921 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21922 # 1. Remove the extension, and $U if already installed.
21923 ac_i
=`echo "$ac_i" |
21924 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21926 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21927 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21929 LIBOBJS
=$ac_libobjs
21931 LTLIBOBJS
=$ac_ltlibobjs
21935 : ${CONFIG_STATUS=./config.status}
21936 ac_clean_files_save
=$ac_clean_files
21937 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21938 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21939 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21940 cat >$CONFIG_STATUS <<_ACEOF
21942 # Generated by $as_me.
21943 # Run this file to recreate the current configuration.
21944 # Compiler output produced by configure, useful for debugging
21945 # configure, is in config.log if it exists.
21948 ac_cs_recheck=false
21950 SHELL=\${CONFIG_SHELL-$SHELL}
21953 cat >>$CONFIG_STATUS <<\_ACEOF
21954 ## --------------------- ##
21955 ## M4sh Initialization. ##
21956 ## --------------------- ##
21958 # Be Bourne compatible
21959 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21962 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21963 # is contrary to our usage. Disable this feature.
21964 alias -g '${1+"$@"}'='"$@"'
21965 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21968 DUALCASE
=1; export DUALCASE
# for MKS sh
21970 # Support unset when possible.
21971 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21978 # Work around bugs in pre-3.0 UWIN ksh.
21979 $as_unset ENV MAIL MAILPATH
21986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21988 LC_TELEPHONE LC_TIME
21990 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21991 eval $as_var=C
; export $as_var
21997 # Required to use basename.
21998 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22004 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22005 as_basename
=basename
22011 # Name of the executable.
22012 as_me
=`$as_basename "$0" ||
22013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22014 X"$0" : 'X\(//\)$' \| \
22015 X"$0" : 'X\(/\)$' \| \
22016 . : '\(.\)' 2>/dev/null ||
22018 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22019 /^X\/\(\/\/\)$/{ s//\1/; q; }
22020 /^X\/\(\/\).*/{ s//\1/; q; }
22024 # PATH needs CR, and LINENO needs CR and PATH.
22025 # Avoid depending upon Character Ranges.
22026 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22027 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22028 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22029 as_cr_digits
='0123456789'
22030 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22032 # The user is always right.
22033 if test "${PATH_SEPARATOR+set}" != set; then
22034 echo "#! /bin/sh" >conf$$.sh
22035 echo "exit 0" >>conf$$.sh
22037 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22046 as_lineno_1
=$LINENO
22047 as_lineno_2
=$LINENO
22048 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22049 test "x$as_lineno_1" != "x$as_lineno_2" &&
22050 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22051 # Find who we are. Look in the path if we contain no path at all
22054 *[\\/]* ) as_myself
=$0 ;;
22055 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22056 for as_dir
in $PATH
22059 test -z "$as_dir" && as_dir
=.
22060 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22065 # We did not find ourselves, most probably we were run as `sh COMMAND'
22066 # in which case we are not to be found in the path.
22067 if test "x$as_myself" = x
; then
22070 if test ! -f "$as_myself"; then
22071 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22072 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22073 { (exit 1); exit 1; }; }
22075 case $CONFIG_SHELL in
22077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22078 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22081 test -z "$as_dir" && as_dir
=.
22082 for as_base
in sh bash ksh sh5
; do
22085 if ("$as_dir/$as_base" -c '
22086 as_lineno_1=$LINENO
22087 as_lineno_2=$LINENO
22088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22089 test "x$as_lineno_1" != "x$as_lineno_2" &&
22090 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22091 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22092 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22093 CONFIG_SHELL
=$as_dir/$as_base
22094 export CONFIG_SHELL
22095 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22103 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22104 # uniformly replaced by the line number. The first 'sed' inserts a
22105 # line-number line before each line; the second 'sed' does the real
22106 # work. The second script uses 'N' to pair each line-number line
22107 # with the numbered line, and appends trailing '-' during
22108 # substitution so that $LINENO is not a special case at line end.
22109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22110 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22111 sed '=' <$as_myself |
22116 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22119 s,^['$as_cr_digits']*\n,,
22120 ' >$as_me.lineno
&&
22121 chmod +x
$as_me.lineno ||
22122 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22123 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22124 { (exit 1); exit 1; }; }
22126 # Don't try to exec as it changes $[0], causing all sort of problems
22127 # (the dirname of $[0] is not the place where we might find the
22128 # original and so on. Autoconf is especially sensible to this).
22130 # Exit status is that of the last command.
22135 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22136 *c
*,-n*) ECHO_N
= ECHO_C
='
22138 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22139 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22142 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22148 rm -f conf$$ conf$$.exe conf$$.
file
22150 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22151 # We could just check for DJGPP; but this test a) works b) is more generic
22152 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22153 if test -f conf$$.exe
; then
22154 # Don't use ln at all; we don't have any links
22159 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22164 rm -f conf$$ conf$$.exe conf$$.
file
22166 if mkdir
-p .
2>/dev
/null
; then
22169 test -d .
/-p && rmdir .
/-p
22173 as_executable_p
="test -f"
22175 # Sed expression to map a string onto a valid CPP name.
22176 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22178 # Sed expression to map a string onto a valid variable name.
22179 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22183 # We need space, tab and new line, in precisely that order.
22193 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22194 # report actual input values of CONFIG_FILES etc. instead of their
22195 # values after options handling. Logging --version etc. is OK.
22199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200 ## Running $as_me. ##
22205 This file was extended by python $as_me 2.5, which was
22206 generated by GNU Autoconf 2.59. Invocation command line was
22208 CONFIG_FILES = $CONFIG_FILES
22209 CONFIG_HEADERS = $CONFIG_HEADERS
22210 CONFIG_LINKS = $CONFIG_LINKS
22211 CONFIG_COMMANDS = $CONFIG_COMMANDS
22215 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22219 # Files that config.status was made for.
22220 if test -n "$ac_config_files"; then
22221 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22224 if test -n "$ac_config_headers"; then
22225 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22228 if test -n "$ac_config_links"; then
22229 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22232 if test -n "$ac_config_commands"; then
22233 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22236 cat >>$CONFIG_STATUS <<\_ACEOF
22239 \`$as_me' instantiates files from templates according to the
22240 current configuration.
22242 Usage: $0 [OPTIONS] [FILE]...
22244 -h, --help print this help, then exit
22245 -V, --version print version number, then exit
22246 -q, --quiet do not print progress messages
22247 -d, --debug don't remove temporary files
22248 --recheck update $as_me by reconfiguring in the same conditions
22249 --file=FILE[:TEMPLATE]
22250 instantiate the configuration file FILE
22251 --header=FILE[:TEMPLATE]
22252 instantiate the configuration header FILE
22254 Configuration files:
22257 Configuration headers:
22260 Report bugs to <bug-autoconf@gnu.org>."
22263 cat >>$CONFIG_STATUS <<_ACEOF
22265 python config.status 2.5
22266 configured by $0, generated by GNU Autoconf 2.59,
22267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22269 Copyright (C) 2003 Free Software Foundation, Inc.
22270 This config.status script is free software; the Free Software Foundation
22271 gives unlimited permission to copy, distribute and modify it."
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 # If no file are specified by the user, then we need to provide default
22278 # value. By we need to know if files were specified by the user.
22284 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22285 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22293 *) # This is not an option, so the user has probably given explicit
22296 ac_need_defaults
=false
;;
22300 # Handling of the options.
22302 cat >>$CONFIG_STATUS <<\_ACEOF
22303 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22305 --version |
--vers* |
-V )
22306 echo "$ac_cs_version"; exit 0 ;;
22308 # Conflict between --help and --header
22309 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22310 Try \`$0 --help' for more information." >&5
22311 echo "$as_me: error: ambiguous option: $1
22312 Try \`$0 --help' for more information." >&2;}
22313 { (exit 1); exit 1; }; };;
22314 --help |
--hel |
-h )
22315 echo "$ac_cs_usage"; exit 0 ;;
22316 --debug |
--d* |
-d )
22318 --file |
--fil |
--fi |
--f )
22320 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22321 ac_need_defaults
=false
;;
22322 --header |
--heade |
--head |
--hea )
22324 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22325 ac_need_defaults
=false
;;
22326 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22327 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22330 # This is an error.
22331 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22332 Try \`$0 --help' for more information." >&5
22333 echo "$as_me: error: unrecognized option: $1
22334 Try \`$0 --help' for more information." >&2;}
22335 { (exit 1); exit 1; }; } ;;
22337 *) ac_config_targets
="$ac_config_targets $1" ;;
22343 ac_configure_extra_args
=
22345 if $ac_cs_silent; then
22347 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22351 cat >>$CONFIG_STATUS <<_ACEOF
22352 if \$ac_cs_recheck; then
22353 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22354 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 for ac_config_target
in $ac_config_targets
22366 case "$ac_config_target" in
22367 # Handling of arguments.
22368 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22369 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22370 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22373 { (exit 1); exit 1; }; };;
22377 # If the user did not use the arguments to specify the items to instantiate,
22378 # then the envvar interface is used. Set only those that are not.
22379 # We use the long form for the default assignment because of an extremely
22380 # bizarre bug on SunOS 4.1.3.
22381 if $ac_need_defaults; then
22382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22386 # Have a temporary directory for convenience. Make it in the build tree
22387 # simply because there is no reason to put it here, and in addition,
22388 # creating and moving files from /tmp can sometimes cause problems.
22389 # Create a temporary directory, and hook for its removal unless debugging.
22392 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22393 trap '{ (exit 1); exit 1; }' 1 2 13 15
22396 # Create a (secure) tmp directory for tmp files.
22399 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22400 test -n "$tmp" && test -d "$tmp"
22403 tmp
=.
/confstat$$
-$RANDOM
22404 (umask 077 && mkdir
$tmp)
22407 echo "$me: cannot create a temporary directory in ." >&2
22408 { (exit 1); exit 1; }
22413 cat >>$CONFIG_STATUS <<_ACEOF
22416 # CONFIG_FILES section.
22419 # No need to generate the scripts if there are no CONFIG_FILES.
22420 # This happens for instance when ./config.status config.h
22421 if test -n "\$CONFIG_FILES"; then
22422 # Protect against being on the right side of a sed subst in config.status.
22423 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22424 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22425 s,@SHELL@,$SHELL,;t t
22426 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22427 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22428 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22429 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22430 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22431 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22432 s,@exec_prefix@,$exec_prefix,;t t
22433 s,@prefix@,$prefix,;t t
22434 s,@program_transform_name@,$program_transform_name,;t t
22435 s,@bindir@,$bindir,;t t
22436 s,@sbindir@,$sbindir,;t t
22437 s,@libexecdir@,$libexecdir,;t t
22438 s,@datadir@,$datadir,;t t
22439 s,@sysconfdir@,$sysconfdir,;t t
22440 s,@sharedstatedir@,$sharedstatedir,;t t
22441 s,@localstatedir@,$localstatedir,;t t
22442 s,@libdir@,$libdir,;t t
22443 s,@includedir@,$includedir,;t t
22444 s,@oldincludedir@,$oldincludedir,;t t
22445 s,@infodir@,$infodir,;t t
22446 s,@mandir@,$mandir,;t t
22447 s,@build_alias@,$build_alias,;t t
22448 s,@host_alias@,$host_alias,;t t
22449 s,@target_alias@,$target_alias,;t t
22450 s,@DEFS@,$DEFS,;t t
22451 s,@ECHO_C@,$ECHO_C,;t t
22452 s,@ECHO_N@,$ECHO_N,;t t
22453 s,@ECHO_T@,$ECHO_T,;t t
22454 s,@LIBS@,$LIBS,;t t
22455 s,@VERSION@,$VERSION,;t t
22456 s,@SOVERSION@,$SOVERSION,;t t
22457 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22458 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22459 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22460 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22461 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22462 s,@MACHDEP@,$MACHDEP,;t t
22463 s,@SGI_ABI@,$SGI_ABI,;t t
22464 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22465 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22466 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22468 s,@MAINOBJ@,$MAINOBJ,;t t
22469 s,@EXEEXT@,$EXEEXT,;t t
22471 s,@CFLAGS@,$CFLAGS,;t t
22472 s,@LDFLAGS@,$LDFLAGS,;t t
22473 s,@CPPFLAGS@,$CPPFLAGS,;t t
22474 s,@ac_ct_CC@,$ac_ct_CC,;t t
22475 s,@OBJEXT@,$OBJEXT,;t t
22477 s,@EGREP@,$EGREP,;t t
22478 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22479 s,@LIBRARY@,$LIBRARY,;t t
22480 s,@LDLIBRARY@,$LDLIBRARY,;t t
22481 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22482 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22483 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22484 s,@INSTSONAME@,$INSTSONAME,;t t
22485 s,@RUNSHARED@,$RUNSHARED,;t t
22486 s,@LINKCC@,$LINKCC,;t t
22487 s,@RANLIB@,$RANLIB,;t t
22488 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22490 s,@SVNVERSION@,$SVNVERSION,;t t
22491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22496 s,@BASECFLAGS@,$BASECFLAGS,;t t
22497 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22498 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22500 s,@LDSHARED@,$LDSHARED,;t t
22501 s,@BLDSHARED@,$BLDSHARED,;t t
22502 s,@CCSHARED@,$CCSHARED,;t t
22503 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22504 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22505 s,@SHLIBS@,$SHLIBS,;t t
22506 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22507 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22508 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22509 s,@LDLAST@,$LDLAST,;t t
22510 s,@THREADOBJ@,$THREADOBJ,;t t
22511 s,@DLINCLDIR@,$DLINCLDIR,;t t
22512 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22513 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22514 s,@TRUE@,$TRUE,;t t
22515 s,@LIBOBJS@,$LIBOBJS,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22518 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22519 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22520 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22521 s,@LIBM@,$LIBM,;t t
22522 s,@LIBC@,$LIBC,;t t
22523 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22524 s,@THREADHEADERS@,$THREADHEADERS,;t t
22525 s,@SRCDIRS@,$SRCDIRS,;t t
22526 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22531 cat >>$CONFIG_STATUS <<\_ACEOF
22532 # Split the substitutions into bite-sized pieces for seds with
22533 # small command number limits, like on Digital OSF/1 and HP-UX.
22534 ac_max_sed_lines
=48
22535 ac_sed_frag
=1 # Number of current file.
22536 ac_beg
=1 # First line for current file.
22537 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22540 while $ac_more_lines; do
22541 if test $ac_beg -gt 1; then
22542 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22544 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22546 if test ! -s $tmp/subs.frag
; then
22547 ac_more_lines
=false
22549 # The purpose of the label and of the branching condition is to
22550 # speed up the sed processing (if there are no `@' at all, there
22551 # is no need to browse any of the substitutions).
22552 # These are the two extra sed commands mentioned above.
22554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22555 if test -z "$ac_sed_cmds"; then
22556 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22558 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22560 ac_sed_frag
=`expr $ac_sed_frag + 1`
22562 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22565 if test -z "$ac_sed_cmds"; then
22568 fi # test -n "$CONFIG_FILES"
22571 cat >>$CONFIG_STATUS <<\_ACEOF
22572 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22575 - |
*:- |
*:-:* ) # input from stdin
22577 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22578 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22579 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22580 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22581 * ) ac_file_in
=$ac_file.
in ;;
22584 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22585 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587 X"$ac_file" : 'X\(//\)[^/]' \| \
22588 X"$ac_file" : 'X\(//\)$' \| \
22589 X"$ac_file" : 'X\(/\)' \| \
22590 . : '\(.\)' 2>/dev/null ||
22592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22594 /^X\(\/\/\)$/{ s//\1/; q; }
22595 /^X\(\/\).*/{ s//\1/; q; }
22597 { if $as_mkdir_p; then
22602 while test ! -d "$as_dir"; do
22603 as_dirs
="$as_dir $as_dirs"
22604 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$as_dir" : 'X\(//\)[^/]' \| \
22607 X"$as_dir" : 'X\(//\)$' \| \
22608 X"$as_dir" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22617 test ! -n "$as_dirs" || mkdir
$as_dirs
22618 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620 { (exit 1); exit 1; }; }; }
22624 if test "$ac_dir" != .
; then
22625 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22626 # A "../" for each directory in $ac_dir_suffix.
22627 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22629 ac_dir_suffix
= ac_top_builddir
=
22633 .
) # No --srcdir option. We are building in place.
22635 if test -z "$ac_top_builddir"; then
22638 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22640 [\\/]* | ?
:[\\/]* ) # Absolute path.
22641 ac_srcdir
=$srcdir$ac_dir_suffix;
22642 ac_top_srcdir
=$srcdir ;;
22643 *) # Relative path.
22644 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22645 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22648 # Do not use `cd foo && pwd` to compute absolute paths, because
22649 # the directories may not exist.
22651 .
) ac_abs_builddir
="$ac_dir";;
22654 .
) ac_abs_builddir
=`pwd`;;
22655 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22656 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22659 case $ac_abs_builddir in
22660 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22662 case ${ac_top_builddir}.
in
22663 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22664 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22665 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22668 case $ac_abs_builddir in
22669 .
) ac_abs_srcdir
=$ac_srcdir;;
22672 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22673 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22674 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22677 case $ac_abs_builddir in
22678 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22680 case $ac_top_srcdir in
22681 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22682 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22683 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22689 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22690 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22693 if test x
"$ac_file" != x-
; then
22694 { echo "$as_me:$LINENO: creating $ac_file" >&5
22695 echo "$as_me: creating $ac_file" >&6;}
22698 # Let's still pretend it is `configure' which instantiates (i.e., don't
22699 # use $as_me), people would be surprised to read:
22700 # /* config.h. Generated by config.status. */
22701 if test x
"$ac_file" = x-
; then
22704 configure_input
="$ac_file. "
22706 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22707 sed 's,.*/,,'` by configure."
22709 # First look for the input files in the build tree, otherwise in the
22711 ac_file_inputs
=`IFS=:
22712 for f in $ac_file_in; do
22714 -) echo $tmp/stdin ;;
22716 # Absolute (can't be DOS-style, as IFS=:)
22717 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22718 echo "$as_me: error: cannot find input file: $f" >&2;}
22719 { (exit 1); exit 1; }; }
22722 if test -f "$f"; then
22725 elif test -f "$srcdir/$f"; then
22730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22731 echo "$as_me: error: cannot find input file: $f" >&2;}
22732 { (exit 1); exit 1; }; }
22735 done` ||
{ (exit 1); exit 1; }
22737 cat >>$CONFIG_STATUS <<_ACEOF
22741 cat >>$CONFIG_STATUS <<\_ACEOF
22743 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22744 s
,@configure_input@
,$configure_input,;t t
22745 s
,@srcdir@
,$ac_srcdir,;t t
22746 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22747 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22748 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22749 s
,@builddir@
,$ac_builddir,;t t
22750 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22751 s
,@top_builddir@
,$ac_top_builddir,;t t
22752 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22753 s
,@INSTALL@
,$ac_INSTALL,;t t
22754 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22756 if test x"$ac_file" != x-; then
22757 mv $tmp/out $ac_file
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22768 # CONFIG_HEADER section.
22771 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22772 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22774 # ac_d sets the value in "#define NAME VALUE" lines.
22775 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22776 ac_dB
='[ ].*$,\1#\2'
22779 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22780 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22781 ac_uB
='$,\1#\2define\3'
22785 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22788 - |
*:- |
*:-:* ) # input from stdin
22790 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22791 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22792 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22793 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22794 * ) ac_file_in
=$ac_file.
in ;;
22797 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22798 echo "$as_me: creating $ac_file" >&6;}
22800 # First look for the input files in the build tree, otherwise in the
22802 ac_file_inputs
=`IFS=:
22803 for f in $ac_file_in; do
22805 -) echo $tmp/stdin ;;
22807 # Absolute (can't be DOS-style, as IFS=:)
22808 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22809 echo "$as_me: error: cannot find input file: $f" >&2;}
22810 { (exit 1); exit 1; }; }
22811 # Do quote $f, to prevent DOS paths from being IFS'd.
22814 if test -f "$f"; then
22817 elif test -f "$srcdir/$f"; then
22822 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22823 echo "$as_me: error: cannot find input file: $f" >&2;}
22824 { (exit 1); exit 1; }; }
22827 done` ||
{ (exit 1); exit 1; }
22828 # Remove the trailing spaces.
22829 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22833 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22834 # `conftest.undefs', that substitutes the proper values into
22835 # config.h.in to produce config.h. The first handles `#define'
22836 # templates, and the second `#undef' templates.
22837 # And first: Protect against being on the right side of a sed subst in
22838 # config.status. Protect against being in an unquoted here document
22839 # in config.status.
22840 rm -f conftest.defines conftest.undefs
22841 # Using a here document instead of a string reduces the quoting nightmare.
22842 # Putting comments in sed scripts is not portable.
22844 # `end' is used to avoid that the second main sed command (meant for
22845 # 0-ary CPP macros) applies to n-ary macro definitions.
22846 # See the Autoconf documentation for `clear'.
22847 cat >confdef2sed.
sed <<\_ACEOF
22852 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22854 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22857 # If some macros were called several times there might be several times
22858 # the same #defines, which is useless. Nevertheless, we may not want to
22859 # sort them, since we want the *last* AC-DEFINE to be honored.
22860 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22861 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22862 rm -f confdef2sed.sed
22864 # This sed command replaces #undef with comments. This is necessary, for
22865 # example, in the case of _POSIX_SOURCE, which is predefined and required
22866 # on some systems where configure will not decide to define it.
22867 cat >>conftest.undefs <<\_ACEOF
22868 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22871 # Break up conftest.defines because some shells have a limit on the size
22872 # of here documents, and old seds have small limits too (100 cmds).
22873 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22874 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22875 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22876 echo ' :' >>$CONFIG_STATUS
22877 rm -f conftest.tail
22878 while grep . conftest.defines >/dev/null
22880 # Write a limited-size here document to $tmp/defines.sed.
22881 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22882 # Speed up: don't consider the non `#define' lines.
22883 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22884 # Work around the forget-to-reset-the-flag bug.
22885 echo 't clr' >>$CONFIG_STATUS
22886 echo ': clr' >>$CONFIG_STATUS
22887 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22889 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22891 mv $tmp/out $tmp/in
22893 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22894 rm -f conftest.defines
22895 mv conftest.
tail conftest.defines
22897 rm -f conftest.defines
22898 echo ' fi # grep' >>$CONFIG_STATUS
22899 echo >>$CONFIG_STATUS
22901 # Break up conftest.undefs because some shells have a limit on the size
22902 # of here documents, and old seds have small limits too (100 cmds).
22903 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22904 rm -f conftest.
tail
22905 while grep . conftest.undefs
>/dev
/null
22907 # Write a limited-size here document to $tmp/undefs.sed.
22908 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22909 # Speed up: don't consider the non
`#undef'
22910 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22911 # Work around the forget-to-reset-the-flag bug.
22912 echo 't clr' >>$CONFIG_STATUS
22913 echo ': clr' >>$CONFIG_STATUS
22914 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22916 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22918 mv $tmp/out $tmp/in
22920 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22921 rm -f conftest.undefs
22922 mv conftest.tail conftest.undefs
22924 rm -f conftest.undefs
22926 cat >>$CONFIG_STATUS <<\_ACEOF
22927 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22928 # use $as_me), people would be surprised to read:
22929 # /* config.h. Generated by config.status. */
22930 if test x
"$ac_file" = x-
; then
22931 echo "/* Generated by configure. */" >$tmp/config.h
22933 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22935 cat $tmp/in >>$tmp/config.h
22937 if test x
"$ac_file" != x-
; then
22938 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22939 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22940 echo "$as_me: $ac_file is unchanged" >&6;}
22942 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$ac_file" : 'X\(//\)[^/]' \| \
22945 X"$ac_file" : 'X\(//\)$' \| \
22946 X"$ac_file" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22954 { if $as_mkdir_p; then
22959 while test ! -d "$as_dir"; do
22960 as_dirs
="$as_dir $as_dirs"
22961 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963 X"$as_dir" : 'X\(//\)[^/]' \| \
22964 X"$as_dir" : 'X\(//\)$' \| \
22965 X"$as_dir" : 'X\(/\)' \| \
22966 . : '\(.\)' 2>/dev/null ||
22968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970 /^X\(\/\/\)$/{ s//\1/; q; }
22971 /^X\(\/\).*/{ s//\1/; q; }
22974 test ! -n "$as_dirs" || mkdir
$as_dirs
22975 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22977 { (exit 1); exit 1; }; }; }
22980 mv $tmp/config.h
$ac_file
22984 rm -f $tmp/config.h
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22991 { (exit 0); exit 0; }
22993 chmod +x
$CONFIG_STATUS
22994 ac_clean_files
=$ac_clean_files_save
22997 # configure is writing to config.log, and then calls config.status.
22998 # config.status does its own redirection, appending to config.log.
22999 # Unfortunately, on DOS this fails, as config.log is still kept open
23000 # by configure, so config.status won't be able to write to it; its
23001 # output is simply discarded. So we exec the FD to /dev/null,
23002 # effectively closing config.log, so it can be properly (re)opened and
23003 # appended to by config.status. When coming back to configure, we
23004 # need to make the FD available again.
23005 if test "$no_create" != yes; then
23007 ac_config_status_args
=
23008 test "$silent" = yes &&
23009 ac_config_status_args
="$ac_config_status_args --quiet"
23011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23014 # would make configure fail if this is the last instruction.
23015 $ac_cs_success ||
{ (exit 1); exit 1; }
23019 echo "creating Setup"
23020 if test ! -f Modules
/Setup
23022 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23025 echo "creating Setup.local"
23026 if test ! -f Modules
/Setup.
local
23028 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23031 echo "creating Makefile"
23032 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23033 -s Modules Modules
/Setup.config \
23034 Modules
/Setup.
local Modules
/Setup
23035 mv config.c Modules