2 # From configure.in Revision: 46295 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
1446 FRAMEWORKINSTALLFIRST
=
1447 FRAMEWORKINSTALLLAST
=
1451 PYTHONFRAMEWORK
=Python
1452 PYTHONFRAMEWORKDIR
=Python.framework
1453 PYTHONFRAMEWORKPREFIX
=$enableval
1454 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1455 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1456 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1457 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1459 # Add makefiles for Mac specific code to the list of output
1461 ac_config_files
="$ac_config_files Mac/OSX/Makefile"
1463 ac_config_files
="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1465 ac_config_files
="$ac_config_files Mac/OSX/IDLE/Makefile"
1472 PYTHONFRAMEWORKDIR
=no-framework
1473 PYTHONFRAMEWORKPREFIX
=
1474 PYTHONFRAMEWORKINSTALLDIR
=
1475 FRAMEWORKINSTALLFIRST
=
1476 FRAMEWORKINSTALLLAST
=
1488 ## AC_HELP_STRING(--with-dyld,
1489 ## Use (OpenStep|Rhapsody) dynamic linker))
1491 # Set name for machine-dependent library files
1493 echo "$as_me:$LINENO: checking MACHDEP" >&5
1494 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1495 if test -z "$MACHDEP"
1497 ac_sys_system
=`uname -s`
1498 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1499 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1500 ac_sys_release
=`uname -v`
1502 ac_sys_release
=`uname -r`
1504 ac_md_system
=`echo $ac_sys_system |
1505 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1506 ac_md_release
=`echo $ac_sys_release |
1507 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1508 MACHDEP
="$ac_md_system$ac_md_release"
1511 cygwin
*) MACHDEP
="cygwin";;
1512 darwin
*) MACHDEP
="darwin";;
1513 atheos
*) MACHDEP
="atheos";;
1514 irix646
) MACHDEP
="irix6";;
1515 '') MACHDEP
="unknown";;
1519 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1520 # disable features if it is defined, without any means to access these
1521 # features as extensions. For these systems, we skip the definition of
1522 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1523 # some feature, make sure there is no alternative way to access this
1524 # feature. Also, when using wildcards, make sure you have verified the
1525 # need for not defining _XOPEN_SOURCE on all systems matching the
1526 # wildcard, and that the wildcard does not include future systems
1527 # (which may remove their limitations).
1528 case $ac_sys_system/$ac_sys_release in
1529 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1530 # even though select is a POSIX function. Reported by J. Ribbens.
1531 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1532 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789])
1533 define_xopen_source
=no
;;
1534 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1535 # of union __?sigval. Reported by Stuart Bishop.
1537 define_xopen_source
=no
;;
1538 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1539 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1540 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1541 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1542 define_xopen_source
=no
;;
1543 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1544 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1546 define_xopen_source
=no
;;
1547 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1548 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1549 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1550 # This should hopefully be fixed in FreeBSD 4.9
1551 FreeBSD
/4.8* | Darwin
/6* )
1552 define_xopen_source
=no
;;
1553 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1554 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1555 # or has another value. By not (re)defining it, the defaults come in place.
1557 define_xopen_source
=no
;;
1559 if test `uname -r` -eq 1; then
1560 define_xopen_source
=no
1563 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1564 # disables platform specific features beyond repair.
1565 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1566 # has no effect, don't bother defineing them
1568 define_xopen_source
=no
1573 if test $define_xopen_source = yes
1575 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1576 # defined precisely as g++ defines it
1577 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1579 case $ac_sys_system/$ac_sys_release in
1580 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1582 cat >>confdefs.h
<<\_ACEOF
1583 #define _XOPEN_SOURCE 500
1589 cat >>confdefs.h
<<\_ACEOF
1590 #define _XOPEN_SOURCE 600
1596 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1597 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1598 # several APIs are not declared. Since this is also needed in some
1599 # cases for HP-UX, we define it globally.
1600 # except for Solaris 10, where it must not be defined,
1601 # as it implies XPG4.2
1602 case $ac_sys_system/$ac_sys_release in
1607 cat >>confdefs.h
<<\_ACEOF
1608 #define _XOPEN_SOURCE_EXTENDED 1
1615 cat >>confdefs.h
<<\_ACEOF
1616 #define _POSIX_C_SOURCE 200112L
1623 # SGI compilers allow the specification of the both the ABI and the
1624 # ISA on the command line. Depending on the values of these switches,
1625 # different and often incompatable code will be generated.
1627 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1628 # thus supply support for various ABI/ISA combinations. The MACHDEP
1629 # variable is also adjusted.
1632 if test ! -z "$SGI_ABI"
1635 LDFLAGS
="$SGI_ABI $LDFLAGS"
1636 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1638 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1639 echo "${ECHO_T}$MACHDEP" >&6
1641 # And add extra plat-mac for darwin
1644 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1645 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1646 if test -z "$EXTRAPLATDIR"
1650 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1651 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1659 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1660 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1662 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1663 # it may influence the way we can build extensions, so distutils
1667 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1668 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1670 # checks for alternative programs
1672 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1673 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1674 # just to get things to compile and link. Users are free to override OPT
1675 # when running configure or make. The build should not break if they do.
1676 # BASECFLAGS should generally not be messed with, however.
1678 # XXX shouldn't some/most/all of this code be merged with the stuff later
1679 # on that fiddles with OPT and BASECFLAGS?
1680 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1681 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1683 # Check whether --with-gcc or --without-gcc was given.
1684 if test "${with_gcc+set}" = set; then
1693 without_gcc
=$withval;;
1697 case $ac_sys_system in
1701 case $BE_HOST_CPU in
1705 BASECFLAGS
="$BASECFLAGS -export pragma"
1707 LDFLAGS
="$LDFLAGS -nodup"
1715 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1716 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1717 { (exit 1); exit 1; }; }
1720 AR
="\$(srcdir)/Modules/ar_beos"
1729 echo "$as_me:$LINENO: result: $without_gcc" >&5
1730 echo "${ECHO_T}$without_gcc" >&6
1732 # If the user switches compilers, we can't believe the cache
1733 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1735 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1736 (it is also a good idea to do 'make clean' before compiling)" >&5
1737 echo "$as_me: error: cached CC is different -- throw away $cache_file
1738 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1739 { (exit 1); exit 1; }; }
1743 ac_cpp
='$CPP $CPPFLAGS'
1744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC
="$CC" # Let the user override the test.
1758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir
=.
1763 for ac_exec_ext
in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1784 if test -z "$ac_cv_prog_CC"; then
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787 set dummy gcc
; ac_word
=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir
=.
1801 for ac_exec_ext
in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC
="gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1826 if test -z "$CC"; then
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1829 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1866 # Extract the first word of "cc", so it can be a program name with args.
1867 set dummy cc
; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC
="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc
; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir
=.
1924 for ac_exec_ext
in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1927 ac_prog_rejected
=yes
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy
$ac_cv_prog_CC
1941 if test $# != 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1946 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC
="$CC" # Let the user override the test.
1975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir
=.
1980 for ac_exec_ext
in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$CC" && break
2003 if test -z "$CC"; then
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy
$ac_prog; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 for ac_exec_ext
in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CC
="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$ac_ct_CC" && break
2051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&2;}
2055 { (exit 1); exit 1; }; }
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C compiler version" >&5
2060 ac_compiler
=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.
$ac_ext <<_ACEOF
2080 cat confdefs.h
>>conftest.
$ac_ext
2081 cat >>conftest.
$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2092 ac_clean_files_save
=$ac_clean_files
2093 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2099 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2112 # b.out is created by i960 compilers.
2113 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2115 test -f "$ac_file" ||
continue
2117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2120 # This is the source file.
2123 # We found the default executable, but exeext='' is most
2127 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.
$ac_ext >&5
2141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145 { (exit 77); exit 77; }; }
2148 ac_exeext
=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2152 # Check the compiler produces executables we can run. If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159 if { ac_try
='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 if test "$cross_compiling" = maybe
; then
2170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2183 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2184 ac_clean_files
=$ac_clean_files_save
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2203 for ac_file
in conftest.exe conftest conftest.
*; do
2204 test -f "$ac_file" ||
continue
2206 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2207 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest
$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2225 rm -f conftest.
$ac_ext
2226 EXEEXT
=$ac_cv_exeext
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.
$ac_ext <<_ACEOF
2236 cat confdefs.h
>>conftest.
$ac_ext
2237 cat >>conftest.
$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2256 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2257 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.
$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT
=$ac_cv_objext
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.
$ac_ext <<_ACEOF
2286 cat confdefs.h
>>conftest.
$ac_ext
2287 cat >>conftest.
$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2301 rm -f conftest.
$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1
>conftest.err
2307 cat conftest.err
>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try
='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try
='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.
$ac_ext >&5
2330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2331 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2334 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2336 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CFLAGS
=${CFLAGS+set}
2338 ac_save_CFLAGS
=$CFLAGS
2340 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2341 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cc_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.
$ac_ext <<_ACEOF
2348 cat confdefs.h
>>conftest.
$ac_ext
2349 cat >>conftest.
$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.
$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2364 grep -v '^ *+' conftest.er1
>conftest.err
2366 cat conftest.err
>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try
='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try
='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.
$ac_ext >&5
2389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2393 if test "$ac_test_CFLAGS" = set; then
2394 CFLAGS
=$ac_save_CFLAGS
2395 elif test $ac_cv_prog_cc_g = yes; then
2396 if test "$GCC" = yes; then
2402 if test "$GCC" = yes; then
2408 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2409 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 ac_cv_prog_cc_stdc
=no
2415 cat >conftest.
$ac_ext <<_ACEOF
2418 cat confdefs.h
>>conftest.
$ac_ext
2419 cat >>conftest.
$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2423 #include <sys/types.h>
2424 #include <sys/stat.h>
2425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2426 struct buf { int x; };
2427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2428 static char *e (p, i)
2434 static char *f (char * (*g) (char **, int), char **p, ...)
2439 s = g (p, va_arg (v,int));
2444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2445 function prototypes and stuff, but not '\xHH' hex character constants.
2446 These don't provoke an error unfortunately, instead are silently treated
2447 as 'x'. The following induces an error, until -std1 is added to get
2448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2449 array size at least. It's necessary to write '\x00'==0 to get something
2450 that's true only with -std1. */
2451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2453 int test (int i, double x);
2454 struct s1 {int (*f) (int a);};
2455 struct s2 {int (*f) (double a);};
2456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2467 # Don't try gcc -ansi; that turns off useful extensions and
2468 # breaks some systems' header files.
2469 # AIX -qlanglvl=ansi
2470 # Ultrix and OSF/1 -std1
2471 # HP-UX 10.20 and later -Ae
2472 # HP-UX older versions -Aa -D_HPUX_SOURCE
2473 # SVR4 -Xc -D__EXTENSIONS__
2474 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2476 CC
="$ac_save_CC $ac_arg"
2477 rm -f conftest.
$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2481 grep -v '^ *+' conftest.er1
>conftest.err
2483 cat conftest.err
>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try
='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try
='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_prog_cc_stdc
=$ac_arg
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2506 rm -f conftest.err conftest.
$ac_objext
2508 rm -f conftest.
$ac_ext conftest.
$ac_objext
2513 case "x$ac_cv_prog_cc_stdc" in
2515 echo "$as_me:$LINENO: result: none needed" >&5
2516 echo "${ECHO_T}none needed" >&6 ;;
2518 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2519 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2520 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2523 # Some people use a C++ compiler to compile C. Since we use `exit',
2524 # in C++ we need to declare it. In case someone uses the same compiler
2525 # for both compiling C and C++ we need to have the C++ compiler decide
2526 # the declaration of exit, since it's the most demanding environment.
2527 cat >conftest.
$ac_ext <<_ACEOF
2532 rm -f conftest.
$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2536 grep -v '^ *+' conftest.er1
>conftest.err
2538 cat conftest.err
>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try
='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try
='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 for ac_declaration
in \
2556 'extern "C" void std::exit (int) throw (); using std::exit;' \
2557 'extern "C" void std::exit (int); using std::exit;' \
2558 'extern "C" void exit (int) throw ();' \
2559 'extern "C" void exit (int);' \
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2578 rm -f conftest.
$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1
>conftest.err
2584 cat conftest.err
>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try
='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try
='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2608 cat >conftest.
$ac_ext <<_ACEOF
2611 cat confdefs.h
>>conftest.
$ac_ext
2612 cat >>conftest.
$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.
$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2627 grep -v '^ *+' conftest.er1
>conftest.err
2629 cat conftest.err
>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try
='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try
='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.
$ac_ext >&5
2651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2654 if test -n "$ac_declaration"; then
2655 echo '#ifdef __cplusplus' >>confdefs.h
2656 echo $ac_declaration >>confdefs.h
2657 echo '#endif' >>confdefs.h
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.
$ac_ext >&5
2665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2667 ac_cpp
='$CPP $CPPFLAGS'
2668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2675 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2676 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2678 # Check whether --with-cxx_main or --without-cxx_main was given.
2679 if test "${with_cxx_main+set}" = set; then
2680 withval
="$with_cxx_main"
2684 no
) with_cxx_main
=no
2686 yes) with_cxx_main
=yes
2688 *) with_cxx_main
=yes
2701 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2702 echo "${ECHO_T}$with_cxx_main" >&6
2708 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2709 set dummy g
++; ac_word
=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_path_CXX+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2721 for as_dir
in notfound
2724 test -z "$as_dir" && as_dir
=.
2725 for ac_exec_ext
in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2740 if test -n "$CXX"; then
2741 echo "$as_me:$LINENO: result: $CXX" >&5
2742 echo "${ECHO_T}$CXX" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2748 cc
) # Extract the first word of "c++", so it can be a program name with args.
2749 set dummy c
++; ac_word
=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_path_CXX+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 for as_dir
in notfound
2764 test -z "$as_dir" && as_dir
=.
2765 for ac_exec_ext
in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2780 if test -n "$CXX"; then
2781 echo "$as_me:$LINENO: result: $CXX" >&5
2782 echo "${ECHO_T}$CXX" >&6
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2789 if test "$CXX" = "notfound"
2796 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy
$ac_prog; ac_word
=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_CXX+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$CXX"; then
2806 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir
=.
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CXX
="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 if test -n "$CXX"; then
2826 echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 test -n "$CXX" && break
2835 test -n "$CXX" || CXX
="notfound"
2837 if test "$CXX" = "notfound"
2842 if test "$preset_cxx" != "$CXX"
2844 { echo "$as_me:$LINENO: WARNING:
2846 By default, distutils will build C++ extension modules with \"$CXX\".
2847 If this is not intended, then set CXX on the configure command line.
2849 echo "$as_me: WARNING:
2851 By default, distutils will build C++ extension modules with \"$CXX\".
2852 If this is not intended, then set CXX on the configure command line.
2857 # checks for UNIX variants that set C preprocessor variables
2860 ac_cpp
='$CPP $CPPFLAGS'
2861 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2864 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2866 # On Suns, sometimes $CPP names a directory.
2867 if test -n "$CPP" && test -d "$CPP"; then
2870 if test -z "$CPP"; then
2871 if test "${ac_cv_prog_CPP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 # Double quotes because CPP needs to be expanded
2875 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2878 for ac_c_preproc_warn_flag
in '' yes
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.
$ac_ext <<_ACEOF
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1
>conftest.err
2904 cat conftest.err
>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev
/null
; then
2907 if test -s conftest.err
; then
2908 ac_cpp_err
=$ac_c_preproc_warn_flag
2909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2916 if test -z "$ac_cpp_err"; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.
$ac_ext >&5
2922 # Broken: fails on valid input.
2925 rm -f conftest.err conftest.
$ac_ext
2927 # OK, works on sane cases. Now check whether non-existent headers
2928 # can be detected and how.
2929 cat >conftest.
$ac_ext <<_ACEOF
2932 cat confdefs.h
>>conftest.
$ac_ext
2933 cat >>conftest.
$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev
/null
; then
2945 if test -s conftest.err
; then
2946 ac_cpp_err
=$ac_c_preproc_warn_flag
2947 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2954 if test -z "$ac_cpp_err"; then
2955 # Broken: success on invalid input.
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.
$ac_ext >&5
2961 # Passes both tests.
2965 rm -f conftest.err conftest.
$ac_ext
2968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2969 rm -f conftest.err conftest.
$ac_ext
2970 if $ac_preproc_ok; then
2982 echo "$as_me:$LINENO: result: $CPP" >&5
2983 echo "${ECHO_T}$CPP" >&6
2985 for ac_c_preproc_warn_flag
in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.
$ac_ext <<_ACEOF
2996 cat confdefs.h
>>conftest.
$ac_ext
2997 cat >>conftest.
$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3000 # include <limits.h>
3002 # include <assert.h>
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev
/null
; then
3014 if test -s conftest.err
; then
3015 ac_cpp_err
=$ac_c_preproc_warn_flag
3016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3023 if test -z "$ac_cpp_err"; then
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.
$ac_ext >&5
3029 # Broken: fails on valid input.
3032 rm -f conftest.err conftest.
$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.
$ac_ext <<_ACEOF
3039 cat confdefs.h
>>conftest.
$ac_ext
3040 cat >>conftest.
$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev
/null
; then
3052 if test -s conftest.err
; then
3053 ac_cpp_err
=$ac_c_preproc_warn_flag
3054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.
$ac_ext >&5
3068 # Passes both tests.
3072 rm -f conftest.err conftest.
$ac_ext
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.
$ac_ext
3077 if $ac_preproc_ok; then
3080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3088 ac_cpp
='$CPP $CPPFLAGS'
3089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking for egrep" >&5
3095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3096 if test "${ac_cv_prog_egrep+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3100 then ac_cv_prog_egrep
='grep -E'
3101 else ac_cv_prog_egrep
='egrep'
3104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3106 EGREP
=$ac_cv_prog_egrep
3110 echo "$as_me:$LINENO: checking for AIX" >&5
3111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 $EGREP "yes" >/dev
/null
2>&1; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126 echo "${ECHO_T}yes" >&6
3127 cat >>confdefs.h
<<\_ACEOF
3128 #define _ALL_SOURCE 1
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3139 # Check for unsupported systems
3140 case $ac_sys_system/$ac_sys_release in
3142 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3143 echo See README
for details.
3148 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3149 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3151 # Check whether --with-suffix or --without-suffix was given.
3152 if test "${with_suffix+set}" = set; then
3153 withval
="$with_suffix"
3158 *) EXEEXT
=$withval;;
3161 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3162 echo "${ECHO_T}$EXEEXT" >&6
3164 # Test whether we're running on a non-case-sensitive system, in which
3165 # case we give a warning if no ext is given
3167 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3168 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3169 if test ! -d CaseSensitiveTestDir
; then
3170 mkdir CaseSensitiveTestDir
3173 if test -d casesensitivetestdir
3175 echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3183 rmdir CaseSensitiveTestDir
3188 gcc
) CC
="$CC -D_HAVE_BSDI";;
3192 case $ac_sys_system in
3195 cc|
*/cc
) CC
="$CC -Ae";;
3199 cc
) CC
="$CC -Wl,-Bexport";;
3202 # Some functions have a prototype only with that define, e.g. confstr
3204 cat >>confdefs.h
<<\_ACEOF
3205 #define __EXTENSIONS__ 1
3213 echo "$as_me:$LINENO: checking LIBRARY" >&5
3214 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3215 if test -z "$LIBRARY"
3217 LIBRARY
='libpython$(VERSION).a'
3219 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3220 echo "${ECHO_T}$LIBRARY" >&6
3222 # LDLIBRARY is the name of the library to link against (as opposed to the
3223 # name of the library into which to insert object files). BLDLIBRARY is also
3224 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3225 # is blank as the main program is not linked directly against LDLIBRARY.
3226 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3227 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3228 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3229 # DLLLIBRARY is the shared (i.e., DLL) library.
3231 # RUNSHARED is used to run shared python without installed libraries
3233 # INSTSONAME is the name of the shared library that will be use to install
3234 # on the system - some systems like version suffix, others don't
3241 LDLIBRARY
="$LIBRARY"
3242 BLDLIBRARY
='$(LDLIBRARY)'
3243 INSTSONAME
='$(LDLIBRARY)'
3248 # LINKCC is the command that links the python executable -- default is $(CC).
3249 # If CXX is set, and if it is needed to link a main function that was
3250 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3251 # python might then depend on the C++ runtime
3252 # This is altered for AIX in order to build the export list before
3255 echo "$as_me:$LINENO: checking LINKCC" >&5
3256 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3257 if test -z "$LINKCC"
3259 LINKCC
='$(PURIFY) $(MAINCC)'
3260 case $ac_sys_system in
3263 if test $ac_sys_release -ge 5 -o \
3264 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3267 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3269 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3272 echo "$as_me:$LINENO: result: $LINKCC" >&5
3273 echo "${ECHO_T}$LINKCC" >&6
3275 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3276 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3277 # Check whether --enable-shared or --disable-shared was given.
3278 if test "${enable_shared+set}" = set; then
3279 enableval
="$enable_shared"
3283 if test -z "$enable_shared"
3285 case $ac_sys_system in
3287 enable_shared
="yes";;
3289 enable_shared
="no";;
3292 echo "$as_me:$LINENO: result: $enable_shared" >&5
3293 echo "${ECHO_T}$enable_shared" >&6
3295 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3296 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3297 # Check whether --enable-profiling or --disable-profiling was given.
3298 if test "${enable_profiling+set}" = set; then
3299 enableval
="$enable_profiling"
3302 if test "$cross_compiling" = yes; then
3303 ac_enable_profiling
="no"
3305 cat >conftest.
$ac_ext <<_ACEOF
3308 cat confdefs.h
>>conftest.
$ac_ext
3309 cat >>conftest.
$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 int main() { return 0; }
3313 rm -f conftest
$ac_exeext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3315 (eval $ac_link) 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_enable_profiling
="yes"
3326 echo "$as_me: program exited with status $ac_status" >&5
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3331 ac_enable_profiling
="no"
3333 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3338 echo "${ECHO_T}$ac_enable_profiling" >&6
3340 case "$ac_enable_profiling" in
3342 BASECFLAGS
="-pg $BASECFLAGS"
3343 LDFLAGS
="-pg $LDFLAGS"
3347 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3348 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3350 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3351 # library that we build, but we do not want to link against it (we
3352 # will find it with a -framework option). For this reason there is an
3353 # extra variable BLDLIBRARY against which Python and the extension
3354 # modules are linked, BLDLIBRARY. This is normally the same as
3355 # LDLIBRARY, but empty for MacOSX framework builds.
3356 if test "$enable_framework"
3358 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3359 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3362 BLDLIBRARY
='$(LDLIBRARY)'
3365 # Other platforms follow
3366 if test $enable_shared = "yes"; then
3368 cat >>confdefs.h
<<\_ACEOF
3369 #define Py_ENABLE_SHARED 1
3372 case $ac_sys_system in
3374 LDLIBRARY
='libpython$(VERSION).so'
3377 LDLIBRARY
='libpython$(VERSION).dll.a'
3378 DLLLIBRARY
='libpython$(VERSION).dll'
3381 LDLIBRARY
='libpython$(VERSION).so'
3382 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3383 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3384 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3386 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3387 LDLIBRARY
='libpython$(VERSION).so'
3388 BLDLIBRARY
='-L. -lpython$(VERSION)'
3389 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3390 case $ac_sys_system in
3392 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3395 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3400 LDLIBRARY
='libpython$(VERSION).so'
3403 LDLIBRARY
='libpython$(VERSION).sl'
3406 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3415 LDLIBRARY
='libpython$(VERSION).so'
3416 BLDLIBRARY
='-L. -lpython$(VERSION)'
3417 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3420 else # shared is disabled
3421 case $ac_sys_system in
3423 BLDLIBRARY
='$(LIBRARY)'
3424 LDLIBRARY
='libpython$(VERSION).dll.a'
3429 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3430 echo "${ECHO_T}$LDLIBRARY" >&6
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3434 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_RANLIB+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$RANLIB"; then
3441 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 RANLIB
=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461 echo "$as_me:$LINENO: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB
=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib
; ac_word
=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3498 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3499 if test -n "$ac_ct_RANLIB"; then
3500 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 RANLIB
=$ac_ct_RANLIB
3509 RANLIB
="$ac_cv_prog_RANLIB"
3513 for ac_prog
in ar aal
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy
$ac_prog; ac_word
=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_AR+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -n "$AR"; then
3523 ac_cv_prog_AR
="$AR" # Let the user override the test.
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_exec_ext
in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_AR
="$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test -n "$AR"; then
3543 echo "$as_me:$LINENO: result: $AR" >&5
3544 echo "${ECHO_T}$AR" >&6
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 test -n "$AR" && break
3552 test -n "$AR" || AR
="ar"
3556 # Extract the first word of "svnversion", so it can be a program name with args.
3557 set dummy svnversion
; ac_word
=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$SVNVERSION"; then
3564 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir
=.
3571 for ac_exec_ext
in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_SVNVERSION
="found"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3583 SVNVERSION
=$ac_cv_prog_SVNVERSION
3584 if test -n "$SVNVERSION"; then
3585 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3586 echo "${ECHO_T}$SVNVERSION" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 if test $SVNVERSION = found
3594 SVNVERSION
="svnversion \$(srcdir)"
3596 SVNVERSION
="echo exported"
3601 # install -d does not work on BSDI or HP-UX
3602 if test -z "$INSTALL"
3604 INSTALL
="${srcdir}/install-sh -c"
3608 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3609 if test -f $ac_dir/install-sh
; then
3611 ac_install_sh
="$ac_aux_dir/install-sh -c"
3613 elif test -f $ac_dir/install.sh
; then
3615 ac_install_sh
="$ac_aux_dir/install.sh -c"
3617 elif test -f $ac_dir/shtool
; then
3619 ac_install_sh
="$ac_aux_dir/shtool install -c"
3623 if test -z "$ac_aux_dir"; then
3624 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3625 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3626 { (exit 1); exit 1; }; }
3628 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3629 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3630 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 # Account for people who put trailing slashes in PATH elements.
3658 .
/ | .
// |
/cC
/* | \
3659 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3660 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3666 for ac_prog
in ginstall scoinst
install; do
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3678 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL
=$ac_cv_path_install
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL
=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3712 # Not every filesystem supports hard links
3714 if test -z "$LN" ; then
3715 case $ac_sys_system in
3717 CYGWIN
*) LN
="ln -s";;
3718 atheos
*) LN
="ln -s";;
3723 # Check for --with-pydebug
3724 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3725 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3727 # Check whether --with-pydebug or --without-pydebug was given.
3728 if test "${with_pydebug+set}" = set; then
3729 withval
="$with_pydebug"
3731 if test "$withval" != no
3734 cat >>confdefs.h
<<\_ACEOF
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6;
3741 else echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3750 # merged with this chunk of code?
3752 # Optimizer/debugger flags
3753 # ------------------------
3754 # (The following bit of code is complicated enough - please keep things
3755 # indented properly. Just pretend you're editing Python code. ;-)
3757 # There are two parallel sets of case statements below, one that checks to
3758 # see if OPT was set and one that does BASECFLAGS setting based upon
3759 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3762 # tweak OPT based on compiler and platform, only if the user didn't set
3763 # it on the command line
3769 if test "$CC" != 'g++' ; then
3770 STRICT_PROTO
="-Wstrict-prototypes"
3772 case $ac_cv_prog_cc_g in
3774 if test "$Py_DEBUG" = 'true' ; then
3775 # Optimization messes up debuggers, so turn it off for
3777 OPT
="-g -Wall $STRICT_PROTO"
3779 OPT
="-g -O3 -Wall $STRICT_PROTO"
3783 OPT
="-O3 -Wall $STRICT_PROTO"
3786 case $ac_sys_system in
3787 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3797 # The current (beta) Monterey compiler dies with optimizations
3798 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3799 case $ac_sys_system in
3808 # tweak BASECFLAGS based on compiler and platform
3811 # Python violates C99 rules, by casting between incompatible
3812 # pointer types. GCC may generate bad code as a result of that,
3813 # so use -fno-strict-aliasing if supported.
3814 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3815 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3817 CC
="$CC -fno-strict-aliasing"
3818 if test "$cross_compiling" = yes; then
3819 ac_cv_no_strict_aliasing_ok
=no
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 int main() { return 0; }
3829 rm -f conftest
$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_no_strict_aliasing_ok
=yes
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3847 ac_cv_no_strict_aliasing_ok
=no
3849 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3853 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3854 if test $ac_cv_no_strict_aliasing_ok = yes
3856 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3858 case $ac_sys_system in
3860 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3862 # is there any other compiler on Darwin besides gcc?
3864 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3865 if test "${enable_universalsdk}"; then
3866 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3871 BASECFLAGS
="$BASECFLAGS -mieee"
3877 case $ac_sys_system in
3878 OpenUNIX
*|UnixWare
*)
3879 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3882 BASECFLAGS
="$BASECFLAGS -ieee -std"
3885 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3891 if test "$Py_DEBUG" = 'true'; then
3897 if test "$ac_arch_flags"
3899 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3902 # disable check for icc since it seems to pass, but generates a warning
3905 ac_cv_opt_olimit_ok
=no
3908 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3909 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3910 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 CC
="$CC -OPT:Olimit=0"
3915 if test "$cross_compiling" = yes; then
3916 ac_cv_opt_olimit_ok
=no
3918 cat >conftest.
$ac_ext <<_ACEOF
3921 cat confdefs.h
>>conftest.
$ac_ext
3922 cat >>conftest.
$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 int main() { return 0; }
3926 rm -f conftest
$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_opt_olimit_ok
=yes
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.
$ac_ext >&5
3944 ac_cv_opt_olimit_ok
=no
3946 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3952 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3953 if test $ac_cv_opt_olimit_ok = yes; then
3954 case $ac_sys_system in
3955 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3956 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3961 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3965 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3966 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3967 if test "${ac_cv_olimit_ok+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 CC
="$CC -Olimit 1500"
3972 if test "$cross_compiling" = yes; then
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 int main() { return 0; }
3983 rm -f conftest
$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4003 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4009 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4010 if test $ac_cv_olimit_ok = yes; then
4011 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4015 # On some compilers, pthreads are available without further options
4016 # (e.g. MacOS X). On some of these systems, the compiler will not
4017 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4018 # So we have to see first whether pthreads are available without
4019 # options before we can check whether -Kpthread improves anything.
4020 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4021 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4022 if test "${ac_cv_pthread_is_default+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test "$cross_compiling" = yes; then
4026 ac_cv_pthread_is_default
=no
4028 cat >conftest.
$ac_ext <<_ACEOF
4031 cat confdefs.h
>>conftest.
$ac_ext
4032 cat >>conftest.
$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4035 #include <pthread.h>
4037 void* routine(void* p){return NULL;}
4041 if(pthread_create(&p,NULL,routine,NULL)!=0)
4043 (void)pthread_detach(p);
4048 rm -f conftest
$ac_exeext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4060 ac_cv_pthread_is_default
=yes
4065 echo "$as_me: program exited with status $ac_status" >&5
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.
$ac_ext >&5
4070 ac_cv_pthread_is_default
=no
4072 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4081 if test $ac_cv_pthread_is_default = yes
4085 # -Kpthread, if available, provides the right #defines
4086 # and linker options to make pthread_create available
4087 # Some compilers won't report that they do not support -Kpthread,
4088 # so we need to run a program to see whether it really made the
4089 # function available.
4090 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4092 if test "${ac_cv_kpthread+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test "$cross_compiling" = yes; then
4100 cat >conftest.
$ac_ext <<_ACEOF
4103 cat confdefs.h
>>conftest.
$ac_ext
4104 cat >>conftest.
$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4107 #include <pthread.h>
4109 void* routine(void* p){return NULL;}
4113 if(pthread_create(&p,NULL,routine,NULL)!=0)
4115 (void)pthread_detach(p);
4120 rm -f conftest
$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4145 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4146 echo "${ECHO_T}$ac_cv_kpthread" >&6
4149 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4151 # -Kthread, if available, provides the right #defines
4152 # and linker options to make pthread_create available
4153 # Some compilers won't report that they do not support -Kthread,
4154 # so we need to run a program to see whether it really made the
4155 # function available.
4156 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4157 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4158 if test "${ac_cv_kthread+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test "$cross_compiling" = yes; then
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #include <pthread.h>
4175 void* routine(void* p){return NULL;}
4179 if(pthread_create(&p,NULL,routine,NULL)!=0)
4181 (void)pthread_detach(p);
4186 rm -f conftest
$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4199 echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.
$ac_ext >&5
4206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4211 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4212 echo "${ECHO_T}$ac_cv_kthread" >&6
4215 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4217 # -pthread, if available, provides the right #defines
4218 # and linker options to make pthread_create available
4219 # Some compilers won't report that they do not support -pthread,
4220 # so we need to run a program to see whether it really made the
4221 # function available.
4222 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4223 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4224 if test "${ac_cv_thread+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test "$cross_compiling" = yes; then
4232 cat >conftest.
$ac_ext <<_ACEOF
4235 cat confdefs.h
>>conftest.
$ac_ext
4236 cat >>conftest.
$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 #include <pthread.h>
4241 void* routine(void* p){return NULL;}
4245 if(pthread_create(&p,NULL,routine,NULL)!=0)
4247 (void)pthread_detach(p);
4252 rm -f conftest
$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.
$ac_ext >&5
4272 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4278 echo "${ECHO_T}$ac_cv_pthread" >&6
4281 # If we have set a CC compiler flag for thread support then
4282 # check if it works for CXX, too.
4286 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4287 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4290 if test "$ac_cv_kpthread" = "yes"
4292 CXX
="$CXX -Kpthread"
4293 ac_cv_cxx_thread
=yes
4294 elif test "$ac_cv_kthread" = "yes"
4297 ac_cv_cxx_thread
=yes
4298 elif test "$ac_cv_pthread" = "yes"
4301 ac_cv_cxx_thread
=yes
4304 if test $ac_cv_cxx_thread = yes
4306 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4307 $CXX -c conftest.
$ac_ext 2>&5
4308 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4309 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4311 ac_cv_cxx_thread
=yes
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4323 # checks for header files
4324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4326 if test "${ac_cv_header_stdc+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4348 rm -f conftest.
$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4352 grep -v '^ *+' conftest.er1
>conftest.err
4354 cat conftest.err
>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try
='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try
='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_header_stdc
=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 ac_cv_header_stdc
=no
4377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat >conftest.
$ac_ext <<_ACEOF
4384 cat confdefs.h
>>conftest.
$ac_ext
4385 cat >>conftest.
$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev
/null
2>&1; then
4394 ac_cv_header_stdc
=no
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "free" >/dev
/null
2>&1; then
4415 ac_cv_header_stdc
=no
4421 if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4456 rm -f conftest
$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4469 echo "$as_me: program exited with status $ac_status" >&5
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.
$ac_ext >&5
4474 ac_cv_header_stdc
=no
4476 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h
<<\_ACEOF
4485 #define STDC_HEADERS 1
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4501 inttypes.h stdint.h unistd.h
4503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504 echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.
$ac_ext <<_ACEOF
4512 cat confdefs.h
>>conftest.
$ac_ext
4513 cat >>conftest.
$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 #include <$ac_header>
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 eval "$as_ac_Header=no"
4548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h
<<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4603 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4604 stropts.h termios.h thread.h \
4606 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4608 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h \
4609 sys
/times.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4610 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4611 bluetooth
/bluetooth.h
4613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623 # Is the header compilable?
4624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <$ac_header>
4635 rm -f conftest.
$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try
='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try
='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_header_compiler
=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4662 ac_header_compiler
=no
4664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666 echo "${ECHO_T}$ac_header_compiler" >&6
4668 # Is the header present?
4669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4671 cat >conftest.
$ac_ext <<_ACEOF
4674 cat confdefs.h
>>conftest.
$ac_ext
4675 cat >>conftest.
$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <$ac_header>
4679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1
>conftest.err
4684 cat conftest.err
>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev
/null
; then
4687 if test -s conftest.err
; then
4688 ac_cpp_err
=$ac_c_preproc_warn_flag
4689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4696 if test -z "$ac_cpp_err"; then
4697 ac_header_preproc
=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_header_preproc
=no
4704 rm -f conftest.err conftest.
$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc
=yes
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4732 ## ------------------------------------------------ ##
4733 ## Report this to http://www.python.org/python-bugs ##
4734 ## ------------------------------------------------ ##
4737 sed "s/^/$as_me: WARNING: /" >&2
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 eval "$as_ac_Header=\$ac_header_preproc"
4747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4752 cat >>confdefs.h
<<_ACEOF
4753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4767 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4768 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <sys/types.h>
4791 rm -f conftest.
$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1
>conftest.err
4797 cat conftest.err
>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try
='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try
='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 eval "$as_ac_Header=yes"
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.
$ac_ext >&5
4818 eval "$as_ac_Header=no"
4820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h
<<_ACEOF
4826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4829 ac_header_dirent
=$ac_hdr; break
4833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4834 if test $ac_header_dirent = dirent.h
; then
4835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4837 if test "${ac_cv_search_opendir+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_func_search_save_LIBS
=$LIBS
4841 ac_cv_search_opendir
=no
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4864 rm -f conftest.
$ac_objext conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_search_opendir
="none required"
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f conftest.err conftest.
$ac_objext \
4893 conftest
$ac_exeext conftest.
$ac_ext
4894 if test "$ac_cv_search_opendir" = no
; then
4895 for ac_lib
in dir
; do
4896 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4897 cat >conftest.
$ac_ext <<_ACEOF
4900 cat confdefs.h
>>conftest.
$ac_ext
4901 cat >>conftest.
$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4919 rm -f conftest.
$ac_objext conftest
$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1
>conftest.err
4925 cat conftest.err
>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try
='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try
='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_search_opendir
="-l$ac_lib"
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.
$ac_ext >&5
4948 rm -f conftest.err conftest.
$ac_objext \
4949 conftest
$ac_exeext conftest.
$ac_ext
4952 LIBS
=$ac_func_search_save_LIBS
4954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4956 if test "$ac_cv_search_opendir" != no
; then
4957 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4962 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4963 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4964 if test "${ac_cv_search_opendir+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 ac_func_search_save_LIBS
=$LIBS
4968 ac_cv_search_opendir
=no
4969 cat >conftest.
$ac_ext <<_ACEOF
4972 cat confdefs.h
>>conftest.
$ac_ext
4973 cat >>conftest.
$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4976 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4991 rm -f conftest.
$ac_objext conftest
$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1
>conftest.err
4997 cat conftest.err
>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try
='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try
='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_search_opendir
="none required"
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.
$ac_ext >&5
5019 rm -f conftest.err conftest.
$ac_objext \
5020 conftest
$ac_exeext conftest.
$ac_ext
5021 if test "$ac_cv_search_opendir" = no
; then
5023 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5024 cat >conftest.
$ac_ext <<_ACEOF
5027 cat confdefs.h
>>conftest.
$ac_ext
5028 cat >>conftest.
$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5046 rm -f conftest.
$ac_objext conftest
$ac_exeext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1
>conftest.err
5052 cat conftest.err
>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try
='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try
='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_search_opendir
="-l$ac_lib"
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.
$ac_ext >&5
5075 rm -f conftest.err conftest.
$ac_objext \
5076 conftest
$ac_exeext conftest.
$ac_ext
5079 LIBS
=$ac_func_search_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5082 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5083 if test "$ac_cv_search_opendir" != no
; then
5084 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.
$ac_ext <<_ACEOF
5098 cat confdefs.h
>>conftest.
$ac_ext
5099 cat >>conftest.
$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5105 return makedev(0, 0);
5110 rm -f conftest.
$ac_objext conftest
$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try
='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try
='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_sys_types_h_makedev
=yes
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.
$ac_ext >&5
5137 ac_cv_header_sys_types_h_makedev
=no
5139 rm -f conftest.err conftest.
$ac_objext \
5140 conftest
$ac_exeext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5146 if test $ac_cv_header_sys_types_h_makedev = no
; then
5147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5156 # Is the header compilable?
5157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5159 cat >conftest.
$ac_ext <<_ACEOF
5162 cat confdefs.h
>>conftest.
$ac_ext
5163 cat >>conftest.
$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 #include <sys/mkdev.h>
5168 rm -f conftest.
$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1
>conftest.err
5174 cat conftest.err
>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try
='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try
='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_header_compiler
=yes
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 ac_header_compiler
=no
5197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6
5201 # Is the header present?
5202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5204 cat >conftest.
$ac_ext <<_ACEOF
5207 cat confdefs.h
>>conftest.
$ac_ext
5208 cat >>conftest.
$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <sys/mkdev.h>
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1
>conftest.err
5217 cat conftest.err
>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev
/null
; then
5220 if test -s conftest.err
; then
5221 ac_cpp_err
=$ac_c_preproc_warn_flag
5222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5229 if test -z "$ac_cpp_err"; then
5230 ac_header_preproc
=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.
$ac_ext >&5
5235 ac_header_preproc
=no
5237 rm -f conftest.err conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5244 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5248 ac_header_preproc
=yes
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5265 ## ------------------------------------------------ ##
5266 ## Report this to http://www.python.org/python-bugs ##
5267 ## ------------------------------------------------ ##
5270 sed "s/^/$as_me: WARNING: /" >&2
5273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5284 if test $ac_cv_header_sys_mkdev_h = yes; then
5286 cat >>confdefs.h
<<\_ACEOF
5287 #define MAJOR_IN_MKDEV 1
5294 if test $ac_cv_header_sys_mkdev_h = no
; then
5295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5296 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5307 cat >conftest.
$ac_ext <<_ACEOF
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 #include <sys/sysmacros.h>
5316 rm -f conftest.
$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1
>conftest.err
5322 cat conftest.err
>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try
='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try
='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler
=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.
$ac_ext >&5
5343 ac_header_compiler
=no
5345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <sys/sysmacros.h>
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev
/null
; then
5368 if test -s conftest.err
; then
5369 ac_cpp_err
=$ac_c_preproc_warn_flag
5370 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_header_preproc
=no
5385 rm -f conftest.err conftest.
$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc
=yes
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5413 ## ------------------------------------------------ ##
5414 ## Report this to http://www.python.org/python-bugs ##
5415 ## ------------------------------------------------ ##
5418 sed "s/^/$as_me: WARNING: /" >&2
5421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5432 if test $ac_cv_header_sys_sysmacros_h = yes; then
5434 cat >>confdefs.h
<<\_ACEOF
5435 #define MAJOR_IN_SYSMACROS 1
5445 # On Solaris, term.h requires curses.h
5447 for ac_header
in term.h
5449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 #ifdef HAVE_CURSES_H
5467 #include <$ac_header>
5469 rm -f conftest.
$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1
>conftest.err
5475 cat conftest.err
>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try
='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try
='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 eval "$as_ac_Header=yes"
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5496 eval "$as_ac_Header=no"
5498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h
<<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 # On Linux, netlink.h requires asm/types.h
5514 for ac_header
in linux
/netlink.h
5516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 #ifdef HAVE_ASM_TYPES_H
5530 #include <asm/types.h>
5532 #ifdef HAVE_SYS_SOCKET_H
5533 #include <sys/socket.h>
5537 #include <$ac_header>
5539 rm -f conftest.
$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>conftest.er1
5543 grep -v '^ *+' conftest.er1
>conftest.err
5545 cat conftest.err
>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try
='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try
='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 eval "$as_ac_Header=yes"
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.
$ac_ext >&5
5566 eval "$as_ac_Header=no"
5568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h
<<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 # checks for typedefs
5584 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5585 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5586 cat >conftest.
$ac_ext <<_ACEOF
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "clock_t" >/dev
/null
2>&1; then
5601 cat >>confdefs.h
<<\_ACEOF
5602 #define clock_t long
5609 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5610 echo "${ECHO_T}$was_it_defined" >&6
5612 # Check whether using makedev requires defining _OSF_SOURCE
5613 echo "$as_me:$LINENO: checking for makedev" >&5
5614 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5618 cat confdefs.h
>>conftest.
$ac_ext
5619 cat >>conftest.
$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5630 rm -f conftest.
$ac_objext conftest
$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1
>conftest.err
5636 cat conftest.err
>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try
='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try
='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_has_makedev
=yes
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.
$ac_ext >&5
5657 ac_cv_has_makedev
=no
5659 rm -f conftest.err conftest.
$ac_objext \
5660 conftest
$ac_exeext conftest.
$ac_ext
5661 if test "$ac_cv_has_makedev" = "no"; then
5662 # we didn't link, try if _OSF_SOURCE will allow us to link
5663 cat >conftest.
$ac_ext <<_ACEOF
5666 cat confdefs.h
>>conftest.
$ac_ext
5667 cat >>conftest.
$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 #define _OSF_SOURCE 1
5671 #include <sys/types.h>
5681 rm -f conftest.
$ac_objext conftest
$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try
='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_has_makedev
=yes
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5708 ac_cv_has_makedev
=no
5710 rm -f conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5712 if test "$ac_cv_has_makedev" = "yes"; then
5714 cat >>confdefs.h
<<\_ACEOF
5715 #define _OSF_SOURCE 1
5720 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5721 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5722 if test "$ac_cv_has_makedev" = "yes"; then
5724 cat >>confdefs.h
<<\_ACEOF
5725 #define HAVE_MAKEDEV 1
5730 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5731 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5732 # defined, but the compiler does not support pragma redefine_extname,
5733 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5734 # structures (such as rlimit64) without declaring them. As a
5735 # work-around, disable LFS on such configurations
5738 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5739 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5740 cat >conftest.
$ac_ext <<_ACEOF
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 #define _LARGEFILE_SOURCE 1
5748 #define _FILE_OFFSET_BITS 64
5749 #include <sys/resource.h>
5759 rm -f conftest.
$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5763 grep -v '^ *+' conftest.er1
>conftest.err
5765 cat conftest.err
>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try
='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5790 echo "${ECHO_T}$sol_lfs_bug" >&6
5791 if test "$sol_lfs_bug" = "yes"; then
5795 if test "$use_lfs" = "yes"; then
5796 # Two defines needed to enable largefile support on various platforms
5797 # These may affect some typedefs
5799 cat >>confdefs.h
<<\_ACEOF
5800 #define _LARGEFILE_SOURCE 1
5804 cat >>confdefs.h
<<\_ACEOF
5805 #define _FILE_OFFSET_BITS 64
5810 # Add some code to confdefs.h so that the test for off_t works on SCO
5811 cat >> confdefs.h
<<\EOF
5817 # Type availability checks
5818 echo "$as_me:$LINENO: checking for mode_t" >&5
5819 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_mode_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5826 cat confdefs.h
>>conftest.
$ac_ext
5827 cat >>conftest.
$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5835 if (sizeof (mode_t))
5841 rm -f conftest.
$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1
>conftest.err
5847 cat conftest.err
>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try
='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try
='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_type_mode_t
=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5868 ac_cv_type_mode_t
=no
5870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5874 if test $ac_cv_type_mode_t = yes; then
5878 cat >>confdefs.h
<<_ACEOF
5884 echo "$as_me:$LINENO: checking for off_t" >&5
5885 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_off_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5907 rm -f conftest.
$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try
='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try
='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_off_t
=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5940 if test $ac_cv_type_off_t = yes; then
5944 cat >>confdefs.h
<<_ACEOF
5950 echo "$as_me:$LINENO: checking for pid_t" >&5
5951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5952 if test "${ac_cv_type_pid_t+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5973 rm -f conftest.
$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try
='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try
='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_pid_t
=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6006 if test $ac_cv_type_pid_t = yes; then
6010 cat >>confdefs.h
<<_ACEOF
6016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6018 if test "${ac_cv_type_signal+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6033 extern "C" void (*signal (int, void (*)(int)))(int);
6035 void (*signal ()) ();
6046 rm -f conftest.
$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6050 grep -v '^ *+' conftest.er1
>conftest.err
6052 cat conftest.err
>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try
='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try
='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_signal
=void
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.
$ac_ext >&5
6073 ac_cv_type_signal
=int
6075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6078 echo "${ECHO_T}$ac_cv_type_signal" >&6
6080 cat >>confdefs.h
<<_ACEOF
6081 #define RETSIGTYPE $ac_cv_type_signal
6085 echo "$as_me:$LINENO: checking for size_t" >&5
6086 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6087 if test "${ac_cv_type_size_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.
$ac_ext <<_ACEOF
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 $ac_includes_default
6102 if (sizeof (size_t))
6108 rm -f conftest.
$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try
='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try
='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_type_size_t
=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.
$ac_ext >&5
6135 ac_cv_type_size_t
=no
6137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6141 if test $ac_cv_type_size_t = yes; then
6145 cat >>confdefs.h
<<_ACEOF
6146 #define size_t unsigned
6151 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6152 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6153 if test "${ac_cv_type_uid_t+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 cat >conftest.
$ac_ext <<_ACEOF
6159 cat confdefs.h
>>conftest.
$ac_ext
6160 cat >>conftest.
$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "uid_t" >/dev
/null
2>&1; then
6167 ac_cv_type_uid_t
=yes
6174 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6175 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6176 if test $ac_cv_type_uid_t = no
; then
6178 cat >>confdefs.h
<<\_ACEOF
6183 cat >>confdefs.h
<<\_ACEOF
6189 echo "$as_me:$LINENO: checking for ssize_t" >&5
6190 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6191 if test "${ac_cv_type_ssize_t+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 cat >conftest.
$ac_ext <<_ACEOF
6197 cat confdefs.h
>>conftest.
$ac_ext
6198 cat >>conftest.
$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6206 if (sizeof (ssize_t))
6212 rm -f conftest.
$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6216 grep -v '^ *+' conftest.er1
>conftest.err
6218 cat conftest.err
>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try
='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try
='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_type_ssize_t
=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.
$ac_ext >&5
6239 ac_cv_type_ssize_t
=no
6241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6244 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6245 if test $ac_cv_type_ssize_t = yes; then
6247 cat >>confdefs.h
<<\_ACEOF
6248 #define HAVE_SSIZE_T 1
6254 # Sizes of various common basic types
6255 # ANSI C requires sizeof(char) == 1, so no need to check it
6256 echo "$as_me:$LINENO: checking for int" >&5
6257 echo $ECHO_N "checking for int... $ECHO_C" >&6
6258 if test "${ac_cv_type_int+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6279 rm -f conftest.
$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1
>conftest.err
6285 cat conftest.err
>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try
='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try
='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.
$ac_ext >&5
6308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6311 echo "${ECHO_T}$ac_cv_type_int" >&6
6313 echo "$as_me:$LINENO: checking size of int" >&5
6314 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6315 if test "${ac_cv_sizeof_int+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 if test "$ac_cv_type_int" = yes; then
6319 # The cast to unsigned long works around a bug in the HP C Compiler
6320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6322 # This bug is HP SR number 8606223364.
6323 if test "$cross_compiling" = yes; then
6324 # Depending upon the size, compute the lo and hi bounds.
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6376 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6383 rm -f conftest.
$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1
>conftest.err
6389 cat conftest.err
>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try
='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try
='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_hi
=$ac_mid; break
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6410 ac_lo
=`expr $ac_mid + 1`
6411 if test $ac_lo -le $ac_mid; then
6415 ac_mid
=`expr 2 '*' $ac_mid + 1`
6417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.
$ac_ext >&5
6423 cat >conftest.
$ac_ext <<_ACEOF
6426 cat confdefs.h
>>conftest.
$ac_ext
6427 cat >>conftest.
$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6433 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6440 rm -f conftest.
$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1
>conftest.err
6446 cat conftest.err
>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try
='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try
='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 $ac_includes_default
6474 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6481 rm -f conftest.
$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6485 grep -v '^ *+' conftest.er1
>conftest.err
6487 cat conftest.err
>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try
='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try
='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_lo
=$ac_mid; break
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.
$ac_ext >&5
6508 ac_hi
=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6513 ac_mid
=`expr 2 '*' $ac_mid`
6515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.
$ac_ext >&5
6523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 # Binary search between lo and hi bounds.
6527 while test "x$ac_lo" != "x$ac_hi"; do
6528 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6529 cat >conftest.
$ac_ext <<_ACEOF
6532 cat confdefs.h
>>conftest.
$ac_ext
6533 cat >>conftest.
$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6546 rm -f conftest.
$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6550 grep -v '^ *+' conftest.er1
>conftest.err
6552 cat conftest.err
>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try
='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try
='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6573 ac_lo
=`expr '(' $ac_mid ')' + 1`
6575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int), 77
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; } ;;
6586 if test "$cross_compiling" = yes; then
6587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6588 See \`config.log' for more details." >&5
6589 echo "$as_me: error: cannot run test program while cross compiling
6590 See \`config.log' for more details." >&2;}
6591 { (exit 1); exit 1; }; }
6593 cat >conftest.
$ac_ext <<_ACEOF
6596 cat confdefs.h
>>conftest.
$ac_ext
6597 cat >>conftest.
$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 $ac_includes_default
6600 long longval () { return (long) (sizeof (int)); }
6601 unsigned long ulongval () { return (long) (sizeof (int)); }
6608 FILE *f = fopen ("conftest.val", "w");
6611 if (((long) (sizeof (int))) < 0)
6613 long i = longval ();
6614 if (i != ((long) (sizeof (int))))
6616 fprintf (f, "%ld\n", i);
6620 unsigned long i = ulongval ();
6621 if (i != ((long) (sizeof (int))))
6623 fprintf (f, "%lu\n", i);
6625 exit (ferror (f) || fclose (f) != 0);
6631 rm -f conftest
$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_sizeof_int
=`cat conftest.val`
6644 echo "$as_me: program exited with status $ac_status" >&5
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.
$ac_ext >&5
6649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6650 See \`config.log' for more details." >&5
6651 echo "$as_me: error: cannot compute sizeof (int), 77
6652 See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }
6655 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6664 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6665 cat >>confdefs.h
<<_ACEOF
6666 #define SIZEOF_INT $ac_cv_sizeof_int
6670 echo "$as_me:$LINENO: checking for long" >&5
6671 echo $ECHO_N "checking for long... $ECHO_C" >&6
6672 if test "${ac_cv_type_long+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.
$ac_ext <<_ACEOF
6678 cat confdefs.h
>>conftest.
$ac_ext
6679 cat >>conftest.
$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6693 rm -f conftest.
$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try
='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try
='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.
$ac_ext >&5
6722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6725 echo "${ECHO_T}$ac_cv_type_long" >&6
6727 echo "$as_me:$LINENO: checking size of long" >&5
6728 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6729 if test "${ac_cv_sizeof_long+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 if test "$ac_cv_type_long" = yes; then
6733 # The cast to unsigned long works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 if test "$cross_compiling" = yes; then
6738 # Depending upon the size, compute the lo and hi bounds.
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi
=$ac_mid; break
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6824 ac_lo
=`expr $ac_mid + 1`
6825 if test $ac_lo -le $ac_mid; then
6829 ac_mid
=`expr 2 '*' $ac_mid + 1`
6831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.
$ac_ext >&5
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6854 rm -f conftest.
$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try
='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try
='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6888 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6895 rm -f conftest.
$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_lo
=$ac_mid; break
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_hi
=`expr '(' $ac_mid ')' - 1`
6923 if test $ac_mid -le $ac_hi; then
6927 ac_mid
=`expr 2 '*' $ac_mid`
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.
$ac_ext >&5
6937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.
$ac_ext <<_ACEOF
6946 cat confdefs.h
>>conftest.
$ac_ext
6947 cat >>conftest.
$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6953 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6960 rm -f conftest.
$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6964 grep -v '^ *+' conftest.er1
>conftest.err
6966 cat conftest.err
>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try
='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try
='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.
$ac_ext >&5
6987 ac_lo
=`expr '(' $ac_mid ')' + 1`
6989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6992 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot compute sizeof (long), 77
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; } ;;
7000 if test "$cross_compiling" = yes; then
7001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7002 See \`config.log' for more details." >&5
7003 echo "$as_me: error: cannot run test program while cross compiling
7004 See \`config.log' for more details." >&2;}
7005 { (exit 1); exit 1; }; }
7007 cat >conftest.
$ac_ext <<_ACEOF
7010 cat confdefs.h
>>conftest.
$ac_ext
7011 cat >>conftest.
$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 long longval () { return (long) (sizeof (long)); }
7015 unsigned long ulongval () { return (long) (sizeof (long)); }
7022 FILE *f = fopen ("conftest.val", "w");
7025 if (((long) (sizeof (long))) < 0)
7027 long i = longval ();
7028 if (i != ((long) (sizeof (long))))
7030 fprintf (f, "%ld\n", i);
7034 unsigned long i = ulongval ();
7035 if (i != ((long) (sizeof (long))))
7037 fprintf (f, "%lu\n", i);
7039 exit (ferror (f) || fclose (f) != 0);
7045 rm -f conftest
$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_sizeof_long
=`cat conftest.val`
7058 echo "$as_me: program exited with status $ac_status" >&5
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7064 See \`config.log' for more details." >&5
7065 echo "$as_me: error: cannot compute sizeof (long), 77
7066 See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }
7069 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7078 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7079 cat >>confdefs.h
<<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7084 echo "$as_me:$LINENO: checking for void *" >&5
7085 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7086 if test "${ac_cv_type_void_p+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.
$ac_ext <<_ACEOF
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7101 if (sizeof (void *))
7107 rm -f conftest.
$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1
>conftest.err
7113 cat conftest.err
>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try
='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try
='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_type_void_p
=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.
$ac_ext >&5
7134 ac_cv_type_void_p
=no
7136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7139 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7141 echo "$as_me:$LINENO: checking size of void *" >&5
7142 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7143 if test "${ac_cv_sizeof_void_p+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 if test "$ac_cv_type_void_p" = yes; then
7147 # The cast to unsigned long works around a bug in the HP C Compiler
7148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7150 # This bug is HP SR number 8606223364.
7151 if test "$cross_compiling" = yes; then
7152 # Depending upon the size, compute the lo and hi bounds.
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7163 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7170 rm -f conftest.
$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try
='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try
='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7211 rm -f conftest.
$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try
='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try
='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_hi
=$ac_mid; break
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7238 ac_lo
=`expr $ac_mid + 1`
7239 if test $ac_lo -le $ac_mid; then
7243 ac_mid
=`expr 2 '*' $ac_mid + 1`
7245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 cat >conftest.
$ac_ext <<_ACEOF
7254 cat confdefs.h
>>conftest.
$ac_ext
7255 cat >>conftest.
$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 $ac_includes_default
7261 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7268 rm -f conftest.
$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try
='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try
='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 cat >conftest.
$ac_ext <<_ACEOF
7295 cat confdefs.h
>>conftest.
$ac_ext
7296 cat >>conftest.
$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7309 rm -f conftest.
$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
7313 grep -v '^ *+' conftest.er1
>conftest.err
7315 cat conftest.err
>&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try
='test -z "$ac_c_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try
='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_lo
=$ac_mid; break
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.
$ac_ext >&5
7336 ac_hi
=`expr '(' $ac_mid ')' - 1`
7337 if test $ac_mid -le $ac_hi; then
7341 ac_mid
=`expr 2 '*' $ac_mid`
7343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.
$ac_ext >&5
7351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7354 # Binary search between lo and hi bounds.
7355 while test "x$ac_lo" != "x$ac_hi"; do
7356 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7374 rm -f conftest.
$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7378 grep -v '^ *+' conftest.er1
>conftest.err
7380 cat conftest.err
>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try
='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try
='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.
$ac_ext >&5
7401 ac_lo
=`expr '(' $ac_mid ')' + 1`
7403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot compute sizeof (void *), 77
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; } ;;
7414 if test "$cross_compiling" = yes; then
7415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7416 See \`config.log' for more details." >&5
7417 echo "$as_me: error: cannot run test program while cross compiling
7418 See \`config.log' for more details." >&2;}
7419 { (exit 1); exit 1; }; }
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 long longval () { return (long) (sizeof (void *)); }
7429 unsigned long ulongval () { return (long) (sizeof (void *)); }
7436 FILE *f = fopen ("conftest.val", "w");
7439 if (((long) (sizeof (void *))) < 0)
7441 long i = longval ();
7442 if (i != ((long) (sizeof (void *))))
7444 fprintf (f, "%ld\n", i);
7448 unsigned long i = ulongval ();
7449 if (i != ((long) (sizeof (void *))))
7451 fprintf (f, "%lu\n", i);
7453 exit (ferror (f) || fclose (f) != 0);
7459 rm -f conftest
$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_void_p
=`cat conftest.val`
7472 echo "$as_me: program exited with status $ac_status" >&5
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.
$ac_ext >&5
7477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: cannot compute sizeof (void *), 77
7480 See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; }
7483 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7488 ac_cv_sizeof_void_p
=0
7491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7492 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7493 cat >>confdefs.h
<<_ACEOF
7494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7498 echo "$as_me:$LINENO: checking for short" >&5
7499 echo $ECHO_N "checking for short... $ECHO_C" >&6
7500 if test "${ac_cv_type_short+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7521 rm -f conftest.
$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1
>conftest.err
7527 cat conftest.err
>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try
='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try
='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_type_short
=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.
$ac_ext >&5
7550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7553 echo "${ECHO_T}$ac_cv_type_short" >&6
7555 echo "$as_me:$LINENO: checking size of short" >&5
7556 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7557 if test "${ac_cv_sizeof_short+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 if test "$ac_cv_type_short" = yes; then
7561 # The cast to unsigned long works around a bug in the HP C Compiler
7562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7564 # This bug is HP SR number 8606223364.
7565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.
$ac_ext <<_ACEOF
7570 cat confdefs.h
>>conftest.
$ac_ext
7571 cat >>conftest.
$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 $ac_includes_default
7577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7584 rm -f conftest.
$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1
>conftest.err
7590 cat conftest.err
>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try
='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try
='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7608 cat >conftest.
$ac_ext <<_ACEOF
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7618 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7625 rm -f conftest.
$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try
='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try
='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_hi
=$ac_mid; break
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7652 ac_lo
=`expr $ac_mid + 1`
7653 if test $ac_lo -le $ac_mid; then
7657 ac_mid
=`expr 2 '*' $ac_mid + 1`
7659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7665 cat >conftest.
$ac_ext <<_ACEOF
7668 cat confdefs.h
>>conftest.
$ac_ext
7669 cat >>conftest.
$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7675 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7682 rm -f conftest.
$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1
>conftest.err
7688 cat conftest.err
>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try
='test -z "$ac_c_werror_flag"
7692 || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try
='test -s conftest.$ac_objext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7706 cat >conftest.
$ac_ext <<_ACEOF
7709 cat confdefs.h
>>conftest.
$ac_ext
7710 cat >>conftest.
$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7723 rm -f conftest.
$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7727 grep -v '^ *+' conftest.er1
>conftest.err
7729 cat conftest.err
>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try
='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try
='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_lo
=$ac_mid; break
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.
$ac_ext >&5
7750 ac_hi
=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7755 ac_mid
=`expr 2 '*' $ac_mid`
7757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.
$ac_ext >&5
7765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7768 # Binary search between lo and hi bounds.
7769 while test "x$ac_lo" != "x$ac_hi"; do
7770 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7771 cat >conftest.
$ac_ext <<_ACEOF
7774 cat confdefs.h
>>conftest.
$ac_ext
7775 cat >>conftest.
$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 $ac_includes_default
7781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7788 rm -f conftest.
$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try
='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try
='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 ac_lo
=`expr '(' $ac_mid ')' + 1`
7817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot compute sizeof (short), 77
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; } ;;
7828 if test "$cross_compiling" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot run test program while cross compiling
7832 See \`config.log' for more details." >&2;}
7833 { (exit 1); exit 1; }; }
7835 cat >conftest.
$ac_ext <<_ACEOF
7838 cat confdefs.h
>>conftest.
$ac_ext
7839 cat >>conftest.
$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 long longval () { return (long) (sizeof (short)); }
7843 unsigned long ulongval () { return (long) (sizeof (short)); }
7850 FILE *f = fopen ("conftest.val", "w");
7853 if (((long) (sizeof (short))) < 0)
7855 long i = longval ();
7856 if (i != ((long) (sizeof (short))))
7858 fprintf (f, "%ld\n", i);
7862 unsigned long i = ulongval ();
7863 if (i != ((long) (sizeof (short))))
7865 fprintf (f, "%lu\n", i);
7867 exit (ferror (f) || fclose (f) != 0);
7873 rm -f conftest
$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_sizeof_short
=`cat conftest.val`
7886 echo "$as_me: program exited with status $ac_status" >&5
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: cannot compute sizeof (short), 77
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; }
7897 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7902 ac_cv_sizeof_short
=0
7905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7906 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7907 cat >>confdefs.h
<<_ACEOF
7908 #define SIZEOF_SHORT $ac_cv_sizeof_short
7912 echo "$as_me:$LINENO: checking for float" >&5
7913 echo $ECHO_N "checking for float... $ECHO_C" >&6
7914 if test "${ac_cv_type_float+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 cat >conftest.
$ac_ext <<_ACEOF
7920 cat confdefs.h
>>conftest.
$ac_ext
7921 cat >>conftest.
$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 $ac_includes_default
7935 rm -f conftest.
$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try
='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try
='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_type_float
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7966 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7967 echo "${ECHO_T}$ac_cv_type_float" >&6
7969 echo "$as_me:$LINENO: checking size of float" >&5
7970 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7971 if test "${ac_cv_sizeof_float+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 if test "$ac_cv_type_float" = yes; then
7975 # The cast to unsigned long works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.
$ac_ext <<_ACEOF
7984 cat confdefs.h
>>conftest.
$ac_ext
7985 cat >>conftest.
$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7991 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7998 rm -f conftest.
$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1
>conftest.err
8004 cat conftest.err
>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try
='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try
='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8032 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8039 rm -f conftest.
$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8043 grep -v '^ *+' conftest.er1
>conftest.err
8045 cat conftest.err
>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try
='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try
='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_hi
=$ac_mid; break
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_lo
=`expr $ac_mid + 1`
8067 if test $ac_lo -le $ac_mid; then
8071 ac_mid
=`expr 2 '*' $ac_mid + 1`
8073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.
$ac_ext >&5
8079 cat >conftest.
$ac_ext <<_ACEOF
8082 cat confdefs.h
>>conftest.
$ac_ext
8083 cat >>conftest.
$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8089 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8096 rm -f conftest.
$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>conftest.er1
8100 grep -v '^ *+' conftest.er1
>conftest.err
8102 cat conftest.err
>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try
='test -z "$ac_c_werror_flag"
8106 || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try
='test -s conftest.$ac_objext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8120 cat >conftest.
$ac_ext <<_ACEOF
8123 cat confdefs.h
>>conftest.
$ac_ext
8124 cat >>conftest.
$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8130 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8137 rm -f conftest.
$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try
='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try
='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_lo
=$ac_mid; break
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 ac_hi
=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8169 ac_mid
=`expr 2 '*' $ac_mid`
8171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.
$ac_ext >&5
8179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 # Binary search between lo and hi bounds.
8183 while test "x$ac_lo" != "x$ac_hi"; do
8184 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8185 cat >conftest.
$ac_ext <<_ACEOF
8188 cat confdefs.h
>>conftest.
$ac_ext
8189 cat >>conftest.
$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8195 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8202 rm -f conftest.
$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1
>conftest.err
8208 cat conftest.err
>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try
='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try
='test -s conftest.$ac_objext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.
$ac_ext >&5
8229 ac_lo
=`expr '(' $ac_mid ')' + 1`
8231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot compute sizeof (float), 77
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; } ;;
8242 if test "$cross_compiling" = yes; then
8243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8244 See \`config.log' for more details." >&5
8245 echo "$as_me: error: cannot run test program while cross compiling
8246 See \`config.log' for more details." >&2;}
8247 { (exit 1); exit 1; }; }
8249 cat >conftest.
$ac_ext <<_ACEOF
8252 cat confdefs.h
>>conftest.
$ac_ext
8253 cat >>conftest.
$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 long longval () { return (long) (sizeof (float)); }
8257 unsigned long ulongval () { return (long) (sizeof (float)); }
8264 FILE *f = fopen ("conftest.val", "w");
8267 if (((long) (sizeof (float))) < 0)
8269 long i = longval ();
8270 if (i != ((long) (sizeof (float))))
8272 fprintf (f, "%ld\n", i);
8276 unsigned long i = ulongval ();
8277 if (i != ((long) (sizeof (float))))
8279 fprintf (f, "%lu\n", i);
8281 exit (ferror (f) || fclose (f) != 0);
8287 rm -f conftest
$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_sizeof_float
=`cat conftest.val`
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.
$ac_ext >&5
8305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8306 See \`config.log' for more details." >&5
8307 echo "$as_me: error: cannot compute sizeof (float), 77
8308 See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; }
8311 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8316 ac_cv_sizeof_float
=0
8319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8320 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8321 cat >>confdefs.h
<<_ACEOF
8322 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8326 echo "$as_me:$LINENO: checking for double" >&5
8327 echo $ECHO_N "checking for double... $ECHO_C" >&6
8328 if test "${ac_cv_type_double+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8343 if (sizeof (double))
8349 rm -f conftest.
$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>conftest.er1
8353 grep -v '^ *+' conftest.er1
>conftest.err
8355 cat conftest.err
>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try
='test -z "$ac_c_werror_flag"
8359 || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try
='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_double
=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_type_double
=no
8378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8381 echo "${ECHO_T}$ac_cv_type_double" >&6
8383 echo "$as_me:$LINENO: checking size of double" >&5
8384 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8385 if test "${ac_cv_sizeof_double+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 if test "$ac_cv_type_double" = yes; then
8389 # The cast to unsigned long works around a bug in the HP C Compiler
8390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8392 # This bug is HP SR number 8606223364.
8393 if test "$cross_compiling" = yes; then
8394 # Depending upon the size, compute the lo and hi bounds.
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8405 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8412 rm -f conftest.
$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1
>conftest.err
8418 cat conftest.err
>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try
='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try
='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8436 cat >conftest.
$ac_ext <<_ACEOF
8439 cat confdefs.h
>>conftest.
$ac_ext
8440 cat >>conftest.
$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8446 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8453 rm -f conftest.
$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try
='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try
='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_hi
=$ac_mid; break
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_lo
=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8485 ac_mid
=`expr 2 '*' $ac_mid + 1`
8487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.
$ac_ext >&5
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8503 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8510 rm -f conftest.
$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8514 grep -v '^ *+' conftest.er1
>conftest.err
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try
='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try
='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8534 cat >conftest.
$ac_ext <<_ACEOF
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8544 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8551 rm -f conftest.
$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1
>conftest.err
8557 cat conftest.err
>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try
='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try
='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_lo
=$ac_mid; break
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.
$ac_ext >&5
8578 ac_hi
=`expr '(' $ac_mid ')' - 1`
8579 if test $ac_mid -le $ac_hi; then
8583 ac_mid
=`expr 2 '*' $ac_mid`
8585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.
$ac_ext >&5
8593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 # Binary search between lo and hi bounds.
8597 while test "x$ac_lo" != "x$ac_hi"; do
8598 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8599 cat >conftest.
$ac_ext <<_ACEOF
8602 cat confdefs.h
>>conftest.
$ac_ext
8603 cat >>conftest.
$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8609 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8616 rm -f conftest.
$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1
>conftest.err
8622 cat conftest.err
>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try
='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try
='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.
$ac_ext >&5
8643 ac_lo
=`expr '(' $ac_mid ')' + 1`
8645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8648 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot compute sizeof (double), 77
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; } ;;
8656 if test "$cross_compiling" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8658 See \`config.log' for more details." >&5
8659 echo "$as_me: error: cannot run test program while cross compiling
8660 See \`config.log' for more details." >&2;}
8661 { (exit 1); exit 1; }; }
8663 cat >conftest.
$ac_ext <<_ACEOF
8666 cat confdefs.h
>>conftest.
$ac_ext
8667 cat >>conftest.
$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 long longval () { return (long) (sizeof (double)); }
8671 unsigned long ulongval () { return (long) (sizeof (double)); }
8678 FILE *f = fopen ("conftest.val", "w");
8681 if (((long) (sizeof (double))) < 0)
8683 long i = longval ();
8684 if (i != ((long) (sizeof (double))))
8686 fprintf (f, "%ld\n", i);
8690 unsigned long i = ulongval ();
8691 if (i != ((long) (sizeof (double))))
8693 fprintf (f, "%lu\n", i);
8695 exit (ferror (f) || fclose (f) != 0);
8701 rm -f conftest
$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_double
=`cat conftest.val`
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8720 See \`config.log' for more details." >&5
8721 echo "$as_me: error: cannot compute sizeof (double), 77
8722 See \`config.log' for more details." >&2;}
8723 { (exit 1); exit 1; }; }
8725 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8730 ac_cv_sizeof_double
=0
8733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8735 cat >>confdefs.h
<<_ACEOF
8736 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8740 echo "$as_me:$LINENO: checking for fpos_t" >&5
8741 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8742 if test "${ac_cv_type_fpos_t+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8757 if (sizeof (fpos_t))
8763 rm -f conftest.
$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try
='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try
='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_type_fpos_t
=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8790 ac_cv_type_fpos_t
=no
8792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8795 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8797 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8798 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8799 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 if test "$ac_cv_type_fpos_t" = yes; then
8803 # The cast to unsigned long works around a bug in the HP C Compiler
8804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8806 # This bug is HP SR number 8606223364.
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.
$ac_ext <<_ACEOF
8812 cat confdefs.h
>>conftest.
$ac_ext
8813 cat >>conftest.
$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8819 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8826 rm -f conftest.
$ac_objext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8828 (eval $ac_compile) 2>conftest.er1
8830 grep -v '^ *+' conftest.er1
>conftest.err
8832 cat conftest.err
>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try
='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try
='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8860 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8867 rm -f conftest.
$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869 (eval $ac_compile) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try
='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_hi
=$ac_mid; break
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.
$ac_ext >&5
8894 ac_lo
=`expr $ac_mid + 1`
8895 if test $ac_lo -le $ac_mid; then
8899 ac_mid
=`expr 2 '*' $ac_mid + 1`
8901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.
$ac_ext >&5
8907 cat >conftest.
$ac_ext <<_ACEOF
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8917 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8924 rm -f conftest.
$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8928 grep -v '^ *+' conftest.er1
>conftest.err
8930 cat conftest.err
>&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try
='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try
='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8948 cat >conftest.
$ac_ext <<_ACEOF
8951 cat confdefs.h
>>conftest.
$ac_ext
8952 cat >>conftest.
$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8958 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8965 rm -f conftest.
$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1
>conftest.err
8971 cat conftest.err
>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try
='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try
='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_lo
=$ac_mid; break
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_hi
=`expr '(' $ac_mid ')' - 1`
8993 if test $ac_mid -le $ac_hi; then
8997 ac_mid
=`expr 2 '*' $ac_mid`
8999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9010 # Binary search between lo and hi bounds.
9011 while test "x$ac_lo" != "x$ac_hi"; do
9012 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9030 rm -f conftest.
$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1
>conftest.err
9036 cat conftest.err
>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try
='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try
='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.
$ac_ext >&5
9057 ac_lo
=`expr '(' $ac_mid ')' + 1`
9059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9062 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; } ;;
9070 if test "$cross_compiling" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot run test program while cross compiling
9074 See \`config.log' for more details." >&2;}
9075 { (exit 1); exit 1; }; }
9077 cat >conftest.
$ac_ext <<_ACEOF
9080 cat confdefs.h
>>conftest.
$ac_ext
9081 cat >>conftest.
$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 long longval () { return (long) (sizeof (fpos_t)); }
9085 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9092 FILE *f = fopen ("conftest.val", "w");
9095 if (((long) (sizeof (fpos_t))) < 0)
9097 long i = longval ();
9098 if (i != ((long) (sizeof (fpos_t))))
9100 fprintf (f, "%ld\n", i);
9104 unsigned long i = ulongval ();
9105 if (i != ((long) (sizeof (fpos_t))))
9107 fprintf (f, "%lu\n", i);
9109 exit (ferror (f) || fclose (f) != 0);
9115 rm -f conftest
$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9128 echo "$as_me: program exited with status $ac_status" >&5
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.
$ac_ext >&5
9133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9136 See \`config.log' for more details." >&2;}
9137 { (exit 1); exit 1; }; }
9139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9144 ac_cv_sizeof_fpos_t
=0
9147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9148 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9149 cat >>confdefs.h
<<_ACEOF
9150 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9154 echo "$as_me:$LINENO: checking for size_t" >&5
9155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9156 if test "${ac_cv_type_size_t+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.
$ac_ext <<_ACEOF
9162 cat confdefs.h
>>conftest.
$ac_ext
9163 cat >>conftest.
$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9171 if (sizeof (size_t))
9177 rm -f conftest.
$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try
='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_type_size_t
=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9204 ac_cv_type_size_t
=no
9206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9209 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9211 echo "$as_me:$LINENO: checking size of size_t" >&5
9212 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9213 if test "${ac_cv_sizeof_size_t+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 if test "$ac_cv_type_size_t" = yes; then
9217 # The cast to unsigned long works around a bug in the HP C Compiler
9218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9220 # This bug is HP SR number 8606223364.
9221 if test "$cross_compiling" = yes; then
9222 # Depending upon the size, compute the lo and hi bounds.
9223 cat >conftest.
$ac_ext <<_ACEOF
9226 cat confdefs.h
>>conftest.
$ac_ext
9227 cat >>conftest.
$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9233 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9240 rm -f conftest.
$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9244 grep -v '^ *+' conftest.er1
>conftest.err
9246 cat conftest.err
>&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try
='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try
='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9274 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9281 rm -f conftest.
$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>conftest.er1
9285 grep -v '^ *+' conftest.er1
>conftest.err
9287 cat conftest.err
>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try
='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try
='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_hi
=$ac_mid; break
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_lo
=`expr $ac_mid + 1`
9309 if test $ac_lo -le $ac_mid; then
9313 ac_mid
=`expr 2 '*' $ac_mid + 1`
9315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.
$ac_ext >&5
9321 cat >conftest.
$ac_ext <<_ACEOF
9324 cat confdefs.h
>>conftest.
$ac_ext
9325 cat >>conftest.
$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9331 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9338 rm -f conftest.
$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1
>conftest.err
9344 cat conftest.err
>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try
='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try
='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9362 cat >conftest.
$ac_ext <<_ACEOF
9365 cat confdefs.h
>>conftest.
$ac_ext
9366 cat >>conftest.
$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9372 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9379 rm -f conftest.
$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1
>conftest.err
9385 cat conftest.err
>&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try
='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try
='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_lo
=$ac_mid; break
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9406 ac_hi
=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9411 ac_mid
=`expr 2 '*' $ac_mid`
9413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9424 # Binary search between lo and hi bounds.
9425 while test "x$ac_lo" != "x$ac_hi"; do
9426 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9437 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9444 rm -f conftest.
$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1
>conftest.err
9450 cat conftest.err
>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try
='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try
='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.
$ac_ext >&5
9471 ac_lo
=`expr '(' $ac_mid ')' + 1`
9473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9476 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot compute sizeof (size_t), 77
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; } ;;
9484 if test "$cross_compiling" = yes; then
9485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9486 See \`config.log' for more details." >&5
9487 echo "$as_me: error: cannot run test program while cross compiling
9488 See \`config.log' for more details." >&2;}
9489 { (exit 1); exit 1; }; }
9491 cat >conftest.
$ac_ext <<_ACEOF
9494 cat confdefs.h
>>conftest.
$ac_ext
9495 cat >>conftest.
$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 $ac_includes_default
9498 long longval () { return (long) (sizeof (size_t)); }
9499 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9506 FILE *f = fopen ("conftest.val", "w");
9509 if (((long) (sizeof (size_t))) < 0)
9511 long i = longval ();
9512 if (i != ((long) (sizeof (size_t))))
9514 fprintf (f, "%ld\n", i);
9518 unsigned long i = ulongval ();
9519 if (i != ((long) (sizeof (size_t))))
9521 fprintf (f, "%lu\n", i);
9523 exit (ferror (f) || fclose (f) != 0);
9529 rm -f conftest
$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_sizeof_size_t
=`cat conftest.val`
9542 echo "$as_me: program exited with status $ac_status" >&5
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.
$ac_ext >&5
9547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9548 See \`config.log' for more details." >&5
9549 echo "$as_me: error: cannot compute sizeof (size_t), 77
9550 See \`config.log' for more details." >&2;}
9551 { (exit 1); exit 1; }; }
9553 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9558 ac_cv_sizeof_size_t
=0
9561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9562 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9563 cat >>confdefs.h
<<_ACEOF
9564 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9569 echo "$as_me:$LINENO: checking for long long support" >&5
9570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9582 long long x; x = (long long)0;
9587 rm -f conftest.
$ac_objext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>conftest.er1
9591 grep -v '^ *+' conftest.er1
>conftest.err
9593 cat conftest.err
>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try
='test -z "$ac_c_werror_flag"
9597 || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try
='test -s conftest.$ac_objext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9611 cat >>confdefs.h
<<\_ACEOF
9612 #define HAVE_LONG_LONG 1
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.
$ac_ext >&5
9622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9623 echo "$as_me:$LINENO: result: $have_long_long" >&5
9624 echo "${ECHO_T}$have_long_long" >&6
9625 if test "$have_long_long" = yes ; then
9626 echo "$as_me:$LINENO: checking for long long" >&5
9627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9628 if test "${ac_cv_type_long_long+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 $ac_includes_default
9641 if ((long long *) 0)
9643 if (sizeof (long long))
9649 rm -f conftest.
$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>conftest.er1
9653 grep -v '^ *+' conftest.er1
>conftest.err
9655 cat conftest.err
>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try
='test -z "$ac_c_werror_flag"
9659 || test ! -s conftest.err'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try
='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_type_long_long
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_cv_type_long_long
=no
9678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9683 echo "$as_me:$LINENO: checking size of long long" >&5
9684 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9685 if test "${ac_cv_sizeof_long_long+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 if test "$ac_cv_type_long_long" = yes; then
9689 # The cast to unsigned long works around a bug in the HP C Compiler
9690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9692 # This bug is HP SR number 8606223364.
9693 if test "$cross_compiling" = yes; then
9694 # Depending upon the size, compute the lo and hi bounds.
9695 cat >conftest.
$ac_ext <<_ACEOF
9698 cat confdefs.h
>>conftest.
$ac_ext
9699 cat >>conftest.
$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9712 rm -f conftest.
$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1
>conftest.err
9718 cat conftest.err
>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try
='test -s conftest.$ac_objext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9753 rm -f conftest.
$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>conftest.er1
9757 grep -v '^ *+' conftest.er1
>conftest.err
9759 cat conftest.err
>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try
='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try
='test -s conftest.$ac_objext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_hi
=$ac_mid; break
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_lo
=`expr $ac_mid + 1`
9781 if test $ac_lo -le $ac_mid; then
9785 ac_mid
=`expr 2 '*' $ac_mid + 1`
9787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9793 cat >conftest.
$ac_ext <<_ACEOF
9796 cat confdefs.h
>>conftest.
$ac_ext
9797 cat >>conftest.
$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9810 rm -f conftest.
$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1
>conftest.err
9816 cat conftest.err
>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try
='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try
='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9834 cat >conftest.
$ac_ext <<_ACEOF
9837 cat confdefs.h
>>conftest.
$ac_ext
9838 cat >>conftest.
$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9844 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9851 rm -f conftest.
$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1
>conftest.err
9857 cat conftest.err
>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try
='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try
='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_lo
=$ac_mid; break
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.
$ac_ext >&5
9878 ac_hi
=`expr '(' $ac_mid ')' - 1`
9879 if test $ac_mid -le $ac_hi; then
9883 ac_mid
=`expr 2 '*' $ac_mid`
9885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.
$ac_ext >&5
9893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9896 # Binary search between lo and hi bounds.
9897 while test "x$ac_lo" != "x$ac_hi"; do
9898 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9899 cat >conftest.
$ac_ext <<_ACEOF
9902 cat confdefs.h
>>conftest.
$ac_ext
9903 cat >>conftest.
$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9909 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9916 rm -f conftest.
$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9920 grep -v '^ *+' conftest.er1
>conftest.err
9922 cat conftest.err
>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try
='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try
='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_lo
=`expr '(' $ac_mid ')' + 1`
9945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9948 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot compute sizeof (long long), 77
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; } ;;
9956 if test "$cross_compiling" = yes; then
9957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9958 See \`config.log' for more details." >&5
9959 echo "$as_me: error: cannot run test program while cross compiling
9960 See \`config.log' for more details." >&2;}
9961 { (exit 1); exit 1; }; }
9963 cat >conftest.
$ac_ext <<_ACEOF
9966 cat confdefs.h
>>conftest.
$ac_ext
9967 cat >>conftest.
$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 long longval () { return (long) (sizeof (long long)); }
9971 unsigned long ulongval () { return (long) (sizeof (long long)); }
9978 FILE *f = fopen ("conftest.val", "w");
9981 if (((long) (sizeof (long long))) < 0)
9983 long i = longval ();
9984 if (i != ((long) (sizeof (long long))))
9986 fprintf (f, "%ld\n", i);
9990 unsigned long i = ulongval ();
9991 if (i != ((long) (sizeof (long long))))
9993 fprintf (f, "%lu\n", i);
9995 exit (ferror (f) || fclose (f) != 0);
10001 rm -f conftest
$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_sizeof_long_long
=`cat conftest.val`
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10018 ( exit $ac_status )
10019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot compute sizeof (long long), 77
10022 See \`config.log' for more details." >&2;}
10023 { (exit 1); exit 1; }; }
10025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10030 ac_cv_sizeof_long_long
=0
10033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10034 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10035 cat >>confdefs.h
<<_ACEOF
10036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10042 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10043 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10045 cat >conftest.
$ac_ext <<_ACEOF
10048 cat confdefs.h
>>conftest.
$ac_ext
10049 cat >>conftest.
$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10055 uintptr_t x; x = (uintptr_t)0;
10060 rm -f conftest.
$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>conftest.er1
10064 grep -v '^ *+' conftest.er1
>conftest.err
10066 cat conftest.err
>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try
='test -z "$ac_c_werror_flag"
10070 || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try
='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 cat >>confdefs.h
<<\_ACEOF
10085 #define HAVE_UINTPTR_T 1
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10096 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10097 echo "${ECHO_T}$have_uintptr_t" >&6
10098 if test "$have_uintptr_t" = yes ; then
10099 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10100 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10101 if test "${ac_cv_type_uintptr_t+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10107 cat confdefs.h
>>conftest.
$ac_ext
10108 cat >>conftest.
$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10114 if ((uintptr_t *) 0)
10116 if (sizeof (uintptr_t))
10122 rm -f conftest.
$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1
>conftest.err
10128 cat conftest.err
>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try
='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try
='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_type_uintptr_t
=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.
$ac_ext >&5
10149 ac_cv_type_uintptr_t
=no
10151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10154 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10156 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10157 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10158 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 if test "$ac_cv_type_uintptr_t" = yes; then
10162 # The cast to unsigned long works around a bug in the HP C Compiler
10163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10165 # This bug is HP SR number 8606223364.
10166 if test "$cross_compiling" = yes; then
10167 # Depending upon the size, compute the lo and hi bounds.
10168 cat >conftest.
$ac_ext <<_ACEOF
10171 cat confdefs.h
>>conftest.
$ac_ext
10172 cat >>conftest.
$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10178 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10185 rm -f conftest.
$ac_objext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1
>conftest.err
10191 cat conftest.err
>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try
='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try
='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10219 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10226 rm -f conftest.
$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10230 grep -v '^ *+' conftest.er1
>conftest.err
10232 cat conftest.err
>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try
='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try
='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_hi
=$ac_mid; break
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.
$ac_ext >&5
10253 ac_lo
=`expr $ac_mid + 1`
10254 if test $ac_lo -le $ac_mid; then
10258 ac_mid
=`expr 2 '*' $ac_mid + 1`
10260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.
$ac_ext >&5
10266 cat >conftest.
$ac_ext <<_ACEOF
10269 cat confdefs.h
>>conftest.
$ac_ext
10270 cat >>conftest.
$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10276 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10283 rm -f conftest.
$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10287 grep -v '^ *+' conftest.er1
>conftest.err
10289 cat conftest.err
>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try
='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try
='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10307 cat >conftest.
$ac_ext <<_ACEOF
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10317 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10324 rm -f conftest.
$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try
='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_lo
=$ac_mid; break
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 ac_hi
=`expr '(' $ac_mid ')' - 1`
10352 if test $ac_mid -le $ac_hi; then
10356 ac_mid
=`expr 2 '*' $ac_mid`
10358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.
$ac_ext >&5
10366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10369 # Binary search between lo and hi bounds.
10370 while test "x$ac_lo" != "x$ac_hi"; do
10371 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10372 cat >conftest.
$ac_ext <<_ACEOF
10375 cat confdefs.h
>>conftest.
$ac_ext
10376 cat >>conftest.
$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10382 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10389 rm -f conftest.
$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>conftest.er1
10393 grep -v '^ *+' conftest.er1
>conftest.err
10395 cat conftest.err
>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try
='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try
='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.
$ac_ext >&5
10416 ac_lo
=`expr '(' $ac_mid ')' + 1`
10418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10421 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; } ;;
10429 if test "$cross_compiling" = yes; then
10430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10431 See \`config.log' for more details." >&5
10432 echo "$as_me: error: cannot run test program while cross compiling
10433 See \`config.log' for more details." >&2;}
10434 { (exit 1); exit 1; }; }
10436 cat >conftest.
$ac_ext <<_ACEOF
10439 cat confdefs.h
>>conftest.
$ac_ext
10440 cat >>conftest.
$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 long longval () { return (long) (sizeof (uintptr_t)); }
10444 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10446 #include <stdlib.h>
10451 FILE *f = fopen ("conftest.val", "w");
10454 if (((long) (sizeof (uintptr_t))) < 0)
10456 long i = longval ();
10457 if (i != ((long) (sizeof (uintptr_t))))
10459 fprintf (f, "%ld\n", i);
10463 unsigned long i = ulongval ();
10464 if (i != ((long) (sizeof (uintptr_t))))
10466 fprintf (f, "%lu\n", i);
10468 exit (ferror (f) || fclose (f) != 0);
10474 rm -f conftest
$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10487 echo "$as_me: program exited with status $ac_status" >&5
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.
$ac_ext >&5
10491 ( exit $ac_status )
10492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10493 See \`config.log' for more details." >&5
10494 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10495 See \`config.log' for more details." >&2;}
10496 { (exit 1); exit 1; }; }
10498 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10503 ac_cv_sizeof_uintptr_t
=0
10506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10507 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10508 cat >>confdefs.h
<<_ACEOF
10509 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10515 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10516 echo "$as_me:$LINENO: checking size of off_t" >&5
10517 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10518 if test "${ac_cv_sizeof_off_t+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 if test "$cross_compiling" = yes; then
10522 ac_cv_sizeof_off_t
=4
10524 cat >conftest.
$ac_ext <<_ACEOF
10527 cat confdefs.h
>>conftest.
$ac_ext
10528 cat >>conftest.
$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10531 #include <sys/types.h>
10534 FILE *f=fopen("conftestval", "w");
10536 fprintf(f, "%d\n", sizeof(off_t));
10540 rm -f conftest
$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_off_t
=`cat conftestval`
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.
$ac_ext >&5
10557 ( exit $ac_status )
10558 ac_cv_sizeof_off_t
=0
10560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10566 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10568 cat >>confdefs.h
<<_ACEOF
10569 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10573 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10574 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10575 if test "$have_long_long" = yes -a \
10576 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10577 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10579 cat >>confdefs.h
<<\_ACEOF
10580 #define HAVE_LARGEFILE_SUPPORT 1
10583 echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10590 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10591 echo "$as_me:$LINENO: checking size of time_t" >&5
10592 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10593 if test "${ac_cv_sizeof_time_t+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 if test "$cross_compiling" = yes; then
10597 ac_cv_sizeof_time_t
=4
10599 cat >conftest.
$ac_ext <<_ACEOF
10602 cat confdefs.h
>>conftest.
$ac_ext
10603 cat >>conftest.
$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10609 FILE *f=fopen("conftestval", "w");
10611 fprintf(f, "%d\n", sizeof(time_t));
10615 rm -f conftest
$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_sizeof_time_t
=`cat conftestval`
10628 echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 ( exit $ac_status )
10633 ac_cv_sizeof_time_t
=0
10635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10641 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10643 cat >>confdefs.h
<<_ACEOF
10644 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10649 # if have pthread_t then define SIZEOF_PTHREAD_T
10651 if test "$ac_cv_kpthread" = "yes"
10652 then CC
="$CC -Kpthread"
10653 elif test "$ac_cv_kthread" = "yes"
10654 then CC
="$CC -Kthread"
10655 elif test "$ac_cv_pthread" = "yes"
10656 then CC
="$CC -pthread"
10658 echo "$as_me:$LINENO: checking for pthread_t" >&5
10659 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10661 cat >conftest.
$ac_ext <<_ACEOF
10664 cat confdefs.h
>>conftest.
$ac_ext
10665 cat >>conftest.
$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <pthread.h>
10671 pthread_t x; x = *(pthread_t*)0;
10676 rm -f conftest.
$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>conftest.er1
10680 grep -v '^ *+' conftest.er1
>conftest.err
10682 cat conftest.err
>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try
='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try
='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.
$ac_ext >&5
10704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10706 echo "${ECHO_T}$have_pthread_t" >&6
10707 if test "$have_pthread_t" = yes ; then
10708 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10709 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10710 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10711 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 if test "$cross_compiling" = yes; then
10715 ac_cv_sizeof_pthread_t
=4
10717 cat >conftest.
$ac_ext <<_ACEOF
10720 cat confdefs.h
>>conftest.
$ac_ext
10721 cat >>conftest.
$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10724 #include <pthread.h>
10727 FILE *f=fopen("conftestval", "w");
10729 fprintf(f, "%d\n", sizeof(pthread_t));
10733 rm -f conftest
$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_sizeof_pthread_t
=`cat conftestval`
10746 echo "$as_me: program exited with status $ac_status" >&5
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.
$ac_ext >&5
10750 ( exit $ac_status )
10751 ac_cv_sizeof_pthread_t
=0
10753 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10761 cat >>confdefs.h
<<_ACEOF
10762 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10768 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10769 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10770 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10771 if test "${enable_toolbox_glue+set}" = set; then
10772 enableval
="$enable_toolbox_glue"
10776 if test -z "$enable_toolbox_glue"
10778 case $ac_sys_system/$ac_sys_release in
10780 enable_toolbox_glue
="yes";;
10782 enable_toolbox_glue
="no";;
10785 case "$enable_toolbox_glue" in
10787 extra_machdep_objs
="Python/mactoolboxglue.o"
10788 extra_undefs
="-u _PyMac_Error"
10790 cat >>confdefs.h
<<\_ACEOF
10791 #define USE_TOOLBOX_OBJECT_GLUE 1
10796 extra_machdep_objs
=""
10800 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10801 echo "${ECHO_T}$enable_toolbox_glue" >&6
10804 case $ac_sys_system/$ac_sys_release in
10805 Darwin
/[01567]\..
*)
10806 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10809 OTHER_LIBTOOL_OPT
=""
10814 case $ac_sys_system/$ac_sys_release in
10815 Darwin
/[01567]\..
*)
10816 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10817 if test "${enable_universalsdk}"; then
10820 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10822 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10823 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10825 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10826 if test ${gcc_version} '<' 4.0
10828 LIBTOOL_CRUFT
="-lcc_dynamic"
10832 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10833 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10837 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10838 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10839 if test "$enable_framework"
10841 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10842 # -F. is needed to allow linking to the framework while
10843 # in the build location.
10845 cat >>confdefs.h
<<\_ACEOF
10846 #define WITH_NEXT_FRAMEWORK 1
10849 echo "$as_me:$LINENO: result: yes" >&5
10850 echo "${ECHO_T}yes" >&6
10852 echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6
10856 echo "$as_me:$LINENO: checking for dyld" >&5
10857 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10858 case $ac_sys_system/$ac_sys_release in
10861 cat >>confdefs.h
<<\_ACEOF
10862 #define WITH_DYLD 1
10865 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10866 echo "${ECHO_T}always on for Darwin" >&6
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10874 # Set info about shared libraries.
10880 # SO is the extension of shared libraries `(including the dot!)
10881 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10882 echo "$as_me:$LINENO: checking SO" >&5
10883 echo $ECHO_N "checking SO... $ECHO_C" >&6
10886 case $ac_sys_system in
10897 # this might also be a termcap variable, see #610332
10899 echo '====================================================================='
10901 echo '+ WARNING: You have set SO in your environment. +'
10902 echo '+ Do you really mean to change the extension for shared libraries? +'
10903 echo '+ Continuing in 10 seconds to let you to ponder. +'
10905 echo '====================================================================='
10908 echo "$as_me:$LINENO: result: $SO" >&5
10909 echo "${ECHO_T}$SO" >&6
10911 cat >>confdefs.h
<<_ACEOF
10912 #define SHLIB_EXT "$SO"
10915 # LDSHARED is the ld *command* used to create shared library
10916 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10917 # (Shared libraries in this instance are shared modules to be loaded into
10918 # Python, as opposed to building Python itself as a shared library.)
10919 echo "$as_me:$LINENO: checking LDSHARED" >&5
10920 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10921 if test -z "$LDSHARED"
10923 case $ac_sys_system/$ac_sys_release in
10925 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10926 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10929 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10930 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10932 IRIX
/5*) LDSHARED
="ld -shared";;
10933 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10935 if test "$GCC" = "yes"
10936 then LDSHARED
='$(CC) -shared'
10937 else LDSHARED
='$(CC) -G';
10939 hp
*|HP
*) LDSHARED
="ld -b";;
10940 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10942 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10943 if test "$enable_framework" ; then
10944 # Link against the framework. All externals should be defined.
10945 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10946 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 # No framework. Ignore undefined symbols, assuming they come from Python
10949 LDSHARED
="$LDSHARED -undefined suppress"
10951 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10952 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10953 if test "$enable_framework" ; then
10954 # Link against the framework. All externals should be defined.
10955 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10956 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 # No framework, use the Python app as bundle-loader
10959 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10960 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10963 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10964 # This allows an extension to be used in any Python
10965 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10966 if test ${cur_target} '>' 10.2; then
10969 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10970 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
10971 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10973 if test "${enable_universalsdk}"; then
10974 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10976 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10977 BLDSHARED
="$LDSHARED"
10979 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10980 if test "$enable_framework" ; then
10981 # Link against the framework. All externals should be defined.
10982 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10983 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10985 # No framework, use the Python app as bundle-loader
10986 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10987 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10991 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10992 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10994 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10996 LDSHARED
="$CC -shared ${LDFLAGS}"
10998 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11001 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11003 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11006 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11007 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11010 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11014 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11015 OpenUNIX
*|UnixWare
*)
11016 if test "$GCC" = "yes"
11017 then LDSHARED
='$(CC) -shared'
11018 else LDSHARED
='$(CC) -G'
11020 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11021 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11022 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11023 atheos
*) LDSHARED
="gcc -shared";;
11027 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11028 echo "${ECHO_T}$LDSHARED" >&6
11029 BLDSHARED
=${BLDSHARED-$LDSHARED}
11030 # CCSHARED are the C *flags* used to create objects to go into a shared
11031 # library (module) -- this is only needed for a few systems
11032 echo "$as_me:$LINENO: checking CCSHARED" >&5
11033 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11034 if test -z "$CCSHARED"
11036 case $ac_sys_system/$ac_sys_release in
11037 SunOS
*) if test "$GCC" = yes;
11038 then CCSHARED
="-fPIC";
11039 else CCSHARED
="-xcode=pic32";
11041 hp
*|HP
*) if test "$GCC" = yes;
11042 then CCSHARED
="-fPIC";
11043 else CCSHARED
="+z";
11045 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11046 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11047 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11048 OpenUNIX
*|UnixWare
*)
11049 if test "$GCC" = "yes"
11050 then CCSHARED
="-fPIC"
11051 else CCSHARED
="-KPIC"
11054 if test "$GCC" = "yes"
11055 then CCSHARED
="-fPIC"
11056 else CCSHARED
="-Kpic -belf"
11058 Monterey
*) CCSHARED
="-G";;
11059 IRIX
*/6*) case $CC in
11060 *gcc
*) CCSHARED
="-shared";;
11063 atheos
*) CCSHARED
="-fPIC";;
11066 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11067 echo "${ECHO_T}$CCSHARED" >&6
11068 # LINKFORSHARED are the flags passed to the $(CC) command that links
11069 # the python executable -- this is only needed for a few systems
11070 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11071 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11072 if test -z "$LINKFORSHARED"
11074 case $ac_sys_system/$ac_sys_release in
11075 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11077 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11078 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11079 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11080 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11081 # -u libsys_s pulls in all symbols in libsys
11083 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11085 # not used by the core itself but which needs to be in the core so
11086 # that dynamically loaded extension modules have access to it.
11087 # -prebind is no longer used, because it actually seems to give a
11088 # slowdown in stead of a speedup, maybe due to the large number of
11089 # dynamic loads Python does.
11091 LINKFORSHARED
="$extra_undefs"
11092 if test "$enable_framework"
11094 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11096 LINKFORSHARED
="$LINKFORSHARED";;
11097 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11098 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11099 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11100 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11101 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11103 LINKFORSHARED
="-Wl,--export-dynamic"
11105 SunOS
/5*) case $CC in
11107 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11109 LINKFORSHARED
="-Xlinker --export-dynamic"
11113 if test $enable_shared = "no"
11115 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11119 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11120 echo "${ECHO_T}$LINKFORSHARED" >&6
11123 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11124 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11125 if test ! "$LIBRARY" = "$LDLIBRARY"
11127 case $ac_sys_system in
11129 # Cygwin needs CCSHARED when building extension DLLs
11130 # but not when building the interpreter DLL.
11131 CFLAGSFORSHARED
='';;
11133 CFLAGSFORSHARED
='$(CCSHARED)'
11136 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11137 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11139 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11140 # library (with --enable-shared).
11141 # For platforms on which shared libraries are not allowed to have unresolved
11142 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11143 # if it is not required, since it creates a dependency of the shared library
11144 # to LIBS. This, in turn, means that applications linking the shared libpython
11145 # don't need to link LIBS explicitly. The default should be only changed
11146 # on systems where this approach causes problems.
11148 echo "$as_me:$LINENO: checking SHLIBS" >&5
11149 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11150 case "$ac_sys_system" in
11154 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11155 echo "${ECHO_T}$SHLIBS" >&6
11158 # checks for libraries
11160 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 ac_check_lib_save_LIBS
=$LIBS
11167 cat >conftest.
$ac_ext <<_ACEOF
11170 cat confdefs.h
>>conftest.
$ac_ext
11171 cat >>conftest.
$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11174 /* Override any gcc2 internal prototype to avoid an error. */
11178 /* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11189 rm -f conftest.
$ac_objext conftest
$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11193 grep -v '^ *+' conftest.er1
>conftest.err
11195 cat conftest.err
>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try
='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try
='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_lib_dl_dlopen
=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.
$ac_ext >&5
11216 ac_cv_lib_dl_dlopen
=no
11218 rm -f conftest.err conftest.
$ac_objext \
11219 conftest
$ac_exeext conftest.
$ac_ext
11220 LIBS
=$ac_check_lib_save_LIBS
11222 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11223 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11224 if test $ac_cv_lib_dl_dlopen = yes; then
11225 cat >>confdefs.h
<<_ACEOF
11226 #define HAVE_LIBDL 1
11232 # Dynamic linking for SunOS/Solaris and SYSV
11234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_check_lib_save_LIBS
=$LIBS
11241 cat >conftest.
$ac_ext <<_ACEOF
11244 cat confdefs.h
>>conftest.
$ac_ext
11245 cat >>conftest.
$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11248 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11263 rm -f conftest.
$ac_objext conftest
$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>conftest.er1
11267 grep -v '^ *+' conftest.er1
>conftest.err
11269 cat conftest.err
>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try
='test -z "$ac_c_werror_flag"
11273 || test ! -s conftest.err'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try
='test -s conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_lib_dld_shl_load
=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 ac_cv_lib_dld_shl_load
=no
11292 rm -f conftest.err conftest.
$ac_objext \
11293 conftest
$ac_exeext conftest.
$ac_ext
11294 LIBS
=$ac_check_lib_save_LIBS
11296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11297 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11298 if test $ac_cv_lib_dld_shl_load = yes; then
11299 cat >>confdefs.h
<<_ACEOF
11300 #define HAVE_LIBDLD 1
11306 # Dynamic linking for HP-UX
11308 # only check for sem_ini if thread support is requested
11309 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11310 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11311 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11312 if test "${ac_cv_search_sem_init+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 ac_func_search_save_LIBS
=$LIBS
11316 ac_cv_search_sem_init
=no
11317 cat >conftest.
$ac_ext <<_ACEOF
11320 cat confdefs.h
>>conftest.
$ac_ext
11321 cat >>conftest.
$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11324 /* Override any gcc2 internal prototype to avoid an error. */
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11339 rm -f conftest.
$ac_objext conftest
$ac_exeext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try
='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try
='test -s conftest$ac_exeext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_search_sem_init
="none required"
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11367 rm -f conftest.err conftest.
$ac_objext \
11368 conftest
$ac_exeext conftest.
$ac_ext
11369 if test "$ac_cv_search_sem_init" = no
; then
11370 for ac_lib
in pthread rt posix4
; do
11371 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11372 cat >conftest.
$ac_ext <<_ACEOF
11375 cat confdefs.h
>>conftest.
$ac_ext
11376 cat >>conftest.
$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11379 /* Override any gcc2 internal prototype to avoid an error. */
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11394 rm -f conftest.
$ac_objext conftest
$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try
='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try
='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_search_sem_init
="-l$ac_lib"
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.
$ac_ext >&5
11423 rm -f conftest.err conftest.
$ac_objext \
11424 conftest
$ac_exeext conftest.
$ac_ext
11427 LIBS
=$ac_func_search_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11430 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11431 if test "$ac_cv_search_sem_init" != no
; then
11432 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11435 # 'Real Time' functions on Solaris
11436 # posix4 on Solaris 2.6
11437 # pthread (first!) on Linux
11440 # check if we need libintl for locale functions
11441 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11442 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11443 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 ac_check_lib_save_LIBS
=$LIBS
11447 LIBS
="-lintl $LIBS"
11448 cat >conftest.
$ac_ext <<_ACEOF
11451 cat confdefs.h
>>conftest.
$ac_ext
11452 cat >>conftest.
$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11455 /* Override any gcc2 internal prototype to avoid an error. */
11459 /* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11461 char textdomain ();
11470 rm -f conftest.
$ac_objext conftest
$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>conftest.er1
11474 grep -v '^ *+' conftest.er1
>conftest.err
11476 cat conftest.err
>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try
='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try
='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_lib_intl_textdomain
=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.
$ac_ext >&5
11497 ac_cv_lib_intl_textdomain
=no
11499 rm -f conftest.err conftest.
$ac_objext \
11500 conftest
$ac_exeext conftest.
$ac_ext
11501 LIBS
=$ac_check_lib_save_LIBS
11503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11504 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11505 if test $ac_cv_lib_intl_textdomain = yes; then
11507 cat >>confdefs.h
<<\_ACEOF
11508 #define WITH_LIBINTL 1
11514 # checks for system dependent C++ extensions support
11515 case "$ac_sys_system" in
11516 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11517 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11518 cat >conftest.
$ac_ext <<_ACEOF
11521 cat confdefs.h
>>conftest.
$ac_ext
11522 cat >>conftest.
$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include "/usr/lpp/xlC/include/load.h"
11528 loadAndInit("", 0, "")
11533 rm -f conftest.
$ac_objext conftest
$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>conftest.er1
11537 grep -v '^ *+' conftest.er1
>conftest.err
11539 cat conftest.err
>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try
='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try
='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11556 cat >>confdefs.h
<<\_ACEOF
11557 #define AIX_GENUINE_CPLUSPLUS 1
11560 echo "$as_me:$LINENO: result: yes" >&5
11561 echo "${ECHO_T}yes" >&6
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.
$ac_ext >&5
11566 echo "$as_me:$LINENO: result: no" >&5
11567 echo "${ECHO_T}no" >&6
11569 rm -f conftest.err conftest.
$ac_objext \
11570 conftest
$ac_exeext conftest.
$ac_ext;;
11574 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11575 # BeOS' sockets are stashed in libnet.
11576 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11577 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11578 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 ac_check_lib_save_LIBS
=$LIBS
11583 cat >conftest.
$ac_ext <<_ACEOF
11586 cat confdefs.h
>>conftest.
$ac_ext
11587 cat >>conftest.
$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11605 rm -f conftest.
$ac_objext conftest
$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1
>conftest.err
11611 cat conftest.err
>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try
='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try
='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_lib_nsl_t_open
=yes
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.
$ac_ext >&5
11632 ac_cv_lib_nsl_t_open
=no
11634 rm -f conftest.err conftest.
$ac_objext \
11635 conftest
$ac_exeext conftest.
$ac_ext
11636 LIBS
=$ac_check_lib_save_LIBS
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11639 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11640 if test $ac_cv_lib_nsl_t_open = yes; then
11644 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11645 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11646 if test "${ac_cv_lib_socket_socket+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 ac_check_lib_save_LIBS
=$LIBS
11650 LIBS
="-lsocket $LIBS $LIBS"
11651 cat >conftest.
$ac_ext <<_ACEOF
11654 cat confdefs.h
>>conftest.
$ac_ext
11655 cat >>conftest.
$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11658 /* Override any gcc2 internal prototype to avoid an error. */
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11673 rm -f conftest.
$ac_objext conftest
$ac_exeext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11675 (eval $ac_link) 2>conftest.er1
11677 grep -v '^ *+' conftest.er1
>conftest.err
11679 cat conftest.err
>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try
='test -z "$ac_c_werror_flag"
11683 || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try
='test -s conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 ac_cv_lib_socket_socket
=yes
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.
$ac_ext >&5
11700 ac_cv_lib_socket_socket
=no
11702 rm -f conftest.err conftest.
$ac_objext \
11703 conftest
$ac_exeext conftest.
$ac_ext
11704 LIBS
=$ac_check_lib_save_LIBS
11706 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11707 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11708 if test $ac_cv_lib_socket_socket = yes; then
11709 LIBS
="-lsocket $LIBS"
11713 case "$ac_sys_system" in
11715 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11716 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11717 if test "${ac_cv_lib_net_socket+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 ac_check_lib_save_LIBS
=$LIBS
11721 LIBS
="-lnet $LIBS $LIBS"
11722 cat >conftest.
$ac_ext <<_ACEOF
11725 cat confdefs.h
>>conftest.
$ac_ext
11726 cat >>conftest.
$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 /* Override any gcc2 internal prototype to avoid an error. */
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11744 rm -f conftest.
$ac_objext conftest
$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>conftest.er1
11748 grep -v '^ *+' conftest.er1
>conftest.err
11750 cat conftest.err
>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try
='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try
='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_net_socket
=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.
$ac_ext >&5
11771 ac_cv_lib_net_socket
=no
11773 rm -f conftest.err conftest.
$ac_objext \
11774 conftest
$ac_exeext conftest.
$ac_ext
11775 LIBS
=$ac_check_lib_save_LIBS
11777 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11778 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11779 if test $ac_cv_lib_net_socket = yes; then
11786 echo "$as_me:$LINENO: checking for --with-libs" >&5
11787 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11789 # Check whether --with-libs or --without-libs was given.
11790 if test "${with_libs+set}" = set; then
11791 withval
="$with_libs"
11793 echo "$as_me:$LINENO: result: $withval" >&5
11794 echo "${ECHO_T}$withval" >&6
11795 LIBS
="$withval $LIBS"
11798 echo "$as_me:$LINENO: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11802 # Check for use of the system libffi library
11803 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11804 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11806 # Check whether --with-system_ffi or --without-system_ffi was given.
11807 if test "${with_system_ffi+set}" = set; then
11808 withval
="$with_system_ffi"
11812 if test -z "$with_system_ffi"
11813 then with_system_ffi
="no"
11815 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11816 echo "${ECHO_T}$with_system_ffi" >&6
11818 # Determine if signalmodule should be used.
11821 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11822 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11824 # Check whether --with-signal-module or --without-signal-module was given.
11825 if test "${with_signal_module+set}" = set; then
11826 withval
="$with_signal_module"
11830 if test -z "$with_signal_module"
11831 then with_signal_module
="yes"
11833 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11834 echo "${ECHO_T}$with_signal_module" >&6
11836 if test "${with_signal_module}" = "yes"; then
11837 USE_SIGNAL_MODULE
=""
11840 USE_SIGNAL_MODULE
="#"
11841 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11844 # This is used to generate Setup.config
11846 USE_THREAD_MODULE
=""
11848 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11849 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11852 # Check whether --with-dec-threads or --without-dec-threads was given.
11853 if test "${with_dec_threads+set}" = set; then
11854 withval
="$with_dec_threads"
11856 echo "$as_me:$LINENO: result: $withval" >&5
11857 echo "${ECHO_T}$withval" >&6
11859 if test "${with_thread+set}" != set; then
11860 with_thread
="$withval";
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11867 # Templates for things AC_DEFINEd more than once.
11868 # For a single AC_DEFINE, no template is needed.
11876 echo "$as_me:$LINENO: checking for --with-threads" >&5
11877 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11879 # Check whether --with-threads or --without-threads was given.
11880 if test "${with_threads+set}" = set; then
11881 withval
="$with_threads"
11885 # --with-thread is deprecated, but check for it anyway
11887 # Check whether --with-thread or --without-thread was given.
11888 if test "${with_thread+set}" = set; then
11889 withval
="$with_thread"
11890 with_threads
=$with_thread
11893 if test -z "$with_threads"
11894 then with_threads
="yes"
11896 echo "$as_me:$LINENO: result: $with_threads" >&5
11897 echo "${ECHO_T}$with_threads" >&6
11900 if test "$with_threads" = "no"
11902 USE_THREAD_MODULE
="#"
11903 elif test "$ac_cv_pthread_is_default" = yes
11905 cat >>confdefs.h
<<\_ACEOF
11906 #define WITH_THREAD 1
11909 # Defining _REENTRANT on system with POSIX threads should not hurt.
11910 cat >>confdefs.h
<<\_ACEOF
11911 #define _REENTRANT 1
11915 THREADOBJ
="Python/thread.o"
11916 elif test "$ac_cv_kpthread" = "yes"
11919 if test "$ac_cv_cxx_thread" = "yes"; then
11920 CXX
="$CXX -Kpthread"
11922 cat >>confdefs.h
<<\_ACEOF
11923 #define WITH_THREAD 1
11927 THREADOBJ
="Python/thread.o"
11928 elif test "$ac_cv_kthread" = "yes"
11931 if test "$ac_cv_cxx_thread" = "yes"; then
11932 CXX
="$CXX -Kthread"
11934 cat >>confdefs.h
<<\_ACEOF
11935 #define WITH_THREAD 1
11939 THREADOBJ
="Python/thread.o"
11940 elif test "$ac_cv_pthread" = "yes"
11943 if test "$ac_cv_cxx_thread" = "yes"; then
11944 CXX
="$CXX -pthread"
11946 cat >>confdefs.h
<<\_ACEOF
11947 #define WITH_THREAD 1
11951 THREADOBJ
="Python/thread.o"
11953 if test ! -z "$with_threads" -a -d "$with_threads"
11954 then LDFLAGS
="$LDFLAGS -L$with_threads"
11956 if test ! -z "$withval" -a -d "$withval"
11957 then LDFLAGS
="$LDFLAGS -L$withval"
11960 # According to the POSIX spec, a pthreads implementation must
11961 # define _POSIX_THREADS in unistd.h. Some apparently don't
11962 # (e.g. gnu pth with pthread emulation)
11963 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11964 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11965 cat >conftest.
$ac_ext <<_ACEOF
11968 cat confdefs.h
>>conftest.
$ac_ext
11969 cat >>conftest.
$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #include <unistd.h>
11973 #ifdef _POSIX_THREADS
11978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11979 $EGREP "yes" >/dev
/null
2>&1; then
11980 unistd_defines_pthreads
=yes
11982 unistd_defines_pthreads
=no
11986 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11987 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11989 cat >>confdefs.h
<<\_ACEOF
11990 #define _REENTRANT 1
11993 if test "${ac_cv_header_cthreads_h+set}" = set; then
11994 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11995 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11996 if test "${ac_cv_header_cthreads_h+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12000 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12002 # Is the header compilable?
12003 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12004 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12005 cat >conftest.
$ac_ext <<_ACEOF
12008 cat confdefs.h
>>conftest.
$ac_ext
12009 cat >>conftest.
$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 #include <cthreads.h>
12014 rm -f conftest.
$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1
>conftest.err
12020 cat conftest.err
>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try
='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try
='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_header_compiler
=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.
$ac_ext >&5
12041 ac_header_compiler
=no
12043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12045 echo "${ECHO_T}$ac_header_compiler" >&6
12047 # Is the header present?
12048 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12049 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12050 cat >conftest.
$ac_ext <<_ACEOF
12053 cat confdefs.h
>>conftest.
$ac_ext
12054 cat >>conftest.
$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <cthreads.h>
12058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12061 grep -v '^ *+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev
/null
; then
12066 if test -s conftest.err
; then
12067 ac_cpp_err
=$ac_c_preproc_warn_flag
12068 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12075 if test -z "$ac_cpp_err"; then
12076 ac_header_preproc
=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.
$ac_ext >&5
12081 ac_header_preproc
=no
12083 rm -f conftest.err conftest.
$ac_ext
12084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12085 echo "${ECHO_T}$ac_header_preproc" >&6
12087 # So? What about this header?
12088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12090 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12091 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12093 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12094 ac_header_preproc
=yes
12097 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12098 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12100 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12102 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12104 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12106 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12108 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12111 ## ------------------------------------------------ ##
12112 ## Report this to http://www.python.org/python-bugs ##
12113 ## ------------------------------------------------ ##
12116 sed "s/^/$as_me: WARNING: /" >&2
12119 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12120 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12121 if test "${ac_cv_header_cthreads_h+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 ac_cv_header_cthreads_h
=$ac_header_preproc
12126 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12127 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12130 if test $ac_cv_header_cthreads_h = yes; then
12131 cat >>confdefs.h
<<\_ACEOF
12132 #define WITH_THREAD 1
12135 cat >>confdefs.h
<<\_ACEOF
12136 #define C_THREADS 1
12140 cat >>confdefs.h
<<\_ACEOF
12141 #define HURD_C_THREADS 1
12144 LIBS
="$LIBS -lthreads"
12145 THREADOBJ
="Python/thread.o"
12148 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12149 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12150 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12151 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12157 # Is the header compilable?
12158 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12159 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12160 cat >conftest.
$ac_ext <<_ACEOF
12163 cat confdefs.h
>>conftest.
$ac_ext
12164 cat >>conftest.
$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 #include <mach/cthreads.h>
12169 rm -f conftest.
$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12173 grep -v '^ *+' conftest.er1
>conftest.err
12175 cat conftest.err
>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try
='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try
='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_header_compiler
=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.
$ac_ext >&5
12196 ac_header_compiler
=no
12198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12200 echo "${ECHO_T}$ac_header_compiler" >&6
12202 # Is the header present?
12203 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12204 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12205 cat >conftest.
$ac_ext <<_ACEOF
12208 cat confdefs.h
>>conftest.
$ac_ext
12209 cat >>conftest.
$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <mach/cthreads.h>
12213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12216 grep -v '^ *+' conftest.er1
>conftest.err
12218 cat conftest.err
>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev
/null
; then
12221 if test -s conftest.err
; then
12222 ac_cpp_err
=$ac_c_preproc_warn_flag
12223 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12230 if test -z "$ac_cpp_err"; then
12231 ac_header_preproc
=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.
$ac_ext >&5
12236 ac_header_preproc
=no
12238 rm -f conftest.err conftest.
$ac_ext
12239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12240 echo "${ECHO_T}$ac_header_preproc" >&6
12242 # So? What about this header?
12243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12246 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12248 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12249 ac_header_preproc
=yes
12252 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12253 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12255 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12257 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12259 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12263 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12266 ## ------------------------------------------------ ##
12267 ## Report this to http://www.python.org/python-bugs ##
12268 ## ------------------------------------------------ ##
12271 sed "s/^/$as_me: WARNING: /" >&2
12274 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12275 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12276 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12281 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12282 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12285 if test $ac_cv_header_mach_cthreads_h = yes; then
12286 cat >>confdefs.h
<<\_ACEOF
12287 #define WITH_THREAD 1
12290 cat >>confdefs.h
<<\_ACEOF
12291 #define C_THREADS 1
12295 cat >>confdefs.h
<<\_ACEOF
12296 #define MACH_C_THREADS 1
12299 THREADOBJ
="Python/thread.o"
12302 echo "$as_me:$LINENO: checking for --with-pth" >&5
12303 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12305 # Check whether --with-pth or --without-pth was given.
12306 if test "${with_pth+set}" = set; then
12307 withval
="$with_pth"
12308 echo "$as_me:$LINENO: result: $withval" >&5
12309 echo "${ECHO_T}$withval" >&6
12310 cat >>confdefs.h
<<\_ACEOF
12311 #define WITH_THREAD 1
12315 cat >>confdefs.h
<<\_ACEOF
12320 THREADOBJ
="Python/thread.o"
12322 echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6
12325 # Just looking for pthread_create in libpthread is not enough:
12326 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12327 # So we really have to include pthread.h, and then link.
12329 LIBS
="$LIBS -lpthread"
12330 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12331 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12332 cat >conftest.
$ac_ext <<_ACEOF
12335 cat confdefs.h
>>conftest.
$ac_ext
12336 cat >>conftest.
$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 #include <pthread.h>
12340 void * start_routine (void *arg) { exit (0); }
12345 pthread_create (NULL, NULL, start_routine, NULL)
12350 rm -f conftest.
$ac_objext conftest
$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>conftest.er1
12354 grep -v '^ *+' conftest.er1
>conftest.err
12356 cat conftest.err
>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try
='test -z "$ac_c_werror_flag"
12360 || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try
='test -s conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12373 echo "$as_me:$LINENO: result: yes" >&5
12374 echo "${ECHO_T}yes" >&6
12375 cat >>confdefs.h
<<\_ACEOF
12376 #define WITH_THREAD 1
12380 THREADOBJ
="Python/thread.o"
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12387 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12388 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12389 if test "${ac_cv_func_pthread_detach+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 cat >conftest.
$ac_ext <<_ACEOF
12395 cat confdefs.h
>>conftest.
$ac_ext
12396 cat >>conftest.
$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define pthread_detach innocuous_pthread_detach
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char pthread_detach (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12413 #undef pthread_detach
12415 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char pthread_detach ();
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12429 char (*f) () = pthread_detach;
12438 return f != pthread_detach;
12443 rm -f conftest.
$ac_objext conftest
$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12447 grep -v '^ *+' conftest.er1
>conftest.err
12449 cat conftest.err
>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try
='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try
='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_func_pthread_detach
=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.
$ac_ext >&5
12470 ac_cv_func_pthread_detach
=no
12472 rm -f conftest.err conftest.
$ac_objext \
12473 conftest
$ac_exeext conftest.
$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12476 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12477 if test $ac_cv_func_pthread_detach = yes; then
12478 cat >>confdefs.h
<<\_ACEOF
12479 #define WITH_THREAD 1
12483 THREADOBJ
="Python/thread.o"
12486 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12487 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12488 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12489 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12493 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12495 # Is the header compilable?
12496 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12497 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12498 cat >conftest.
$ac_ext <<_ACEOF
12501 cat confdefs.h
>>conftest.
$ac_ext
12502 cat >>conftest.
$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 $ac_includes_default
12505 #include <atheos/threads.h>
12507 rm -f conftest.
$ac_objext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12509 (eval $ac_compile) 2>conftest.er1
12511 grep -v '^ *+' conftest.er1
>conftest.err
12513 cat conftest.err
>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try
='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try
='test -s conftest.$ac_objext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 ac_header_compiler
=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.
$ac_ext >&5
12534 ac_header_compiler
=no
12536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12538 echo "${ECHO_T}$ac_header_compiler" >&6
12540 # Is the header present?
12541 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12542 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12543 cat >conftest.
$ac_ext <<_ACEOF
12546 cat confdefs.h
>>conftest.
$ac_ext
12547 cat >>conftest.
$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <atheos/threads.h>
12551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12552 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12554 grep -v '^ *+' conftest.er1
>conftest.err
12556 cat conftest.err
>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } >/dev
/null
; then
12559 if test -s conftest.err
; then
12560 ac_cpp_err
=$ac_c_preproc_warn_flag
12561 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12568 if test -z "$ac_cpp_err"; then
12569 ac_header_preproc
=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.
$ac_ext >&5
12574 ac_header_preproc
=no
12576 rm -f conftest.err conftest.
$ac_ext
12577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12578 echo "${ECHO_T}$ac_header_preproc" >&6
12580 # So? What about this header?
12581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12583 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12584 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12586 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12587 ac_header_preproc
=yes
12590 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12591 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12593 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12595 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12597 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12599 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12601 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12604 ## ------------------------------------------------ ##
12605 ## Report this to http://www.python.org/python-bugs ##
12606 ## ------------------------------------------------ ##
12609 sed "s/^/$as_me: WARNING: /" >&2
12612 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12613 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12614 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12619 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12620 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12623 if test $ac_cv_header_atheos_threads_h = yes; then
12624 cat >>confdefs.h
<<\_ACEOF
12625 #define WITH_THREAD 1
12629 cat >>confdefs.h
<<\_ACEOF
12630 #define ATHEOS_THREADS 1
12633 THREADOBJ
="Python/thread.o"
12636 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12637 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12638 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12645 # Is the header compilable?
12646 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12647 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12648 cat >conftest.
$ac_ext <<_ACEOF
12651 cat confdefs.h
>>conftest.
$ac_ext
12652 cat >>conftest.
$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 #include <kernel/OS.h>
12657 rm -f conftest.
$ac_objext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12661 grep -v '^ *+' conftest.er1
>conftest.err
12663 cat conftest.err
>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try
='test -z "$ac_c_werror_flag"
12667 || test ! -s conftest.err'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try
='test -s conftest.$ac_objext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_header_compiler
=yes
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.
$ac_ext >&5
12684 ac_header_compiler
=no
12686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12688 echo "${ECHO_T}$ac_header_compiler" >&6
12690 # Is the header present?
12691 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12692 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12693 cat >conftest.
$ac_ext <<_ACEOF
12696 cat confdefs.h
>>conftest.
$ac_ext
12697 cat >>conftest.
$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 #include <kernel/OS.h>
12701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12704 grep -v '^ *+' conftest.er1
>conftest.err
12706 cat conftest.err
>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev
/null
; then
12709 if test -s conftest.err
; then
12710 ac_cpp_err
=$ac_c_preproc_warn_flag
12711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12718 if test -z "$ac_cpp_err"; then
12719 ac_header_preproc
=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.
$ac_ext >&5
12724 ac_header_preproc
=no
12726 rm -f conftest.err conftest.
$ac_ext
12727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12728 echo "${ECHO_T}$ac_header_preproc" >&6
12730 # So? What about this header?
12731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12733 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12734 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12736 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12737 ac_header_preproc
=yes
12740 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12741 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12743 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12745 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12747 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12749 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12751 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12754 ## ------------------------------------------------ ##
12755 ## Report this to http://www.python.org/python-bugs ##
12756 ## ------------------------------------------------ ##
12759 sed "s/^/$as_me: WARNING: /" >&2
12762 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12763 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12764 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12769 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12773 if test $ac_cv_header_kernel_OS_h = yes; then
12774 cat >>confdefs.h
<<\_ACEOF
12775 #define WITH_THREAD 1
12779 cat >>confdefs.h
<<\_ACEOF
12780 #define BEOS_THREADS 1
12783 THREADOBJ
="Python/thread.o"
12786 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12787 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12788 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 ac_check_lib_save_LIBS
=$LIBS
12792 LIBS
="-lpthreads $LIBS"
12793 cat >conftest.
$ac_ext <<_ACEOF
12796 cat confdefs.h
>>conftest.
$ac_ext
12797 cat >>conftest.
$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12800 /* Override any gcc2 internal prototype to avoid an error. */
12804 /* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12806 char pthread_create ();
12815 rm -f conftest.
$ac_objext conftest
$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>conftest.er1
12819 grep -v '^ *+' conftest.er1
>conftest.err
12821 cat conftest.err
>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try
='test -z "$ac_c_werror_flag"
12825 || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try
='test -s conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_lib_pthreads_pthread_create
=yes
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.
$ac_ext >&5
12842 ac_cv_lib_pthreads_pthread_create
=no
12844 rm -f conftest.err conftest.
$ac_objext \
12845 conftest
$ac_exeext conftest.
$ac_ext
12846 LIBS
=$ac_check_lib_save_LIBS
12848 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12849 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12850 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12851 cat >>confdefs.h
<<\_ACEOF
12852 #define WITH_THREAD 1
12856 LIBS
="$LIBS -lpthreads"
12857 THREADOBJ
="Python/thread.o"
12860 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12861 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12862 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_check_lib_save_LIBS
=$LIBS
12867 cat >conftest.
$ac_ext <<_ACEOF
12870 cat confdefs.h
>>conftest.
$ac_ext
12871 cat >>conftest.
$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any gcc2 internal prototype to avoid an error. */
12878 /* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880 char pthread_create ();
12889 rm -f conftest.
$ac_objext conftest
$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>conftest.er1
12893 grep -v '^ *+' conftest.er1
>conftest.err
12895 cat conftest.err
>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try
='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try
='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_lib_c_r_pthread_create
=yes
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.
$ac_ext >&5
12916 ac_cv_lib_c_r_pthread_create
=no
12918 rm -f conftest.err conftest.
$ac_objext \
12919 conftest
$ac_exeext conftest.
$ac_ext
12920 LIBS
=$ac_check_lib_save_LIBS
12922 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12923 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12924 if test $ac_cv_lib_c_r_pthread_create = yes; then
12925 cat >>confdefs.h
<<\_ACEOF
12926 #define WITH_THREAD 1
12931 THREADOBJ
="Python/thread.o"
12934 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12935 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12936 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_check_lib_save_LIBS
=$LIBS
12940 LIBS
="-lpthread $LIBS"
12941 cat >conftest.
$ac_ext <<_ACEOF
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954 char __pthread_create_system ();
12958 __pthread_create_system ();
12963 rm -f conftest.
$ac_objext conftest
$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1
>conftest.err
12969 cat conftest.err
>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try
='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try
='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_pthread___pthread_create_system
=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.
$ac_ext >&5
12990 ac_cv_lib_pthread___pthread_create_system
=no
12992 rm -f conftest.err conftest.
$ac_objext \
12993 conftest
$ac_exeext conftest.
$ac_ext
12994 LIBS
=$ac_check_lib_save_LIBS
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12997 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12998 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12999 cat >>confdefs.h
<<\_ACEOF
13000 #define WITH_THREAD 1
13004 LIBS
="$LIBS -lpthread"
13005 THREADOBJ
="Python/thread.o"
13008 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13009 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13010 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 ac_check_lib_save_LIBS
=$LIBS
13015 cat >conftest.
$ac_ext <<_ACEOF
13018 cat confdefs.h
>>conftest.
$ac_ext
13019 cat >>conftest.
$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13028 char pthread_create ();
13037 rm -f conftest.
$ac_objext conftest
$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>conftest.er1
13041 grep -v '^ *+' conftest.er1
>conftest.err
13043 cat conftest.err
>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try
='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try
='test -s conftest$ac_exeext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_lib_cma_pthread_create
=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 ac_cv_lib_cma_pthread_create
=no
13066 rm -f conftest.err conftest.
$ac_objext \
13067 conftest
$ac_exeext conftest.
$ac_ext
13068 LIBS
=$ac_check_lib_save_LIBS
13070 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13071 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13072 if test $ac_cv_lib_cma_pthread_create = yes; then
13073 cat >>confdefs.h
<<\_ACEOF
13074 #define WITH_THREAD 1
13079 THREADOBJ
="Python/thread.o"
13082 USE_THREAD_MODULE
="#"
13101 rm -f conftest.err conftest.
$ac_objext \
13102 conftest
$ac_exeext conftest.
$ac_ext
13111 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13112 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13113 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 ac_check_lib_save_LIBS
=$LIBS
13118 cat >conftest.
$ac_ext <<_ACEOF
13121 cat confdefs.h
>>conftest.
$ac_ext
13122 cat >>conftest.
$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 /* Override any gcc2 internal prototype to avoid an error. */
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13140 rm -f conftest.
$ac_objext conftest
$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1
>conftest.err
13146 cat conftest.err
>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try
='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try
='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_mpc_usconfig
=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 ac_cv_lib_mpc_usconfig
=no
13169 rm -f conftest.err conftest.
$ac_objext \
13170 conftest
$ac_exeext conftest.
$ac_ext
13171 LIBS
=$ac_check_lib_save_LIBS
13173 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13174 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13175 if test $ac_cv_lib_mpc_usconfig = yes; then
13176 cat >>confdefs.h
<<\_ACEOF
13177 #define WITH_THREAD 1
13181 THREADOBJ
="Python/thread.o"
13182 USE_THREAD_MODULE
=""
13186 if test "$posix_threads" != "yes"; then
13187 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13188 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13189 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13193 LIBS
="-lthread $LIBS"
13194 cat >conftest.
$ac_ext <<_ACEOF
13197 cat confdefs.h
>>conftest.
$ac_ext
13198 cat >>conftest.
$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char thr_create ();
13216 rm -f conftest.
$ac_objext conftest
$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1
>conftest.err
13222 cat conftest.err
>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try
='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try
='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_thread_thr_create
=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.
$ac_ext >&5
13243 ac_cv_lib_thread_thr_create
=no
13245 rm -f conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13250 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13251 if test $ac_cv_lib_thread_thr_create = yes; then
13252 cat >>confdefs.h
<<\_ACEOF
13253 #define WITH_THREAD 1
13256 LIBS
="$LIBS -lthread"
13257 THREADOBJ
="Python/thread.o"
13258 USE_THREAD_MODULE
=""
13263 if test "$USE_THREAD_MODULE" != "#"
13265 # If the above checks didn't disable threads, (at least) OSF1
13266 # needs this '-threads' argument during linking.
13267 case $ac_sys_system in
13268 OSF1
) LDLAST
=-threads;;
13273 if test "$posix_threads" = "yes"; then
13274 if test "$unistd_defines_pthreads" = "no"; then
13276 cat >>confdefs.h
<<\_ACEOF
13277 #define _POSIX_THREADS 1
13282 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13283 case $ac_sys_system/$ac_sys_release in
13285 cat >>confdefs.h
<<\_ACEOF
13286 #define HAVE_PTHREAD_DESTRUCTOR 1
13291 cat >>confdefs.h
<<\_ACEOF
13292 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13298 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13299 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13300 if test "${ac_cv_pthread_system_supported+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 if test "$cross_compiling" = yes; then
13304 ac_cv_pthread_system_supported
=no
13306 cat >conftest.
$ac_ext <<_ACEOF
13309 cat confdefs.h
>>conftest.
$ac_ext
13310 cat >>conftest.
$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <pthread.h>
13313 void *foo(void *parm) {
13317 pthread_attr_t attr;
13319 if (pthread_attr_init(&attr)) exit(-1);
13320 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13321 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13325 rm -f conftest
$ac_exeext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13327 (eval $ac_link) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_pthread_system_supported
=yes
13338 echo "$as_me: program exited with status $ac_status" >&5
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.
$ac_ext >&5
13342 ( exit $ac_status )
13343 ac_cv_pthread_system_supported
=no
13345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13350 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13351 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13352 if test "$ac_cv_pthread_system_supported" = "yes"; then
13354 cat >>confdefs.h
<<\_ACEOF
13355 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13360 for ac_func
in pthread_sigmask
13362 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13363 echo "$as_me:$LINENO: checking for $ac_func" >&5
13364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13365 if eval "test \"\${$as_ac_var+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define $ac_func innocuous_$ac_func
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13384 # include <limits.h>
13386 # include <assert.h>
13391 /* Override any gcc2 internal prototype to avoid an error. */
13396 /* We use char because int might match the return type of a gcc2
13397 builtin and then its argument prototype would still apply. */
13399 /* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13405 char (*f) () = $ac_func;
13414 return f != $ac_func;
13419 rm -f conftest.
$ac_objext conftest
$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>conftest.er1
13423 grep -v '^ *+' conftest.er1
>conftest.err
13425 cat conftest.err
>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try
='test -z "$ac_c_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try
='test -s conftest$ac_exeext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 eval "$as_ac_var=yes"
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.
$ac_ext >&5
13446 eval "$as_ac_var=no"
13448 rm -f conftest.err conftest.
$ac_objext \
13449 conftest
$ac_exeext conftest.
$ac_ext
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13453 if test `eval echo '${'$as_ac_var'}'` = yes; then
13454 cat >>confdefs.h
<<_ACEOF
13455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13457 case $ac_sys_system in
13460 cat >>confdefs.h
<<\_ACEOF
13461 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13472 # Check for enable-ipv6
13475 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13476 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13477 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13478 if test "${enable_ipv6+set}" = set; then
13479 enableval
="$enable_ipv6"
13480 case "$enableval" in
13482 echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
13486 *) echo "$as_me:$LINENO: result: yes" >&5
13487 echo "${ECHO_T}yes" >&6
13488 cat >>confdefs.h
<<\_ACEOF
13489 #define ENABLE_IPV6 1
13497 if test "$cross_compiling" = yes; then
13498 echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13503 cat >conftest.
$ac_ext <<_ACEOF
13506 cat confdefs.h
>>conftest.
$ac_ext
13507 cat >>conftest.
$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 /* AF_INET6 available check */
13510 #include <sys/types.h>
13511 #include <sys/socket.h>
13514 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13521 rm -f conftest
$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6
13536 echo "$as_me: program exited with status $ac_status" >&5
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.
$ac_ext >&5
13540 ( exit $ac_status )
13541 echo "$as_me:$LINENO: result: no" >&5
13542 echo "${ECHO_T}no" >&6
13545 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13548 if test "$ipv6" = "yes"; then
13549 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13550 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13551 cat >conftest.
$ac_ext <<_ACEOF
13554 cat confdefs.h
>>conftest.
$ac_ext
13555 cat >>conftest.
$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 #include <sys/types.h>
13558 #include <netinet/in.h>
13562 struct sockaddr_in6 x;
13568 rm -f conftest.
$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13572 grep -v '^ *+' conftest.er1
>conftest.err
13574 cat conftest.err
>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try
='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try
='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 echo "$as_me:$LINENO: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.
$ac_ext >&5
13597 echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13604 if test "$ipv6" = "yes"; then
13605 cat >>confdefs.h
<<\_ACEOF
13606 #define ENABLE_IPV6 1
13617 if test "$ipv6" = "yes"; then
13618 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13619 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13620 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13624 cat >conftest.
$ac_ext <<_ACEOF
13627 cat confdefs.h
>>conftest.
$ac_ext
13628 cat >>conftest.
$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13631 #include <netinet/in.h>
13632 #ifdef IPV6_INRIA_VERSION
13636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13637 $EGREP "yes" >/dev
/null
2>&1; then
13644 cat >conftest.
$ac_ext <<_ACEOF
13647 cat confdefs.h
>>conftest.
$ac_ext
13648 cat >>conftest.
$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 #include <netinet/in.h>
13656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13657 $EGREP "yes" >/dev
/null
2>&1; then
13660 ipv6libdir
=/usr
/local
/v
6/lib
13667 cat >conftest.
$ac_ext <<_ACEOF
13670 cat confdefs.h
>>conftest.
$ac_ext
13671 cat >>conftest.
$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 #include <features.h>
13675 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13680 $EGREP "yes" >/dev
/null
2>&1; then
13688 if test -d /usr
/inet6
; then
13691 ipv6libdir
=/usr
/inet
6/lib
13692 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13696 if test -f /etc
/netconfig
; then
13697 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13704 cat >conftest.
$ac_ext <<_ACEOF
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #include <sys/param.h>
13712 #ifdef _TOSHIBA_INET6
13716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13717 $EGREP "yes" >/dev
/null
2>&1; then
13720 ipv6libdir
=/usr
/local
/v
6/lib
13726 cat >conftest.
$ac_ext <<_ACEOF
13729 cat confdefs.h
>>conftest.
$ac_ext
13730 cat >>conftest.
$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13733 #include </usr/local/v6/include/sys/v6config.h>
13738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13739 $EGREP "yes" >/dev
/null
2>&1; then
13742 ipv6libdir
=/usr
/local
/v
6/lib
;
13743 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13749 cat >conftest.
$ac_ext <<_ACEOF
13752 cat confdefs.h
>>conftest.
$ac_ext
13753 cat >>conftest.
$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13756 #include <sys/param.h>
13757 #ifdef _ZETA_MINAMI_INET6
13761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13762 $EGREP "yes" >/dev
/null
2>&1; then
13765 ipv6libdir
=/usr
/local
/v
6/lib
13771 if test "$ipv6type" != "unknown"; then
13775 echo "$as_me:$LINENO: result: $ipv6type" >&5
13776 echo "${ECHO_T}$ipv6type" >&6
13779 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13780 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13781 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13782 echo "using lib$ipv6lib"
13784 if test $ipv6trylibc = "yes"; then
13787 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13788 echo "You need to fetch lib$ipv6lib.a from appropriate"
13789 echo 'ipv6 kit and compile beforehand.'
13795 # Check for --with-doc-strings
13796 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13797 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13799 # Check whether --with-doc-strings or --without-doc-strings was given.
13800 if test "${with_doc_strings+set}" = set; then
13801 withval
="$with_doc_strings"
13805 if test -z "$with_doc_strings"
13806 then with_doc_strings
="yes"
13808 if test "$with_doc_strings" != "no"
13811 cat >>confdefs.h
<<\_ACEOF
13812 #define WITH_DOC_STRINGS 1
13816 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13817 echo "${ECHO_T}$with_doc_strings" >&6
13819 # Check for Python-specific malloc support
13820 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13821 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13823 # Check whether --with-tsc or --without-tsc was given.
13824 if test "${with_tsc+set}" = set; then
13825 withval
="$with_tsc"
13827 if test "$withval" != no
13830 cat >>confdefs.h
<<\_ACEOF
13834 echo "$as_me:$LINENO: result: yes" >&5
13835 echo "${ECHO_T}yes" >&6
13836 else echo "$as_me:$LINENO: result: no" >&5
13837 echo "${ECHO_T}no" >&6
13840 echo "$as_me:$LINENO: result: no" >&5
13841 echo "${ECHO_T}no" >&6
13844 # Check for Python-specific malloc support
13845 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13846 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13848 # Check whether --with-pymalloc or --without-pymalloc was given.
13849 if test "${with_pymalloc+set}" = set; then
13850 withval
="$with_pymalloc"
13854 if test -z "$with_pymalloc"
13855 then with_pymalloc
="yes"
13857 if test "$with_pymalloc" != "no"
13860 cat >>confdefs.h
<<\_ACEOF
13861 #define WITH_PYMALLOC 1
13865 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13866 echo "${ECHO_T}$with_pymalloc" >&6
13868 # Check for --with-wctype-functions
13869 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13870 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13872 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13873 if test "${with_wctype_functions+set}" = set; then
13874 withval
="$with_wctype_functions"
13876 if test "$withval" != no
13879 cat >>confdefs.h
<<\_ACEOF
13880 #define WANT_WCTYPE_FUNCTIONS 1
13883 echo "$as_me:$LINENO: result: yes" >&5
13884 echo "${ECHO_T}yes" >&6
13885 else echo "$as_me:$LINENO: result: no" >&5
13886 echo "${ECHO_T}no" >&6
13889 echo "$as_me:$LINENO: result: no" >&5
13890 echo "${ECHO_T}no" >&6
13893 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13897 # the dlopen() function means we might want to use dynload_shlib.o. some
13898 # platforms, such as AIX, have dlopen(), but don't want to use it.
13900 for ac_func
in dlopen
13902 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13903 echo "$as_me:$LINENO: checking for $ac_func" >&5
13904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13905 if eval "test \"\${$as_ac_var+set}\" = set"; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.
$ac_ext <<_ACEOF
13911 cat confdefs.h
>>conftest.
$ac_ext
13912 cat >>conftest.
$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916 #define $ac_func innocuous_$ac_func
13918 /* System header to define __stub macros and hopefully few prototypes,
13919 which can conflict with char $ac_func (); below.
13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921 <limits.h> exists even on freestanding compilers. */
13924 # include <limits.h>
13926 # include <assert.h>
13931 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13939 /* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13945 char (*f) () = $ac_func;
13954 return f != $ac_func;
13959 rm -f conftest.
$ac_objext conftest
$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>conftest.er1
13963 grep -v '^ *+' conftest.er1
>conftest.err
13965 cat conftest.err
>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try
='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try
='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 eval "$as_ac_var=yes"
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.
$ac_ext >&5
13986 eval "$as_ac_var=no"
13988 rm -f conftest.err conftest.
$ac_objext \
13989 conftest
$ac_exeext conftest.
$ac_ext
13991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13993 if test `eval echo '${'$as_ac_var'}'` = yes; then
13994 cat >>confdefs.h
<<_ACEOF
13995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14002 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14003 # loading of modules.
14005 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14006 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14007 if test -z "$DYNLOADFILE"
14009 case $ac_sys_system/$ac_sys_release in
14010 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14011 if test "$ac_cv_func_dlopen" = yes
14012 then DYNLOADFILE
="dynload_shlib.o"
14013 else DYNLOADFILE
="dynload_aix.o"
14016 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14017 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14018 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14019 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14020 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14022 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14023 # out any dynamic loading
14024 if test "$ac_cv_func_dlopen" = yes
14025 then DYNLOADFILE
="dynload_shlib.o"
14026 else DYNLOADFILE
="dynload_stub.o"
14031 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14032 echo "${ECHO_T}$DYNLOADFILE" >&6
14033 if test "$DYNLOADFILE" != "dynload_stub.o"
14036 cat >>confdefs.h
<<\_ACEOF
14037 #define HAVE_DYNAMIC_LOADING 1
14042 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14045 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14046 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14047 if test -z "$MACHDEP_OBJS"
14049 MACHDEP_OBJS
=$extra_machdep_objs
14051 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14053 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14054 echo "${ECHO_T}MACHDEP_OBJS" >&6
14056 # checks for library functions
14133 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14134 execv fork fpathconf ftime ftruncate \
14135 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14136 getpriority getpwent getspnam getspent getsid getwd \
14137 kill killpg lchown lstat
mkfifo mknod mktime \
14138 mremap nice pathconf pause plock poll pthread_init \
14139 putenv readlink realpath \
14140 select setegid seteuid setgid \
14141 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14142 sigaction siginterrupt sigrelse strftime \
14143 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14144 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14147 echo "$as_me:$LINENO: checking for $ac_func" >&5
14148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_var+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 cat >conftest.
$ac_ext <<_ACEOF
14155 cat confdefs.h
>>conftest.
$ac_ext
14156 cat >>conftest.
$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14160 #define $ac_func innocuous_$ac_func
14162 /* System header to define __stub macros and hopefully few prototypes,
14163 which can conflict with char $ac_func (); below.
14164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14165 <limits.h> exists even on freestanding compilers. */
14168 # include <limits.h>
14170 # include <assert.h>
14175 /* Override any gcc2 internal prototype to avoid an error. */
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14183 /* The GNU C library defines this for functions which it implements
14184 to always fail with ENOSYS. Some functions are actually named
14185 something starting with __ and the normal name is an alias. */
14186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14189 char (*f) () = $ac_func;
14198 return f != $ac_func;
14203 rm -f conftest.
$ac_objext conftest
$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14207 grep -v '^ *+' conftest.er1
>conftest.err
14209 cat conftest.err
>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try
='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try
='test -s conftest$ac_exeext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 eval "$as_ac_var=yes"
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.
$ac_ext >&5
14230 eval "$as_ac_var=no"
14232 rm -f conftest.err conftest.
$ac_objext \
14233 conftest
$ac_exeext conftest.
$ac_ext
14235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14237 if test `eval echo '${'$as_ac_var'}'` = yes; then
14238 cat >>confdefs.h
<<_ACEOF
14239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14246 # For some functions, having a definition is not sufficient, since
14247 # we want to take their address.
14248 echo "$as_me:$LINENO: checking for chroot" >&5
14249 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14250 cat >conftest.
$ac_ext <<_ACEOF
14253 cat confdefs.h
>>conftest.
$ac_ext
14254 cat >>conftest.
$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 #include <unistd.h>
14265 rm -f conftest.
$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1
>conftest.err
14271 cat conftest.err
>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try
='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try
='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14288 cat >>confdefs.h
<<\_ACEOF
14289 #define HAVE_CHROOT 1
14292 echo "$as_me:$LINENO: result: yes" >&5
14293 echo "${ECHO_T}yes" >&6
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.
$ac_ext >&5
14298 echo "$as_me:$LINENO: result: no" >&5
14299 echo "${ECHO_T}no" >&6
14302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14303 echo "$as_me:$LINENO: checking for link" >&5
14304 echo $ECHO_N "checking for link... $ECHO_C" >&6
14305 cat >conftest.
$ac_ext <<_ACEOF
14308 cat confdefs.h
>>conftest.
$ac_ext
14309 cat >>conftest.
$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <unistd.h>
14320 rm -f conftest.
$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14324 grep -v '^ *+' conftest.er1
>conftest.err
14326 cat conftest.err
>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try
='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try
='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14343 cat >>confdefs.h
<<\_ACEOF
14344 #define HAVE_LINK 1
14347 echo "$as_me:$LINENO: result: yes" >&5
14348 echo "${ECHO_T}yes" >&6
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.
$ac_ext >&5
14353 echo "$as_me:$LINENO: result: no" >&5
14354 echo "${ECHO_T}no" >&6
14357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14358 echo "$as_me:$LINENO: checking for symlink" >&5
14359 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 #include <unistd.h>
14375 rm -f conftest.
$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14379 grep -v '^ *+' conftest.er1
>conftest.err
14381 cat conftest.err
>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try
='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try
='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14398 cat >>confdefs.h
<<\_ACEOF
14399 #define HAVE_SYMLINK 1
14402 echo "$as_me:$LINENO: result: yes" >&5
14403 echo "${ECHO_T}yes" >&6
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.
$ac_ext >&5
14408 echo "$as_me:$LINENO: result: no" >&5
14409 echo "${ECHO_T}no" >&6
14412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14413 echo "$as_me:$LINENO: checking for fchdir" >&5
14414 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14415 cat >conftest.
$ac_ext <<_ACEOF
14418 cat confdefs.h
>>conftest.
$ac_ext
14419 cat >>conftest.
$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <unistd.h>
14430 rm -f conftest.
$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>conftest.er1
14434 grep -v '^ *+' conftest.er1
>conftest.err
14436 cat conftest.err
>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try
='test -z "$ac_c_werror_flag"
14440 || test ! -s conftest.err'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try
='test -s conftest.$ac_objext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14453 cat >>confdefs.h
<<\_ACEOF
14454 #define HAVE_FCHDIR 1
14457 echo "$as_me:$LINENO: result: yes" >&5
14458 echo "${ECHO_T}yes" >&6
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.
$ac_ext >&5
14463 echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6
14467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14468 echo "$as_me:$LINENO: checking for fsync" >&5
14469 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14470 cat >conftest.
$ac_ext <<_ACEOF
14473 cat confdefs.h
>>conftest.
$ac_ext
14474 cat >>conftest.
$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <unistd.h>
14485 rm -f conftest.
$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>conftest.er1
14489 grep -v '^ *+' conftest.er1
>conftest.err
14491 cat conftest.err
>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try
='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try
='test -s conftest.$ac_objext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14508 cat >>confdefs.h
<<\_ACEOF
14509 #define HAVE_FSYNC 1
14512 echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14523 echo "$as_me:$LINENO: checking for fdatasync" >&5
14524 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14525 cat >conftest.
$ac_ext <<_ACEOF
14528 cat confdefs.h
>>conftest.
$ac_ext
14529 cat >>conftest.
$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <unistd.h>
14540 rm -f conftest.
$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14544 grep -v '^ *+' conftest.er1
>conftest.err
14546 cat conftest.err
>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try
='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try
='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14563 cat >>confdefs.h
<<\_ACEOF
14564 #define HAVE_FDATASYNC 1
14567 echo "$as_me:$LINENO: result: yes" >&5
14568 echo "${ECHO_T}yes" >&6
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.
$ac_ext >&5
14573 echo "$as_me:$LINENO: result: no" >&5
14574 echo "${ECHO_T}no" >&6
14577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14579 # On some systems (eg. FreeBSD 5), we would find a definition of the
14580 # functions ctermid_r, setgroups in the library, but no prototype
14581 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14582 # address to avoid compiler warnings and potential miscompilations
14583 # because of the missing prototypes.
14585 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14586 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14587 cat >conftest.
$ac_ext <<_ACEOF
14590 cat confdefs.h
>>conftest.
$ac_ext
14591 cat >>conftest.
$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14594 #include "confdefs.h"
14600 void* p = ctermid_r
14605 rm -f conftest.
$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>conftest.er1
14609 grep -v '^ *+' conftest.er1
>conftest.err
14611 cat conftest.err
>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try
='test -z "$ac_c_werror_flag"
14615 || test ! -s conftest.err'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try
='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14628 cat >>confdefs.h
<<\_ACEOF
14629 #define HAVE_CTERMID_R 1
14632 echo "$as_me:$LINENO: result: yes" >&5
14633 echo "${ECHO_T}yes" >&6
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.
$ac_ext >&5
14638 echo "$as_me:$LINENO: result: no" >&5
14639 echo "${ECHO_T}no" >&6
14642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14644 echo "$as_me:$LINENO: checking for flock" >&5
14645 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14646 cat >conftest.
$ac_ext <<_ACEOF
14649 cat confdefs.h
>>conftest.
$ac_ext
14650 cat >>conftest.
$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 #include "confdefs.h"
14654 #include <sys/file.h>
14664 rm -f conftest.
$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1
>conftest.err
14670 cat conftest.err
>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try
='test -z "$ac_c_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try
='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14687 cat >>confdefs.h
<<\_ACEOF
14688 #define HAVE_FLOCK 1
14691 echo "$as_me:$LINENO: result: yes" >&5
14692 echo "${ECHO_T}yes" >&6
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.
$ac_ext >&5
14697 echo "$as_me:$LINENO: result: no" >&5
14698 echo "${ECHO_T}no" >&6
14701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 echo "$as_me:$LINENO: checking for getpagesize" >&5
14704 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14705 cat >conftest.
$ac_ext <<_ACEOF
14708 cat confdefs.h
>>conftest.
$ac_ext
14709 cat >>conftest.
$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14712 #include "confdefs.h"
14713 #include <unistd.h>
14718 void* p = getpagesize
14723 rm -f conftest.
$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>conftest.er1
14727 grep -v '^ *+' conftest.er1
>conftest.err
14729 cat conftest.err
>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try
='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try
='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14746 cat >>confdefs.h
<<\_ACEOF
14747 #define HAVE_GETPAGESIZE 1
14750 echo "$as_me:$LINENO: result: yes" >&5
14751 echo "${ECHO_T}yes" >&6
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.
$ac_ext >&5
14756 echo "$as_me:$LINENO: result: no" >&5
14757 echo "${ECHO_T}no" >&6
14760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14762 for ac_prog
in true
14764 # Extract the first word of "$ac_prog", so it can be a program name with args.
14765 set dummy
$ac_prog; ac_word
=$2
14766 echo "$as_me:$LINENO: checking for $ac_word" >&5
14767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14768 if test "${ac_cv_prog_TRUE+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 if test -n "$TRUE"; then
14772 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14775 for as_dir
in $PATH
14778 test -z "$as_dir" && as_dir
=.
14779 for ac_exec_ext
in '' $ac_executable_extensions; do
14780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_TRUE
="$ac_prog"
14782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14790 TRUE
=$ac_cv_prog_TRUE
14791 if test -n "$TRUE"; then
14792 echo "$as_me:$LINENO: result: $TRUE" >&5
14793 echo "${ECHO_T}$TRUE" >&6
14795 echo "$as_me:$LINENO: result: no" >&5
14796 echo "${ECHO_T}no" >&6
14799 test -n "$TRUE" && break
14801 test -n "$TRUE" || TRUE
="/bin/true"
14804 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14805 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14806 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS
=$LIBS
14811 cat >conftest.
$ac_ext <<_ACEOF
14814 cat confdefs.h
>>conftest.
$ac_ext
14815 cat >>conftest.
$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any gcc2 internal prototype to avoid an error. */
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14833 rm -f conftest.
$ac_objext conftest
$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>conftest.er1
14837 grep -v '^ *+' conftest.er1
>conftest.err
14839 cat conftest.err
>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try
='test -z "$ac_c_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try
='test -s conftest$ac_exeext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_lib_c_inet_aton
=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.
$ac_ext >&5
14860 ac_cv_lib_c_inet_aton
=no
14862 rm -f conftest.err conftest.
$ac_objext \
14863 conftest
$ac_exeext conftest.
$ac_ext
14864 LIBS
=$ac_check_lib_save_LIBS
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14867 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14868 if test $ac_cv_lib_c_inet_aton = yes; then
14872 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14873 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14874 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_check_lib_save_LIBS
=$LIBS
14878 LIBS
="-lresolv $LIBS"
14879 cat >conftest.
$ac_ext <<_ACEOF
14882 cat confdefs.h
>>conftest.
$ac_ext
14883 cat >>conftest.
$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14886 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14901 rm -f conftest.
$ac_objext conftest
$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1
>conftest.err
14907 cat conftest.err
>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try
='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try
='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_resolv_inet_aton
=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.
$ac_ext >&5
14928 ac_cv_lib_resolv_inet_aton
=no
14930 rm -f conftest.err conftest.
$ac_objext \
14931 conftest
$ac_exeext conftest.
$ac_ext
14932 LIBS
=$ac_check_lib_save_LIBS
14934 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14935 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14936 if test $ac_cv_lib_resolv_inet_aton = yes; then
14937 cat >>confdefs.h
<<_ACEOF
14938 #define HAVE_LIBRESOLV 1
14941 LIBS
="-lresolv $LIBS"
14949 echo "$as_me:$LINENO: checking for hstrerror" >&5
14950 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14951 cat >conftest.
$ac_ext <<_ACEOF
14954 cat confdefs.h
>>conftest.
$ac_ext
14955 cat >>conftest.
$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 #include "confdefs.h"
14964 void* p = hstrerror; hstrerror(0)
14969 rm -f conftest.
$ac_objext conftest
$ac_exeext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14971 (eval $ac_link) 2>conftest.er1
14973 grep -v '^ *+' conftest.er1
>conftest.err
14975 cat conftest.err
>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try
='test -z "$ac_c_werror_flag"
14979 || test ! -s conftest.err'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try
='test -s conftest$ac_exeext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14992 cat >>confdefs.h
<<\_ACEOF
14993 #define HAVE_HSTRERROR 1
14996 echo "$as_me:$LINENO: result: yes" >&5
14997 echo "${ECHO_T}yes" >&6
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.
$ac_ext >&5
15002 echo "$as_me:$LINENO: result: no" >&5
15003 echo "${ECHO_T}no" >&6
15006 rm -f conftest.err conftest.
$ac_objext \
15007 conftest
$ac_exeext conftest.
$ac_ext
15009 echo "$as_me:$LINENO: checking for inet_aton" >&5
15010 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15011 cat >conftest.
$ac_ext <<_ACEOF
15014 cat confdefs.h
>>conftest.
$ac_ext
15015 cat >>conftest.
$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15018 #include "confdefs.h"
15019 #include <sys/types.h>
15020 #include <sys/socket.h>
15021 #include <netinet/in.h>
15022 #include <arpa/inet.h>
15027 void* p = inet_aton;inet_aton(0,0)
15032 rm -f conftest.
$ac_objext conftest
$ac_exeext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15034 (eval $ac_link) 2>conftest.er1
15036 grep -v '^ *+' conftest.er1
>conftest.err
15038 cat conftest.err
>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
15041 { ac_try
='test -z "$ac_c_werror_flag"
15042 || test ! -s conftest.err'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try
='test -s conftest$ac_exeext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15055 cat >>confdefs.h
<<\_ACEOF
15056 #define HAVE_INET_ATON 1
15059 echo "$as_me:$LINENO: result: yes" >&5
15060 echo "${ECHO_T}yes" >&6
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.
$ac_ext >&5
15065 echo "$as_me:$LINENO: result: no" >&5
15066 echo "${ECHO_T}no" >&6
15069 rm -f conftest.err conftest.
$ac_objext \
15070 conftest
$ac_exeext conftest.
$ac_ext
15072 echo "$as_me:$LINENO: checking for inet_pton" >&5
15073 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 #include "confdefs.h"
15082 #include <sys/types.h>
15083 #include <sys/socket.h>
15084 #include <netinet/in.h>
15085 #include <arpa/inet.h>
15090 void* p = inet_pton
15095 rm -f conftest.
$ac_objext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15097 (eval $ac_compile) 2>conftest.er1
15099 grep -v '^ *+' conftest.er1
>conftest.err
15101 cat conftest.err
>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try
='test -z "$ac_c_werror_flag"
15105 || test ! -s conftest.err'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try
='test -s conftest.$ac_objext'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15118 cat >>confdefs.h
<<\_ACEOF
15119 #define HAVE_INET_PTON 1
15122 echo "$as_me:$LINENO: result: yes" >&5
15123 echo "${ECHO_T}yes" >&6
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.
$ac_ext >&5
15128 echo "$as_me:$LINENO: result: no" >&5
15129 echo "${ECHO_T}no" >&6
15132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15134 # On some systems, setgroups is in unistd.h, on others, in grp.h
15135 echo "$as_me:$LINENO: checking for setgroups" >&5
15136 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15137 cat >conftest.
$ac_ext <<_ACEOF
15140 cat confdefs.h
>>conftest.
$ac_ext
15141 cat >>conftest.
$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 #include "confdefs.h"
15145 #include <unistd.h>
15153 void* p = setgroups
15158 rm -f conftest.
$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>conftest.er1
15162 grep -v '^ *+' conftest.er1
>conftest.err
15164 cat conftest.err
>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try
='test -z "$ac_c_werror_flag"
15168 || test ! -s conftest.err'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try
='test -s conftest.$ac_objext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15181 cat >>confdefs.h
<<\_ACEOF
15182 #define HAVE_SETGROUPS 1
15185 echo "$as_me:$LINENO: result: yes" >&5
15186 echo "${ECHO_T}yes" >&6
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.
$ac_ext >&5
15191 echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15197 # check for openpty and forkpty
15200 for ac_func
in openpty
15202 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203 echo "$as_me:$LINENO: checking for $ac_func" >&5
15204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15205 if eval "test \"\${$as_ac_var+set}\" = set"; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 cat >conftest.
$ac_ext <<_ACEOF
15211 cat confdefs.h
>>conftest.
$ac_ext
15212 cat >>conftest.
$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15216 #define $ac_func innocuous_$ac_func
15218 /* System header to define __stub macros and hopefully few prototypes,
15219 which can conflict with char $ac_func (); below.
15220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15221 <limits.h> exists even on freestanding compilers. */
15224 # include <limits.h>
15226 # include <assert.h>
15231 /* Override any gcc2 internal prototype to avoid an error. */
15236 /* We use char because int might match the return type of a gcc2
15237 builtin and then its argument prototype would still apply. */
15239 /* The GNU C library defines this for functions which it implements
15240 to always fail with ENOSYS. Some functions are actually named
15241 something starting with __ and the normal name is an alias. */
15242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15245 char (*f) () = $ac_func;
15254 return f != $ac_func;
15259 rm -f conftest.
$ac_objext conftest
$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261 (eval $ac_link) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1
>conftest.err
15265 cat conftest.err
>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try
='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try
='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 eval "$as_ac_var=yes"
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.
$ac_ext >&5
15286 eval "$as_ac_var=no"
15288 rm -f conftest.err conftest.
$ac_objext \
15289 conftest
$ac_exeext conftest.
$ac_ext
15291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15293 if test `eval echo '${'$as_ac_var'}'` = yes; then
15294 cat >>confdefs.h
<<_ACEOF
15295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15299 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15300 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15301 if test "${ac_cv_lib_util_openpty+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 ac_check_lib_save_LIBS
=$LIBS
15305 LIBS
="-lutil $LIBS"
15306 cat >conftest.
$ac_ext <<_ACEOF
15309 cat confdefs.h
>>conftest.
$ac_ext
15310 cat >>conftest.
$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15313 /* Override any gcc2 internal prototype to avoid an error. */
15317 /* We use char because int might match the return type of a gcc2
15318 builtin and then its argument prototype would still apply. */
15328 rm -f conftest.
$ac_objext conftest
$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>conftest.er1
15332 grep -v '^ *+' conftest.er1
>conftest.err
15334 cat conftest.err
>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try
='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try
='test -s conftest$ac_exeext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_lib_util_openpty
=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.
$ac_ext >&5
15355 ac_cv_lib_util_openpty
=no
15357 rm -f conftest.err conftest.
$ac_objext \
15358 conftest
$ac_exeext conftest.
$ac_ext
15359 LIBS
=$ac_check_lib_save_LIBS
15361 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15362 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15363 if test $ac_cv_lib_util_openpty = yes; then
15364 cat >>confdefs.h
<<\_ACEOF
15365 #define HAVE_OPENPTY 1
15367 LIBS
="$LIBS -lutil"
15369 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15370 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15371 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 ac_check_lib_save_LIBS
=$LIBS
15376 cat >conftest.
$ac_ext <<_ACEOF
15379 cat confdefs.h
>>conftest.
$ac_ext
15380 cat >>conftest.
$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15383 /* Override any gcc2 internal prototype to avoid an error. */
15387 /* We use char because int might match the return type of a gcc2
15388 builtin and then its argument prototype would still apply. */
15398 rm -f conftest.
$ac_objext conftest
$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try
='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try
='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_lib_bsd_openpty
=yes
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.
$ac_ext >&5
15425 ac_cv_lib_bsd_openpty
=no
15427 rm -f conftest.err conftest.
$ac_objext \
15428 conftest
$ac_exeext conftest.
$ac_ext
15429 LIBS
=$ac_check_lib_save_LIBS
15431 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15432 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15433 if test $ac_cv_lib_bsd_openpty = yes; then
15434 cat >>confdefs.h
<<\_ACEOF
15435 #define HAVE_OPENPTY 1
15448 for ac_func
in forkpty
15450 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15451 echo "$as_me:$LINENO: checking for $ac_func" >&5
15452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15453 if eval "test \"\${$as_ac_var+set}\" = set"; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 cat >conftest.
$ac_ext <<_ACEOF
15459 cat confdefs.h
>>conftest.
$ac_ext
15460 cat >>conftest.
$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15464 #define $ac_func innocuous_$ac_func
15466 /* System header to define __stub macros and hopefully few prototypes,
15467 which can conflict with char $ac_func (); below.
15468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15469 <limits.h> exists even on freestanding compilers. */
15472 # include <limits.h>
15474 # include <assert.h>
15479 /* Override any gcc2 internal prototype to avoid an error. */
15484 /* We use char because int might match the return type of a gcc2
15485 builtin and then its argument prototype would still apply. */
15487 /* The GNU C library defines this for functions which it implements
15488 to always fail with ENOSYS. Some functions are actually named
15489 something starting with __ and the normal name is an alias. */
15490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15493 char (*f) () = $ac_func;
15502 return f != $ac_func;
15507 rm -f conftest.
$ac_objext conftest
$ac_exeext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>conftest.er1
15511 grep -v '^ *+' conftest.er1
>conftest.err
15513 cat conftest.err
>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try
='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try
='test -s conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 eval "$as_ac_var=yes"
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.
$ac_ext >&5
15534 eval "$as_ac_var=no"
15536 rm -f conftest.err conftest.
$ac_objext \
15537 conftest
$ac_exeext conftest.
$ac_ext
15539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15541 if test `eval echo '${'$as_ac_var'}'` = yes; then
15542 cat >>confdefs.h
<<_ACEOF
15543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15547 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15548 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15549 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_check_lib_save_LIBS
=$LIBS
15553 LIBS
="-lutil $LIBS"
15554 cat >conftest.
$ac_ext <<_ACEOF
15557 cat confdefs.h
>>conftest.
$ac_ext
15558 cat >>conftest.
$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15576 rm -f conftest.
$ac_objext conftest
$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1
>conftest.err
15582 cat conftest.err
>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try
='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try
='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_lib_util_forkpty
=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.
$ac_ext >&5
15603 ac_cv_lib_util_forkpty
=no
15605 rm -f conftest.err conftest.
$ac_objext \
15606 conftest
$ac_exeext conftest.
$ac_ext
15607 LIBS
=$ac_check_lib_save_LIBS
15609 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15610 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15611 if test $ac_cv_lib_util_forkpty = yes; then
15612 cat >>confdefs.h
<<\_ACEOF
15613 #define HAVE_FORKPTY 1
15615 LIBS
="$LIBS -lutil"
15617 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15618 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15619 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 ac_check_lib_save_LIBS
=$LIBS
15624 cat >conftest.
$ac_ext <<_ACEOF
15627 cat confdefs.h
>>conftest.
$ac_ext
15628 cat >>conftest.
$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any gcc2 internal prototype to avoid an error. */
15635 /* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15646 rm -f conftest.
$ac_objext conftest
$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15650 grep -v '^ *+' conftest.er1
>conftest.err
15652 cat conftest.err
>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try
='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try
='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_lib_bsd_forkpty
=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.
$ac_ext >&5
15673 ac_cv_lib_bsd_forkpty
=no
15675 rm -f conftest.err conftest.
$ac_objext \
15676 conftest
$ac_exeext conftest.
$ac_ext
15677 LIBS
=$ac_check_lib_save_LIBS
15679 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15680 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15681 if test $ac_cv_lib_bsd_forkpty = yes; then
15682 cat >>confdefs.h
<<\_ACEOF
15683 #define HAVE_FORKPTY 1
15696 # check for long file support functions
15703 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.
$ac_ext <<_ACEOF
15714 cat confdefs.h
>>conftest.
$ac_ext
15715 cat >>conftest.
$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15719 #define $ac_func innocuous_$ac_func
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15727 # include <limits.h>
15729 # include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15748 char (*f) () = $ac_func;
15757 return f != $ac_func;
15762 rm -f conftest.
$ac_objext conftest
$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1
>conftest.err
15768 cat conftest.err
>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try
='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try
='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.
$ac_ext >&5
15789 eval "$as_ac_var=no"
15791 rm -f conftest.err conftest.
$ac_objext \
15792 conftest
$ac_exeext conftest.
$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h
<<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15810 for ac_func
in dup2 getcwd strdup strerror memmove
15812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 cat >conftest.
$ac_ext <<_ACEOF
15821 cat confdefs.h
>>conftest.
$ac_ext
15822 cat >>conftest.
$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15834 # include <limits.h>
15836 # include <assert.h>
15841 /* Override any gcc2 internal prototype to avoid an error. */
15846 /* We use char because int might match the return type of a gcc2
15847 builtin and then its argument prototype would still apply. */
15849 /* The GNU C library defines this for functions which it implements
15850 to always fail with ENOSYS. Some functions are actually named
15851 something starting with __ and the normal name is an alias. */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 char (*f) () = $ac_func;
15864 return f != $ac_func;
15869 rm -f conftest.
$ac_objext conftest
$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1
>conftest.err
15875 cat conftest.err
>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try
='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try
='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.
$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.
$ac_objext \
15899 conftest
$ac_exeext conftest.
$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h
<<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15910 "$ac_func.$ac_objext" | \
15911 *" $ac_func.$ac_objext" | \
15912 "$ac_func.$ac_objext "* | \
15913 *" $ac_func.$ac_objext "* ) ;;
15914 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15922 for ac_func
in getpgrp
15924 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15925 echo "$as_me:$LINENO: checking for $ac_func" >&5
15926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15927 if eval "test \"\${$as_ac_var+set}\" = set"; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 cat >conftest.
$ac_ext <<_ACEOF
15933 cat confdefs.h
>>conftest.
$ac_ext
15934 cat >>conftest.
$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15938 #define $ac_func innocuous_$ac_func
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char $ac_func (); below.
15942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15943 <limits.h> exists even on freestanding compilers. */
15946 # include <limits.h>
15948 # include <assert.h>
15953 /* Override any gcc2 internal prototype to avoid an error. */
15958 /* We use char because int might match the return type of a gcc2
15959 builtin and then its argument prototype would still apply. */
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15967 char (*f) () = $ac_func;
15976 return f != $ac_func;
15981 rm -f conftest.
$ac_objext conftest
$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983 (eval $ac_link) 2>conftest.er1
15985 grep -v '^ *+' conftest.er1
>conftest.err
15987 cat conftest.err
>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try
='test -z "$ac_c_werror_flag"
15991 || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try
='test -s conftest$ac_exeext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 eval "$as_ac_var=yes"
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.
$ac_ext >&5
16008 eval "$as_ac_var=no"
16010 rm -f conftest.err conftest.
$ac_objext \
16011 conftest
$ac_exeext conftest.
$ac_ext
16013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16015 if test `eval echo '${'$as_ac_var'}'` = yes; then
16016 cat >>confdefs.h
<<_ACEOF
16017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16019 cat >conftest.
$ac_ext <<_ACEOF
16022 cat confdefs.h
>>conftest.
$ac_ext
16023 cat >>conftest.
$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <unistd.h>
16034 rm -f conftest.
$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>conftest.er1
16038 grep -v '^ *+' conftest.er1
>conftest.err
16040 cat conftest.err
>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try
='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try
='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16057 cat >>confdefs.h
<<\_ACEOF
16058 #define GETPGRP_HAVE_ARG 1
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.
$ac_ext >&5
16067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16073 for ac_func
in setpgrp
16075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16076 echo "$as_me:$LINENO: checking for $ac_func" >&5
16077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_var+set}\" = set"; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 cat >conftest.
$ac_ext <<_ACEOF
16084 cat confdefs.h
>>conftest.
$ac_ext
16085 cat >>conftest.
$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16089 #define $ac_func innocuous_$ac_func
16091 /* System header to define __stub macros and hopefully few prototypes,
16092 which can conflict with char $ac_func (); below.
16093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094 <limits.h> exists even on freestanding compilers. */
16097 # include <limits.h>
16099 # include <assert.h>
16104 /* Override any gcc2 internal prototype to avoid an error. */
16109 /* We use char because int might match the return type of a gcc2
16110 builtin and then its argument prototype would still apply. */
16112 /* The GNU C library defines this for functions which it implements
16113 to always fail with ENOSYS. Some functions are actually named
16114 something starting with __ and the normal name is an alias. */
16115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16118 char (*f) () = $ac_func;
16127 return f != $ac_func;
16132 rm -f conftest.
$ac_objext conftest
$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>conftest.er1
16136 grep -v '^ *+' conftest.er1
>conftest.err
16138 cat conftest.err
>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try
='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try
='test -s conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 eval "$as_ac_var=yes"
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.
$ac_ext >&5
16159 eval "$as_ac_var=no"
16161 rm -f conftest.err conftest.
$ac_objext \
16162 conftest
$ac_exeext conftest.
$ac_ext
16164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16166 if test `eval echo '${'$as_ac_var'}'` = yes; then
16167 cat >>confdefs.h
<<_ACEOF
16168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 cat >conftest.
$ac_ext <<_ACEOF
16173 cat confdefs.h
>>conftest.
$ac_ext
16174 cat >>conftest.
$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 #include <unistd.h>
16185 rm -f conftest.
$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>conftest.er1
16189 grep -v '^ *+' conftest.er1
>conftest.err
16191 cat conftest.err
>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try
='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try
='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16208 cat >>confdefs.h
<<\_ACEOF
16209 #define SETPGRP_HAVE_ARG 1
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.
$ac_ext >&5
16218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16224 for ac_func
in gettimeofday
16226 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16227 echo "$as_me:$LINENO: checking for $ac_func" >&5
16228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16229 if eval "test \"\${$as_ac_var+set}\" = set"; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 cat >conftest.
$ac_ext <<_ACEOF
16235 cat confdefs.h
>>conftest.
$ac_ext
16236 cat >>conftest.
$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16240 #define $ac_func innocuous_$ac_func
16242 /* System header to define __stub macros and hopefully few prototypes,
16243 which can conflict with char $ac_func (); below.
16244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16245 <limits.h> exists even on freestanding compilers. */
16248 # include <limits.h>
16250 # include <assert.h>
16255 /* Override any gcc2 internal prototype to avoid an error. */
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16263 /* The GNU C library defines this for functions which it implements
16264 to always fail with ENOSYS. Some functions are actually named
16265 something starting with __ and the normal name is an alias. */
16266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269 char (*f) () = $ac_func;
16278 return f != $ac_func;
16283 rm -f conftest.
$ac_objext conftest
$ac_exeext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16285 (eval $ac_link) 2>conftest.er1
16287 grep -v '^ *+' conftest.er1
>conftest.err
16289 cat conftest.err
>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try
='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try
='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 eval "$as_ac_var=yes"
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.
$ac_ext >&5
16310 eval "$as_ac_var=no"
16312 rm -f conftest.err conftest.
$ac_objext \
16313 conftest
$ac_exeext conftest.
$ac_ext
16315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16317 if test `eval echo '${'$as_ac_var'}'` = yes; then
16318 cat >>confdefs.h
<<_ACEOF
16319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 cat >conftest.
$ac_ext <<_ACEOF
16324 cat confdefs.h
>>conftest.
$ac_ext
16325 cat >>conftest.
$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <sys/time.h>
16331 gettimeofday((struct timeval*)0,(struct timezone*)0);
16336 rm -f conftest.
$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>conftest.er1
16340 grep -v '^ *+' conftest.er1
>conftest.err
16342 cat conftest.err
>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try
='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try
='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.
$ac_ext >&5
16364 cat >>confdefs.h
<<\_ACEOF
16365 #define GETTIMEOFDAY_NO_TZ 1
16370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16376 echo "$as_me:$LINENO: checking for major" >&5
16377 echo $ECHO_N "checking for major... $ECHO_C" >&6
16378 cat >conftest.
$ac_ext <<_ACEOF
16381 cat confdefs.h
>>conftest.
$ac_ext
16382 cat >>conftest.
$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 #if defined(MAJOR_IN_MKDEV)
16386 #include <sys/mkdev.h>
16387 #elif defined(MAJOR_IN_SYSMACROS)
16388 #include <sys/sysmacros.h>
16390 #include <sys/types.h>
16397 makedev(major(0),minor(0));
16403 rm -f conftest.
$ac_objext conftest
$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405 (eval $ac_link) 2>conftest.er1
16407 grep -v '^ *+' conftest.er1
>conftest.err
16409 cat conftest.err
>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try
='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try
='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16427 cat >>confdefs.h
<<\_ACEOF
16428 #define HAVE_DEVICE_MACROS 1
16431 echo "$as_me:$LINENO: result: yes" >&5
16432 echo "${ECHO_T}yes" >&6
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.
$ac_ext >&5
16439 echo "$as_me:$LINENO: result: no" >&5
16440 echo "${ECHO_T}no" >&6
16443 rm -f conftest.err conftest.
$ac_objext \
16444 conftest
$ac_exeext conftest.
$ac_ext
16446 # On OSF/1 V5.1, getaddrinfo is available, but a define
16447 # for [no]getaddrinfo in netdb.h.
16448 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16449 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16450 cat >conftest.
$ac_ext <<_ACEOF
16453 cat confdefs.h
>>conftest.
$ac_ext
16454 cat >>conftest.
$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 #include <sys/types.h>
16458 #include <sys/socket.h>
16466 getaddrinfo(NULL, NULL, NULL, NULL);
16472 rm -f conftest.
$ac_objext conftest
$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>conftest.er1
16476 grep -v '^ *+' conftest.er1
>conftest.err
16478 cat conftest.err
>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try
='test -z "$ac_c_werror_flag"
16482 || test ! -s conftest.err'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try
='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16495 echo "$as_me:$LINENO: result: yes" >&5
16496 echo "${ECHO_T}yes" >&6
16497 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16498 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16499 if test "$cross_compiling" = yes; then
16500 echo "$as_me:$LINENO: result: buggy" >&5
16501 echo "${ECHO_T}buggy" >&6
16502 buggygetaddrinfo
=yes
16504 cat >conftest.
$ac_ext <<_ACEOF
16507 cat confdefs.h
>>conftest.
$ac_ext
16508 cat >>conftest.
$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16511 #include <sys/types.h>
16513 #include <string.h>
16514 #include <sys/socket.h>
16515 #include <netinet/in.h>
16519 int passive, gaierr, inet4 = 0, inet6 = 0;
16520 struct addrinfo hints, *ai, *aitop;
16521 char straddr[INET6_ADDRSTRLEN], strport[16];
16523 for (passive = 0; passive <= 1; passive++) {
16524 memset(&hints, 0, sizeof(hints));
16525 hints.ai_family = AF_UNSPEC;
16526 hints.ai_flags = passive ? AI_PASSIVE : 0;
16527 hints.ai_socktype = SOCK_STREAM;
16528 hints.ai_protocol = IPPROTO_TCP;
16529 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16530 (void)gai_strerror(gaierr);
16533 for (ai = aitop; ai; ai = ai->ai_next) {
16534 if (ai->ai_addr == NULL ||
16535 ai->ai_addrlen == 0 ||
16536 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16537 straddr, sizeof(straddr), strport, sizeof(strport),
16538 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16541 switch (ai->ai_family) {
16543 if (strcmp(strport, "54321") != 0) {
16547 if (strcmp(straddr, "0.0.0.0") != 0) {
16551 if (strcmp(straddr, "127.0.0.1") != 0) {
16558 if (strcmp(strport, "54321") != 0) {
16562 if (strcmp(straddr, "::") != 0) {
16566 if (strcmp(straddr, "::1") != 0) {
16576 /* another family support? */
16582 if (!(inet4 == 0 || inet4 == 2))
16584 if (!(inet6 == 0 || inet6 == 2))
16588 freeaddrinfo(aitop);
16593 freeaddrinfo(aitop);
16598 rm -f conftest
$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 echo "$as_me:$LINENO: result: good" >&5
16610 echo "${ECHO_T}good" >&6
16611 buggygetaddrinfo
=no
16613 echo "$as_me: program exited with status $ac_status" >&5
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.
$ac_ext >&5
16617 ( exit $ac_status )
16618 echo "$as_me:$LINENO: result: buggy" >&5
16619 echo "${ECHO_T}buggy" >&6
16620 buggygetaddrinfo
=yes
16622 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.
$ac_ext >&5
16629 echo "$as_me:$LINENO: result: no" >&5
16630 echo "${ECHO_T}no" >&6
16631 buggygetaddrinfo
=yes
16634 rm -f conftest.err conftest.
$ac_objext \
16635 conftest
$ac_exeext conftest.
$ac_ext
16637 if test "$buggygetaddrinfo" = "yes"; then
16638 if test "$ipv6" = "yes"; then
16639 echo 'Fatal: You must get working getaddrinfo() function.'
16640 echo ' or you can specify "--disable-ipv6"'.
16645 cat >>confdefs.h
<<\_ACEOF
16646 #define HAVE_GETADDRINFO 1
16651 for ac_func
in getnameinfo
16653 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16654 echo "$as_me:$LINENO: checking for $ac_func" >&5
16655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16656 if eval "test \"\${$as_ac_var+set}\" = set"; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 cat >conftest.
$ac_ext <<_ACEOF
16662 cat confdefs.h
>>conftest.
$ac_ext
16663 cat >>conftest.
$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16667 #define $ac_func innocuous_$ac_func
16669 /* System header to define __stub macros and hopefully few prototypes,
16670 which can conflict with char $ac_func (); below.
16671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16672 <limits.h> exists even on freestanding compilers. */
16675 # include <limits.h>
16677 # include <assert.h>
16682 /* Override any gcc2 internal prototype to avoid an error. */
16687 /* We use char because int might match the return type of a gcc2
16688 builtin and then its argument prototype would still apply. */
16690 /* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16696 char (*f) () = $ac_func;
16705 return f != $ac_func;
16710 rm -f conftest.
$ac_objext conftest
$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1
>conftest.err
16716 cat conftest.err
>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try
='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try
='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 eval "$as_ac_var=yes"
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.
$ac_ext >&5
16737 eval "$as_ac_var=no"
16739 rm -f conftest.err conftest.
$ac_objext \
16740 conftest
$ac_exeext conftest.
$ac_ext
16742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16744 if test `eval echo '${'$as_ac_var'}'` = yes; then
16745 cat >>confdefs.h
<<_ACEOF
16746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16753 # checks for structures
16754 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16755 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16756 if test "${ac_cv_header_time+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.
$ac_ext <<_ACEOF
16762 cat confdefs.h
>>conftest.
$ac_ext
16763 cat >>conftest.
$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16766 #include <sys/time.h>
16772 if ((struct tm *) 0)
16778 rm -f conftest.
$ac_objext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16780 (eval $ac_compile) 2>conftest.er1
16782 grep -v '^ *+' conftest.er1
>conftest.err
16784 cat conftest.err
>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try
='test -z "$ac_c_werror_flag"
16788 || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try
='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_header_time
=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.
$ac_ext >&5
16805 ac_cv_header_time
=no
16807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16809 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16810 echo "${ECHO_T}$ac_cv_header_time" >&6
16811 if test $ac_cv_header_time = yes; then
16813 cat >>confdefs.h
<<\_ACEOF
16814 #define TIME_WITH_SYS_TIME 1
16819 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16821 if test "${ac_cv_struct_tm+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 cat >conftest.
$ac_ext <<_ACEOF
16827 cat confdefs.h
>>conftest.
$ac_ext
16828 cat >>conftest.
$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #include <sys/types.h>
16836 struct tm *tp; tp->tm_sec;
16841 rm -f conftest.
$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16845 grep -v '^ *+' conftest.er1
>conftest.err
16847 cat conftest.err
>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try
='test -z "$ac_c_werror_flag"
16851 || test ! -s conftest.err'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try
='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_struct_tm
=time.h
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.
$ac_ext >&5
16868 ac_cv_struct_tm
=sys
/time.h
16870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16873 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16874 if test $ac_cv_struct_tm = sys
/time.h
; then
16876 cat >>confdefs.h
<<\_ACEOF
16877 #define TM_IN_SYS_TIME 1
16882 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16883 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16884 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.
$ac_ext <<_ACEOF
16890 cat confdefs.h
>>conftest.
$ac_ext
16891 cat >>conftest.
$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 #include <sys/types.h>
16894 #include <$ac_cv_struct_tm>
16900 static struct tm ac_aggr;
16901 if (ac_aggr.tm_zone)
16907 rm -f conftest.
$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>conftest.er1
16911 grep -v '^ *+' conftest.er1
>conftest.err
16913 cat conftest.err
>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try
='test -z "$ac_c_werror_flag"
16917 || test ! -s conftest.err'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; } &&
16923 { ac_try
='test -s conftest.$ac_objext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_member_struct_tm_tm_zone
=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.
$ac_ext >&5
16934 cat >conftest.
$ac_ext <<_ACEOF
16937 cat confdefs.h
>>conftest.
$ac_ext
16938 cat >>conftest.
$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 #include <sys/types.h>
16941 #include <$ac_cv_struct_tm>
16947 static struct tm ac_aggr;
16948 if (sizeof ac_aggr.tm_zone)
16954 rm -f conftest.
$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1
>conftest.err
16960 cat conftest.err
>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try
='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try
='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_member_struct_tm_tm_zone
=yes
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.
$ac_ext >&5
16981 ac_cv_member_struct_tm_tm_zone
=no
16983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16987 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16988 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16989 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16991 cat >>confdefs.h
<<_ACEOF
16992 #define HAVE_STRUCT_TM_TM_ZONE 1
16998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17000 cat >>confdefs.h
<<\_ACEOF
17001 #define HAVE_TM_ZONE 1
17005 echo "$as_me:$LINENO: checking for tzname" >&5
17006 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17007 if test "${ac_cv_var_tzname+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.
$ac_ext <<_ACEOF
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 #ifndef tzname /* For SGI. */
17018 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17029 rm -f conftest.
$ac_objext conftest
$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>conftest.er1
17033 grep -v '^ *+' conftest.er1
>conftest.err
17035 cat conftest.err
>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try
='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try
='test -s conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_cv_var_tzname
=yes
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 ac_cv_var_tzname
=no
17058 rm -f conftest.err conftest.
$ac_objext \
17059 conftest
$ac_exeext conftest.
$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17062 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17063 if test $ac_cv_var_tzname = yes; then
17065 cat >>confdefs.h
<<\_ACEOF
17066 #define HAVE_TZNAME 1
17072 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17073 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17074 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 cat >conftest.
$ac_ext <<_ACEOF
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17087 static struct stat ac_aggr;
17088 if (ac_aggr.st_rdev)
17094 rm -f conftest.
$ac_objext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>conftest.er1
17098 grep -v '^ *+' conftest.er1
>conftest.err
17100 cat conftest.err
>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try
='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try
='test -s conftest.$ac_objext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_member_struct_stat_st_rdev
=yes
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.
$ac_ext >&5
17121 cat >conftest.
$ac_ext <<_ACEOF
17124 cat confdefs.h
>>conftest.
$ac_ext
17125 cat >>conftest.
$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 $ac_includes_default
17131 static struct stat ac_aggr;
17132 if (sizeof ac_aggr.st_rdev)
17138 rm -f conftest.
$ac_objext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17140 (eval $ac_compile) 2>conftest.er1
17142 grep -v '^ *+' conftest.er1
>conftest.err
17144 cat conftest.err
>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try
='test -z "$ac_c_werror_flag"
17148 || test ! -s conftest.err'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try
='test -s conftest.$ac_objext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_member_struct_stat_st_rdev
=yes
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.
$ac_ext >&5
17165 ac_cv_member_struct_stat_st_rdev
=no
17167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17171 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17172 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17173 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17175 cat >>confdefs.h
<<_ACEOF
17176 #define HAVE_STRUCT_STAT_ST_RDEV 1
17182 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17183 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17184 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 cat >conftest.
$ac_ext <<_ACEOF
17190 cat confdefs.h
>>conftest.
$ac_ext
17191 cat >>conftest.
$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17197 static struct stat ac_aggr;
17198 if (ac_aggr.st_blksize)
17204 rm -f conftest.
$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17208 grep -v '^ *+' conftest.er1
>conftest.err
17210 cat conftest.err
>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try
='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try
='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_member_struct_stat_st_blksize
=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.
$ac_ext >&5
17231 cat >conftest.
$ac_ext <<_ACEOF
17234 cat confdefs.h
>>conftest.
$ac_ext
17235 cat >>conftest.
$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17241 static struct stat ac_aggr;
17242 if (sizeof ac_aggr.st_blksize)
17248 rm -f conftest.
$ac_objext
17249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>conftest.er1
17252 grep -v '^ *+' conftest.er1
>conftest.err
17254 cat conftest.err
>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try
='test -z "$ac_c_werror_flag"
17258 || test ! -s conftest.err'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try
='test -s conftest.$ac_objext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_member_struct_stat_st_blksize
=yes
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.
$ac_ext >&5
17275 ac_cv_member_struct_stat_st_blksize
=no
17277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17283 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17285 cat >>confdefs.h
<<_ACEOF
17286 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17292 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17293 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17294 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 cat >conftest.
$ac_ext <<_ACEOF
17300 cat confdefs.h
>>conftest.
$ac_ext
17301 cat >>conftest.
$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17307 static struct stat ac_aggr;
17308 if (ac_aggr.st_flags)
17314 rm -f conftest.
$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1
>conftest.err
17320 cat conftest.err
>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try
='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try
='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_member_struct_stat_st_flags
=yes
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.
$ac_ext >&5
17341 cat >conftest.
$ac_ext <<_ACEOF
17344 cat confdefs.h
>>conftest.
$ac_ext
17345 cat >>conftest.
$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 $ac_includes_default
17351 static struct stat ac_aggr;
17352 if (sizeof ac_aggr.st_flags)
17358 rm -f conftest.
$ac_objext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17362 grep -v '^ *+' conftest.er1
>conftest.err
17364 cat conftest.err
>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try
='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try
='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_member_struct_stat_st_flags
=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.
$ac_ext >&5
17385 ac_cv_member_struct_stat_st_flags
=no
17387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17391 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17392 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17393 if test $ac_cv_member_struct_stat_st_flags = yes; then
17395 cat >>confdefs.h
<<_ACEOF
17396 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17402 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17403 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17404 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 cat >conftest.
$ac_ext <<_ACEOF
17410 cat confdefs.h
>>conftest.
$ac_ext
17411 cat >>conftest.
$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17417 static struct stat ac_aggr;
17418 if (ac_aggr.st_gen)
17424 rm -f conftest.
$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17428 grep -v '^ *+' conftest.er1
>conftest.err
17430 cat conftest.err
>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try
='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try
='test -s conftest.$ac_objext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_member_struct_stat_st_gen
=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.
$ac_ext >&5
17451 cat >conftest.
$ac_ext <<_ACEOF
17454 cat confdefs.h
>>conftest.
$ac_ext
17455 cat >>conftest.
$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 $ac_includes_default
17461 static struct stat ac_aggr;
17462 if (sizeof ac_aggr.st_gen)
17468 rm -f conftest.
$ac_objext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17470 (eval $ac_compile) 2>conftest.er1
17472 grep -v '^ *+' conftest.er1
>conftest.err
17474 cat conftest.err
>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try
='test -z "$ac_c_werror_flag"
17478 || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try
='test -s conftest.$ac_objext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_member_struct_stat_st_gen
=yes
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.
$ac_ext >&5
17495 ac_cv_member_struct_stat_st_gen
=no
17497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17499 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17501 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17502 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17503 if test $ac_cv_member_struct_stat_st_gen = yes; then
17505 cat >>confdefs.h
<<_ACEOF
17506 #define HAVE_STRUCT_STAT_ST_GEN 1
17512 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17513 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17514 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17527 static struct stat ac_aggr;
17528 if (ac_aggr.st_birthtime)
17534 rm -f conftest.
$ac_objext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17536 (eval $ac_compile) 2>conftest.er1
17538 grep -v '^ *+' conftest.er1
>conftest.err
17540 cat conftest.err
>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try
='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try
='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_member_struct_stat_st_birthtime
=yes
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.
$ac_ext >&5
17561 cat >conftest.
$ac_ext <<_ACEOF
17564 cat confdefs.h
>>conftest.
$ac_ext
17565 cat >>conftest.
$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 $ac_includes_default
17571 static struct stat ac_aggr;
17572 if (sizeof ac_aggr.st_birthtime)
17578 rm -f conftest.
$ac_objext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580 (eval $ac_compile) 2>conftest.er1
17582 grep -v '^ *+' conftest.er1
>conftest.err
17584 cat conftest.err
>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try
='test -z "$ac_c_werror_flag"
17588 || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try
='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_member_struct_stat_st_birthtime
=yes
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.
$ac_ext >&5
17605 ac_cv_member_struct_stat_st_birthtime
=no
17607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17613 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17615 cat >>confdefs.h
<<_ACEOF
17616 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17622 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17623 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17624 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.
$ac_ext <<_ACEOF
17630 cat confdefs.h
>>conftest.
$ac_ext
17631 cat >>conftest.
$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17637 static struct stat ac_aggr;
17638 if (ac_aggr.st_blocks)
17644 rm -f conftest.
$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
17648 grep -v '^ *+' conftest.er1
>conftest.err
17650 cat conftest.err
>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try
='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try
='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_member_struct_stat_st_blocks
=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.
$ac_ext >&5
17671 cat >conftest.
$ac_ext <<_ACEOF
17674 cat confdefs.h
>>conftest.
$ac_ext
17675 cat >>conftest.
$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 $ac_includes_default
17681 static struct stat ac_aggr;
17682 if (sizeof ac_aggr.st_blocks)
17688 rm -f conftest.
$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>conftest.er1
17692 grep -v '^ *+' conftest.er1
>conftest.err
17694 cat conftest.err
>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try
='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try
='test -s conftest.$ac_objext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_cv_member_struct_stat_st_blocks
=yes
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.
$ac_ext >&5
17715 ac_cv_member_struct_stat_st_blocks
=no
17717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17723 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17725 cat >>confdefs.h
<<_ACEOF
17726 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17730 cat >>confdefs.h
<<\_ACEOF
17731 #define HAVE_ST_BLOCKS 1
17736 "fileblocks.$ac_objext" | \
17737 *" fileblocks.$ac_objext" | \
17738 "fileblocks.$ac_objext "* | \
17739 *" fileblocks.$ac_objext "* ) ;;
17740 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17747 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17748 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17749 if test "${ac_cv_header_time_altzone+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.
$ac_ext <<_ACEOF
17755 cat confdefs.h
>>conftest.
$ac_ext
17756 cat >>conftest.
$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17767 rm -f conftest.
$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1
>conftest.err
17773 cat conftest.err
>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try
='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try
='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_header_time_altzone
=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.
$ac_ext >&5
17794 ac_cv_header_time_altzone
=no
17796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17799 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17800 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17801 if test $ac_cv_header_time_altzone = yes; then
17803 cat >>confdefs.h
<<\_ACEOF
17804 #define HAVE_ALTZONE 1
17810 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17811 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17812 cat >conftest.
$ac_ext <<_ACEOF
17815 cat confdefs.h
>>conftest.
$ac_ext
17816 cat >>conftest.
$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17819 #include <sys/types.h>
17820 #include <sys/select.h>
17821 #include <sys/time.h>
17831 rm -f conftest.
$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>conftest.er1
17835 grep -v '^ *+' conftest.er1
>conftest.err
17837 cat conftest.err
>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try
='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try
='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17855 cat >>confdefs.h
<<\_ACEOF
17856 #define SYS_SELECT_WITH_SYS_TIME 1
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.
$ac_ext >&5
17866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17867 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17868 echo "${ECHO_T}$was_it_defined" >&6
17870 echo "$as_me:$LINENO: checking for addrinfo" >&5
17871 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17872 if test "${ac_cv_struct_addrinfo+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 cat >conftest.
$ac_ext <<_ACEOF
17878 cat confdefs.h
>>conftest.
$ac_ext
17879 cat >>conftest.
$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17882 # include <netdb.h>
17891 rm -f conftest.
$ac_objext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893 (eval $ac_compile) 2>conftest.er1
17895 grep -v '^ *+' conftest.er1
>conftest.err
17897 cat conftest.err
>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try
='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try
='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_struct_addrinfo
=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.
$ac_ext >&5
17918 ac_cv_struct_addrinfo
=no
17920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17923 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17924 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17925 if test $ac_cv_struct_addrinfo = yes; then
17927 cat >>confdefs.h
<<\_ACEOF
17928 #define HAVE_ADDRINFO 1
17933 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17934 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17935 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 cat >conftest.
$ac_ext <<_ACEOF
17941 cat confdefs.h
>>conftest.
$ac_ext
17942 cat >>conftest.
$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 # include <sys/types.h>
17946 # include <sys/socket.h>
17950 struct sockaddr_storage s
17955 rm -f conftest.
$ac_objext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957 (eval $ac_compile) 2>conftest.er1
17959 grep -v '^ *+' conftest.er1
>conftest.err
17961 cat conftest.err
>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try
='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try
='test -s conftest.$ac_objext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_cv_struct_sockaddr_storage
=yes
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.
$ac_ext >&5
17982 ac_cv_struct_sockaddr_storage
=no
17984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17987 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17988 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17989 if test $ac_cv_struct_sockaddr_storage = yes; then
17991 cat >>confdefs.h
<<\_ACEOF
17992 #define HAVE_SOCKADDR_STORAGE 1
17997 # checks for compiler characteristics
18000 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18001 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18002 if test "${ac_cv_c_char_unsigned+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 cat >conftest.
$ac_ext <<_ACEOF
18008 cat confdefs.h
>>conftest.
$ac_ext
18009 cat >>conftest.
$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 $ac_includes_default
18015 static int test_array [1 - 2 * !(((char) -1) < 0)];
18022 rm -f conftest.
$ac_objext
18023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18024 (eval $ac_compile) 2>conftest.er1
18026 grep -v '^ *+' conftest.er1
>conftest.err
18028 cat conftest.err
>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try
='test -z "$ac_c_werror_flag"
18032 || test ! -s conftest.err'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try
='test -s conftest.$ac_objext'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_cv_c_char_unsigned
=no
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.
$ac_ext >&5
18049 ac_cv_c_char_unsigned
=yes
18051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18054 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18055 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18056 cat >>confdefs.h
<<\_ACEOF
18057 #define __CHAR_UNSIGNED__ 1
18062 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18064 if test "${ac_cv_c_const+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 cat >conftest.
$ac_ext <<_ACEOF
18070 cat confdefs.h
>>conftest.
$ac_ext
18071 cat >>conftest.
$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18077 /* FIXME: Include the comments suggested by Paul. */
18078 #ifndef __cplusplus
18079 /* Ultrix mips cc rejects this. */
18080 typedef int charset[2];
18082 /* SunOS 4.1.1 cc rejects this. */
18083 char const *const *ccp;
18085 /* NEC SVR4.0.2 mips cc rejects this. */
18086 struct point {int x, y;};
18087 static struct point const zero = {0,0};
18088 /* AIX XL C 1.02.0.0 rejects this.
18089 It does not let you subtract one const X* pointer from another in
18090 an arm of an if-expression whose if-part is not a constant
18092 const char *g = "string";
18093 ccp = &g + (g ? g-g : 0);
18094 /* HPUX 7.0 cc rejects these. */
18097 ccp = (char const *const *) p;
18098 { /* SCO 3.2v4 cc rejects this. */
18100 char const *s = 0 ? (char *) 0 : (char const *) 0;
18104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18105 int x[] = {25, 17};
18106 const int *foo = &x[0];
18109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18110 typedef const int *iptr;
18114 { /* AIX XL C 1.02.0.0 rejects this saying
18115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18116 struct s { int j; const int *ap[3]; };
18117 struct s *b; b->j = 5;
18119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18120 const int foo = 10;
18128 rm -f conftest.
$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>conftest.er1
18132 grep -v '^ *+' conftest.er1
>conftest.err
18134 cat conftest.err
>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try
='test -z "$ac_c_werror_flag"
18138 || test ! -s conftest.err'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try
='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.
$ac_ext >&5
18157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18159 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18160 echo "${ECHO_T}$ac_cv_c_const" >&6
18161 if test $ac_cv_c_const = no
; then
18163 cat >>confdefs.h
<<\_ACEOF
18171 echo "$as_me:$LINENO: checking for working volatile" >&5
18172 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18173 cat >conftest.
$ac_ext <<_ACEOF
18176 cat confdefs.h
>>conftest.
$ac_ext
18177 cat >>conftest.
$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18183 volatile int x; x = 0;
18188 rm -f conftest.
$ac_objext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18190 (eval $ac_compile) 2>conftest.er1
18192 grep -v '^ *+' conftest.er1
>conftest.err
18194 cat conftest.err
>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try
='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try
='test -s conftest.$ac_objext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18216 cat >>confdefs.h
<<\_ACEOF
18222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18223 echo "$as_me:$LINENO: result: $works" >&5
18224 echo "${ECHO_T}$works" >&6
18227 echo "$as_me:$LINENO: checking for working signed char" >&5
18228 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18229 cat >conftest.
$ac_ext <<_ACEOF
18232 cat confdefs.h
>>conftest.
$ac_ext
18233 cat >>conftest.
$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18244 rm -f conftest.
$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18248 grep -v '^ *+' conftest.er1
>conftest.err
18250 cat conftest.err
>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try
='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try
='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.
$ac_ext >&5
18272 cat >>confdefs.h
<<\_ACEOF
18278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18279 echo "$as_me:$LINENO: result: $works" >&5
18280 echo "${ECHO_T}$works" >&6
18283 echo "$as_me:$LINENO: checking for prototypes" >&5
18284 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18285 cat >conftest.
$ac_ext <<_ACEOF
18288 cat confdefs.h
>>conftest.
$ac_ext
18289 cat >>conftest.
$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 int foo(int x) { return 0; }
18300 rm -f conftest.
$ac_objext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302 (eval $ac_compile) 2>conftest.er1
18304 grep -v '^ *+' conftest.er1
>conftest.err
18306 cat conftest.err
>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try
='test -z "$ac_c_werror_flag"
18310 || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try
='test -s conftest.$ac_objext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18324 cat >>confdefs.h
<<\_ACEOF
18325 #define HAVE_PROTOTYPES 1
18328 have_prototypes
=yes
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.
$ac_ext >&5
18335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18336 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18337 echo "${ECHO_T}$have_prototypes" >&6
18340 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18341 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18342 cat >conftest.
$ac_ext <<_ACEOF
18345 cat confdefs.h
>>conftest.
$ac_ext
18346 cat >>conftest.
$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18349 #include <stdarg.h>
18350 int foo(int x, ...) {
18354 va_arg(va, char *);
18355 va_arg(va, double);
18362 return foo(10, "", 3.14);
18367 rm -f conftest.
$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try
='test -s conftest.$ac_objext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18391 cat >>confdefs.h
<<\_ACEOF
18392 #define HAVE_STDARG_PROTOTYPES 1
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.
$ac_ext >&5
18402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18403 echo "$as_me:$LINENO: result: $works" >&5
18404 echo "${ECHO_T}$works" >&6
18406 # check for socketpair
18407 echo "$as_me:$LINENO: checking for socketpair" >&5
18408 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18409 cat >conftest.
$ac_ext <<_ACEOF
18412 cat confdefs.h
>>conftest.
$ac_ext
18413 cat >>conftest.
$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18416 #include <sys/types.h>
18417 #include <sys/socket.h>
18427 rm -f conftest.
$ac_objext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>conftest.er1
18431 grep -v '^ *+' conftest.er1
>conftest.err
18433 cat conftest.err
>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try
='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try
='test -s conftest.$ac_objext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18450 cat >>confdefs.h
<<\_ACEOF
18451 #define HAVE_SOCKETPAIR 1
18454 echo "$as_me:$LINENO: result: yes" >&5
18455 echo "${ECHO_T}yes" >&6
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.
$ac_ext >&5
18460 echo "$as_me:$LINENO: result: no" >&5
18461 echo "${ECHO_T}no" >&6
18464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18466 # check if sockaddr has sa_len member
18467 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18468 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18469 cat >conftest.
$ac_ext <<_ACEOF
18472 cat confdefs.h
>>conftest.
$ac_ext
18473 cat >>conftest.
$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <sys/types.h>
18476 #include <sys/socket.h>
18486 rm -f conftest.
$ac_objext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18488 (eval $ac_compile) 2>conftest.er1
18490 grep -v '^ *+' conftest.er1
>conftest.err
18492 cat conftest.err
>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try
='test -z "$ac_c_werror_flag"
18496 || test ! -s conftest.err'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try
='test -s conftest.$ac_objext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 echo "$as_me:$LINENO: result: yes" >&5
18509 echo "${ECHO_T}yes" >&6
18511 cat >>confdefs.h
<<\_ACEOF
18512 #define HAVE_SOCKADDR_SA_LEN 1
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.
$ac_ext >&5
18519 echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6
18522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18524 va_list_is_array
=no
18525 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18526 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18527 cat >conftest.
$ac_ext <<_ACEOF
18530 cat confdefs.h
>>conftest.
$ac_ext
18531 cat >>conftest.
$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18534 #ifdef HAVE_STDARG_PROTOTYPES
18535 #include <stdarg.h>
18537 #include <varargs.h>
18543 va_list list1, list2; list1 = list2;
18548 rm -f conftest.
$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18552 grep -v '^ *+' conftest.er1
>conftest.err
18554 cat conftest.err
>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try
='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try
='test -s conftest.$ac_objext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.
$ac_ext >&5
18577 cat >>confdefs.h
<<\_ACEOF
18578 #define VA_LIST_IS_ARRAY 1
18581 va_list_is_array
=yes
18584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18585 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18586 echo "${ECHO_T}$va_list_is_array" >&6
18588 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18592 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18593 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18594 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 cat >conftest.
$ac_ext <<_ACEOF
18600 cat confdefs.h
>>conftest.
$ac_ext
18601 cat >>conftest.
$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18605 #define gethostbyname_r innocuous_gethostbyname_r
18607 /* System header to define __stub macros and hopefully few prototypes,
18608 which can conflict with char gethostbyname_r (); below.
18609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18610 <limits.h> exists even on freestanding compilers. */
18613 # include <limits.h>
18615 # include <assert.h>
18618 #undef gethostbyname_r
18620 /* Override any gcc2 internal prototype to avoid an error. */
18625 /* We use char because int might match the return type of a gcc2
18626 builtin and then its argument prototype would still apply. */
18627 char gethostbyname_r ();
18628 /* The GNU C library defines this for functions which it implements
18629 to always fail with ENOSYS. Some functions are actually named
18630 something starting with __ and the normal name is an alias. */
18631 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18634 char (*f) () = gethostbyname_r;
18643 return f != gethostbyname_r;
18648 rm -f conftest.
$ac_objext conftest
$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1
>conftest.err
18654 cat conftest.err
>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try
='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try
='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_func_gethostbyname_r
=yes
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.
$ac_ext >&5
18675 ac_cv_func_gethostbyname_r
=no
18677 rm -f conftest.err conftest.
$ac_objext \
18678 conftest
$ac_exeext conftest.
$ac_ext
18680 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18681 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18682 if test $ac_cv_func_gethostbyname_r = yes; then
18684 cat >>confdefs.h
<<\_ACEOF
18685 #define HAVE_GETHOSTBYNAME_R 1
18688 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18689 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18691 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18692 cat >conftest.
$ac_ext <<_ACEOF
18695 cat confdefs.h
>>conftest.
$ac_ext
18696 cat >>conftest.
$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18699 # include <netdb.h>
18706 struct hostent *he, *res;
18711 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18717 rm -f conftest.
$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18721 grep -v '^ *+' conftest.er1
>conftest.err
18723 cat conftest.err
>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try
='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try
='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18740 cat >>confdefs.h
<<\_ACEOF
18741 #define HAVE_GETHOSTBYNAME_R 1
18745 cat >>confdefs.h
<<\_ACEOF
18746 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18749 echo "$as_me:$LINENO: result: yes" >&5
18750 echo "${ECHO_T}yes" >&6
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.
$ac_ext >&5
18757 echo "$as_me:$LINENO: result: no" >&5
18758 echo "${ECHO_T}no" >&6
18759 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18760 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18761 cat >conftest.
$ac_ext <<_ACEOF
18764 cat confdefs.h
>>conftest.
$ac_ext
18765 cat >>conftest.
$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18768 # include <netdb.h>
18775 struct hostent *he;
18780 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18786 rm -f conftest.
$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1
>conftest.err
18792 cat conftest.err
>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try
='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try
='test -s conftest.$ac_objext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18809 cat >>confdefs.h
<<\_ACEOF
18810 #define HAVE_GETHOSTBYNAME_R 1
18814 cat >>confdefs.h
<<\_ACEOF
18815 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18818 echo "$as_me:$LINENO: result: yes" >&5
18819 echo "${ECHO_T}yes" >&6
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.
$ac_ext >&5
18826 echo "$as_me:$LINENO: result: no" >&5
18827 echo "${ECHO_T}no" >&6
18828 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18829 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18830 cat >conftest.
$ac_ext <<_ACEOF
18833 cat confdefs.h
>>conftest.
$ac_ext
18834 cat >>conftest.
$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 # include <netdb.h>
18844 struct hostent *he;
18845 struct hostent_data data;
18847 (void) gethostbyname_r(name, he, &data);
18853 rm -f conftest.
$ac_objext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855 (eval $ac_compile) 2>conftest.er1
18857 grep -v '^ *+' conftest.er1
>conftest.err
18859 cat conftest.err
>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try
='test -z "$ac_c_werror_flag"
18863 || test ! -s conftest.err'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try
='test -s conftest.$ac_objext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18876 cat >>confdefs.h
<<\_ACEOF
18877 #define HAVE_GETHOSTBYNAME_R 1
18881 cat >>confdefs.h
<<\_ACEOF
18882 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18885 echo "$as_me:$LINENO: result: yes" >&5
18886 echo "${ECHO_T}yes" >&6
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.
$ac_ext >&5
18893 echo "$as_me:$LINENO: result: no" >&5
18894 echo "${ECHO_T}no" >&6
18897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18909 for ac_func
in gethostbyname
18911 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18912 echo "$as_me:$LINENO: checking for $ac_func" >&5
18913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18914 if eval "test \"\${$as_ac_var+set}\" = set"; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 cat >conftest.
$ac_ext <<_ACEOF
18920 cat confdefs.h
>>conftest.
$ac_ext
18921 cat >>conftest.
$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18925 #define $ac_func innocuous_$ac_func
18927 /* System header to define __stub macros and hopefully few prototypes,
18928 which can conflict with char $ac_func (); below.
18929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18930 <limits.h> exists even on freestanding compilers. */
18933 # include <limits.h>
18935 # include <assert.h>
18940 /* Override any gcc2 internal prototype to avoid an error. */
18945 /* We use char because int might match the return type of a gcc2
18946 builtin and then its argument prototype would still apply. */
18948 /* The GNU C library defines this for functions which it implements
18949 to always fail with ENOSYS. Some functions are actually named
18950 something starting with __ and the normal name is an alias. */
18951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18954 char (*f) () = $ac_func;
18963 return f != $ac_func;
18968 rm -f conftest.
$ac_objext conftest
$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>conftest.er1
18972 grep -v '^ *+' conftest.er1
>conftest.err
18974 cat conftest.err
>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try
='test -z "$ac_c_werror_flag"
18978 || test ! -s conftest.err'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try
='test -s conftest$ac_exeext'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 eval "$as_ac_var=yes"
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.
$ac_ext >&5
18995 eval "$as_ac_var=no"
18997 rm -f conftest.err conftest.
$ac_objext \
18998 conftest
$ac_exeext conftest.
$ac_ext
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19002 if test `eval echo '${'$as_ac_var'}'` = yes; then
19003 cat >>confdefs.h
<<_ACEOF
19004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19019 # checks for system services
19022 # Linux requires this for correct f.p. operations
19023 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19024 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19025 if test "${ac_cv_func___fpu_control+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 cat >conftest.
$ac_ext <<_ACEOF
19031 cat confdefs.h
>>conftest.
$ac_ext
19032 cat >>conftest.
$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19036 #define __fpu_control innocuous___fpu_control
19038 /* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char __fpu_control (); below.
19040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19041 <limits.h> exists even on freestanding compilers. */
19044 # include <limits.h>
19046 # include <assert.h>
19049 #undef __fpu_control
19051 /* Override any gcc2 internal prototype to avoid an error. */
19056 /* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058 char __fpu_control ();
19059 /* The GNU C library defines this for functions which it implements
19060 to always fail with ENOSYS. Some functions are actually named
19061 something starting with __ and the normal name is an alias. */
19062 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19065 char (*f) () = __fpu_control;
19074 return f != __fpu_control;
19079 rm -f conftest.
$ac_objext conftest
$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19083 grep -v '^ *+' conftest.er1
>conftest.err
19085 cat conftest.err
>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try
='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try
='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_func___fpu_control
=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.
$ac_ext >&5
19106 ac_cv_func___fpu_control
=no
19108 rm -f conftest.err conftest.
$ac_objext \
19109 conftest
$ac_exeext conftest.
$ac_ext
19111 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19112 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19113 if test $ac_cv_func___fpu_control = yes; then
19117 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19118 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19119 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_check_lib_save_LIBS
=$LIBS
19123 LIBS
="-lieee $LIBS"
19124 cat >conftest.
$ac_ext <<_ACEOF
19127 cat confdefs.h
>>conftest.
$ac_ext
19128 cat >>conftest.
$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19131 /* Override any gcc2 internal prototype to avoid an error. */
19135 /* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137 char __fpu_control ();
19146 rm -f conftest.
$ac_objext conftest
$ac_exeext
19147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148 (eval $ac_link) 2>conftest.er1
19150 grep -v '^ *+' conftest.er1
>conftest.err
19152 cat conftest.err
>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
19155 { ac_try
='test -z "$ac_c_werror_flag"
19156 || test ! -s conftest.err'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try
='test -s conftest$ac_exeext'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 ac_cv_lib_ieee___fpu_control
=yes
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.
$ac_ext >&5
19173 ac_cv_lib_ieee___fpu_control
=no
19175 rm -f conftest.err conftest.
$ac_objext \
19176 conftest
$ac_exeext conftest.
$ac_ext
19177 LIBS
=$ac_check_lib_save_LIBS
19179 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19180 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19181 if test $ac_cv_lib_ieee___fpu_control = yes; then
19182 cat >>confdefs.h
<<_ACEOF
19183 #define HAVE_LIBIEEE 1
19186 LIBS
="-lieee $LIBS"
19194 # Check for --with-fpectl
19195 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19196 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19198 # Check whether --with-fpectl or --without-fpectl was given.
19199 if test "${with_fpectl+set}" = set; then
19200 withval
="$with_fpectl"
19202 if test "$withval" != no
19205 cat >>confdefs.h
<<\_ACEOF
19206 #define WANT_SIGFPE_HANDLER 1
19209 echo "$as_me:$LINENO: result: yes" >&5
19210 echo "${ECHO_T}yes" >&6
19211 else echo "$as_me:$LINENO: result: no" >&5
19212 echo "${ECHO_T}no" >&6
19215 echo "$as_me:$LINENO: result: no" >&5
19216 echo "${ECHO_T}no" >&6
19219 # check for --with-libm=...
19221 case $ac_sys_system in
19226 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19227 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19229 # Check whether --with-libm or --without-libm was given.
19230 if test "${with_libm+set}" = set; then
19231 withval
="$with_libm"
19233 if test "$withval" = no
19235 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19236 echo "${ECHO_T}force LIBM empty" >&6
19237 elif test "$withval" != yes
19239 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19240 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19241 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19242 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19243 { (exit 1); exit 1; }; }
19246 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19247 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19250 # check for --with-libc=...
19252 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19253 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19255 # Check whether --with-libc or --without-libc was given.
19256 if test "${with_libc+set}" = set; then
19257 withval
="$with_libc"
19259 if test "$withval" = no
19261 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19262 echo "${ECHO_T}force LIBC empty" >&6
19263 elif test "$withval" != yes
19265 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19266 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19267 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19268 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19269 { (exit 1); exit 1; }; }
19272 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19273 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19276 # check for hypot() in math library
19280 for ac_func
in hypot
19282 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19283 echo "$as_me:$LINENO: checking for $ac_func" >&5
19284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19285 if eval "test \"\${$as_ac_var+set}\" = set"; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 cat >conftest.
$ac_ext <<_ACEOF
19291 cat confdefs.h
>>conftest.
$ac_ext
19292 cat >>conftest.
$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19296 #define $ac_func innocuous_$ac_func
19298 /* System header to define __stub macros and hopefully few prototypes,
19299 which can conflict with char $ac_func (); below.
19300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19301 <limits.h> exists even on freestanding compilers. */
19304 # include <limits.h>
19306 # include <assert.h>
19311 /* Override any gcc2 internal prototype to avoid an error. */
19316 /* We use char because int might match the return type of a gcc2
19317 builtin and then its argument prototype would still apply. */
19319 /* The GNU C library defines this for functions which it implements
19320 to always fail with ENOSYS. Some functions are actually named
19321 something starting with __ and the normal name is an alias. */
19322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19325 char (*f) () = $ac_func;
19334 return f != $ac_func;
19339 rm -f conftest.
$ac_objext conftest
$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>conftest.er1
19343 grep -v '^ *+' conftest.er1
>conftest.err
19345 cat conftest.err
>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try
='test -z "$ac_c_werror_flag"
19349 || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try
='test -s conftest$ac_exeext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 eval "$as_ac_var=yes"
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.
$ac_ext >&5
19366 eval "$as_ac_var=no"
19368 rm -f conftest.err conftest.
$ac_objext \
19369 conftest
$ac_exeext conftest.
$ac_ext
19371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19373 if test `eval echo '${'$as_ac_var'}'` = yes; then
19374 cat >>confdefs.h
<<_ACEOF
19375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19380 "$ac_func.$ac_objext" | \
19381 *" $ac_func.$ac_objext" | \
19382 "$ac_func.$ac_objext "* | \
19383 *" $ac_func.$ac_objext "* ) ;;
19384 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19393 # check for wchar.h
19394 if test "${ac_cv_header_wchar_h+set}" = set; then
19395 echo "$as_me:$LINENO: checking for wchar.h" >&5
19396 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19397 if test "${ac_cv_header_wchar_h+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19401 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19403 # Is the header compilable?
19404 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19405 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19406 cat >conftest.
$ac_ext <<_ACEOF
19409 cat confdefs.h
>>conftest.
$ac_ext
19410 cat >>conftest.
$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19415 rm -f conftest.
$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>conftest.er1
19419 grep -v '^ *+' conftest.er1
>conftest.err
19421 cat conftest.err
>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try
='test -z "$ac_c_werror_flag"
19425 || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try
='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler
=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.
$ac_ext >&5
19442 ac_header_compiler
=no
19444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19450 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19451 cat >conftest.
$ac_ext <<_ACEOF
19454 cat confdefs.h
>>conftest.
$ac_ext
19455 cat >>conftest.
$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1
>conftest.err
19464 cat conftest.err
>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev
/null
; then
19467 if test -s conftest.err
; then
19468 ac_cpp_err
=$ac_c_preproc_warn_flag
19469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc
=yes
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.
$ac_ext >&5
19482 ac_header_preproc
=no
19484 rm -f conftest.err conftest.
$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19491 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc
=yes
19498 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19512 ## ------------------------------------------------ ##
19513 ## Report this to http://www.python.org/python-bugs ##
19514 ## ------------------------------------------------ ##
19517 sed "s/^/$as_me: WARNING: /" >&2
19520 echo "$as_me:$LINENO: checking for wchar.h" >&5
19521 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19522 if test "${ac_cv_header_wchar_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_cv_header_wchar_h
=$ac_header_preproc
19527 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19531 if test $ac_cv_header_wchar_h = yes; then
19534 cat >>confdefs.h
<<\_ACEOF
19535 #define HAVE_WCHAR_H 1
19547 # determine wchar_t size
19548 if test "$wchar_h" = yes
19550 echo "$as_me:$LINENO: checking for wchar_t" >&5
19551 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19552 if test "${ac_cv_type_wchar_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 cat >conftest.
$ac_ext <<_ACEOF
19558 cat confdefs.h
>>conftest.
$ac_ext
19559 cat >>conftest.
$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19568 if (sizeof (wchar_t))
19574 rm -f conftest.
$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19578 grep -v '^ *+' conftest.er1
>conftest.err
19580 cat conftest.err
>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try
='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try
='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_cv_type_wchar_t
=yes
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.
$ac_ext >&5
19601 ac_cv_type_wchar_t
=no
19603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19605 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19606 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19608 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19609 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19610 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 if test "$ac_cv_type_wchar_t" = yes; then
19614 # The cast to unsigned long works around a bug in the HP C Compiler
19615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19617 # This bug is HP SR number 8606223364.
19618 if test "$cross_compiling" = yes; then
19619 # Depending upon the size, compute the lo and hi bounds.
19620 cat >conftest.
$ac_ext <<_ACEOF
19623 cat confdefs.h
>>conftest.
$ac_ext
19624 cat >>conftest.
$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19631 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19638 rm -f conftest.
$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1
>conftest.err
19644 cat conftest.err
>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try
='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try
='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19662 cat >conftest.
$ac_ext <<_ACEOF
19665 cat confdefs.h
>>conftest.
$ac_ext
19666 cat >>conftest.
$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19673 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19680 rm -f conftest.
$ac_objext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682 (eval $ac_compile) 2>conftest.er1
19684 grep -v '^ *+' conftest.er1
>conftest.err
19686 cat conftest.err
>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try
='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try
='test -s conftest.$ac_objext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_hi
=$ac_mid; break
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.
$ac_ext >&5
19707 ac_lo
=`expr $ac_mid + 1`
19708 if test $ac_lo -le $ac_mid; then
19712 ac_mid
=`expr 2 '*' $ac_mid + 1`
19714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.
$ac_ext >&5
19720 cat >conftest.
$ac_ext <<_ACEOF
19723 cat confdefs.h
>>conftest.
$ac_ext
19724 cat >>conftest.
$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19731 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19738 rm -f conftest.
$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19742 grep -v '^ *+' conftest.er1
>conftest.err
19744 cat conftest.err
>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try
='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try
='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19762 cat >conftest.
$ac_ext <<_ACEOF
19765 cat confdefs.h
>>conftest.
$ac_ext
19766 cat >>conftest.
$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19773 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19780 rm -f conftest.
$ac_objext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19782 (eval $ac_compile) 2>conftest.er1
19784 grep -v '^ *+' conftest.er1
>conftest.err
19786 cat conftest.err
>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try
='test -z "$ac_c_werror_flag"
19790 || test ! -s conftest.err'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try
='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_lo
=$ac_mid; break
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.
$ac_ext >&5
19807 ac_hi
=`expr '(' $ac_mid ')' - 1`
19808 if test $ac_mid -le $ac_hi; then
19812 ac_mid
=`expr 2 '*' $ac_mid`
19814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.
$ac_ext >&5
19822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19825 # Binary search between lo and hi bounds.
19826 while test "x$ac_lo" != "x$ac_hi"; do
19827 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19828 cat >conftest.
$ac_ext <<_ACEOF
19831 cat confdefs.h
>>conftest.
$ac_ext
19832 cat >>conftest.
$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19839 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19846 rm -f conftest.
$ac_objext
19847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>conftest.er1
19850 grep -v '^ *+' conftest.er1
>conftest.err
19852 cat conftest.err
>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try
='test -z "$ac_c_werror_flag"
19856 || test ! -s conftest.err'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try
='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.
$ac_ext >&5
19873 ac_lo
=`expr '(' $ac_mid ')' + 1`
19875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19878 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19880 See \`config.log' for more details." >&5
19881 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19882 See \`config.log' for more details." >&2;}
19883 { (exit 1); exit 1; }; } ;;
19886 if test "$cross_compiling" = yes; then
19887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19888 See \`config.log' for more details." >&5
19889 echo "$as_me: error: cannot run test program while cross compiling
19890 See \`config.log' for more details." >&2;}
19891 { (exit 1); exit 1; }; }
19893 cat >conftest.
$ac_ext <<_ACEOF
19896 cat confdefs.h
>>conftest.
$ac_ext
19897 cat >>conftest.
$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19901 long longval () { return (long) (sizeof (wchar_t)); }
19902 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19904 #include <stdlib.h>
19909 FILE *f = fopen ("conftest.val", "w");
19912 if (((long) (sizeof (wchar_t))) < 0)
19914 long i = longval ();
19915 if (i != ((long) (sizeof (wchar_t))))
19917 fprintf (f, "%ld\n", i);
19921 unsigned long i = ulongval ();
19922 if (i != ((long) (sizeof (wchar_t))))
19924 fprintf (f, "%lu\n", i);
19926 exit (ferror (f) || fclose (f) != 0);
19932 rm -f conftest
$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19945 echo "$as_me: program exited with status $ac_status" >&5
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.
$ac_ext >&5
19949 ( exit $ac_status )
19950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19951 See \`config.log' for more details." >&5
19952 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19953 See \`config.log' for more details." >&2;}
19954 { (exit 1); exit 1; }; }
19956 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19961 ac_cv_sizeof_wchar_t
=0
19964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19965 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19966 cat >>confdefs.h
<<_ACEOF
19967 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19973 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19974 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19976 cat >conftest.
$ac_ext <<_ACEOF
19979 cat confdefs.h
>>conftest.
$ac_ext
19980 cat >>conftest.
$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19984 #if TCL_UTF_MAX != 6
19985 # error "NOT UCS4_TCL"
19995 rm -f conftest.
$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19999 grep -v '^ *+' conftest.er1
>conftest.err
20001 cat conftest.err
>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try
='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try
='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20019 cat >>confdefs.h
<<\_ACEOF
20020 #define HAVE_UCS4_TCL 1
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.
$ac_ext >&5
20030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20031 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20032 echo "${ECHO_T}$have_ucs4_tcl" >&6
20034 # check whether wchar_t is signed or not
20035 if test "$wchar_h" = yes
20037 # check whether wchar_t is signed or not
20038 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20039 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20040 if test "${ac_cv_wchar_t_signed+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 if test "$cross_compiling" = yes; then
20045 ac_cv_wchar_t_signed
=yes
20047 cat >conftest.
$ac_ext <<_ACEOF
20050 cat confdefs.h
>>conftest.
$ac_ext
20051 cat >>conftest.
$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20057 /* Success: exit code 0 */
20058 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20062 rm -f conftest
$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064 (eval $ac_link) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_wchar_t_signed
=yes
20075 echo "$as_me: program exited with status $ac_status" >&5
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.
$ac_ext >&5
20079 ( exit $ac_status )
20080 ac_cv_wchar_t_signed
=no
20082 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20086 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20087 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20090 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20091 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20092 # Check whether --enable-unicode or --disable-unicode was given.
20093 if test "${enable_unicode+set}" = set; then
20094 enableval
="$enable_unicode"
20100 if test $enable_unicode = yes
20102 # Without any arguments, Py_UNICODE defaults to two-byte mode
20103 case "$have_ucs4_tcl" in
20104 yes) enable_unicode
="ucs4"
20106 *) enable_unicode
="ucs2"
20113 case "$enable_unicode" in
20114 ucs2
) unicode_size
="2"
20115 cat >>confdefs.h
<<\_ACEOF
20116 #define Py_UNICODE_SIZE 2
20120 ucs4
) unicode_size
="4"
20121 cat >>confdefs.h
<<\_ACEOF
20122 #define Py_UNICODE_SIZE 4
20132 if test "$enable_unicode" = "no"
20135 echo "$as_me:$LINENO: result: not used" >&5
20136 echo "${ECHO_T}not used" >&6
20138 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20140 cat >>confdefs.h
<<\_ACEOF
20141 #define Py_USING_UNICODE 1
20145 # wchar_t is only usable if it maps to an unsigned type
20146 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20147 -a "$ac_cv_wchar_t_signed" = "no"
20149 PY_UNICODE_TYPE
="wchar_t"
20151 cat >>confdefs.h
<<\_ACEOF
20152 #define HAVE_USABLE_WCHAR_T 1
20155 cat >>confdefs.h
<<\_ACEOF
20156 #define PY_UNICODE_TYPE wchar_t
20159 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20161 PY_UNICODE_TYPE
="unsigned short"
20162 cat >>confdefs.h
<<\_ACEOF
20163 #define PY_UNICODE_TYPE unsigned short
20166 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20168 PY_UNICODE_TYPE
="unsigned long"
20169 cat >>confdefs.h
<<\_ACEOF
20170 #define PY_UNICODE_TYPE unsigned long
20174 PY_UNICODE_TYPE
="no type found"
20176 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20177 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20180 # check for endianness
20181 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20182 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20183 if test "${ac_cv_c_bigendian+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 # See if sys/param.h defines the BYTE_ORDER macro.
20187 cat >conftest.
$ac_ext <<_ACEOF
20190 cat confdefs.h
>>conftest.
$ac_ext
20191 cat >>conftest.
$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <sys/types.h>
20194 #include <sys/param.h>
20199 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20200 bogus endian macros
20207 rm -f conftest.
$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>conftest.er1
20211 grep -v '^ *+' conftest.er1
>conftest.err
20213 cat conftest.err
>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try
='test -z "$ac_c_werror_flag"
20217 || test ! -s conftest.err'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try
='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 # It does; now see whether it defined to BIG_ENDIAN or not.
20230 cat >conftest.
$ac_ext <<_ACEOF
20233 cat confdefs.h
>>conftest.
$ac_ext
20234 cat >>conftest.
$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 #include <sys/types.h>
20237 #include <sys/param.h>
20242 #if BYTE_ORDER != BIG_ENDIAN
20250 rm -f conftest.
$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>conftest.er1
20254 grep -v '^ *+' conftest.er1
>conftest.err
20256 cat conftest.err
>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try
='test -z "$ac_c_werror_flag"
20260 || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try
='test -s conftest.$ac_objext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_c_bigendian
=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.
$ac_ext >&5
20277 ac_cv_c_bigendian
=no
20279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.
$ac_ext >&5
20284 # It does not; compile a test program.
20285 if test "$cross_compiling" = yes; then
20286 # try to guess the endianness by grepping values into an object file
20287 ac_cv_c_bigendian
=unknown
20288 cat >conftest.
$ac_ext <<_ACEOF
20291 cat confdefs.h
>>conftest.
$ac_ext
20292 cat >>conftest.
$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20295 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20296 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20297 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20298 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20299 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20303 _ascii (); _ebcdic ();
20308 rm -f conftest.
$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20312 grep -v '^ *+' conftest.er1
>conftest.err
20314 cat conftest.err
>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try
='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try
='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20331 ac_cv_c_bigendian
=yes
20333 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20334 if test "$ac_cv_c_bigendian" = unknown
; then
20335 ac_cv_c_bigendian
=no
20337 # finding both strings is unlikely to happen, but who knows?
20338 ac_cv_c_bigendian
=unknown
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.
$ac_ext >&5
20346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20348 cat >conftest.
$ac_ext <<_ACEOF
20351 cat confdefs.h
>>conftest.
$ac_ext
20352 cat >>conftest.
$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20357 /* Are we little or big endian? From Harbison&Steele. */
20361 char c[sizeof (long)];
20364 exit (u.c[sizeof (long) - 1] == 1);
20367 rm -f conftest
$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_c_bigendian
=no
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.
$ac_ext >&5
20384 ( exit $ac_status )
20385 ac_cv_c_bigendian
=yes
20387 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20392 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20393 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20394 case $ac_cv_c_bigendian in
20397 cat >>confdefs.h
<<\_ACEOF
20398 #define WORDS_BIGENDIAN 1
20404 { { echo "$as_me:$LINENO: error: unknown endianness
20405 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20406 echo "$as_me: error: unknown endianness
20407 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20408 { (exit 1); exit 1; }; } ;;
20414 # Check whether right shifting a negative integer extends the sign bit
20415 # or fills with zeros (like the Cray J90, according to Tim Peters).
20416 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20417 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20418 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 if test "$cross_compiling" = yes; then
20423 ac_cv_rshift_extends_sign
=yes
20425 cat >conftest.
$ac_ext <<_ACEOF
20428 cat confdefs.h
>>conftest.
$ac_ext
20429 cat >>conftest.
$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20434 exit(((-1)>>3 == -1) ? 0 : 1);
20438 rm -f conftest
$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_cv_rshift_extends_sign
=yes
20451 echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.
$ac_ext >&5
20455 ( exit $ac_status )
20456 ac_cv_rshift_extends_sign
=no
20458 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20463 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20464 if test "$ac_cv_rshift_extends_sign" = no
20467 cat >>confdefs.h
<<\_ACEOF
20468 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20473 # check for getc_unlocked and related locking functions
20474 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20475 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20476 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 cat >conftest.
$ac_ext <<_ACEOF
20483 cat confdefs.h
>>conftest.
$ac_ext
20484 cat >>conftest.
$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20491 FILE *f = fopen("/dev/null", "r");
20500 rm -f conftest.
$ac_objext conftest
$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>conftest.er1
20504 grep -v '^ *+' conftest.er1
>conftest.err
20506 cat conftest.err
>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try
='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try
='test -s conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_cv_have_getc_unlocked
=yes
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.
$ac_ext >&5
20527 ac_cv_have_getc_unlocked
=no
20529 rm -f conftest.err conftest.
$ac_objext \
20530 conftest
$ac_exeext conftest.
$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20534 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20535 if test "$ac_cv_have_getc_unlocked" = yes
20538 cat >>confdefs.h
<<\_ACEOF
20539 #define HAVE_GETC_UNLOCKED 1
20544 # check where readline lives
20545 # save the value of LIBS so we don't actually link Python with readline
20546 LIBS_no_readline
=$LIBS
20548 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20549 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20550 if test "${ac_cv_lib_readline_readline+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 ac_check_lib_save_LIBS
=$LIBS
20554 LIBS
="-lreadline $LIBS"
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 /* Override any gcc2 internal prototype to avoid an error. */
20566 /* We use char because int might match the return type of a gcc2
20567 builtin and then its argument prototype would still apply. */
20577 rm -f conftest.
$ac_objext conftest
$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>conftest.er1
20581 grep -v '^ *+' conftest.er1
>conftest.err
20583 cat conftest.err
>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try
='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try
='test -s conftest$ac_exeext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_lib_readline_readline
=yes
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.
$ac_ext >&5
20604 ac_cv_lib_readline_readline
=no
20606 rm -f conftest.err conftest.
$ac_objext \
20607 conftest
$ac_exeext conftest.
$ac_ext
20608 LIBS
=$ac_check_lib_save_LIBS
20610 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20611 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20612 if test $ac_cv_lib_readline_readline = yes; then
20613 cat >>confdefs.h
<<_ACEOF
20614 #define HAVE_LIBREADLINE 1
20617 LIBS
="-lreadline $LIBS"
20621 if test "$ac_cv_have_readline_readline" = no
20624 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20625 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20626 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 ac_check_lib_save_LIBS
=$LIBS
20630 LIBS
="-ltermcap $LIBS"
20631 cat >conftest.
$ac_ext <<_ACEOF
20634 cat confdefs.h
>>conftest.
$ac_ext
20635 cat >>conftest.
$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20638 /* Override any gcc2 internal prototype to avoid an error. */
20642 /* We use char because int might match the return type of a gcc2
20643 builtin and then its argument prototype would still apply. */
20653 rm -f conftest.
$ac_objext conftest
$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655 (eval $ac_link) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1
>conftest.err
20659 cat conftest.err
>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try
='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try
='test -s conftest$ac_exeext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_lib_termcap_readline
=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.
$ac_ext >&5
20680 ac_cv_lib_termcap_readline
=no
20682 rm -f conftest.err conftest.
$ac_objext \
20683 conftest
$ac_exeext conftest.
$ac_ext
20684 LIBS
=$ac_check_lib_save_LIBS
20686 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20687 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20688 if test $ac_cv_lib_termcap_readline = yes; then
20689 cat >>confdefs.h
<<_ACEOF
20690 #define HAVE_LIBTERMCAP 1
20693 LIBS
="-ltermcap $LIBS"
20699 # check for readline 2.1
20700 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20701 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20702 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20705 ac_check_lib_save_LIBS
=$LIBS
20706 LIBS
="-lreadline $LIBS"
20707 cat >conftest.
$ac_ext <<_ACEOF
20710 cat confdefs.h
>>conftest.
$ac_ext
20711 cat >>conftest.
$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any gcc2 internal prototype to avoid an error. */
20718 /* We use char because int might match the return type of a gcc2
20719 builtin and then its argument prototype would still apply. */
20720 char rl_callback_handler_install ();
20724 rl_callback_handler_install ();
20729 rm -f conftest.
$ac_objext conftest
$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>conftest.er1
20733 grep -v '^ *+' conftest.er1
>conftest.err
20735 cat conftest.err
>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try
='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try
='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_lib_readline_rl_callback_handler_install
=yes
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.
$ac_ext >&5
20756 ac_cv_lib_readline_rl_callback_handler_install
=no
20758 rm -f conftest.err conftest.
$ac_objext \
20759 conftest
$ac_exeext conftest.
$ac_ext
20760 LIBS
=$ac_check_lib_save_LIBS
20762 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20763 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20764 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20766 cat >>confdefs.h
<<\_ACEOF
20767 #define HAVE_RL_CALLBACK 1
20773 # check for readline 2.2
20774 cat >conftest.
$ac_ext <<_ACEOF
20777 cat confdefs.h
>>conftest.
$ac_ext
20778 cat >>conftest.
$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include <readline/readline.h>
20782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20785 grep -v '^ *+' conftest.er1
>conftest.err
20787 cat conftest.err
>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } >/dev
/null
; then
20790 if test -s conftest.err
; then
20791 ac_cpp_err
=$ac_c_preproc_warn_flag
20792 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20799 if test -z "$ac_cpp_err"; then
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.
$ac_ext >&5
20807 rm -f conftest.err conftest.
$ac_ext
20808 if test $have_readline = yes
20810 cat >conftest.
$ac_ext <<_ACEOF
20813 cat confdefs.h
>>conftest.
$ac_ext
20814 cat >>conftest.
$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 #include <readline/readline.h>
20819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20820 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20822 cat >>confdefs.h
<<\_ACEOF
20823 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20831 # check for readline 4.0
20832 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20833 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20834 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 ac_check_lib_save_LIBS
=$LIBS
20838 LIBS
="-lreadline $LIBS"
20839 cat >conftest.
$ac_ext <<_ACEOF
20842 cat confdefs.h
>>conftest.
$ac_ext
20843 cat >>conftest.
$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 /* Override any gcc2 internal prototype to avoid an error. */
20850 /* We use char because int might match the return type of a gcc2
20851 builtin and then its argument prototype would still apply. */
20852 char rl_pre_input_hook ();
20856 rl_pre_input_hook ();
20861 rm -f conftest.
$ac_objext conftest
$ac_exeext
20862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20863 (eval $ac_link) 2>conftest.er1
20865 grep -v '^ *+' conftest.er1
>conftest.err
20867 cat conftest.err
>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try
='test -z "$ac_c_werror_flag"
20871 || test ! -s conftest.err'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try
='test -s conftest$ac_exeext'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 ac_cv_lib_readline_rl_pre_input_hook
=yes
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.
$ac_ext >&5
20888 ac_cv_lib_readline_rl_pre_input_hook
=no
20890 rm -f conftest.err conftest.
$ac_objext \
20891 conftest
$ac_exeext conftest.
$ac_ext
20892 LIBS
=$ac_check_lib_save_LIBS
20894 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20895 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20896 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20898 cat >>confdefs.h
<<\_ACEOF
20899 #define HAVE_RL_PRE_INPUT_HOOK 1
20905 # check for readline 4.2
20906 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20907 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20908 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20911 ac_check_lib_save_LIBS
=$LIBS
20912 LIBS
="-lreadline $LIBS"
20913 cat >conftest.
$ac_ext <<_ACEOF
20916 cat confdefs.h
>>conftest.
$ac_ext
20917 cat >>conftest.
$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20920 /* Override any gcc2 internal prototype to avoid an error. */
20924 /* We use char because int might match the return type of a gcc2
20925 builtin and then its argument prototype would still apply. */
20926 char rl_completion_matches ();
20930 rl_completion_matches ();
20935 rm -f conftest.
$ac_objext conftest
$ac_exeext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20937 (eval $ac_link) 2>conftest.er1
20939 grep -v '^ *+' conftest.er1
>conftest.err
20941 cat conftest.err
>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try
='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try
='test -s conftest$ac_exeext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_cv_lib_readline_rl_completion_matches
=yes
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.
$ac_ext >&5
20962 ac_cv_lib_readline_rl_completion_matches
=no
20964 rm -f conftest.err conftest.
$ac_objext \
20965 conftest
$ac_exeext conftest.
$ac_ext
20966 LIBS
=$ac_check_lib_save_LIBS
20968 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20969 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20970 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20972 cat >>confdefs.h
<<\_ACEOF
20973 #define HAVE_RL_COMPLETION_MATCHES 1
20979 # also in readline 4.2
20980 cat >conftest.
$ac_ext <<_ACEOF
20983 cat confdefs.h
>>conftest.
$ac_ext
20984 cat >>conftest.
$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 #include <readline/readline.h>
20988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20991 grep -v '^ *+' conftest.er1
>conftest.err
20993 cat conftest.err
>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } >/dev
/null
; then
20996 if test -s conftest.err
; then
20997 ac_cpp_err
=$ac_c_preproc_warn_flag
20998 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21005 if test -z "$ac_cpp_err"; then
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.
$ac_ext >&5
21013 rm -f conftest.err conftest.
$ac_ext
21014 if test $have_readline = yes
21016 cat >conftest.
$ac_ext <<_ACEOF
21019 cat confdefs.h
>>conftest.
$ac_ext
21020 cat >>conftest.
$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <readline/readline.h>
21025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21026 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21028 cat >>confdefs.h
<<\_ACEOF
21029 #define HAVE_RL_CATCH_SIGNAL 1
21037 # End of readline checks: restore LIBS
21038 LIBS
=$LIBS_no_readline
21040 echo "$as_me:$LINENO: checking for broken nice()" >&5
21041 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21042 if test "${ac_cv_broken_nice+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 if test "$cross_compiling" = yes; then
21047 ac_cv_broken_nice
=no
21049 cat >conftest.
$ac_ext <<_ACEOF
21052 cat confdefs.h
>>conftest.
$ac_ext
21053 cat >>conftest.
$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21058 int val1 = nice(1);
21059 if (val1 != -1 && val1 == nice(2))
21065 rm -f conftest
$ac_exeext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_broken_nice
=yes
21078 echo "$as_me: program exited with status $ac_status" >&5
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.
$ac_ext >&5
21082 ( exit $ac_status )
21083 ac_cv_broken_nice
=no
21085 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21089 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21090 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21091 if test "$ac_cv_broken_nice" = yes
21094 cat >>confdefs.h
<<\_ACEOF
21095 #define HAVE_BROKEN_NICE 1
21100 echo "$as_me:$LINENO: checking for broken poll()" >&5
21101 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21102 if test "$cross_compiling" = yes; then
21103 ac_cv_broken_poll
=no
21105 cat >conftest.
$ac_ext <<_ACEOF
21108 cat confdefs.h
>>conftest.
$ac_ext
21109 cat >>conftest.
$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21116 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21120 int poll_test = poll (&poll_struct, 1, 0);
21126 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21137 rm -f conftest
$ac_exeext
21138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21139 (eval $ac_link) 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 ac_cv_broken_poll
=yes
21150 echo "$as_me: program exited with status $ac_status" >&5
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.
$ac_ext >&5
21154 ( exit $ac_status )
21155 ac_cv_broken_poll
=no
21157 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21159 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21160 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21161 if test "$ac_cv_broken_poll" = yes
21164 cat >>confdefs.h
<<\_ACEOF
21165 #define HAVE_BROKEN_POLL 1
21170 # Before we can test tzset, we need to check if struct tm has a tm_zone
21171 # (which is not required by ISO C or UNIX spec) and/or if we support
21173 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21174 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21175 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 cat >conftest.
$ac_ext <<_ACEOF
21181 cat confdefs.h
>>conftest.
$ac_ext
21182 cat >>conftest.
$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <sys/types.h>
21185 #include <$ac_cv_struct_tm>
21191 static struct tm ac_aggr;
21192 if (ac_aggr.tm_zone)
21198 rm -f conftest.
$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1
>conftest.err
21204 cat conftest.err
>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try
='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try
='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_member_struct_tm_tm_zone
=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.
$ac_ext >&5
21225 cat >conftest.
$ac_ext <<_ACEOF
21228 cat confdefs.h
>>conftest.
$ac_ext
21229 cat >>conftest.
$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 #include <sys/types.h>
21232 #include <$ac_cv_struct_tm>
21238 static struct tm ac_aggr;
21239 if (sizeof ac_aggr.tm_zone)
21245 rm -f conftest.
$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21249 grep -v '^ *+' conftest.er1
>conftest.err
21251 cat conftest.err
>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try
='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try
='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_member_struct_tm_tm_zone
=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.
$ac_ext >&5
21272 ac_cv_member_struct_tm_tm_zone
=no
21274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21279 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21280 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21282 cat >>confdefs.h
<<_ACEOF
21283 #define HAVE_STRUCT_TM_TM_ZONE 1
21289 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21291 cat >>confdefs.h
<<\_ACEOF
21292 #define HAVE_TM_ZONE 1
21296 echo "$as_me:$LINENO: checking for tzname" >&5
21297 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21298 if test "${ac_cv_var_tzname+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 cat >conftest.
$ac_ext <<_ACEOF
21304 cat confdefs.h
>>conftest.
$ac_ext
21305 cat >>conftest.
$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21308 #ifndef tzname /* For SGI. */
21309 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21320 rm -f conftest.
$ac_objext conftest
$ac_exeext
21321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21322 (eval $ac_link) 2>conftest.er1
21324 grep -v '^ *+' conftest.er1
>conftest.err
21326 cat conftest.err
>&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } &&
21329 { ac_try
='test -z "$ac_c_werror_flag"
21330 || test ! -s conftest.err'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try
='test -s conftest$ac_exeext'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21342 ac_cv_var_tzname
=yes
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.
$ac_ext >&5
21347 ac_cv_var_tzname
=no
21349 rm -f conftest.err conftest.
$ac_objext \
21350 conftest
$ac_exeext conftest.
$ac_ext
21352 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21353 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21354 if test $ac_cv_var_tzname = yes; then
21356 cat >>confdefs.h
<<\_ACEOF
21357 #define HAVE_TZNAME 1
21364 # check tzset(3) exists and works like we expect it to
21365 echo "$as_me:$LINENO: checking for working tzset()" >&5
21366 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21367 if test "${ac_cv_working_tzset+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 if test "$cross_compiling" = yes; then
21372 ac_cv_working_tzset
=no
21374 cat >conftest.
$ac_ext <<_ACEOF
21377 cat confdefs.h
>>conftest.
$ac_ext
21378 cat >>conftest.
$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 #include <stdlib.h>
21383 #include <string.h>
21386 extern char *tzname[];
21391 /* Note that we need to ensure that not only does tzset(3)
21392 do 'something' with localtime, but it works as documented
21393 in the library reference and as expected by the test suite.
21394 This includes making sure that tzname is set properly if
21395 tm->tm_zone does not exist since it is the alternative way
21396 of getting timezone info.
21398 Red Hat 6.2 doesn't understand the southern hemisphere
21399 after New Year's Day.
21402 time_t groundhogday = 1044144000; /* GMT-based */
21403 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21405 putenv("TZ=UTC+0");
21407 if (localtime(&groundhogday)->tm_hour != 0)
21410 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21411 if (strcmp(tzname[0], "UTC") ||
21412 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21416 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21418 if (localtime(&groundhogday)->tm_hour != 19)
21421 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21425 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21427 if (localtime(&groundhogday)->tm_hour != 11)
21430 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21434 #if HAVE_STRUCT_TM_TM_ZONE
21435 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21437 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21445 rm -f conftest
$ac_exeext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21447 (eval $ac_link) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_cv_working_tzset
=yes
21458 echo "$as_me: program exited with status $ac_status" >&5
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.
$ac_ext >&5
21462 ( exit $ac_status )
21463 ac_cv_working_tzset
=no
21465 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21469 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21470 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21471 if test "$ac_cv_working_tzset" = yes
21474 cat >>confdefs.h
<<\_ACEOF
21475 #define HAVE_WORKING_TZSET 1
21480 # Look for subsecond timestamps in struct stat
21481 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21482 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21483 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 cat >conftest.
$ac_ext <<_ACEOF
21489 cat confdefs.h
>>conftest.
$ac_ext
21490 cat >>conftest.
$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <sys/stat.h>
21498 st.st_mtim.tv_nsec = 1;
21504 rm -f conftest.
$ac_objext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21506 (eval $ac_compile) 2>conftest.er1
21508 grep -v '^ *+' conftest.er1
>conftest.err
21510 cat conftest.err
>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try
='test -z "$ac_c_werror_flag"
21514 || test ! -s conftest.err'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try
='test -s conftest.$ac_objext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_stat_tv_nsec
=yes
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.
$ac_ext >&5
21531 ac_cv_stat_tv_nsec
=no
21533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21536 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21537 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21538 if test "$ac_cv_stat_tv_nsec" = yes
21541 cat >>confdefs.h
<<\_ACEOF
21542 #define HAVE_STAT_TV_NSEC 1
21547 # Look for BSD style subsecond timestamps in struct stat
21548 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21549 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21550 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 cat >conftest.
$ac_ext <<_ACEOF
21556 cat confdefs.h
>>conftest.
$ac_ext
21557 cat >>conftest.
$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <sys/stat.h>
21565 st.st_mtimespec.tv_nsec = 1;
21571 rm -f conftest.
$ac_objext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573 (eval $ac_compile) 2>conftest.er1
21575 grep -v '^ *+' conftest.er1
>conftest.err
21577 cat conftest.err
>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
21580 { ac_try
='test -z "$ac_c_werror_flag"
21581 || test ! -s conftest.err'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; } &&
21587 { ac_try
='test -s conftest.$ac_objext'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 ac_cv_stat_tv_nsec2
=yes
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.
$ac_ext >&5
21598 ac_cv_stat_tv_nsec2
=no
21600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21604 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21605 if test "$ac_cv_stat_tv_nsec2" = yes
21608 cat >>confdefs.h
<<\_ACEOF
21609 #define HAVE_STAT_TV_NSEC2 1
21614 # On HP/UX 11.0, mvwdelch is a block with a return statement
21615 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21616 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21617 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 cat >conftest.
$ac_ext <<_ACEOF
21623 cat confdefs.h
>>conftest.
$ac_ext
21624 cat >>conftest.
$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <curses.h>
21632 rtn = mvwdelch(0,0,0);
21638 rm -f conftest.
$ac_objext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21640 (eval $ac_compile) 2>conftest.er1
21642 grep -v '^ *+' conftest.er1
>conftest.err
21644 cat conftest.err
>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try
='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try
='test -s conftest.$ac_objext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_mvwdelch_is_expression
=yes
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.
$ac_ext >&5
21665 ac_cv_mvwdelch_is_expression
=no
21667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21670 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21671 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21673 if test "$ac_cv_mvwdelch_is_expression" = yes
21676 cat >>confdefs.h
<<\_ACEOF
21677 #define MVWDELCH_IS_EXPRESSION 1
21682 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21683 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21684 if test "${ac_cv_window_has_flags+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 cat >conftest.
$ac_ext <<_ACEOF
21690 cat confdefs.h
>>conftest.
$ac_ext
21691 cat >>conftest.
$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 #include <curses.h>
21705 rm -f conftest.
$ac_objext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21707 (eval $ac_compile) 2>conftest.er1
21709 grep -v '^ *+' conftest.er1
>conftest.err
21711 cat conftest.err
>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
21714 { ac_try
='test -z "$ac_c_werror_flag"
21715 || test ! -s conftest.err'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try
='test -s conftest.$ac_objext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_window_has_flags
=yes
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.
$ac_ext >&5
21732 ac_cv_window_has_flags
=no
21734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21737 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21738 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21741 if test "$ac_cv_window_has_flags" = yes
21744 cat >>confdefs.h
<<\_ACEOF
21745 #define WINDOW_HAS_FLAGS 1
21750 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21751 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21753 if test -e /dev
/ptmx
21755 echo "$as_me:$LINENO: result: yes" >&5
21756 echo "${ECHO_T}yes" >&6
21758 cat >>confdefs.h
<<\_ACEOF
21759 #define HAVE_DEV_PTMX 1
21763 echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21767 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21768 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21770 if test -e /dev
/ptc
21772 echo "$as_me:$LINENO: result: yes" >&5
21773 echo "${ECHO_T}yes" >&6
21775 cat >>confdefs.h
<<\_ACEOF
21776 #define HAVE_DEV_PTC 1
21780 echo "$as_me:$LINENO: result: no" >&5
21781 echo "${ECHO_T}no" >&6
21784 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21785 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21786 if test "$cross_compiling" = yes; then
21787 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21788 See \`config.log' for more details." >&5
21789 echo "$as_me: error: cannot run test program while cross compiling
21790 See \`config.log' for more details." >&2;}
21791 { (exit 1); exit 1; }; }
21793 cat >conftest.
$ac_ext <<_ACEOF
21796 cat confdefs.h
>>conftest.
$ac_ext
21797 cat >>conftest.
$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21800 #include <stddef.h>
21801 #include <string.h>
21807 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21810 if (strncmp(buffer, "123", 3))
21816 rm -f conftest
$ac_exeext
21817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 echo "$as_me:$LINENO: result: yes" >&5
21828 echo "${ECHO_T}yes" >&6
21830 cat >>confdefs.h
<<\_ACEOF
21831 #define PY_FORMAT_SIZE_T "z"
21835 echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.
$ac_ext >&5
21839 ( exit $ac_status )
21840 echo "$as_me:$LINENO: result: no" >&5
21841 echo "${ECHO_T}no" >&6
21843 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21846 echo "$as_me:$LINENO: checking for socklen_t" >&5
21847 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21848 if test "${ac_cv_type_socklen_t+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 cat >conftest.
$ac_ext <<_ACEOF
21854 cat confdefs.h
>>conftest.
$ac_ext
21855 cat >>conftest.
$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 #ifdef HAVE_SYS_TYPES_H
21859 #include <sys/types.h>
21861 #ifdef HAVE_SYS_SOCKET_H
21862 #include <sys/socket.h>
21869 if ((socklen_t *) 0)
21871 if (sizeof (socklen_t))
21877 rm -f conftest.
$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21881 grep -v '^ *+' conftest.er1
>conftest.err
21883 cat conftest.err
>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try
='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try
='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_type_socklen_t
=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.
$ac_ext >&5
21904 ac_cv_type_socklen_t
=no
21906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21908 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21909 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21910 if test $ac_cv_type_socklen_t = yes; then
21914 cat >>confdefs.h
<<\_ACEOF
21915 #define socklen_t int
21923 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21925 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21929 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21930 echo "$as_me:$LINENO: checking for build directories" >&5
21931 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21932 for dir
in $SRCDIRS; do
21933 if test ! -d $dir; then
21937 echo "$as_me:$LINENO: result: done" >&5
21938 echo "${ECHO_T}done" >&6
21940 # generate output files
21941 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21943 cat >confcache
<<\_ACEOF
21944 # This file is a shell script that caches the results of configure
21945 # tests run on this system so they can be shared between configure
21946 # scripts and configure runs, see configure's option --config-cache.
21947 # It is not useful on other systems. If it contains results you don't
21948 # want to keep, you may remove or edit it.
21950 # config.status only pays attention to the cache file if you give it
21951 # the --recheck option to rerun configure.
21953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21955 # following values.
21959 # The following way of writing the cache mishandles newlines in values,
21960 # but we know of no workaround that is simple, portable, and efficient.
21961 # So, don't put newlines in cache variables' values.
21962 # Ultrix sh set writes to stderr and can't be redirected directly,
21963 # and sets the high bit in the cache file unless we assign to the vars.
21966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21968 # `set' does not quote correctly, so add quotes (double-quote
21969 # substitution turns \\\\ into \\, and sed turns \\ into \).
21972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21975 # `set' quotes correctly as required by POSIX, so do not add quotes.
21977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21988 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21989 if test -w $cache_file; then
21990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21991 cat confcache
>$cache_file
21993 echo "not updating unwritable cache $cache_file"
21998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21999 # Let make expand exec_prefix.
22000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22004 # trailing colons and then remove the whole line if VPATH becomes empty
22005 # (actually we leave an empty line to preserve line numbers).
22006 if test "x$srcdir" = x.
; then
22007 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22008 s/:*\$(srcdir):*/:/;
22009 s/:*\${srcdir}:*/:/;
22011 s/^\([^=]*=[ ]*\):*/\1/;
22017 DEFS
=-DHAVE_CONFIG_H
22021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22022 # 1. Remove the extension, and $U if already installed.
22023 ac_i
=`echo "$ac_i" |
22024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22026 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22027 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22029 LIBOBJS
=$ac_libobjs
22031 LTLIBOBJS
=$ac_ltlibobjs
22035 : ${CONFIG_STATUS=./config.status}
22036 ac_clean_files_save
=$ac_clean_files
22037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22040 cat >$CONFIG_STATUS <<_ACEOF
22042 # Generated by $as_me.
22043 # Run this file to recreate the current configuration.
22044 # Compiler output produced by configure, useful for debugging
22045 # configure, is in config.log if it exists.
22048 ac_cs_recheck=false
22050 SHELL=\${CONFIG_SHELL-$SHELL}
22053 cat >>$CONFIG_STATUS <<\_ACEOF
22054 ## --------------------- ##
22055 ## M4sh Initialization. ##
22056 ## --------------------- ##
22058 # Be Bourne compatible
22059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22063 # is contrary to our usage. Disable this feature.
22064 alias -g '${1+"$@"}'='"$@"'
22065 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22068 DUALCASE
=1; export DUALCASE
# for MKS sh
22070 # Support unset when possible.
22071 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22078 # Work around bugs in pre-3.0 UWIN ksh.
22079 $as_unset ENV MAIL MAILPATH
22086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22088 LC_TELEPHONE LC_TIME
22090 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22091 eval $as_var=C
; export $as_var
22097 # Required to use basename.
22098 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22104 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22105 as_basename
=basename
22111 # Name of the executable.
22112 as_me
=`$as_basename "$0" ||
22113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22114 X"$0" : 'X\(//\)$' \| \
22115 X"$0" : 'X\(/\)$' \| \
22116 . : '\(.\)' 2>/dev/null ||
22118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22119 /^X\/\(\/\/\)$/{ s//\1/; q; }
22120 /^X\/\(\/\).*/{ s//\1/; q; }
22124 # PATH needs CR, and LINENO needs CR and PATH.
22125 # Avoid depending upon Character Ranges.
22126 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22127 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22128 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22129 as_cr_digits
='0123456789'
22130 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22132 # The user is always right.
22133 if test "${PATH_SEPARATOR+set}" != set; then
22134 echo "#! /bin/sh" >conf$$.sh
22135 echo "exit 0" >>conf$$.sh
22137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22146 as_lineno_1
=$LINENO
22147 as_lineno_2
=$LINENO
22148 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22149 test "x$as_lineno_1" != "x$as_lineno_2" &&
22150 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22151 # Find who we are. Look in the path if we contain no path at all
22154 *[\\/]* ) as_myself
=$0 ;;
22155 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22156 for as_dir
in $PATH
22159 test -z "$as_dir" && as_dir
=.
22160 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22165 # We did not find ourselves, most probably we were run as `sh COMMAND'
22166 # in which case we are not to be found in the path.
22167 if test "x$as_myself" = x
; then
22170 if test ! -f "$as_myself"; then
22171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22173 { (exit 1); exit 1; }; }
22175 case $CONFIG_SHELL in
22177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22178 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22181 test -z "$as_dir" && as_dir
=.
22182 for as_base
in sh bash ksh sh5
; do
22185 if ("$as_dir/$as_base" -c '
22186 as_lineno_1=$LINENO
22187 as_lineno_2=$LINENO
22188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22189 test "x$as_lineno_1" != "x$as_lineno_2" &&
22190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22191 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22192 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22193 CONFIG_SHELL
=$as_dir/$as_base
22194 export CONFIG_SHELL
22195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22204 # uniformly replaced by the line number. The first 'sed' inserts a
22205 # line-number line before each line; the second 'sed' does the real
22206 # work. The second script uses 'N' to pair each line-number line
22207 # with the numbered line, and appends trailing '-' during
22208 # substitution so that $LINENO is not a special case at line end.
22209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22211 sed '=' <$as_myself |
22216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22219 s,^['$as_cr_digits']*\n,,
22220 ' >$as_me.lineno
&&
22221 chmod +x
$as_me.lineno ||
22222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22224 { (exit 1); exit 1; }; }
22226 # Don't try to exec as it changes $[0], causing all sort of problems
22227 # (the dirname of $[0] is not the place where we might find the
22228 # original and so on. Autoconf is especially sensible to this).
22230 # Exit status is that of the last command.
22235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22236 *c
*,-n*) ECHO_N
= ECHO_C
='
22238 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22239 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22242 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22248 rm -f conf$$ conf$$.exe conf$$.
file
22250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22251 # We could just check for DJGPP; but this test a) works b) is more generic
22252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22253 if test -f conf$$.exe
; then
22254 # Don't use ln at all; we don't have any links
22259 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22264 rm -f conf$$ conf$$.exe conf$$.
file
22266 if mkdir
-p .
2>/dev
/null
; then
22269 test -d .
/-p && rmdir .
/-p
22273 as_executable_p
="test -f"
22275 # Sed expression to map a string onto a valid CPP name.
22276 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22278 # Sed expression to map a string onto a valid variable name.
22279 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22283 # We need space, tab and new line, in precisely that order.
22293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22294 # report actual input values of CONFIG_FILES etc. instead of their
22295 # values after options handling. Logging --version etc. is OK.
22299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22300 ## Running $as_me. ##
22305 This file was extended by python $as_me 2.5, which was
22306 generated by GNU Autoconf 2.59. Invocation command line was
22308 CONFIG_FILES = $CONFIG_FILES
22309 CONFIG_HEADERS = $CONFIG_HEADERS
22310 CONFIG_LINKS = $CONFIG_LINKS
22311 CONFIG_COMMANDS = $CONFIG_COMMANDS
22315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22319 # Files that config.status was made for.
22320 if test -n "$ac_config_files"; then
22321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22324 if test -n "$ac_config_headers"; then
22325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22328 if test -n "$ac_config_links"; then
22329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22332 if test -n "$ac_config_commands"; then
22333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22336 cat >>$CONFIG_STATUS <<\_ACEOF
22339 \`$as_me' instantiates files from templates according to the
22340 current configuration.
22342 Usage: $0 [OPTIONS] [FILE]...
22344 -h, --help print this help, then exit
22345 -V, --version print version number, then exit
22346 -q, --quiet do not print progress messages
22347 -d, --debug don't remove temporary files
22348 --recheck update $as_me by reconfiguring in the same conditions
22349 --file=FILE[:TEMPLATE]
22350 instantiate the configuration file FILE
22351 --header=FILE[:TEMPLATE]
22352 instantiate the configuration header FILE
22354 Configuration files:
22357 Configuration headers:
22360 Report bugs to <bug-autoconf@gnu.org>."
22363 cat >>$CONFIG_STATUS <<_ACEOF
22365 python config.status 2.5
22366 configured by $0, generated by GNU Autoconf 2.59,
22367 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22369 Copyright (C) 2003 Free Software Foundation, Inc.
22370 This config.status script is free software; the Free Software Foundation
22371 gives unlimited permission to copy, distribute and modify it."
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22377 # If no file are specified by the user, then we need to provide default
22378 # value. By we need to know if files were specified by the user.
22384 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22385 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22393 *) # This is not an option, so the user has probably given explicit
22396 ac_need_defaults
=false
;;
22400 # Handling of the options.
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22405 --version |
--vers* |
-V )
22406 echo "$ac_cs_version"; exit 0 ;;
22408 # Conflict between --help and --header
22409 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22410 Try \`$0 --help' for more information." >&5
22411 echo "$as_me: error: ambiguous option: $1
22412 Try \`$0 --help' for more information." >&2;}
22413 { (exit 1); exit 1; }; };;
22414 --help |
--hel |
-h )
22415 echo "$ac_cs_usage"; exit 0 ;;
22416 --debug |
--d* |
-d )
22418 --file |
--fil |
--fi |
--f )
22420 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22421 ac_need_defaults
=false
;;
22422 --header |
--heade |
--head |
--hea )
22424 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22425 ac_need_defaults
=false
;;
22426 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22427 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22430 # This is an error.
22431 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22432 Try \`$0 --help' for more information." >&5
22433 echo "$as_me: error: unrecognized option: $1
22434 Try \`$0 --help' for more information." >&2;}
22435 { (exit 1); exit 1; }; } ;;
22437 *) ac_config_targets
="$ac_config_targets $1" ;;
22443 ac_configure_extra_args
=
22445 if $ac_cs_silent; then
22447 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22451 cat >>$CONFIG_STATUS <<_ACEOF
22452 if \$ac_cs_recheck; then
22453 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22454 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 for ac_config_target
in $ac_config_targets
22466 case "$ac_config_target" in
22467 # Handling of arguments.
22468 "Mac/OSX/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/Makefile" ;;
22469 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22470 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22471 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22472 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22473 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22476 { (exit 1); exit 1; }; };;
22480 # If the user did not use the arguments to specify the items to instantiate,
22481 # then the envvar interface is used. Set only those that are not.
22482 # We use the long form for the default assignment because of an extremely
22483 # bizarre bug on SunOS 4.1.3.
22484 if $ac_need_defaults; then
22485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22489 # Have a temporary directory for convenience. Make it in the build tree
22490 # simply because there is no reason to put it here, and in addition,
22491 # creating and moving files from /tmp can sometimes cause problems.
22492 # Create a temporary directory, and hook for its removal unless debugging.
22495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22496 trap '{ (exit 1); exit 1; }' 1 2 13 15
22499 # Create a (secure) tmp directory for tmp files.
22502 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22503 test -n "$tmp" && test -d "$tmp"
22506 tmp
=.
/confstat$$
-$RANDOM
22507 (umask 077 && mkdir
$tmp)
22510 echo "$me: cannot create a temporary directory in ." >&2
22511 { (exit 1); exit 1; }
22516 cat >>$CONFIG_STATUS <<_ACEOF
22519 # CONFIG_FILES section.
22522 # No need to generate the scripts if there are no CONFIG_FILES.
22523 # This happens for instance when ./config.status config.h
22524 if test -n "\$CONFIG_FILES"; then
22525 # Protect against being on the right side of a sed subst in config.status.
22526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22528 s,@SHELL@,$SHELL,;t t
22529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22535 s,@exec_prefix@,$exec_prefix,;t t
22536 s,@prefix@,$prefix,;t t
22537 s,@program_transform_name@,$program_transform_name,;t t
22538 s,@bindir@,$bindir,;t t
22539 s,@sbindir@,$sbindir,;t t
22540 s,@libexecdir@,$libexecdir,;t t
22541 s,@datadir@,$datadir,;t t
22542 s,@sysconfdir@,$sysconfdir,;t t
22543 s,@sharedstatedir@,$sharedstatedir,;t t
22544 s,@localstatedir@,$localstatedir,;t t
22545 s,@libdir@,$libdir,;t t
22546 s,@includedir@,$includedir,;t t
22547 s,@oldincludedir@,$oldincludedir,;t t
22548 s,@infodir@,$infodir,;t t
22549 s,@mandir@,$mandir,;t t
22550 s,@build_alias@,$build_alias,;t t
22551 s,@host_alias@,$host_alias,;t t
22552 s,@target_alias@,$target_alias,;t t
22553 s,@DEFS@,$DEFS,;t t
22554 s,@ECHO_C@,$ECHO_C,;t t
22555 s,@ECHO_N@,$ECHO_N,;t t
22556 s,@ECHO_T@,$ECHO_T,;t t
22557 s,@LIBS@,$LIBS,;t t
22558 s,@VERSION@,$VERSION,;t t
22559 s,@SOVERSION@,$SOVERSION,;t t
22560 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22561 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22562 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22563 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22564 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22565 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22566 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22567 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22568 s,@MACHDEP@,$MACHDEP,;t t
22569 s,@SGI_ABI@,$SGI_ABI,;t t
22570 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22571 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22572 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22573 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22575 s,@CFLAGS@,$CFLAGS,;t t
22576 s,@LDFLAGS@,$LDFLAGS,;t t
22577 s,@CPPFLAGS@,$CPPFLAGS,;t t
22578 s,@ac_ct_CC@,$ac_ct_CC,;t t
22579 s,@EXEEXT@,$EXEEXT,;t t
22580 s,@OBJEXT@,$OBJEXT,;t t
22582 s,@MAINCC@,$MAINCC,;t t
22584 s,@EGREP@,$EGREP,;t t
22585 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22586 s,@LIBRARY@,$LIBRARY,;t t
22587 s,@LDLIBRARY@,$LDLIBRARY,;t t
22588 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22589 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22590 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22591 s,@INSTSONAME@,$INSTSONAME,;t t
22592 s,@RUNSHARED@,$RUNSHARED,;t t
22593 s,@LINKCC@,$LINKCC,;t t
22594 s,@RANLIB@,$RANLIB,;t t
22595 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22597 s,@SVNVERSION@,$SVNVERSION,;t t
22598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22603 s,@BASECFLAGS@,$BASECFLAGS,;t t
22604 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22605 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22607 s,@LDSHARED@,$LDSHARED,;t t
22608 s,@BLDSHARED@,$BLDSHARED,;t t
22609 s,@CCSHARED@,$CCSHARED,;t t
22610 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22611 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22612 s,@SHLIBS@,$SHLIBS,;t t
22613 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22614 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22615 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22616 s,@LDLAST@,$LDLAST,;t t
22617 s,@THREADOBJ@,$THREADOBJ,;t t
22618 s,@DLINCLDIR@,$DLINCLDIR,;t t
22619 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22620 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22621 s,@TRUE@,$TRUE,;t t
22622 s,@LIBOBJS@,$LIBOBJS,;t t
22623 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22624 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22625 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22626 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22627 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22628 s,@LIBM@,$LIBM,;t t
22629 s,@LIBC@,$LIBC,;t t
22630 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22631 s,@THREADHEADERS@,$THREADHEADERS,;t t
22632 s,@SRCDIRS@,$SRCDIRS,;t t
22633 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 # Split the substitutions into bite-sized pieces for seds with
22640 # small command number limits, like on Digital OSF/1 and HP-UX.
22641 ac_max_sed_lines
=48
22642 ac_sed_frag
=1 # Number of current file.
22643 ac_beg
=1 # First line for current file.
22644 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22647 while $ac_more_lines; do
22648 if test $ac_beg -gt 1; then
22649 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22651 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22653 if test ! -s $tmp/subs.frag
; then
22654 ac_more_lines
=false
22656 # The purpose of the label and of the branching condition is to
22657 # speed up the sed processing (if there are no `@' at all, there
22658 # is no need to browse any of the substitutions).
22659 # These are the two extra sed commands mentioned above.
22661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22662 if test -z "$ac_sed_cmds"; then
22663 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22665 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22667 ac_sed_frag
=`expr $ac_sed_frag + 1`
22669 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22672 if test -z "$ac_sed_cmds"; then
22675 fi # test -n "$CONFIG_FILES"
22678 cat >>$CONFIG_STATUS <<\_ACEOF
22679 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22682 - |
*:- |
*:-:* ) # input from stdin
22684 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22685 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22686 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22687 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22688 * ) ac_file_in
=$ac_file.
in ;;
22691 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22692 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694 X"$ac_file" : 'X\(//\)[^/]' \| \
22695 X"$ac_file" : 'X\(//\)$' \| \
22696 X"$ac_file" : 'X\(/\)' \| \
22697 . : '\(.\)' 2>/dev/null ||
22699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22701 /^X\(\/\/\)$/{ s//\1/; q; }
22702 /^X\(\/\).*/{ s//\1/; q; }
22704 { if $as_mkdir_p; then
22709 while test ! -d "$as_dir"; do
22710 as_dirs
="$as_dir $as_dirs"
22711 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713 X"$as_dir" : 'X\(//\)[^/]' \| \
22714 X"$as_dir" : 'X\(//\)$' \| \
22715 X"$as_dir" : 'X\(/\)' \| \
22716 . : '\(.\)' 2>/dev/null ||
22718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22720 /^X\(\/\/\)$/{ s//\1/; q; }
22721 /^X\(\/\).*/{ s//\1/; q; }
22724 test ! -n "$as_dirs" || mkdir
$as_dirs
22725 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22727 { (exit 1); exit 1; }; }; }
22731 if test "$ac_dir" != .
; then
22732 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22733 # A "../" for each directory in $ac_dir_suffix.
22734 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22736 ac_dir_suffix
= ac_top_builddir
=
22740 .
) # No --srcdir option. We are building in place.
22742 if test -z "$ac_top_builddir"; then
22745 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22747 [\\/]* | ?
:[\\/]* ) # Absolute path.
22748 ac_srcdir
=$srcdir$ac_dir_suffix;
22749 ac_top_srcdir
=$srcdir ;;
22750 *) # Relative path.
22751 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22752 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22755 # Do not use `cd foo && pwd` to compute absolute paths, because
22756 # the directories may not exist.
22758 .
) ac_abs_builddir
="$ac_dir";;
22761 .
) ac_abs_builddir
=`pwd`;;
22762 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22763 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22766 case $ac_abs_builddir in
22767 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22769 case ${ac_top_builddir}.
in
22770 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22771 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22772 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22775 case $ac_abs_builddir in
22776 .
) ac_abs_srcdir
=$ac_srcdir;;
22779 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22780 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22781 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22784 case $ac_abs_builddir in
22785 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22787 case $ac_top_srcdir in
22788 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22789 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22790 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22796 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22797 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22800 if test x
"$ac_file" != x-
; then
22801 { echo "$as_me:$LINENO: creating $ac_file" >&5
22802 echo "$as_me: creating $ac_file" >&6;}
22805 # Let's still pretend it is `configure' which instantiates (i.e., don't
22806 # use $as_me), people would be surprised to read:
22807 # /* config.h. Generated by config.status. */
22808 if test x
"$ac_file" = x-
; then
22811 configure_input
="$ac_file. "
22813 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22814 sed 's,.*/,,'` by configure."
22816 # First look for the input files in the build tree, otherwise in the
22818 ac_file_inputs
=`IFS=:
22819 for f in $ac_file_in; do
22821 -) echo $tmp/stdin ;;
22823 # Absolute (can't be DOS-style, as IFS=:)
22824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22825 echo "$as_me: error: cannot find input file: $f" >&2;}
22826 { (exit 1); exit 1; }; }
22829 if test -f "$f"; then
22832 elif test -f "$srcdir/$f"; then
22837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22838 echo "$as_me: error: cannot find input file: $f" >&2;}
22839 { (exit 1); exit 1; }; }
22842 done` ||
{ (exit 1); exit 1; }
22844 cat >>$CONFIG_STATUS <<_ACEOF
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22850 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22851 s
,@configure_input@
,$configure_input,;t t
22852 s
,@srcdir@
,$ac_srcdir,;t t
22853 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22854 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22855 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22856 s
,@builddir@
,$ac_builddir,;t t
22857 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22858 s
,@top_builddir@
,$ac_top_builddir,;t t
22859 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22860 s
,@INSTALL@
,$ac_INSTALL,;t t
22861 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22863 if test x"$ac_file" != x-; then
22864 mv $tmp/out $ac_file
22872 cat >>$CONFIG_STATUS <<\_ACEOF
22875 # CONFIG_HEADER section.
22878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22881 # ac_d sets the value in "#define NAME VALUE" lines.
22882 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22883 ac_dB
='[ ].*$,\1#\2'
22886 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22887 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22888 ac_uB
='$,\1#\2define\3'
22892 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22895 - |
*:- |
*:-:* ) # input from stdin
22897 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22898 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22899 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22901 * ) ac_file_in
=$ac_file.
in ;;
22904 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22905 echo "$as_me: creating $ac_file" >&6;}
22907 # First look for the input files in the build tree, otherwise in the
22909 ac_file_inputs
=`IFS=:
22910 for f in $ac_file_in; do
22912 -) echo $tmp/stdin ;;
22914 # Absolute (can't be DOS-style, as IFS=:)
22915 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22916 echo "$as_me: error: cannot find input file: $f" >&2;}
22917 { (exit 1); exit 1; }; }
22918 # Do quote $f, to prevent DOS paths from being IFS'd.
22921 if test -f "$f"; then
22924 elif test -f "$srcdir/$f"; then
22929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22930 echo "$as_me: error: cannot find input file: $f" >&2;}
22931 { (exit 1); exit 1; }; }
22934 done` ||
{ (exit 1); exit 1; }
22935 # Remove the trailing spaces.
22936 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22940 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22941 # `conftest.undefs', that substitutes the proper values into
22942 # config.h.in to produce config.h. The first handles `#define'
22943 # templates, and the second `#undef' templates.
22944 # And first: Protect against being on the right side of a sed subst in
22945 # config.status. Protect against being in an unquoted here document
22946 # in config.status.
22947 rm -f conftest.defines conftest.undefs
22948 # Using a here document instead of a string reduces the quoting nightmare.
22949 # Putting comments in sed scripts is not portable.
22951 # `end' is used to avoid that the second main sed command (meant for
22952 # 0-ary CPP macros) applies to n-ary macro definitions.
22953 # See the Autoconf documentation for `clear'.
22954 cat >confdef2sed.
sed <<\_ACEOF
22959 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22961 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22964 # If some macros were called several times there might be several times
22965 # the same #defines, which is useless. Nevertheless, we may not want to
22966 # sort them, since we want the *last* AC-DEFINE to be honored.
22967 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22968 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22969 rm -f confdef2sed.sed
22971 # This sed command replaces #undef with comments. This is necessary, for
22972 # example, in the case of _POSIX_SOURCE, which is predefined and required
22973 # on some systems where configure will not decide to define it.
22974 cat >>conftest.undefs <<\_ACEOF
22975 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22978 # Break up conftest.defines because some shells have a limit on the size
22979 # of here documents, and old seds have small limits too (100 cmds).
22980 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22981 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22982 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22983 echo ' :' >>$CONFIG_STATUS
22984 rm -f conftest.tail
22985 while grep . conftest.defines >/dev/null
22987 # Write a limited-size here document to $tmp/defines.sed.
22988 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22989 # Speed up: don't consider the non `#define' lines.
22990 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22991 # Work around the forget-to-reset-the-flag bug.
22992 echo 't clr' >>$CONFIG_STATUS
22993 echo ': clr' >>$CONFIG_STATUS
22994 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22996 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22998 mv $tmp/out $tmp/in
23000 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23001 rm -f conftest.defines
23002 mv conftest.
tail conftest.defines
23004 rm -f conftest.defines
23005 echo ' fi # grep' >>$CONFIG_STATUS
23006 echo >>$CONFIG_STATUS
23008 # Break up conftest.undefs because some shells have a limit on the size
23009 # of here documents, and old seds have small limits too (100 cmds).
23010 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23011 rm -f conftest.
tail
23012 while grep . conftest.undefs
>/dev
/null
23014 # Write a limited-size here document to $tmp/undefs.sed.
23015 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23016 # Speed up: don't consider the non
`#undef'
23017 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23018 # Work around the forget-to-reset-the-flag bug.
23019 echo 't clr' >>$CONFIG_STATUS
23020 echo ': clr' >>$CONFIG_STATUS
23021 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23023 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23025 mv $tmp/out $tmp/in
23027 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23028 rm -f conftest.undefs
23029 mv conftest.tail conftest.undefs
23031 rm -f conftest.undefs
23033 cat >>$CONFIG_STATUS <<\_ACEOF
23034 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23035 # use $as_me), people would be surprised to read:
23036 # /* config.h. Generated by config.status. */
23037 if test x
"$ac_file" = x-
; then
23038 echo "/* Generated by configure. */" >$tmp/config.h
23040 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23042 cat $tmp/in >>$tmp/config.h
23044 if test x
"$ac_file" != x-
; then
23045 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23047 echo "$as_me: $ac_file is unchanged" >&6;}
23049 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23051 X"$ac_file" : 'X\(//\)[^/]' \| \
23052 X"$ac_file" : 'X\(//\)$' \| \
23053 X"$ac_file" : 'X\(/\)' \| \
23054 . : '\(.\)' 2>/dev/null ||
23056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23058 /^X\(\/\/\)$/{ s//\1/; q; }
23059 /^X\(\/\).*/{ s//\1/; q; }
23061 { if $as_mkdir_p; then
23066 while test ! -d "$as_dir"; do
23067 as_dirs
="$as_dir $as_dirs"
23068 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23070 X"$as_dir" : 'X\(//\)[^/]' \| \
23071 X"$as_dir" : 'X\(//\)$' \| \
23072 X"$as_dir" : 'X\(/\)' \| \
23073 . : '\(.\)' 2>/dev/null ||
23075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23077 /^X\(\/\/\)$/{ s//\1/; q; }
23078 /^X\(\/\).*/{ s//\1/; q; }
23081 test ! -n "$as_dirs" || mkdir
$as_dirs
23082 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23083 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23084 { (exit 1); exit 1; }; }; }
23087 mv $tmp/config.h
$ac_file
23091 rm -f $tmp/config.h
23096 cat >>$CONFIG_STATUS <<\_ACEOF
23098 { (exit 0); exit 0; }
23100 chmod +x
$CONFIG_STATUS
23101 ac_clean_files
=$ac_clean_files_save
23104 # configure is writing to config.log, and then calls config.status.
23105 # config.status does its own redirection, appending to config.log.
23106 # Unfortunately, on DOS this fails, as config.log is still kept open
23107 # by configure, so config.status won't be able to write to it; its
23108 # output is simply discarded. So we exec the FD to /dev/null,
23109 # effectively closing config.log, so it can be properly (re)opened and
23110 # appended to by config.status. When coming back to configure, we
23111 # need to make the FD available again.
23112 if test "$no_create" != yes; then
23114 ac_config_status_args
=
23115 test "$silent" = yes &&
23116 ac_config_status_args
="$ac_config_status_args --quiet"
23118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23121 # would make configure fail if this is the last instruction.
23122 $ac_cs_success ||
{ (exit 1); exit 1; }
23126 echo "creating Modules/Setup"
23127 if test ! -f Modules
/Setup
23129 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23132 echo "creating Modules/Setup.local"
23133 if test ! -f Modules
/Setup.
local
23135 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23138 echo "creating Makefile"
23139 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23140 -s Modules Modules
/Setup.config \
23141 Modules
/Setup.
local Modules
/Setup
23142 mv config.c Modules