Move over to use of METH_O and METH_NOARGS.
[python.git] / configure
blob8676dab1601f868bb21e49ea8aa34ad2ee8014fe
1 #! /bin/sh
2 # From configure.in Revision: 46010 .
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
17 emulate sh
18 NULLCMD=:
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
23 set -o posix
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
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
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 \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
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 ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; 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
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
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
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
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
125 as_myself=$0
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
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
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
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
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 |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
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).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >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
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
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'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
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`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
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="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
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 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'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
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'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
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 ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
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'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
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.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
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)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
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)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
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)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
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)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
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)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
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'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
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" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
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; }; }
634 *=*)
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'"
642 export $ac_envvar ;;
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}
652 esac
653 done
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`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
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`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
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.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
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
698 cross_compiling=yes
702 ac_tool_prefix=
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 ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
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; }; }
735 else
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}
757 ac_env_CC_value=$CC
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.
783 cat <<_ACEOF
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.
793 Configuration:
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 \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
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]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
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)
860 Optional Packages:
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++
866 compiler
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>
893 CPP C preprocessor
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>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
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'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
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}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
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;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
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.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
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
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
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`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
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.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
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)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
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.
1087 else
1088 case $ac_arg in
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 ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
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.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
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.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
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"
1231 else
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
1240 . "$ac_site_file"
1242 done
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;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
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
1271 set,)
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=: ;;
1275 ,set)
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=: ;;
1279 ,);;
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=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
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'" ;;
1301 esac
1303 done
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; }; }
1312 ac_ext=c
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
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
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
1370 _ACEOF
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
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
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
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
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
1396 _ACEOF
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"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
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"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 enable_framework=
1449 PYTHONFRAMEWORK=Python
1450 PYTHONFRAMEWORKDIR=Python.framework
1451 PYTHONFRAMEWORKPREFIX=$enableval
1452 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1453 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1455 # Add makefiles for Mac specific code to the list of output
1456 # files:
1457 ac_config_files="$ac_config_files Mac/OSX/Makefile"
1459 ac_config_files="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1461 ac_config_files="$ac_config_files Mac/OSX/IDLE/Makefile"
1463 esac
1465 else
1467 PYTHONFRAMEWORK=
1468 PYTHONFRAMEWORKDIR=no-framework
1469 PYTHONFRAMEWORKPREFIX=
1470 PYTHONFRAMEWORKINSTALLDIR=
1471 enable_framework=
1479 ##AC_ARG_WITH(dyld,
1480 ## AC_HELP_STRING(--with-dyld,
1481 ## Use (OpenStep|Rhapsody) dynamic linker))
1483 # Set name for machine-dependent library files
1485 echo "$as_me:$LINENO: checking MACHDEP" >&5
1486 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1487 if test -z "$MACHDEP"
1488 then
1489 ac_sys_system=`uname -s`
1490 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1491 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1492 ac_sys_release=`uname -v`
1493 else
1494 ac_sys_release=`uname -r`
1496 ac_md_system=`echo $ac_sys_system |
1497 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1498 ac_md_release=`echo $ac_sys_release |
1499 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1500 MACHDEP="$ac_md_system$ac_md_release"
1502 case $MACHDEP in
1503 cygwin*) MACHDEP="cygwin";;
1504 darwin*) MACHDEP="darwin";;
1505 atheos*) MACHDEP="atheos";;
1506 irix646) MACHDEP="irix6";;
1507 '') MACHDEP="unknown";;
1508 esac
1511 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1512 # disable features if it is defined, without any means to access these
1513 # features as extensions. For these systems, we skip the definition of
1514 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1515 # some feature, make sure there is no alternative way to access this
1516 # feature. Also, when using wildcards, make sure you have verified the
1517 # need for not defining _XOPEN_SOURCE on all systems matching the
1518 # wildcard, and that the wildcard does not include future systems
1519 # (which may remove their limitations).
1520 case $ac_sys_system/$ac_sys_release in
1521 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1522 # even though select is a POSIX function. Reported by J. Ribbens.
1523 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1524 OpenBSD/2.* | OpenBSD/3.[012345678])
1525 define_xopen_source=no;;
1526 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1527 # of union __?sigval. Reported by Stuart Bishop.
1528 SunOS/5.6)
1529 define_xopen_source=no;;
1530 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1531 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1532 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1533 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1534 define_xopen_source=no;;
1535 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1536 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1537 SCO_SV/3.2)
1538 define_xopen_source=no;;
1539 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1540 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1541 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1542 # This should hopefully be fixed in FreeBSD 4.9
1543 FreeBSD/4.8* | Darwin/6* )
1544 define_xopen_source=no;;
1545 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1546 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1547 # or has another value. By not (re)defining it, the defaults come in place.
1548 AIX/4)
1549 define_xopen_source=no;;
1550 AIX/5)
1551 if test `uname -r` -eq 1; then
1552 define_xopen_source=no
1555 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1556 # disables platform specific features beyond repair.
1557 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1558 # has no effect, don't bother defineing them
1559 Darwin/[78].*)
1560 define_xopen_source=no
1563 esac
1565 if test $define_xopen_source = yes
1566 then
1567 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1568 # defined precisely as g++ defines it
1569 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1570 # compiler
1571 case $ac_sys_system/$ac_sys_release in
1572 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1574 cat >>confdefs.h <<\_ACEOF
1575 #define _XOPEN_SOURCE 500
1576 _ACEOF
1581 cat >>confdefs.h <<\_ACEOF
1582 #define _XOPEN_SOURCE 600
1583 _ACEOF
1586 esac
1588 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1589 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1590 # several APIs are not declared. Since this is also needed in some
1591 # cases for HP-UX, we define it globally.
1592 # except for Solaris 10, where it must not be defined,
1593 # as it implies XPG4.2
1594 case $ac_sys_system/$ac_sys_release in
1595 SunOS/5.10)
1599 cat >>confdefs.h <<\_ACEOF
1600 #define _XOPEN_SOURCE_EXTENDED 1
1601 _ACEOF
1604 esac
1607 cat >>confdefs.h <<\_ACEOF
1608 #define _POSIX_C_SOURCE 200112L
1609 _ACEOF
1615 # SGI compilers allow the specification of the both the ABI and the
1616 # ISA on the command line. Depending on the values of these switches,
1617 # different and often incompatable code will be generated.
1619 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1620 # thus supply support for various ABI/ISA combinations. The MACHDEP
1621 # variable is also adjusted.
1624 if test ! -z "$SGI_ABI"
1625 then
1626 CC="cc $SGI_ABI"
1627 LDFLAGS="$SGI_ABI $LDFLAGS"
1628 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1630 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1631 echo "${ECHO_T}$MACHDEP" >&6
1633 # And add extra plat-mac for darwin
1636 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1637 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1638 if test -z "$EXTRAPLATDIR"
1639 then
1640 case $MACHDEP in
1641 darwin)
1642 EXTRAPLATDIR="\$(PLATMACDIRS)"
1643 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1646 EXTRAPLATDIR=""
1647 EXTRAMACHDEPPATH=""
1649 esac
1651 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1652 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1654 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1655 # it may influence the way we can build extensions, so distutils
1656 # needs to check it
1659 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1660 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1662 # checks for alternative programs
1664 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1665 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1666 # just to get things to compile and link. Users are free to override OPT
1667 # when running configure or make. The build should not break if they do.
1668 # BASECFLAGS should generally not be messed with, however.
1670 # XXX shouldn't some/most/all of this code be merged with the stuff later
1671 # on that fiddles with OPT and BASECFLAGS?
1672 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1673 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1675 # Check whether --with-gcc or --without-gcc was given.
1676 if test "${with_gcc+set}" = set; then
1677 withval="$with_gcc"
1679 case $withval in
1680 no) CC=cc
1681 without_gcc=yes;;
1682 yes) CC=gcc
1683 without_gcc=no;;
1684 *) CC=$withval
1685 without_gcc=$withval;;
1686 esac
1687 else
1689 case $ac_sys_system in
1690 AIX*) CC=cc_r
1691 without_gcc=;;
1692 BeOS*)
1693 case $BE_HOST_CPU in
1694 ppc)
1695 CC=mwcc
1696 without_gcc=yes
1697 BASECFLAGS="$BASECFLAGS -export pragma"
1698 OPT="$OPT -O"
1699 LDFLAGS="$LDFLAGS -nodup"
1701 x86)
1702 CC=gcc
1703 without_gcc=no
1704 OPT="$OPT -O"
1707 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1708 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1709 { (exit 1); exit 1; }; }
1711 esac
1712 AR="\$(srcdir)/Modules/ar_beos"
1713 RANLIB=:
1715 Monterey*)
1716 RANLIB=:
1717 without_gcc=;;
1718 *) without_gcc=no;;
1719 esac
1721 echo "$as_me:$LINENO: result: $without_gcc" >&5
1722 echo "${ECHO_T}$without_gcc" >&6
1724 # If the user switches compilers, we can't believe the cache
1725 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1726 then
1727 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1728 (it is also a good idea to do 'make clean' before compiling)" >&5
1729 echo "$as_me: error: cached CC is different -- throw away $cache_file
1730 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1731 { (exit 1); exit 1; }; }
1734 ac_ext=c
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739 if test -n "$ac_tool_prefix"; then
1740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1761 done
1762 done
1766 CC=$ac_cv_prog_CC
1767 if test -n "$CC"; then
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769 echo "${ECHO_T}$CC" >&6
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1776 if test -z "$ac_cv_prog_CC"; then
1777 ac_ct_CC=$CC
1778 # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc; ac_word=$2
1780 echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC="gcc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1799 done
1800 done
1804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805 if test -n "$ac_ct_CC"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807 echo "${ECHO_T}$ac_ct_CC" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1813 CC=$ac_ct_CC
1814 else
1815 CC="$ac_cv_prog_CC"
1818 if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}cc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}cc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1841 done
1842 done
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1857 ac_ct_CC=$CC
1858 # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="cc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1879 done
1880 done
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 CC=$ac_ct_CC
1894 else
1895 CC="$ac_cv_prog_CC"
1899 if test -z "$CC"; then
1900 # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 ac_prog_rejected=no
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1919 ac_prog_rejected=yes
1920 continue
1922 ac_cv_prog_CC="cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1929 if test $ac_prog_rejected = yes; then
1930 # We found a bogon in the path, so make sure we never use it.
1931 set dummy $ac_cv_prog_CC
1932 shift
1933 if test $# != 0; then
1934 # We chose a different compiler from the bogus one.
1935 # However, it has the same basename, so the bogon will be chosen
1936 # first if we set CC to just the basename; use the full file name.
1937 shift
1938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1943 CC=$ac_cv_prog_CC
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1953 if test -z "$CC"; then
1954 if test -n "$ac_tool_prefix"; then
1955 for ac_prog in cl
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1978 done
1979 done
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1987 else
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$CC" && break
1993 done
1995 if test -z "$CC"; then
1996 ac_ct_CC=$CC
1997 for ac_prog in cl
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2020 done
2021 done
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$ac_ct_CC" && break
2035 done
2037 CC=$ac_ct_CC
2043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: no acceptable C compiler found in \$PATH
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2049 # Provide some information about the compiler.
2050 echo "$as_me:$LINENO:" \
2051 "checking for C compiler version" >&5
2052 ac_compiler=`set X $ac_compile; echo $2`
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054 (eval $ac_compiler --version </dev/null >&5) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059 (eval $ac_compiler -v </dev/null >&5) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064 (eval $ac_compiler -V </dev/null >&5) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2069 cat >conftest.$ac_ext <<_ACEOF
2070 /* confdefs.h. */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2077 main ()
2081 return 0;
2083 _ACEOF
2084 ac_clean_files_save=$ac_clean_files
2085 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086 # Try to create an executable without -o first, disregard a.out.
2087 # It will help us diagnose broken compilers, and finding out an intuition
2088 # of exeext.
2089 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093 (eval $ac_link_default) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 # Find the output, starting from the most likely. This scheme is
2098 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 # resort.
2101 # Be careful to initialize this variable, since it used to be cached.
2102 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103 ac_cv_exeext=
2104 # b.out is created by i960 compilers.
2105 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 test -f "$ac_file" || continue
2108 case $ac_file in
2109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 conftest.$ac_ext )
2112 # This is the source file.
2114 [ab].out )
2115 # We found the default executable, but exeext='' is most
2116 # certainly right.
2117 break;;
2118 *.* )
2119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 # but it would be cool to find out if it's true. Does anybody
2122 # maintain Libtool? --akim.
2123 export ac_cv_exeext
2124 break;;
2126 break;;
2127 esac
2128 done
2129 else
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: C compiler cannot create executables
2136 See \`config.log' for more details." >&2;}
2137 { (exit 77); exit 77; }; }
2140 ac_exeext=$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_file" >&5
2142 echo "${ECHO_T}$ac_file" >&6
2144 # Check the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149 # If not cross compiling, check that we can run a simple program.
2150 if test "$cross_compiling" != yes; then
2151 if { ac_try='./$ac_file'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 cross_compiling=no
2158 else
2159 if test "$cross_compiling" = maybe; then
2160 cross_compiling=yes
2161 else
2162 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'.
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2172 echo "$as_me:$LINENO: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6
2175 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176 ac_clean_files=$ac_clean_files_save
2177 # Check the compiler produces executables we can run. If not, either
2178 # the compiler is broken, or we cross compile.
2179 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182 echo "${ECHO_T}$cross_compiling" >&6
2184 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187 (eval $ac_link) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2193 # work properly (i.e., refer to `conftest.exe'), while it won't with
2194 # `rm'.
2195 for ac_file in conftest.exe conftest conftest.*; do
2196 test -f "$ac_file" || continue
2197 case $ac_file in
2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 export ac_cv_exeext
2201 break;;
2202 * ) break;;
2203 esac
2204 done
2205 else
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2213 rm -f conftest$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215 echo "${ECHO_T}$ac_cv_exeext" >&6
2217 rm -f conftest.$ac_ext
2218 EXEEXT=$ac_cv_exeext
2219 ac_exeext=$EXEEXT
2220 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222 if test "${ac_cv_objext+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.$ac_ext <<_ACEOF
2226 /* confdefs.h. */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2233 main ()
2237 return 0;
2239 _ACEOF
2240 rm -f conftest.o conftest.obj
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247 case $ac_file in
2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2250 break;;
2251 esac
2252 done
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6
2268 OBJEXT=$ac_cv_objext
2269 ac_objext=$OBJEXT
2270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 cat >conftest.$ac_ext <<_ACEOF
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2283 main ()
2285 #ifndef __GNUC__
2286 choke me
2287 #endif
2290 return 0;
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>conftest.er1
2296 ac_status=$?
2297 grep -v '^ *+' conftest.er1 >conftest.err
2298 rm -f conftest.er1
2299 cat conftest.err >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -z "$ac_c_werror_flag"
2303 || test ! -s conftest.err'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; } &&
2309 { ac_try='test -s conftest.$ac_objext'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2315 ac_compiler_gnu=yes
2316 else
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2320 ac_compiler_gnu=no
2322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328 GCC=`test $ac_compiler_gnu = yes && echo yes`
2329 ac_test_CFLAGS=${CFLAGS+set}
2330 ac_save_CFLAGS=$CFLAGS
2331 CFLAGS="-g"
2332 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334 if test "${ac_cv_prog_cc_g+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 main ()
2349 return 0;
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 ac_cv_prog_cc_g=yes
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 ac_cv_prog_cc_g=no
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385 if test "$ac_test_CFLAGS" = set; then
2386 CFLAGS=$ac_save_CFLAGS
2387 elif test $ac_cv_prog_cc_g = yes; then
2388 if test "$GCC" = yes; then
2389 CFLAGS="-g -O2"
2390 else
2391 CFLAGS="-g"
2393 else
2394 if test "$GCC" = yes; then
2395 CFLAGS="-O2"
2396 else
2397 CFLAGS=
2400 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 ac_cv_prog_cc_stdc=no
2406 ac_save_CC=$CC
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413 #include <stdarg.h>
2414 #include <stdio.h>
2415 #include <sys/types.h>
2416 #include <sys/stat.h>
2417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2418 struct buf { int x; };
2419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2420 static char *e (p, i)
2421 char **p;
2422 int i;
2424 return p[i];
2426 static char *f (char * (*g) (char **, int), char **p, ...)
2428 char *s;
2429 va_list v;
2430 va_start (v,p);
2431 s = g (p, va_arg (v,int));
2432 va_end (v);
2433 return s;
2436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2437 function prototypes and stuff, but not '\xHH' hex character constants.
2438 These don't provoke an error unfortunately, instead are silently treated
2439 as 'x'. The following induces an error, until -std1 is added to get
2440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2441 array size at least. It's necessary to write '\x00'==0 to get something
2442 that's true only with -std1. */
2443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2445 int test (int i, double x);
2446 struct s1 {int (*f) (int a);};
2447 struct s2 {int (*f) (double a);};
2448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449 int argc;
2450 char **argv;
2452 main ()
2454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2456 return 0;
2458 _ACEOF
2459 # Don't try gcc -ansi; that turns off useful extensions and
2460 # breaks some systems' header files.
2461 # AIX -qlanglvl=ansi
2462 # Ultrix and OSF/1 -std1
2463 # HP-UX 10.20 and later -Ae
2464 # HP-UX older versions -Aa -D_HPUX_SOURCE
2465 # SVR4 -Xc -D__EXTENSIONS__
2466 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2468 CC="$ac_save_CC $ac_arg"
2469 rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 (eval $ac_compile) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -z "$ac_c_werror_flag"
2479 || test ! -s conftest.err'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_stdc=$ac_arg
2492 break
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f conftest.err conftest.$ac_objext
2499 done
2500 rm -f conftest.$ac_ext conftest.$ac_objext
2501 CC=$ac_save_CC
2505 case "x$ac_cv_prog_cc_stdc" in
2506 x|xno)
2507 echo "$as_me:$LINENO: result: none needed" >&5
2508 echo "${ECHO_T}none needed" >&6 ;;
2510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2511 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2512 CC="$CC $ac_cv_prog_cc_stdc" ;;
2513 esac
2515 # Some people use a C++ compiler to compile C. Since we use `exit',
2516 # in C++ we need to declare it. In case someone uses the same compiler
2517 # for both compiling C and C++ we need to have the C++ compiler decide
2518 # the declaration of exit, since it's the most demanding environment.
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #ifndef __cplusplus
2521 choke me
2522 #endif
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 (eval $ac_try) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 for ac_declaration in \
2547 '' \
2548 'extern "C" void std::exit (int) throw (); using std::exit;' \
2549 'extern "C" void std::exit (int); using std::exit;' \
2550 'extern "C" void exit (int) throw ();' \
2551 'extern "C" void exit (int);' \
2552 'void exit (int);'
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2560 $ac_declaration
2561 #include <stdlib.h>
2563 main ()
2565 exit (42);
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2597 continue
2599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606 $ac_declaration
2608 main ()
2610 exit (42);
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 break
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644 done
2645 rm -f conftest*
2646 if test -n "$ac_declaration"; then
2647 echo '#ifdef __cplusplus' >>confdefs.h
2648 echo $ac_declaration >>confdefs.h
2649 echo '#endif' >>confdefs.h
2652 else
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2668 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2670 # Check whether --with-cxx_main or --without-cxx_main was given.
2671 if test "${with_cxx_main+set}" = set; then
2672 withval="$with_cxx_main"
2675 case $withval in
2676 no) with_cxx_main=no
2677 MAINCC='$(CC)';;
2678 yes) with_cxx_main=yes
2679 MAINCC='$(CXX)';;
2680 *) with_cxx_main=yes
2681 MAINCC=$withval
2682 if test -z "$CXX"
2683 then
2684 CXX=$withval
2685 fi;;
2686 esac
2687 else
2689 with_cxx_main=no
2690 MAINCC='$(CC)'
2693 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2694 echo "${ECHO_T}$with_cxx_main" >&6
2696 preset_cxx="$CXX"
2697 if test -z "$CXX"
2698 then
2699 case "$CC" in
2700 gcc) # Extract the first word of "g++", so it can be a program name with args.
2701 set dummy g++; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_path_CXX+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 case $CXX in
2708 [\\/]* | ?:[\\/]*)
2709 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in notfound
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2726 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2728 esac
2730 CXX=$ac_cv_path_CXX
2732 if test -n "$CXX"; then
2733 echo "$as_me:$LINENO: result: $CXX" >&5
2734 echo "${ECHO_T}$CXX" >&6
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2740 cc) # Extract the first word of "c++", so it can be a program name with args.
2741 set dummy c++; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_CXX+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 case $CXX in
2748 [\\/]* | ?:[\\/]*)
2749 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in notfound
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2766 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2768 esac
2770 CXX=$ac_cv_path_CXX
2772 if test -n "$CXX"; then
2773 echo "$as_me:$LINENO: result: $CXX" >&5
2774 echo "${ECHO_T}$CXX" >&6
2775 else
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2780 esac
2781 if test "$CXX" = "notfound"
2782 then
2783 CXX=""
2786 if test -z "$CXX"
2787 then
2788 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_CXX="$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2816 CXX=$ac_cv_prog_CXX
2817 if test -n "$CXX"; then
2818 echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2825 test -n "$CXX" && break
2826 done
2827 test -n "$CXX" || CXX="notfound"
2829 if test "$CXX" = "notfound"
2830 then
2831 CXX=""
2834 if test "$preset_cxx" != "$CXX"
2835 then
2836 { echo "$as_me:$LINENO: WARNING:
2838 By default, distutils will build C++ extension modules with \"$CXX\".
2839 If this is not intended, then set CXX on the configure command line.
2840 " >&5
2841 echo "$as_me: WARNING:
2843 By default, distutils will build C++ extension modules with \"$CXX\".
2844 If this is not intended, then set CXX on the configure command line.
2845 " >&2;}
2849 # checks for UNIX variants that set C preprocessor variables
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2858 # On Suns, sometimes $CPP names a directory.
2859 if test -n "$CPP" && test -d "$CPP"; then
2860 CPP=
2862 if test -z "$CPP"; then
2863 if test "${ac_cv_prog_CPP+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 # Double quotes because CPP needs to be expanded
2867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869 ac_preproc_ok=false
2870 for ac_c_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2963 break
2966 done
2967 ac_cv_prog_CPP=$CPP
2970 CPP=$ac_cv_prog_CPP
2971 else
2972 ac_cv_prog_CPP=$CPP
2974 echo "$as_me:$LINENO: result: $CPP" >&5
2975 echo "${ECHO_T}$CPP" >&6
2976 ac_preproc_ok=false
2977 for ac_c_preproc_warn_flag in '' yes
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #ifdef __STDC__
2992 # include <limits.h>
2993 #else
2994 # include <assert.h>
2995 #endif
2996 Syntax error
2997 _ACEOF
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3012 else
3013 ac_cpp_err=yes
3015 if test -z "$ac_cpp_err"; then
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 # Broken: fails on valid input.
3022 continue
3024 rm -f conftest.err conftest.$ac_ext
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <ac_nonexistent.h>
3035 _ACEOF
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 else
3048 ac_cpp_err=
3050 else
3051 ac_cpp_err=yes
3053 if test -z "$ac_cpp_err"; then
3054 # Broken: success on invalid input.
3055 continue
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 # Passes both tests.
3061 ac_preproc_ok=:
3062 break
3064 rm -f conftest.err conftest.$ac_ext
3066 done
3067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068 rm -f conftest.err conftest.$ac_ext
3069 if $ac_preproc_ok; then
3071 else
3072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3075 See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 echo "$as_me:$LINENO: checking for egrep" >&5
3087 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3088 if test "${ac_cv_prog_egrep+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3092 then ac_cv_prog_egrep='grep -E'
3093 else ac_cv_prog_egrep='egrep'
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3097 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3098 EGREP=$ac_cv_prog_egrep
3102 echo "$as_me:$LINENO: checking for AIX" >&5
3103 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #ifdef _AIX
3112 #endif
3114 _ACEOF
3115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3116 $EGREP "yes" >/dev/null 2>&1; then
3117 echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3119 cat >>confdefs.h <<\_ACEOF
3120 #define _ALL_SOURCE 1
3121 _ACEOF
3123 else
3124 echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3127 rm -f conftest*
3131 # Check for unsupported systems
3132 case $ac_sys_system/$ac_sys_release in
3133 Linux*/1*)
3134 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3135 echo See README for details.
3136 exit 1;;
3137 esac
3140 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3141 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3143 # Check whether --with-suffix or --without-suffix was given.
3144 if test "${with_suffix+set}" = set; then
3145 withval="$with_suffix"
3147 case $withval in
3148 no) EXEEXT=;;
3149 yes) EXEEXT=.exe;;
3150 *) EXEEXT=$withval;;
3151 esac
3153 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3154 echo "${ECHO_T}$EXEEXT" >&6
3156 # Test whether we're running on a non-case-sensitive system, in which
3157 # case we give a warning if no ext is given
3159 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3160 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3161 if test ! -d CaseSensitiveTestDir; then
3162 mkdir CaseSensitiveTestDir
3165 if test -d casesensitivetestdir
3166 then
3167 echo "$as_me:$LINENO: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6
3169 BUILDEXEEXT=.exe
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3173 BUILDEXEEXT=$EXEEXT
3175 rmdir CaseSensitiveTestDir
3177 case $MACHDEP in
3178 bsdos*)
3179 case $CC in
3180 gcc) CC="$CC -D_HAVE_BSDI";;
3181 esac;;
3182 esac
3184 case $ac_sys_system in
3185 hp*|HP*)
3186 case $CC in
3187 cc|*/cc) CC="$CC -Ae";;
3188 esac;;
3189 Monterey*)
3190 case $CC in
3191 cc) CC="$CC -Wl,-Bexport";;
3192 esac;;
3193 SunOS*)
3194 # Some functions have a prototype only with that define, e.g. confstr
3196 cat >>confdefs.h <<\_ACEOF
3197 #define __EXTENSIONS__ 1
3198 _ACEOF
3201 esac
3205 echo "$as_me:$LINENO: checking LIBRARY" >&5
3206 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3207 if test -z "$LIBRARY"
3208 then
3209 LIBRARY='libpython$(VERSION).a'
3211 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3212 echo "${ECHO_T}$LIBRARY" >&6
3214 # LDLIBRARY is the name of the library to link against (as opposed to the
3215 # name of the library into which to insert object files). BLDLIBRARY is also
3216 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3217 # is blank as the main program is not linked directly against LDLIBRARY.
3218 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3219 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3220 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3221 # DLLLIBRARY is the shared (i.e., DLL) library.
3223 # RUNSHARED is used to run shared python without installed libraries
3225 # INSTSONAME is the name of the shared library that will be use to install
3226 # on the system - some systems like version suffix, others don't
3233 LDLIBRARY="$LIBRARY"
3234 BLDLIBRARY='$(LDLIBRARY)'
3235 INSTSONAME='$(LDLIBRARY)'
3236 DLLLIBRARY=''
3237 LDLIBRARYDIR=''
3238 RUNSHARED=''
3240 # LINKCC is the command that links the python executable -- default is $(CC).
3241 # If CXX is set, and if it is needed to link a main function that was
3242 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3243 # python might then depend on the C++ runtime
3244 # This is altered for AIX in order to build the export list before
3245 # linking.
3247 echo "$as_me:$LINENO: checking LINKCC" >&5
3248 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3249 if test -z "$LINKCC"
3250 then
3251 LINKCC='$(PURIFY) $(MAINCC)'
3252 case $ac_sys_system in
3253 AIX*)
3254 exp_extra="\"\""
3255 if test $ac_sys_release -ge 5 -o \
3256 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3257 exp_extra="."
3259 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3260 Monterey64*)
3261 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3262 esac
3264 echo "$as_me:$LINENO: result: $LINKCC" >&5
3265 echo "${ECHO_T}$LINKCC" >&6
3267 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3268 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3269 # Check whether --enable-shared or --disable-shared was given.
3270 if test "${enable_shared+set}" = set; then
3271 enableval="$enable_shared"
3275 if test -z "$enable_shared"
3276 then
3277 case $ac_sys_system in
3278 CYGWIN* | atheos*)
3279 enable_shared="yes";;
3281 enable_shared="no";;
3282 esac
3284 echo "$as_me:$LINENO: result: $enable_shared" >&5
3285 echo "${ECHO_T}$enable_shared" >&6
3287 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3288 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3289 # Check whether --enable-profiling or --disable-profiling was given.
3290 if test "${enable_profiling+set}" = set; then
3291 enableval="$enable_profiling"
3292 ac_save_cc="$CC"
3293 CC="$CC -pg"
3294 if test "$cross_compiling" = yes; then
3295 ac_enable_profiling="no"
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 int main() { return 0; }
3304 _ACEOF
3305 rm -f conftest$ac_exeext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3307 (eval $ac_link) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_enable_profiling="yes"
3317 else
3318 echo "$as_me: program exited with status $ac_status" >&5
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 ( exit $ac_status )
3323 ac_enable_profiling="no"
3325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3327 CC="$ac_save_cc"
3329 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3330 echo "${ECHO_T}$ac_enable_profiling" >&6
3332 case "$ac_enable_profiling" in
3333 "yes")
3334 BASECFLAGS="-pg $BASECFLAGS"
3335 LDFLAGS="-pg $LDFLAGS"
3337 esac
3339 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3340 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3342 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3343 # library that we build, but we do not want to link against it (we
3344 # will find it with a -framework option). For this reason there is an
3345 # extra variable BLDLIBRARY against which Python and the extension
3346 # modules are linked, BLDLIBRARY. This is normally the same as
3347 # LDLIBRARY, but empty for MacOSX framework builds.
3348 if test "$enable_framework"
3349 then
3350 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3351 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3352 BLDLIBRARY=''
3353 else
3354 BLDLIBRARY='$(LDLIBRARY)'
3357 # Other platforms follow
3358 if test $enable_shared = "yes"; then
3360 cat >>confdefs.h <<\_ACEOF
3361 #define Py_ENABLE_SHARED 1
3362 _ACEOF
3364 case $ac_sys_system in
3365 BeOS*)
3366 LDLIBRARY='libpython$(VERSION).so'
3368 CYGWIN*)
3369 LDLIBRARY='libpython$(VERSION).dll.a'
3370 DLLLIBRARY='libpython$(VERSION).dll'
3372 SunOS*)
3373 LDLIBRARY='libpython$(VERSION).so'
3374 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3375 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3376 INSTSONAME="$LDLIBRARY".$SOVERSION
3378 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3379 LDLIBRARY='libpython$(VERSION).so'
3380 BLDLIBRARY='-L. -lpython$(VERSION)'
3381 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3382 case $ac_sys_system in
3383 FreeBSD*)
3384 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3386 esac
3387 INSTSONAME="$LDLIBRARY".$SOVERSION
3389 hp*|HP*)
3390 case `uname -m` in
3391 ia64)
3392 LDLIBRARY='libpython$(VERSION).so'
3395 LDLIBRARY='libpython$(VERSION).sl'
3397 esac
3398 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3399 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3401 OSF*)
3402 LDLIBRARY='libpython$(VERSION).so'
3403 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3404 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3406 atheos*)
3407 LDLIBRARY='libpython$(VERSION).so'
3408 BLDLIBRARY='-L. -lpython$(VERSION)'
3409 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3411 esac
3412 else # shared is disabled
3413 case $ac_sys_system in
3414 CYGWIN*)
3415 BLDLIBRARY='$(LIBRARY)'
3416 LDLIBRARY='libpython$(VERSION).dll.a'
3418 esac
3421 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3422 echo "${ECHO_T}$LDLIBRARY" >&6
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_RANLIB+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 if test -n "$RANLIB"; then
3433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3451 RANLIB=$ac_cv_prog_RANLIB
3452 if test -n "$RANLIB"; then
3453 echo "$as_me:$LINENO: result: $RANLIB" >&5
3454 echo "${ECHO_T}$RANLIB" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3461 if test -z "$ac_cv_prog_RANLIB"; then
3462 ac_ct_RANLIB=$RANLIB
3463 # Extract the first word of "ranlib", so it can be a program name with args.
3464 set dummy ranlib; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 if test -n "$ac_ct_RANLIB"; then
3471 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_RANLIB="ranlib"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3484 done
3485 done
3487 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3491 if test -n "$ac_ct_RANLIB"; then
3492 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3493 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 RANLIB=$ac_ct_RANLIB
3500 else
3501 RANLIB="$ac_cv_prog_RANLIB"
3505 for ac_prog in ar aal
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_AR+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 if test -n "$AR"; then
3515 ac_cv_prog_AR="$AR" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_AR="$ac_prog"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3533 AR=$ac_cv_prog_AR
3534 if test -n "$AR"; then
3535 echo "$as_me:$LINENO: result: $AR" >&5
3536 echo "${ECHO_T}$AR" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3542 test -n "$AR" && break
3543 done
3544 test -n "$AR" || AR="ar"
3548 # Extract the first word of "svnversion", so it can be a program name with args.
3549 set dummy svnversion; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 if test -n "$SVNVERSION"; then
3556 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_SVNVERSION="found"
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3569 done
3570 done
3572 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3575 SVNVERSION=$ac_cv_prog_SVNVERSION
3576 if test -n "$SVNVERSION"; then
3577 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3578 echo "${ECHO_T}$SVNVERSION" >&6
3579 else
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 if test $SVNVERSION = found
3585 then
3586 SVNVERSION="svnversion \$(srcdir)"
3587 else
3588 SVNVERSION="echo exported"
3591 case $MACHDEP in
3592 bsdos*|hp*|HP*)
3593 # install -d does not work on BSDI or HP-UX
3594 if test -z "$INSTALL"
3595 then
3596 INSTALL="${srcdir}/install-sh -c"
3598 esac
3599 ac_aux_dir=
3600 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3601 if test -f $ac_dir/install-sh; then
3602 ac_aux_dir=$ac_dir
3603 ac_install_sh="$ac_aux_dir/install-sh -c"
3604 break
3605 elif test -f $ac_dir/install.sh; then
3606 ac_aux_dir=$ac_dir
3607 ac_install_sh="$ac_aux_dir/install.sh -c"
3608 break
3609 elif test -f $ac_dir/shtool; then
3610 ac_aux_dir=$ac_dir
3611 ac_install_sh="$ac_aux_dir/shtool install -c"
3612 break
3614 done
3615 if test -z "$ac_aux_dir"; then
3616 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3617 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3618 { (exit 1); exit 1; }; }
3620 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3621 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3622 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3624 # Find a good install program. We prefer a C program (faster),
3625 # so one script is as good as another. But avoid the broken or
3626 # incompatible versions:
3627 # SysV /etc/install, /usr/sbin/install
3628 # SunOS /usr/etc/install
3629 # IRIX /sbin/install
3630 # AIX /bin/install
3631 # AmigaOS /C/install, which installs bootblocks on floppy discs
3632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3635 # OS/2's system install, which has a completely different semantic
3636 # ./install, which can be erroneously created by make from ./install.sh.
3637 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3638 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3639 if test -z "$INSTALL"; then
3640 if test "${ac_cv_path_install+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3649 case $as_dir/ in
3650 ./ | .// | /cC/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3653 /usr/ucb/* ) ;;
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3657 # by default.
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3669 else
3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671 break 3
3674 done
3675 done
3677 esac
3678 done
3682 if test "${ac_cv_path_install+set}" = set; then
3683 INSTALL=$ac_cv_path_install
3684 else
3685 # As a last resort, use the slow shell script. We don't cache a
3686 # path for INSTALL within a source directory, because that will
3687 # break other packages using the cache if that directory is
3688 # removed, or if the path is relative.
3689 INSTALL=$ac_install_sh
3692 echo "$as_me:$LINENO: result: $INSTALL" >&5
3693 echo "${ECHO_T}$INSTALL" >&6
3695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3696 # It thinks the first close brace ends the variable substitution.
3697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3704 # Not every filesystem supports hard links
3706 if test -z "$LN" ; then
3707 case $ac_sys_system in
3708 BeOS*) LN="ln -s";;
3709 CYGWIN*) LN="ln -s";;
3710 atheos*) LN="ln -s";;
3711 *) LN=ln;;
3712 esac
3715 # Check for --with-pydebug
3716 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3717 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3719 # Check whether --with-pydebug or --without-pydebug was given.
3720 if test "${with_pydebug+set}" = set; then
3721 withval="$with_pydebug"
3723 if test "$withval" != no
3724 then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define Py_DEBUG 1
3728 _ACEOF
3730 echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6;
3732 Py_DEBUG='true'
3733 else echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3736 else
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3741 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3742 # merged with this chunk of code?
3744 # Optimizer/debugger flags
3745 # ------------------------
3746 # (The following bit of code is complicated enough - please keep things
3747 # indented properly. Just pretend you're editing Python code. ;-)
3749 # There are two parallel sets of case statements below, one that checks to
3750 # see if OPT was set and one that does BASECFLAGS setting based upon
3751 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3752 # user set OPT.
3754 # tweak OPT based on compiler and platform, only if the user didn't set
3755 # it on the command line
3757 if test -z "$OPT"
3758 then
3759 case $GCC in
3760 yes)
3761 if test "$CC" != 'g++' ; then
3762 STRICT_PROTO="-Wstrict-prototypes"
3764 case $ac_cv_prog_cc_g in
3765 yes)
3766 if test "$Py_DEBUG" = 'true' ; then
3767 # Optimization messes up debuggers, so turn it off for
3768 # debug builds.
3769 OPT="-g -Wall $STRICT_PROTO"
3770 else
3771 OPT="-g -O3 -Wall $STRICT_PROTO"
3775 OPT="-O3 -Wall $STRICT_PROTO"
3777 esac
3778 case $ac_sys_system in
3779 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3781 esac
3785 OPT="-O"
3787 esac
3789 # The current (beta) Monterey compiler dies with optimizations
3790 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3791 case $ac_sys_system in
3792 Monterey*)
3793 OPT=""
3795 esac
3800 # tweak BASECFLAGS based on compiler and platform
3801 case $GCC in
3802 yes)
3803 # Python violates C99 rules, by casting between incompatible
3804 # pointer types. GCC may generate bad code as a result of that,
3805 # so use -fno-strict-aliasing if supported.
3806 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3807 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3808 ac_save_cc="$CC"
3809 CC="$CC -fno-strict-aliasing"
3810 if test "$cross_compiling" = yes; then
3811 ac_cv_no_strict_aliasing_ok=no
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 int main() { return 0; }
3820 _ACEOF
3821 rm -f conftest$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823 (eval $ac_link) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_cv_no_strict_aliasing_ok=yes
3833 else
3834 echo "$as_me: program exited with status $ac_status" >&5
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ( exit $ac_status )
3839 ac_cv_no_strict_aliasing_ok=no
3841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3843 CC="$ac_save_cc"
3844 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3845 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3846 if test $ac_cv_no_strict_aliasing_ok = yes
3847 then
3848 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3850 case $ac_sys_system in
3851 SCO_SV*)
3852 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3854 # is there any other compiler on Darwin besides gcc?
3855 Darwin*)
3856 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3857 if test "${enable_universalsdk}"; then
3858 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3862 OSF*)
3863 BASECFLAGS="$BASECFLAGS -mieee"
3865 esac
3869 case $ac_sys_system in
3870 OpenUNIX*|UnixWare*)
3871 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3873 OSF*)
3874 BASECFLAGS="$BASECFLAGS -ieee -std"
3876 SCO_SV*)
3877 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3879 esac
3881 esac
3883 if test "$Py_DEBUG" = 'true'; then
3885 else
3886 OPT="-DNDEBUG $OPT"
3889 if test "$ac_arch_flags"
3890 then
3891 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3894 # disable check for icc since it seems to pass, but generates a warning
3895 if test "$CC" = icc
3896 then
3897 ac_cv_opt_olimit_ok=no
3900 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3901 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3902 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 ac_save_cc="$CC"
3906 CC="$CC -OPT:Olimit=0"
3907 if test "$cross_compiling" = yes; then
3908 ac_cv_opt_olimit_ok=no
3909 else
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 int main() { return 0; }
3917 _ACEOF
3918 rm -f conftest$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_opt_olimit_ok=yes
3930 else
3931 echo "$as_me: program exited with status $ac_status" >&5
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ( exit $ac_status )
3936 ac_cv_opt_olimit_ok=no
3938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3940 CC="$ac_save_cc"
3943 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3944 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3945 if test $ac_cv_opt_olimit_ok = yes; then
3946 case $ac_sys_system in
3947 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3948 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3949 # environment?
3950 Darwin*)
3953 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3955 esac
3956 else
3957 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3958 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3959 if test "${ac_cv_olimit_ok+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 ac_save_cc="$CC"
3963 CC="$CC -Olimit 1500"
3964 if test "$cross_compiling" = yes; then
3965 ac_cv_olimit_ok=no
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 int main() { return 0; }
3974 _ACEOF
3975 rm -f conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_olimit_ok=yes
3987 else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ( exit $ac_status )
3993 ac_cv_olimit_ok=no
3995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3997 CC="$ac_save_cc"
4000 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4001 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4002 if test $ac_cv_olimit_ok = yes; then
4003 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4007 # On some compilers, pthreads are available without further options
4008 # (e.g. MacOS X). On some of these systems, the compiler will not
4009 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4010 # So we have to see first whether pthreads are available without
4011 # options before we can check whether -Kpthread improves anything.
4012 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4013 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4014 if test "${ac_cv_pthread_is_default+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 if test "$cross_compiling" = yes; then
4018 ac_cv_pthread_is_default=no
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 #include <pthread.h>
4029 void* routine(void* p){return NULL;}
4031 int main(){
4032 pthread_t p;
4033 if(pthread_create(&p,NULL,routine,NULL)!=0)
4034 return 1;
4035 (void)pthread_detach(p);
4036 return 0;
4039 _ACEOF
4040 rm -f conftest$ac_exeext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042 (eval $ac_link) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4052 ac_cv_pthread_is_default=yes
4053 ac_cv_kthread=no
4054 ac_cv_pthread=no
4056 else
4057 echo "$as_me: program exited with status $ac_status" >&5
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ( exit $ac_status )
4062 ac_cv_pthread_is_default=no
4064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4070 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4073 if test $ac_cv_pthread_is_default = yes
4074 then
4075 ac_cv_kpthread=no
4076 else
4077 # -Kpthread, if available, provides the right #defines
4078 # and linker options to make pthread_create available
4079 # Some compilers won't report that they do not support -Kpthread,
4080 # so we need to run a program to see whether it really made the
4081 # function available.
4082 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4083 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4084 if test "${ac_cv_kpthread+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 ac_save_cc="$CC"
4088 CC="$CC -Kpthread"
4089 if test "$cross_compiling" = yes; then
4090 ac_cv_kpthread=no
4091 else
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 #include <pthread.h>
4101 void* routine(void* p){return NULL;}
4103 int main(){
4104 pthread_t p;
4105 if(pthread_create(&p,NULL,routine,NULL)!=0)
4106 return 1;
4107 (void)pthread_detach(p);
4108 return 0;
4111 _ACEOF
4112 rm -f conftest$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_kpthread=yes
4124 else
4125 echo "$as_me: program exited with status $ac_status" >&5
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 ( exit $ac_status )
4130 ac_cv_kpthread=no
4132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4134 CC="$ac_save_cc"
4137 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4138 echo "${ECHO_T}$ac_cv_kpthread" >&6
4141 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4142 then
4143 # -Kthread, if available, provides the right #defines
4144 # and linker options to make pthread_create available
4145 # Some compilers won't report that they do not support -Kthread,
4146 # so we need to run a program to see whether it really made the
4147 # function available.
4148 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4149 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4150 if test "${ac_cv_kthread+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 ac_save_cc="$CC"
4154 CC="$CC -Kthread"
4155 if test "$cross_compiling" = yes; then
4156 ac_cv_kthread=no
4157 else
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4165 #include <pthread.h>
4167 void* routine(void* p){return NULL;}
4169 int main(){
4170 pthread_t p;
4171 if(pthread_create(&p,NULL,routine,NULL)!=0)
4172 return 1;
4173 (void)pthread_detach(p);
4174 return 0;
4177 _ACEOF
4178 rm -f conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_cv_kthread=yes
4190 else
4191 echo "$as_me: program exited with status $ac_status" >&5
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ( exit $ac_status )
4196 ac_cv_kthread=no
4198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4200 CC="$ac_save_cc"
4203 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4204 echo "${ECHO_T}$ac_cv_kthread" >&6
4207 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4208 then
4209 # -pthread, if available, provides the right #defines
4210 # and linker options to make pthread_create available
4211 # Some compilers won't report that they do not support -pthread,
4212 # so we need to run a program to see whether it really made the
4213 # function available.
4214 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4215 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4216 if test "${ac_cv_thread+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 ac_save_cc="$CC"
4220 CC="$CC -pthread"
4221 if test "$cross_compiling" = yes; then
4222 ac_cv_pthread=no
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 #include <pthread.h>
4233 void* routine(void* p){return NULL;}
4235 int main(){
4236 pthread_t p;
4237 if(pthread_create(&p,NULL,routine,NULL)!=0)
4238 return 1;
4239 (void)pthread_detach(p);
4240 return 0;
4243 _ACEOF
4244 rm -f conftest$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_pthread=yes
4256 else
4257 echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 ( exit $ac_status )
4262 ac_cv_pthread=no
4264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 CC="$ac_save_cc"
4269 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4270 echo "${ECHO_T}$ac_cv_pthread" >&6
4273 # If we have set a CC compiler flag for thread support then
4274 # check if it works for CXX, too.
4275 ac_cv_cxx_thread=no
4276 if test ! -z "$CXX"
4277 then
4278 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4279 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4280 ac_save_cxx="$CXX"
4282 if test "$ac_cv_kpthread" = "yes"
4283 then
4284 CXX="$CXX -Kpthread"
4285 ac_cv_cxx_thread=yes
4286 elif test "$ac_cv_kthread" = "yes"
4287 then
4288 CXX="$CXX -Kthread"
4289 ac_cv_cxx_thread=yes
4290 elif test "$ac_cv_pthread" = "yes"
4291 then
4292 CXX="$CXX -pthread"
4293 ac_cv_cxx_thread=yes
4296 if test $ac_cv_cxx_thread = yes
4297 then
4298 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4299 $CXX -c conftest.$ac_ext 2>&5
4300 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4301 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4302 then
4303 ac_cv_cxx_thread=yes
4304 else
4305 ac_cv_cxx_thread=no
4307 rm -fr conftest*
4309 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4310 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4312 CXX="$ac_save_cxx"
4315 # checks for header files
4316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4318 if test "${ac_cv_header_stdc+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <stdlib.h>
4328 #include <stdarg.h>
4329 #include <string.h>
4330 #include <float.h>
4333 main ()
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_header_stdc=yes
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_cv_header_stdc=no
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 if test $ac_cv_header_stdc = yes; then
4372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h. */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <string.h>
4381 _ACEOF
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383 $EGREP "memchr" >/dev/null 2>&1; then
4385 else
4386 ac_cv_header_stdc=no
4388 rm -f conftest*
4392 if test $ac_cv_header_stdc = yes; then
4393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <stdlib.h>
4402 _ACEOF
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "free" >/dev/null 2>&1; then
4406 else
4407 ac_cv_header_stdc=no
4409 rm -f conftest*
4413 if test $ac_cv_header_stdc = yes; then
4414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4415 if test "$cross_compiling" = yes; then
4417 else
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <ctype.h>
4425 #if ((' ' & 0x0FF) == 0x020)
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4428 #else
4429 # define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434 #endif
4436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438 main ()
4440 int i;
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
4444 exit(2);
4445 exit (0);
4447 _ACEOF
4448 rm -f conftest$ac_exeext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450 (eval $ac_link) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4460 else
4461 echo "$as_me: program exited with status $ac_status" >&5
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ( exit $ac_status )
4466 ac_cv_header_stdc=no
4468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4474 if test $ac_cv_header_stdc = yes; then
4476 cat >>confdefs.h <<\_ACEOF
4477 #define STDC_HEADERS 1
4478 _ACEOF
4482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4493 inttypes.h stdint.h unistd.h
4495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496 echo "$as_me:$LINENO: checking for $ac_header" >&5
4497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4509 #include <$ac_header>
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 eval "$as_ac_Header=yes"
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 eval "$as_ac_Header=no"
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h <<_ACEOF
4546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 _ACEOF
4551 done
4594 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4595 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4596 stropts.h termios.h thread.h \
4597 unistd.h utime.h \
4598 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4599 sys/modem.h \
4600 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h \
4601 sys/times.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4602 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4603 bluetooth/bluetooth.h
4605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607 echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4614 else
4615 # Is the header compilable?
4616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4625 #include <$ac_header>
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_header_compiler=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_header_compiler=no
4656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4658 echo "${ECHO_T}$ac_header_compiler" >&6
4660 # Is the header present?
4661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <$ac_header>
4670 _ACEOF
4671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev/null; then
4679 if test -s conftest.err; then
4680 ac_cpp_err=$ac_c_preproc_warn_flag
4681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4682 else
4683 ac_cpp_err=
4685 else
4686 ac_cpp_err=yes
4688 if test -z "$ac_cpp_err"; then
4689 ac_header_preproc=yes
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_header_preproc=no
4696 rm -f conftest.err conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4698 echo "${ECHO_T}$ac_header_preproc" >&6
4700 # So? What about this header?
4701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4702 yes:no: )
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4707 ac_header_preproc=yes
4709 no:yes:* )
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4723 cat <<\_ASBOX
4724 ## ------------------------------------------------ ##
4725 ## Report this to http://www.python.org/python-bugs ##
4726 ## ------------------------------------------------ ##
4727 _ASBOX
4729 sed "s/^/$as_me: WARNING: /" >&2
4731 esac
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 eval "$as_ac_Header=\$ac_header_preproc"
4739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4746 _ACEOF
4750 done
4757 ac_header_dirent=no
4758 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4759 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4760 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4761 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <sys/types.h>
4772 #include <$ac_hdr>
4775 main ()
4777 if ((DIR *) 0)
4778 return 0;
4780 return 0;
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 eval "$as_ac_Header=yes"
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 eval "$as_ac_Header=no"
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4819 _ACEOF
4821 ac_header_dirent=$ac_hdr; break
4824 done
4825 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4826 if test $ac_header_dirent = dirent.h; then
4827 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4828 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4829 if test "${ac_cv_search_opendir+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 ac_func_search_save_LIBS=$LIBS
4833 ac_cv_search_opendir=no
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 #ifdef __cplusplus
4843 extern "C"
4844 #endif
4845 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */
4847 char opendir ();
4849 main ()
4851 opendir ();
4853 return 0;
4855 _ACEOF
4856 rm -f conftest.$ac_objext conftest$ac_exeext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858 (eval $ac_link) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest$ac_exeext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_cv_search_opendir="none required"
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 rm -f conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4886 if test "$ac_cv_search_opendir" = no; then
4887 for ac_lib in dir; do
4888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char opendir ();
4904 main ()
4906 opendir ();
4908 return 0;
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest$ac_exeext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_cv_search_opendir="-l$ac_lib"
4934 break
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4940 rm -f conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext conftest.$ac_ext
4942 done
4944 LIBS=$ac_func_search_save_LIBS
4946 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4947 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4948 if test "$ac_cv_search_opendir" != no; then
4949 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4953 else
4954 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4955 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4956 if test "${ac_cv_search_opendir+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 ac_func_search_save_LIBS=$LIBS
4960 ac_cv_search_opendir=no
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char opendir ();
4976 main ()
4978 opendir ();
4980 return 0;
4982 _ACEOF
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4985 (eval $ac_link) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_search_opendir="none required"
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5011 rm -f conftest.err conftest.$ac_objext \
5012 conftest$ac_exeext conftest.$ac_ext
5013 if test "$ac_cv_search_opendir" = no; then
5014 for ac_lib in x; do
5015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 #ifdef __cplusplus
5025 extern "C"
5026 #endif
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5029 char opendir ();
5031 main ()
5033 opendir ();
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext conftest$ac_exeext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040 (eval $ac_link) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_search_opendir="-l$ac_lib"
5061 break
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5067 rm -f conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069 done
5071 LIBS=$ac_func_search_save_LIBS
5073 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5074 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5075 if test "$ac_cv_search_opendir" != no; then
5076 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5082 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5083 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5084 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <sys/types.h>
5095 main ()
5097 return makedev(0, 0);
5099 return 0;
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_header_sys_types_h_makedev=yes
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ac_cv_header_sys_types_h_makedev=no
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5135 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5136 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5138 if test $ac_cv_header_sys_types_h_makedev = no; then
5139 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5140 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5141 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5142 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5146 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5147 else
5148 # Is the header compilable?
5149 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5150 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 $ac_includes_default
5158 #include <sys/mkdev.h>
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>conftest.er1
5163 ac_status=$?
5164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_header_compiler=yes
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_header_compiler=no
5189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191 echo "${ECHO_T}$ac_header_compiler" >&6
5193 # Is the header present?
5194 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5195 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <sys/mkdev.h>
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_c_preproc_warn_flag
5214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5215 else
5216 ac_cpp_err=
5218 else
5219 ac_cpp_err=yes
5221 if test -z "$ac_cpp_err"; then
5222 ac_header_preproc=yes
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_header_preproc=no
5229 rm -f conftest.err conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5231 echo "${ECHO_T}$ac_header_preproc" >&6
5233 # So? What about this header?
5234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5235 yes:no: )
5236 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5237 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5239 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5240 ac_header_preproc=yes
5242 no:yes:* )
5243 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5244 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5245 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5246 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5247 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5248 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5250 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5256 cat <<\_ASBOX
5257 ## ------------------------------------------------ ##
5258 ## Report this to http://www.python.org/python-bugs ##
5259 ## ------------------------------------------------ ##
5260 _ASBOX
5262 sed "s/^/$as_me: WARNING: /" >&2
5264 esac
5265 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5266 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5276 if test $ac_cv_header_sys_mkdev_h = yes; then
5278 cat >>confdefs.h <<\_ACEOF
5279 #define MAJOR_IN_MKDEV 1
5280 _ACEOF
5286 if test $ac_cv_header_sys_mkdev_h = no; then
5287 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5288 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5289 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5290 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5294 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5295 else
5296 # Is the header compilable?
5297 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5298 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 #include <sys/sysmacros.h>
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_header_compiler=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_compiler=no
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5339 echo "${ECHO_T}$ac_header_compiler" >&6
5341 # Is the header present?
5342 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5343 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <sys/sysmacros.h>
5351 _ACEOF
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null; then
5360 if test -s conftest.err; then
5361 ac_cpp_err=$ac_c_preproc_warn_flag
5362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5363 else
5364 ac_cpp_err=
5366 else
5367 ac_cpp_err=yes
5369 if test -z "$ac_cpp_err"; then
5370 ac_header_preproc=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_header_preproc=no
5377 rm -f conftest.err conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379 echo "${ECHO_T}$ac_header_preproc" >&6
5381 # So? What about this header?
5382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5383 yes:no: )
5384 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5385 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5387 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5388 ac_header_preproc=yes
5390 no:yes:* )
5391 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5396 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5398 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5404 cat <<\_ASBOX
5405 ## ------------------------------------------------ ##
5406 ## Report this to http://www.python.org/python-bugs ##
5407 ## ------------------------------------------------ ##
5408 _ASBOX
5410 sed "s/^/$as_me: WARNING: /" >&2
5412 esac
5413 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5414 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5420 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5421 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5424 if test $ac_cv_header_sys_sysmacros_h = yes; then
5426 cat >>confdefs.h <<\_ACEOF
5427 #define MAJOR_IN_SYSMACROS 1
5428 _ACEOF
5437 # On Solaris, term.h requires curses.h
5439 for ac_header in term.h
5441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5454 #ifdef HAVE_CURSES_H
5455 #include <curses.h>
5456 #endif
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 eval "$as_ac_Header=yes"
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 eval "$as_ac_Header=no"
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495 cat >>confdefs.h <<_ACEOF
5496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 _ACEOF
5501 done
5504 # On Linux, netlink.h requires asm/types.h
5506 for ac_header in linux/netlink.h
5508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 #ifdef HAVE_ASM_TYPES_H
5522 #include <asm/types.h>
5523 #endif
5524 #ifdef HAVE_SYS_SOCKET_H
5525 #include <sys/socket.h>
5526 #endif
5529 #include <$ac_header>
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 eval "$as_ac_Header=yes"
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 eval "$as_ac_Header=no"
5560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567 _ACEOF
5571 done
5574 # checks for typedefs
5575 was_it_defined=no
5576 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5577 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <time.h>
5586 _ACEOF
5587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588 $EGREP "clock_t" >/dev/null 2>&1; then
5589 was_it_defined=yes
5590 else
5593 cat >>confdefs.h <<\_ACEOF
5594 #define clock_t long
5595 _ACEOF
5599 rm -f conftest*
5601 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5602 echo "${ECHO_T}$was_it_defined" >&6
5604 # Check whether using makedev requires defining _OSF_SOURCE
5605 echo "$as_me:$LINENO: checking for makedev" >&5
5606 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5615 main ()
5617 makedev(0, 0)
5619 return 0;
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_has_makedev=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_cv_has_makedev=no
5651 rm -f conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653 if test "$ac_cv_has_makedev" = "no"; then
5654 # we didn't link, try if _OSF_SOURCE will allow us to link
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5662 #define _OSF_SOURCE 1
5663 #include <sys/types.h>
5666 main ()
5668 makedev(0, 0)
5670 return 0;
5672 _ACEOF
5673 rm -f conftest.$ac_objext conftest$ac_exeext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_has_makedev=yes
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_cv_has_makedev=no
5702 rm -f conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 if test "$ac_cv_has_makedev" = "yes"; then
5706 cat >>confdefs.h <<\_ACEOF
5707 #define _OSF_SOURCE 1
5708 _ACEOF
5712 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5713 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5714 if test "$ac_cv_has_makedev" = "yes"; then
5716 cat >>confdefs.h <<\_ACEOF
5717 #define HAVE_MAKEDEV 1
5718 _ACEOF
5722 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5723 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5724 # defined, but the compiler does not support pragma redefine_extname,
5725 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5726 # structures (such as rlimit64) without declaring them. As a
5727 # work-around, disable LFS on such configurations
5729 use_lfs=yes
5730 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5731 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 #define _LARGEFILE_SOURCE 1
5740 #define _FILE_OFFSET_BITS 64
5741 #include <sys/resource.h>
5744 main ()
5746 struct rlimit foo;
5748 return 0;
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 sol_lfs_bug=no
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 sol_lfs_bug=yes
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5782 echo "${ECHO_T}$sol_lfs_bug" >&6
5783 if test "$sol_lfs_bug" = "yes"; then
5784 use_lfs=no
5787 if test "$use_lfs" = "yes"; then
5788 # Two defines needed to enable largefile support on various platforms
5789 # These may affect some typedefs
5791 cat >>confdefs.h <<\_ACEOF
5792 #define _LARGEFILE_SOURCE 1
5793 _ACEOF
5796 cat >>confdefs.h <<\_ACEOF
5797 #define _FILE_OFFSET_BITS 64
5798 _ACEOF
5802 # Add some code to confdefs.h so that the test for off_t works on SCO
5803 cat >> confdefs.h <<\EOF
5804 #if defined(SCO_DS)
5805 #undef _OFF_T
5806 #endif
5809 # Type availability checks
5810 echo "$as_me:$LINENO: checking for mode_t" >&5
5811 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5812 if test "${ac_cv_type_mode_t+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5823 main ()
5825 if ((mode_t *) 0)
5826 return 0;
5827 if (sizeof (mode_t))
5828 return 0;
5830 return 0;
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 ac_cv_type_mode_t=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_type_mode_t=no
5862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5865 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5866 if test $ac_cv_type_mode_t = yes; then
5868 else
5870 cat >>confdefs.h <<_ACEOF
5871 #define mode_t int
5872 _ACEOF
5876 echo "$as_me:$LINENO: checking for off_t" >&5
5877 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5878 if test "${ac_cv_type_off_t+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5889 main ()
5891 if ((off_t *) 0)
5892 return 0;
5893 if (sizeof (off_t))
5894 return 0;
5896 return 0;
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_type_off_t=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_type_off_t=no
5928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5932 if test $ac_cv_type_off_t = yes; then
5934 else
5936 cat >>confdefs.h <<_ACEOF
5937 #define off_t long
5938 _ACEOF
5942 echo "$as_me:$LINENO: checking for pid_t" >&5
5943 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5944 if test "${ac_cv_type_pid_t+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5955 main ()
5957 if ((pid_t *) 0)
5958 return 0;
5959 if (sizeof (pid_t))
5960 return 0;
5962 return 0;
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -z "$ac_c_werror_flag"
5975 || test ! -s conftest.err'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_type_pid_t=yes
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_type_pid_t=no
5994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5997 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5998 if test $ac_cv_type_pid_t = yes; then
6000 else
6002 cat >>confdefs.h <<_ACEOF
6003 #define pid_t int
6004 _ACEOF
6008 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6009 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6010 if test "${ac_cv_type_signal+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <sys/types.h>
6020 #include <signal.h>
6021 #ifdef signal
6022 # undef signal
6023 #endif
6024 #ifdef __cplusplus
6025 extern "C" void (*signal (int, void (*)(int)))(int);
6026 #else
6027 void (*signal ()) ();
6028 #endif
6031 main ()
6033 int i;
6035 return 0;
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_type_signal=void
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_type_signal=int
6067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6070 echo "${ECHO_T}$ac_cv_type_signal" >&6
6072 cat >>confdefs.h <<_ACEOF
6073 #define RETSIGTYPE $ac_cv_type_signal
6074 _ACEOF
6077 echo "$as_me:$LINENO: checking for size_t" >&5
6078 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6079 if test "${ac_cv_type_size_t+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 $ac_includes_default
6090 main ()
6092 if ((size_t *) 0)
6093 return 0;
6094 if (sizeof (size_t))
6095 return 0;
6097 return 0;
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_c_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest.$ac_objext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_type_size_t=yes
6123 else
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_cv_type_size_t=no
6129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6132 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6133 if test $ac_cv_type_size_t = yes; then
6135 else
6137 cat >>confdefs.h <<_ACEOF
6138 #define size_t unsigned
6139 _ACEOF
6143 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6144 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6145 if test "${ac_cv_type_uid_t+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <sys/types.h>
6156 _ACEOF
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "uid_t" >/dev/null 2>&1; then
6159 ac_cv_type_uid_t=yes
6160 else
6161 ac_cv_type_uid_t=no
6163 rm -f conftest*
6166 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6167 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6168 if test $ac_cv_type_uid_t = no; then
6170 cat >>confdefs.h <<\_ACEOF
6171 #define uid_t int
6172 _ACEOF
6175 cat >>confdefs.h <<\_ACEOF
6176 #define gid_t int
6177 _ACEOF
6181 echo "$as_me:$LINENO: checking for ssize_t" >&5
6182 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6183 if test "${ac_cv_type_ssize_t+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6194 main ()
6196 if ((ssize_t *) 0)
6197 return 0;
6198 if (sizeof (ssize_t))
6199 return 0;
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_type_ssize_t=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_type_ssize_t=no
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6236 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6237 if test $ac_cv_type_ssize_t = yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_SSIZE_T 1
6241 _ACEOF
6246 # Sizes of various common basic types
6247 # ANSI C requires sizeof(char) == 1, so no need to check it
6248 echo "$as_me:$LINENO: checking for int" >&5
6249 echo $ECHO_N "checking for int... $ECHO_C" >&6
6250 if test "${ac_cv_type_int+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6261 main ()
6263 if ((int *) 0)
6264 return 0;
6265 if (sizeof (int))
6266 return 0;
6268 return 0;
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_type_int=yes
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_cv_type_int=no
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6303 echo "${ECHO_T}$ac_cv_type_int" >&6
6305 echo "$as_me:$LINENO: checking size of int" >&5
6306 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6307 if test "${ac_cv_sizeof_int+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 if test "$ac_cv_type_int" = yes; then
6311 # The cast to unsigned long works around a bug in the HP C Compiler
6312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6314 # This bug is HP SR number 8606223364.
6315 if test "$cross_compiling" = yes; then
6316 # Depending upon the size, compute the lo and hi bounds.
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6325 main ()
6327 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6328 test_array [0] = 0
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_lo=0 ac_mid=0
6357 while :; do
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 $ac_includes_default
6366 main ()
6368 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6369 test_array [0] = 0
6372 return 0;
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_hi=$ac_mid; break
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_lo=`expr $ac_mid + 1`
6403 if test $ac_lo -le $ac_mid; then
6404 ac_lo= ac_hi=
6405 break
6407 ac_mid=`expr 2 '*' $ac_mid + 1`
6409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 done
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6423 main ()
6425 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6426 test_array [0] = 0
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_hi=-1 ac_mid=-1
6455 while :; do
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6464 main ()
6466 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6467 test_array [0] = 0
6470 return 0;
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_lo=$ac_mid; break
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_hi=`expr '(' $ac_mid ')' - 1`
6501 if test $ac_mid -le $ac_hi; then
6502 ac_lo= ac_hi=
6503 break
6505 ac_mid=`expr 2 '*' $ac_mid`
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 done
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 ac_lo= ac_hi=
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518 # Binary search between lo and hi bounds.
6519 while test "x$ac_lo" != "x$ac_hi"; do
6520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6529 main ()
6531 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6532 test_array [0] = 0
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_c_werror_flag"
6548 || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_hi=$ac_mid
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_lo=`expr '(' $ac_mid ')' + 1`
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568 done
6569 case $ac_lo in
6570 ?*) ac_cv_sizeof_int=$ac_lo;;
6571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6572 See \`config.log' for more details." >&5
6573 echo "$as_me: error: cannot compute sizeof (int), 77
6574 See \`config.log' for more details." >&2;}
6575 { (exit 1); exit 1; }; } ;;
6576 esac
6577 else
6578 if test "$cross_compiling" = yes; then
6579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot run test program while cross compiling
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; }
6584 else
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6592 long longval () { return (long) (sizeof (int)); }
6593 unsigned long ulongval () { return (long) (sizeof (int)); }
6594 #include <stdio.h>
6595 #include <stdlib.h>
6597 main ()
6600 FILE *f = fopen ("conftest.val", "w");
6601 if (! f)
6602 exit (1);
6603 if (((long) (sizeof (int))) < 0)
6605 long i = longval ();
6606 if (i != ((long) (sizeof (int))))
6607 exit (1);
6608 fprintf (f, "%ld\n", i);
6610 else
6612 unsigned long i = ulongval ();
6613 if (i != ((long) (sizeof (int))))
6614 exit (1);
6615 fprintf (f, "%lu\n", i);
6617 exit (ferror (f) || fclose (f) != 0);
6620 return 0;
6622 _ACEOF
6623 rm -f conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_sizeof_int=`cat conftest.val`
6635 else
6636 echo "$as_me: program exited with status $ac_status" >&5
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ( exit $ac_status )
6641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6642 See \`config.log' for more details." >&5
6643 echo "$as_me: error: cannot compute sizeof (int), 77
6644 See \`config.log' for more details." >&2;}
6645 { (exit 1); exit 1; }; }
6647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6650 rm -f conftest.val
6651 else
6652 ac_cv_sizeof_int=0
6655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6657 cat >>confdefs.h <<_ACEOF
6658 #define SIZEOF_INT $ac_cv_sizeof_int
6659 _ACEOF
6662 echo "$as_me:$LINENO: checking for long" >&5
6663 echo $ECHO_N "checking for long... $ECHO_C" >&6
6664 if test "${ac_cv_type_long+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 $ac_includes_default
6675 main ()
6677 if ((long *) 0)
6678 return 0;
6679 if (sizeof (long))
6680 return 0;
6682 return 0;
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687 (eval $ac_compile) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest.$ac_objext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_type_long=yes
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_cv_type_long=no
6714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6716 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6717 echo "${ECHO_T}$ac_cv_type_long" >&6
6719 echo "$as_me:$LINENO: checking size of long" >&5
6720 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6721 if test "${ac_cv_sizeof_long+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 if test "$ac_cv_type_long" = yes; then
6725 # The cast to unsigned long works around a bug in the HP C Compiler
6726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6728 # This bug is HP SR number 8606223364.
6729 if test "$cross_compiling" = yes; then
6730 # Depending upon the size, compute the lo and hi bounds.
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6739 main ()
6741 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6742 test_array [0] = 0
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_lo=0 ac_mid=0
6771 while :; do
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6780 main ()
6782 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6783 test_array [0] = 0
6786 return 0;
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_hi=$ac_mid; break
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_lo=`expr $ac_mid + 1`
6817 if test $ac_lo -le $ac_mid; then
6818 ac_lo= ac_hi=
6819 break
6821 ac_mid=`expr 2 '*' $ac_mid + 1`
6823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 done
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6837 main ()
6839 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6840 test_array [0] = 0
6843 return 0;
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -z "$ac_c_werror_flag"
6856 || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_hi=-1 ac_mid=-1
6869 while :; do
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6878 main ()
6880 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6881 test_array [0] = 0
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_lo=$ac_mid; break
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_hi=`expr '(' $ac_mid ')' - 1`
6915 if test $ac_mid -le $ac_hi; then
6916 ac_lo= ac_hi=
6917 break
6919 ac_mid=`expr 2 '*' $ac_mid`
6921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 done
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_lo= ac_hi=
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932 # Binary search between lo and hi bounds.
6933 while test "x$ac_lo" != "x$ac_hi"; do
6934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6943 main ()
6945 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6946 test_array [0] = 0
6949 return 0;
6951 _ACEOF
6952 rm -f conftest.$ac_objext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -z "$ac_c_werror_flag"
6962 || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try='test -s conftest.$ac_objext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 ac_hi=$ac_mid
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_lo=`expr '(' $ac_mid ')' + 1`
6981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 done
6983 case $ac_lo in
6984 ?*) ac_cv_sizeof_long=$ac_lo;;
6985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6986 See \`config.log' for more details." >&5
6987 echo "$as_me: error: cannot compute sizeof (long), 77
6988 See \`config.log' for more details." >&2;}
6989 { (exit 1); exit 1; }; } ;;
6990 esac
6991 else
6992 if test "$cross_compiling" = yes; then
6993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot run test program while cross compiling
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; }
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7006 long longval () { return (long) (sizeof (long)); }
7007 unsigned long ulongval () { return (long) (sizeof (long)); }
7008 #include <stdio.h>
7009 #include <stdlib.h>
7011 main ()
7014 FILE *f = fopen ("conftest.val", "w");
7015 if (! f)
7016 exit (1);
7017 if (((long) (sizeof (long))) < 0)
7019 long i = longval ();
7020 if (i != ((long) (sizeof (long))))
7021 exit (1);
7022 fprintf (f, "%ld\n", i);
7024 else
7026 unsigned long i = ulongval ();
7027 if (i != ((long) (sizeof (long))))
7028 exit (1);
7029 fprintf (f, "%lu\n", i);
7031 exit (ferror (f) || fclose (f) != 0);
7034 return 0;
7036 _ACEOF
7037 rm -f conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_sizeof_long=`cat conftest.val`
7049 else
7050 echo "$as_me: program exited with status $ac_status" >&5
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ( exit $ac_status )
7055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7056 See \`config.log' for more details." >&5
7057 echo "$as_me: error: cannot compute sizeof (long), 77
7058 See \`config.log' for more details." >&2;}
7059 { (exit 1); exit 1; }; }
7061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7064 rm -f conftest.val
7065 else
7066 ac_cv_sizeof_long=0
7069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7070 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7071 cat >>confdefs.h <<_ACEOF
7072 #define SIZEOF_LONG $ac_cv_sizeof_long
7073 _ACEOF
7076 echo "$as_me:$LINENO: checking for void *" >&5
7077 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7078 if test "${ac_cv_type_void_p+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7089 main ()
7091 if ((void * *) 0)
7092 return 0;
7093 if (sizeof (void *))
7094 return 0;
7096 return 0;
7098 _ACEOF
7099 rm -f conftest.$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>conftest.er1
7102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_type_void_p=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_cv_type_void_p=no
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7131 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7133 echo "$as_me:$LINENO: checking size of void *" >&5
7134 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7135 if test "${ac_cv_sizeof_void_p+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 if test "$ac_cv_type_void_p" = yes; then
7139 # The cast to unsigned long works around a bug in the HP C Compiler
7140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7142 # This bug is HP SR number 8606223364.
7143 if test "$cross_compiling" = yes; then
7144 # Depending upon the size, compute the lo and hi bounds.
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 $ac_includes_default
7153 main ()
7155 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7156 test_array [0] = 0
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -z "$ac_c_werror_flag"
7172 || test ! -s conftest.err'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_lo=0 ac_mid=0
7185 while :; do
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7194 main ()
7196 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7197 test_array [0] = 0
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_hi=$ac_mid; break
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 ac_lo=`expr $ac_mid + 1`
7231 if test $ac_lo -le $ac_mid; then
7232 ac_lo= ac_hi=
7233 break
7235 ac_mid=`expr 2 '*' $ac_mid + 1`
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 done
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7251 main ()
7253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7254 test_array [0] = 0
7257 return 0;
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest.$ac_objext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_hi=-1 ac_mid=-1
7283 while :; do
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7292 main ()
7294 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7295 test_array [0] = 0
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest.$ac_objext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_lo=$ac_mid; break
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_hi=`expr '(' $ac_mid ')' - 1`
7329 if test $ac_mid -le $ac_hi; then
7330 ac_lo= ac_hi=
7331 break
7333 ac_mid=`expr 2 '*' $ac_mid`
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 done
7337 else
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 ac_lo= ac_hi=
7343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 # Binary search between lo and hi bounds.
7347 while test "x$ac_lo" != "x$ac_hi"; do
7348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7349 cat >conftest.$ac_ext <<_ACEOF
7350 /* confdefs.h. */
7351 _ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7355 $ac_includes_default
7357 main ()
7359 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7360 test_array [0] = 0
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest.$ac_objext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 ac_hi=$ac_mid
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 ac_lo=`expr '(' $ac_mid ')' + 1`
7395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7396 done
7397 case $ac_lo in
7398 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7399 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7400 See \`config.log' for more details." >&5
7401 echo "$as_me: error: cannot compute sizeof (void *), 77
7402 See \`config.log' for more details." >&2;}
7403 { (exit 1); exit 1; }; } ;;
7404 esac
7405 else
7406 if test "$cross_compiling" = yes; then
7407 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot run test program while cross compiling
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; }
7412 else
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 long longval () { return (long) (sizeof (void *)); }
7421 unsigned long ulongval () { return (long) (sizeof (void *)); }
7422 #include <stdio.h>
7423 #include <stdlib.h>
7425 main ()
7428 FILE *f = fopen ("conftest.val", "w");
7429 if (! f)
7430 exit (1);
7431 if (((long) (sizeof (void *))) < 0)
7433 long i = longval ();
7434 if (i != ((long) (sizeof (void *))))
7435 exit (1);
7436 fprintf (f, "%ld\n", i);
7438 else
7440 unsigned long i = ulongval ();
7441 if (i != ((long) (sizeof (void *))))
7442 exit (1);
7443 fprintf (f, "%lu\n", i);
7445 exit (ferror (f) || fclose (f) != 0);
7448 return 0;
7450 _ACEOF
7451 rm -f conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_sizeof_void_p=`cat conftest.val`
7463 else
7464 echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ( exit $ac_status )
7469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7470 See \`config.log' for more details." >&5
7471 echo "$as_me: error: cannot compute sizeof (void *), 77
7472 See \`config.log' for more details." >&2;}
7473 { (exit 1); exit 1; }; }
7475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7478 rm -f conftest.val
7479 else
7480 ac_cv_sizeof_void_p=0
7483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7484 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7485 cat >>confdefs.h <<_ACEOF
7486 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7487 _ACEOF
7490 echo "$as_me:$LINENO: checking for short" >&5
7491 echo $ECHO_N "checking for short... $ECHO_C" >&6
7492 if test "${ac_cv_type_short+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7503 main ()
7505 if ((short *) 0)
7506 return 0;
7507 if (sizeof (short))
7508 return 0;
7510 return 0;
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_type_short=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_type_short=no
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7545 echo "${ECHO_T}$ac_cv_type_short" >&6
7547 echo "$as_me:$LINENO: checking size of short" >&5
7548 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7549 if test "${ac_cv_sizeof_short+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 if test "$ac_cv_type_short" = yes; then
7553 # The cast to unsigned long works around a bug in the HP C Compiler
7554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7556 # This bug is HP SR number 8606223364.
7557 if test "$cross_compiling" = yes; then
7558 # Depending upon the size, compute the lo and hi bounds.
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7567 main ()
7569 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7570 test_array [0] = 0
7573 return 0;
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest.$ac_objext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_lo=0 ac_mid=0
7599 while :; do
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7608 main ()
7610 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7611 test_array [0] = 0
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_hi=$ac_mid; break
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_lo=`expr $ac_mid + 1`
7645 if test $ac_lo -le $ac_mid; then
7646 ac_lo= ac_hi=
7647 break
7649 ac_mid=`expr 2 '*' $ac_mid + 1`
7651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652 done
7653 else
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7665 main ()
7667 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7668 test_array [0] = 0
7671 return 0;
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676 (eval $ac_compile) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_hi=-1 ac_mid=-1
7697 while :; do
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7706 main ()
7708 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7709 test_array [0] = 0
7712 return 0;
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717 (eval $ac_compile) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -z "$ac_c_werror_flag"
7725 || test ! -s conftest.err'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try='test -s conftest.$ac_objext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_lo=$ac_mid; break
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 ac_hi=`expr '(' $ac_mid ')' - 1`
7743 if test $ac_mid -le $ac_hi; then
7744 ac_lo= ac_hi=
7745 break
7747 ac_mid=`expr 2 '*' $ac_mid`
7749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750 done
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_lo= ac_hi=
7757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 # Binary search between lo and hi bounds.
7761 while test "x$ac_lo" != "x$ac_hi"; do
7762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 $ac_includes_default
7771 main ()
7773 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7774 test_array [0] = 0
7777 return 0;
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_hi=$ac_mid
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_lo=`expr '(' $ac_mid ')' + 1`
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810 done
7811 case $ac_lo in
7812 ?*) ac_cv_sizeof_short=$ac_lo;;
7813 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7814 See \`config.log' for more details." >&5
7815 echo "$as_me: error: cannot compute sizeof (short), 77
7816 See \`config.log' for more details." >&2;}
7817 { (exit 1); exit 1; }; } ;;
7818 esac
7819 else
7820 if test "$cross_compiling" = yes; then
7821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot run test program while cross compiling
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; }
7826 else
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7834 long longval () { return (long) (sizeof (short)); }
7835 unsigned long ulongval () { return (long) (sizeof (short)); }
7836 #include <stdio.h>
7837 #include <stdlib.h>
7839 main ()
7842 FILE *f = fopen ("conftest.val", "w");
7843 if (! f)
7844 exit (1);
7845 if (((long) (sizeof (short))) < 0)
7847 long i = longval ();
7848 if (i != ((long) (sizeof (short))))
7849 exit (1);
7850 fprintf (f, "%ld\n", i);
7852 else
7854 unsigned long i = ulongval ();
7855 if (i != ((long) (sizeof (short))))
7856 exit (1);
7857 fprintf (f, "%lu\n", i);
7859 exit (ferror (f) || fclose (f) != 0);
7862 return 0;
7864 _ACEOF
7865 rm -f conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_sizeof_short=`cat conftest.val`
7877 else
7878 echo "$as_me: program exited with status $ac_status" >&5
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ( exit $ac_status )
7883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7884 See \`config.log' for more details." >&5
7885 echo "$as_me: error: cannot compute sizeof (short), 77
7886 See \`config.log' for more details." >&2;}
7887 { (exit 1); exit 1; }; }
7889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7892 rm -f conftest.val
7893 else
7894 ac_cv_sizeof_short=0
7897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7898 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7899 cat >>confdefs.h <<_ACEOF
7900 #define SIZEOF_SHORT $ac_cv_sizeof_short
7901 _ACEOF
7904 echo "$as_me:$LINENO: checking for float" >&5
7905 echo $ECHO_N "checking for float... $ECHO_C" >&6
7906 if test "${ac_cv_type_float+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7917 main ()
7919 if ((float *) 0)
7920 return 0;
7921 if (sizeof (float))
7922 return 0;
7924 return 0;
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_type_float=yes
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_cv_type_float=no
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7959 echo "${ECHO_T}$ac_cv_type_float" >&6
7961 echo "$as_me:$LINENO: checking size of float" >&5
7962 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7963 if test "${ac_cv_sizeof_float+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 if test "$ac_cv_type_float" = yes; then
7967 # The cast to unsigned long works around a bug in the HP C Compiler
7968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970 # This bug is HP SR number 8606223364.
7971 if test "$cross_compiling" = yes; then
7972 # Depending upon the size, compute the lo and hi bounds.
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 $ac_includes_default
7981 main ()
7983 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7984 test_array [0] = 0
7987 return 0;
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_lo=0 ac_mid=0
8013 while :; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8022 main ()
8024 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8025 test_array [0] = 0
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_hi=$ac_mid; break
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_lo=`expr $ac_mid + 1`
8059 if test $ac_lo -le $ac_mid; then
8060 ac_lo= ac_hi=
8061 break
8063 ac_mid=`expr 2 '*' $ac_mid + 1`
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 done
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 $ac_includes_default
8079 main ()
8081 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8082 test_array [0] = 0
8085 return 0;
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090 (eval $ac_compile) 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -z "$ac_c_werror_flag"
8098 || test ! -s conftest.err'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest.$ac_objext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_hi=-1 ac_mid=-1
8111 while :; do
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 $ac_includes_default
8120 main ()
8122 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8123 test_array [0] = 0
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131 (eval $ac_compile) 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -z "$ac_c_werror_flag"
8139 || test ! -s conftest.err'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try='test -s conftest.$ac_objext'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 (eval $ac_try) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_lo=$ac_mid; break
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_hi=`expr '(' $ac_mid ')' - 1`
8157 if test $ac_mid -le $ac_hi; then
8158 ac_lo= ac_hi=
8159 break
8161 ac_mid=`expr 2 '*' $ac_mid`
8163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8164 done
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_lo= ac_hi=
8171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 # Binary search between lo and hi bounds.
8175 while test "x$ac_lo" != "x$ac_hi"; do
8176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 $ac_includes_default
8185 main ()
8187 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8188 test_array [0] = 0
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_hi=$ac_mid
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ac_lo=`expr '(' $ac_mid ')' + 1`
8223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8224 done
8225 case $ac_lo in
8226 ?*) ac_cv_sizeof_float=$ac_lo;;
8227 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8228 See \`config.log' for more details." >&5
8229 echo "$as_me: error: cannot compute sizeof (float), 77
8230 See \`config.log' for more details." >&2;}
8231 { (exit 1); exit 1; }; } ;;
8232 esac
8233 else
8234 if test "$cross_compiling" = yes; then
8235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot run test program while cross compiling
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; }
8240 else
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h. */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 $ac_includes_default
8248 long longval () { return (long) (sizeof (float)); }
8249 unsigned long ulongval () { return (long) (sizeof (float)); }
8250 #include <stdio.h>
8251 #include <stdlib.h>
8253 main ()
8256 FILE *f = fopen ("conftest.val", "w");
8257 if (! f)
8258 exit (1);
8259 if (((long) (sizeof (float))) < 0)
8261 long i = longval ();
8262 if (i != ((long) (sizeof (float))))
8263 exit (1);
8264 fprintf (f, "%ld\n", i);
8266 else
8268 unsigned long i = ulongval ();
8269 if (i != ((long) (sizeof (float))))
8270 exit (1);
8271 fprintf (f, "%lu\n", i);
8273 exit (ferror (f) || fclose (f) != 0);
8276 return 0;
8278 _ACEOF
8279 rm -f conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_sizeof_float=`cat conftest.val`
8291 else
8292 echo "$as_me: program exited with status $ac_status" >&5
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ( exit $ac_status )
8297 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8298 See \`config.log' for more details." >&5
8299 echo "$as_me: error: cannot compute sizeof (float), 77
8300 See \`config.log' for more details." >&2;}
8301 { (exit 1); exit 1; }; }
8303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8306 rm -f conftest.val
8307 else
8308 ac_cv_sizeof_float=0
8311 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8312 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8313 cat >>confdefs.h <<_ACEOF
8314 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8315 _ACEOF
8318 echo "$as_me:$LINENO: checking for double" >&5
8319 echo $ECHO_N "checking for double... $ECHO_C" >&6
8320 if test "${ac_cv_type_double+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8331 main ()
8333 if ((double *) 0)
8334 return 0;
8335 if (sizeof (double))
8336 return 0;
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_type_double=yes
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_cv_type_double=no
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8373 echo "${ECHO_T}$ac_cv_type_double" >&6
8375 echo "$as_me:$LINENO: checking size of double" >&5
8376 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8377 if test "${ac_cv_sizeof_double+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380 if test "$ac_cv_type_double" = yes; then
8381 # The cast to unsigned long works around a bug in the HP C Compiler
8382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8384 # This bug is HP SR number 8606223364.
8385 if test "$cross_compiling" = yes; then
8386 # Depending upon the size, compute the lo and hi bounds.
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8395 main ()
8397 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8398 test_array [0] = 0
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_lo=0 ac_mid=0
8427 while :; do
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8436 main ()
8438 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8439 test_array [0] = 0
8442 return 0;
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_hi=$ac_mid; break
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_lo=`expr $ac_mid + 1`
8473 if test $ac_lo -le $ac_mid; then
8474 ac_lo= ac_hi=
8475 break
8477 ac_mid=`expr 2 '*' $ac_mid + 1`
8479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480 done
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8493 main ()
8495 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8496 test_array [0] = 0
8499 return 0;
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest.$ac_objext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_hi=-1 ac_mid=-1
8525 while :; do
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8534 main ()
8536 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8537 test_array [0] = 0
8540 return 0;
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_lo=$ac_mid; break
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_hi=`expr '(' $ac_mid ')' - 1`
8571 if test $ac_mid -le $ac_hi; then
8572 ac_lo= ac_hi=
8573 break
8575 ac_mid=`expr 2 '*' $ac_mid`
8577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578 done
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_lo= ac_hi=
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588 # Binary search between lo and hi bounds.
8589 while test "x$ac_lo" != "x$ac_hi"; do
8590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8599 main ()
8601 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8602 test_array [0] = 0
8605 return 0;
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_hi=$ac_mid
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_lo=`expr '(' $ac_mid ')' + 1`
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638 done
8639 case $ac_lo in
8640 ?*) ac_cv_sizeof_double=$ac_lo;;
8641 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: cannot compute sizeof (double), 77
8644 See \`config.log' for more details." >&2;}
8645 { (exit 1); exit 1; }; } ;;
8646 esac
8647 else
8648 if test "$cross_compiling" = yes; then
8649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot run test program while cross compiling
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; }
8654 else
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 long longval () { return (long) (sizeof (double)); }
8663 unsigned long ulongval () { return (long) (sizeof (double)); }
8664 #include <stdio.h>
8665 #include <stdlib.h>
8667 main ()
8670 FILE *f = fopen ("conftest.val", "w");
8671 if (! f)
8672 exit (1);
8673 if (((long) (sizeof (double))) < 0)
8675 long i = longval ();
8676 if (i != ((long) (sizeof (double))))
8677 exit (1);
8678 fprintf (f, "%ld\n", i);
8680 else
8682 unsigned long i = ulongval ();
8683 if (i != ((long) (sizeof (double))))
8684 exit (1);
8685 fprintf (f, "%lu\n", i);
8687 exit (ferror (f) || fclose (f) != 0);
8690 return 0;
8692 _ACEOF
8693 rm -f conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_sizeof_double=`cat conftest.val`
8705 else
8706 echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 ( exit $ac_status )
8711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8712 See \`config.log' for more details." >&5
8713 echo "$as_me: error: cannot compute sizeof (double), 77
8714 See \`config.log' for more details." >&2;}
8715 { (exit 1); exit 1; }; }
8717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8720 rm -f conftest.val
8721 else
8722 ac_cv_sizeof_double=0
8725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8726 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8727 cat >>confdefs.h <<_ACEOF
8728 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8729 _ACEOF
8732 echo "$as_me:$LINENO: checking for fpos_t" >&5
8733 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8734 if test "${ac_cv_type_fpos_t+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8745 main ()
8747 if ((fpos_t *) 0)
8748 return 0;
8749 if (sizeof (fpos_t))
8750 return 0;
8752 return 0;
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_type_fpos_t=yes
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_type_fpos_t=no
8784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8787 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8789 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8790 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8791 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 if test "$ac_cv_type_fpos_t" = yes; then
8795 # The cast to unsigned long works around a bug in the HP C Compiler
8796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8798 # This bug is HP SR number 8606223364.
8799 if test "$cross_compiling" = yes; then
8800 # Depending upon the size, compute the lo and hi bounds.
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8809 main ()
8811 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8812 test_array [0] = 0
8815 return 0;
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>conftest.er1
8821 ac_status=$?
8822 grep -v '^ *+' conftest.er1 >conftest.err
8823 rm -f conftest.er1
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest.$ac_objext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_lo=0 ac_mid=0
8841 while :; do
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h. */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 $ac_includes_default
8850 main ()
8852 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8853 test_array [0] = 0
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_hi=$ac_mid; break
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_lo=`expr $ac_mid + 1`
8887 if test $ac_lo -le $ac_mid; then
8888 ac_lo= ac_hi=
8889 break
8891 ac_mid=`expr 2 '*' $ac_mid + 1`
8893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8894 done
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8907 main ()
8909 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8910 test_array [0] = 0
8913 return 0;
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_hi=-1 ac_mid=-1
8939 while :; do
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 $ac_includes_default
8948 main ()
8950 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8951 test_array [0] = 0
8954 return 0;
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_c_werror_flag"
8967 || test ! -s conftest.err'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_lo=$ac_mid; break
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_hi=`expr '(' $ac_mid ')' - 1`
8985 if test $ac_mid -le $ac_hi; then
8986 ac_lo= ac_hi=
8987 break
8989 ac_mid=`expr 2 '*' $ac_mid`
8991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8992 done
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_lo= ac_hi=
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002 # Binary search between lo and hi bounds.
9003 while test "x$ac_lo" != "x$ac_hi"; do
9004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9013 main ()
9015 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9016 test_array [0] = 0
9019 return 0;
9021 _ACEOF
9022 rm -f conftest.$ac_objext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9024 (eval $ac_compile) 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest.$ac_objext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_hi=$ac_mid
9045 else
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_lo=`expr '(' $ac_mid ')' + 1`
9051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9052 done
9053 case $ac_lo in
9054 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9055 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9056 See \`config.log' for more details." >&5
9057 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9058 See \`config.log' for more details." >&2;}
9059 { (exit 1); exit 1; }; } ;;
9060 esac
9061 else
9062 if test "$cross_compiling" = yes; then
9063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot run test program while cross compiling
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; }
9068 else
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h. */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 long longval () { return (long) (sizeof (fpos_t)); }
9077 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9078 #include <stdio.h>
9079 #include <stdlib.h>
9081 main ()
9084 FILE *f = fopen ("conftest.val", "w");
9085 if (! f)
9086 exit (1);
9087 if (((long) (sizeof (fpos_t))) < 0)
9089 long i = longval ();
9090 if (i != ((long) (sizeof (fpos_t))))
9091 exit (1);
9092 fprintf (f, "%ld\n", i);
9094 else
9096 unsigned long i = ulongval ();
9097 if (i != ((long) (sizeof (fpos_t))))
9098 exit (1);
9099 fprintf (f, "%lu\n", i);
9101 exit (ferror (f) || fclose (f) != 0);
9104 return 0;
9106 _ACEOF
9107 rm -f conftest$ac_exeext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_sizeof_fpos_t=`cat conftest.val`
9119 else
9120 echo "$as_me: program exited with status $ac_status" >&5
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ( exit $ac_status )
9125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9126 See \`config.log' for more details." >&5
9127 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9128 See \`config.log' for more details." >&2;}
9129 { (exit 1); exit 1; }; }
9131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9134 rm -f conftest.val
9135 else
9136 ac_cv_sizeof_fpos_t=0
9139 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9140 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9141 cat >>confdefs.h <<_ACEOF
9142 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9143 _ACEOF
9146 echo "$as_me:$LINENO: checking for size_t" >&5
9147 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9148 if test "${ac_cv_type_size_t+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151 cat >conftest.$ac_ext <<_ACEOF
9152 /* confdefs.h. */
9153 _ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9159 main ()
9161 if ((size_t *) 0)
9162 return 0;
9163 if (sizeof (size_t))
9164 return 0;
9166 return 0;
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_type_size_t=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_cv_type_size_t=no
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9201 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9203 echo "$as_me:$LINENO: checking size of size_t" >&5
9204 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9205 if test "${ac_cv_sizeof_size_t+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 if test "$ac_cv_type_size_t" = yes; then
9209 # The cast to unsigned long works around a bug in the HP C Compiler
9210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9212 # This bug is HP SR number 8606223364.
9213 if test "$cross_compiling" = yes; then
9214 # Depending upon the size, compute the lo and hi bounds.
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 $ac_includes_default
9223 main ()
9225 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9226 test_array [0] = 0
9229 return 0;
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234 (eval $ac_compile) 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_lo=0 ac_mid=0
9255 while :; do
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 $ac_includes_default
9264 main ()
9266 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9267 test_array [0] = 0
9270 return 0;
9272 _ACEOF
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest.$ac_objext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_hi=$ac_mid; break
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_lo=`expr $ac_mid + 1`
9301 if test $ac_lo -le $ac_mid; then
9302 ac_lo= ac_hi=
9303 break
9305 ac_mid=`expr 2 '*' $ac_mid + 1`
9307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9308 done
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h. */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9321 main ()
9323 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9324 test_array [0] = 0
9327 return 0;
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332 (eval $ac_compile) 2>conftest.er1
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -z "$ac_c_werror_flag"
9340 || test ! -s conftest.err'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try='test -s conftest.$ac_objext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 ac_hi=-1 ac_mid=-1
9353 while :; do
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9362 main ()
9364 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9365 test_array [0] = 0
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_lo=$ac_mid; break
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_hi=`expr '(' $ac_mid ')' - 1`
9399 if test $ac_mid -le $ac_hi; then
9400 ac_lo= ac_hi=
9401 break
9403 ac_mid=`expr 2 '*' $ac_mid`
9405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9406 done
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_lo= ac_hi=
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 # Binary search between lo and hi bounds.
9417 while test "x$ac_lo" != "x$ac_hi"; do
9418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9427 main ()
9429 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9430 test_array [0] = 0
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_hi=$ac_mid
9459 else
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_lo=`expr '(' $ac_mid ')' + 1`
9465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9466 done
9467 case $ac_lo in
9468 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9469 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9470 See \`config.log' for more details." >&5
9471 echo "$as_me: error: cannot compute sizeof (size_t), 77
9472 See \`config.log' for more details." >&2;}
9473 { (exit 1); exit 1; }; } ;;
9474 esac
9475 else
9476 if test "$cross_compiling" = yes; then
9477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot run test program while cross compiling
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; }
9482 else
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 $ac_includes_default
9490 long longval () { return (long) (sizeof (size_t)); }
9491 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9492 #include <stdio.h>
9493 #include <stdlib.h>
9495 main ()
9498 FILE *f = fopen ("conftest.val", "w");
9499 if (! f)
9500 exit (1);
9501 if (((long) (sizeof (size_t))) < 0)
9503 long i = longval ();
9504 if (i != ((long) (sizeof (size_t))))
9505 exit (1);
9506 fprintf (f, "%ld\n", i);
9508 else
9510 unsigned long i = ulongval ();
9511 if (i != ((long) (sizeof (size_t))))
9512 exit (1);
9513 fprintf (f, "%lu\n", i);
9515 exit (ferror (f) || fclose (f) != 0);
9518 return 0;
9520 _ACEOF
9521 rm -f conftest$ac_exeext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_sizeof_size_t=`cat conftest.val`
9533 else
9534 echo "$as_me: program exited with status $ac_status" >&5
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ( exit $ac_status )
9539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9540 See \`config.log' for more details." >&5
9541 echo "$as_me: error: cannot compute sizeof (size_t), 77
9542 See \`config.log' for more details." >&2;}
9543 { (exit 1); exit 1; }; }
9545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9548 rm -f conftest.val
9549 else
9550 ac_cv_sizeof_size_t=0
9553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9554 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9555 cat >>confdefs.h <<_ACEOF
9556 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9557 _ACEOF
9561 echo "$as_me:$LINENO: checking for long long support" >&5
9562 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9563 have_long_long=no
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9572 main ()
9574 long long x; x = (long long)0;
9576 return 0;
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_LONG_LONG 1
9605 _ACEOF
9607 have_long_long=yes
9609 else
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: $have_long_long" >&5
9616 echo "${ECHO_T}$have_long_long" >&6
9617 if test "$have_long_long" = yes ; then
9618 echo "$as_me:$LINENO: checking for long long" >&5
9619 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9620 if test "${ac_cv_type_long_long+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 $ac_includes_default
9631 main ()
9633 if ((long long *) 0)
9634 return 0;
9635 if (sizeof (long long))
9636 return 0;
9638 return 0;
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_type_long_long=yes
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_cv_type_long_long=no
9670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9673 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9675 echo "$as_me:$LINENO: checking size of long long" >&5
9676 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9677 if test "${ac_cv_sizeof_long_long+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 if test "$ac_cv_type_long_long" = yes; then
9681 # The cast to unsigned long works around a bug in the HP C Compiler
9682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9684 # This bug is HP SR number 8606223364.
9685 if test "$cross_compiling" = yes; then
9686 # Depending upon the size, compute the lo and hi bounds.
9687 cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h. */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 $ac_includes_default
9695 main ()
9697 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9698 test_array [0] = 0
9701 return 0;
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_lo=0 ac_mid=0
9727 while :; do
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 $ac_includes_default
9736 main ()
9738 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9739 test_array [0] = 0
9742 return 0;
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_hi=$ac_mid; break
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_lo=`expr $ac_mid + 1`
9773 if test $ac_lo -le $ac_mid; then
9774 ac_lo= ac_hi=
9775 break
9777 ac_mid=`expr 2 '*' $ac_mid + 1`
9779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9780 done
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 $ac_includes_default
9793 main ()
9795 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9796 test_array [0] = 0
9799 return 0;
9801 _ACEOF
9802 rm -f conftest.$ac_objext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -z "$ac_c_werror_flag"
9812 || test ! -s conftest.err'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_hi=-1 ac_mid=-1
9825 while :; do
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9834 main ()
9836 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9837 test_array [0] = 0
9840 return 0;
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_lo=$ac_mid; break
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_hi=`expr '(' $ac_mid ')' - 1`
9871 if test $ac_mid -le $ac_hi; then
9872 ac_lo= ac_hi=
9873 break
9875 ac_mid=`expr 2 '*' $ac_mid`
9877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878 done
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_lo= ac_hi=
9885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 # Binary search between lo and hi bounds.
9889 while test "x$ac_lo" != "x$ac_hi"; do
9890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9899 main ()
9901 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9902 test_array [0] = 0
9905 return 0;
9907 _ACEOF
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag"
9918 || test ! -s conftest.err'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest.$ac_objext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 (eval $ac_try) 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_hi=$ac_mid
9931 else
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_lo=`expr '(' $ac_mid ')' + 1`
9937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9938 done
9939 case $ac_lo in
9940 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9942 See \`config.log' for more details." >&5
9943 echo "$as_me: error: cannot compute sizeof (long long), 77
9944 See \`config.log' for more details." >&2;}
9945 { (exit 1); exit 1; }; } ;;
9946 esac
9947 else
9948 if test "$cross_compiling" = yes; then
9949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot run test program while cross compiling
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; }
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 long longval () { return (long) (sizeof (long long)); }
9963 unsigned long ulongval () { return (long) (sizeof (long long)); }
9964 #include <stdio.h>
9965 #include <stdlib.h>
9967 main ()
9970 FILE *f = fopen ("conftest.val", "w");
9971 if (! f)
9972 exit (1);
9973 if (((long) (sizeof (long long))) < 0)
9975 long i = longval ();
9976 if (i != ((long) (sizeof (long long))))
9977 exit (1);
9978 fprintf (f, "%ld\n", i);
9980 else
9982 unsigned long i = ulongval ();
9983 if (i != ((long) (sizeof (long long))))
9984 exit (1);
9985 fprintf (f, "%lu\n", i);
9987 exit (ferror (f) || fclose (f) != 0);
9990 return 0;
9992 _ACEOF
9993 rm -f conftest$ac_exeext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_sizeof_long_long=`cat conftest.val`
10005 else
10006 echo "$as_me: program exited with status $ac_status" >&5
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ( exit $ac_status )
10011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10012 See \`config.log' for more details." >&5
10013 echo "$as_me: error: cannot compute sizeof (long long), 77
10014 See \`config.log' for more details." >&2;}
10015 { (exit 1); exit 1; }; }
10017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10020 rm -f conftest.val
10021 else
10022 ac_cv_sizeof_long_long=0
10025 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10026 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10027 cat >>confdefs.h <<_ACEOF
10028 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10029 _ACEOF
10034 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10035 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10036 have_uintptr_t=no
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10045 main ()
10047 uintptr_t x; x = (uintptr_t)0;
10049 return 0;
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_UINTPTR_T 1
10078 _ACEOF
10080 have_uintptr_t=yes
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10088 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10089 echo "${ECHO_T}$have_uintptr_t" >&6
10090 if test "$have_uintptr_t" = yes ; then
10091 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10092 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10093 if test "${ac_cv_type_uintptr_t+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10104 main ()
10106 if ((uintptr_t *) 0)
10107 return 0;
10108 if (sizeof (uintptr_t))
10109 return 0;
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest.$ac_objext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_type_uintptr_t=yes
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_type_uintptr_t=no
10143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10145 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10146 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10148 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10149 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10150 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 if test "$ac_cv_type_uintptr_t" = yes; then
10154 # The cast to unsigned long works around a bug in the HP C Compiler
10155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10157 # This bug is HP SR number 8606223364.
10158 if test "$cross_compiling" = yes; then
10159 # Depending upon the size, compute the lo and hi bounds.
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10168 main ()
10170 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10171 test_array [0] = 0
10174 return 0;
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag"
10187 || test ! -s conftest.err'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_lo=0 ac_mid=0
10200 while :; do
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10209 main ()
10211 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10212 test_array [0] = 0
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_hi=$ac_mid; break
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_lo=`expr $ac_mid + 1`
10246 if test $ac_lo -le $ac_mid; then
10247 ac_lo= ac_hi=
10248 break
10250 ac_mid=`expr 2 '*' $ac_mid + 1`
10252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10253 done
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10266 main ()
10268 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10269 test_array [0] = 0
10272 return 0;
10274 _ACEOF
10275 rm -f conftest.$ac_objext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag"
10285 || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_hi=-1 ac_mid=-1
10298 while :; do
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10307 main ()
10309 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10310 test_array [0] = 0
10313 return 0;
10315 _ACEOF
10316 rm -f conftest.$ac_objext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10318 (eval $ac_compile) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_lo=$ac_mid; break
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_hi=`expr '(' $ac_mid ')' - 1`
10344 if test $ac_mid -le $ac_hi; then
10345 ac_lo= ac_hi=
10346 break
10348 ac_mid=`expr 2 '*' $ac_mid`
10350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10351 done
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_lo= ac_hi=
10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361 # Binary search between lo and hi bounds.
10362 while test "x$ac_lo" != "x$ac_hi"; do
10363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10372 main ()
10374 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10375 test_array [0] = 0
10378 return 0;
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest.$ac_objext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_hi=$ac_mid
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_lo=`expr '(' $ac_mid ')' + 1`
10410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10411 done
10412 case $ac_lo in
10413 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10415 See \`config.log' for more details." >&5
10416 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10417 See \`config.log' for more details." >&2;}
10418 { (exit 1); exit 1; }; } ;;
10419 esac
10420 else
10421 if test "$cross_compiling" = yes; then
10422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot run test program while cross compiling
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; }
10427 else
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 long longval () { return (long) (sizeof (uintptr_t)); }
10436 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10437 #include <stdio.h>
10438 #include <stdlib.h>
10440 main ()
10443 FILE *f = fopen ("conftest.val", "w");
10444 if (! f)
10445 exit (1);
10446 if (((long) (sizeof (uintptr_t))) < 0)
10448 long i = longval ();
10449 if (i != ((long) (sizeof (uintptr_t))))
10450 exit (1);
10451 fprintf (f, "%ld\n", i);
10453 else
10455 unsigned long i = ulongval ();
10456 if (i != ((long) (sizeof (uintptr_t))))
10457 exit (1);
10458 fprintf (f, "%lu\n", i);
10460 exit (ferror (f) || fclose (f) != 0);
10463 return 0;
10465 _ACEOF
10466 rm -f conftest$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10478 else
10479 echo "$as_me: program exited with status $ac_status" >&5
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ( exit $ac_status )
10484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10485 See \`config.log' for more details." >&5
10486 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10487 See \`config.log' for more details." >&2;}
10488 { (exit 1); exit 1; }; }
10490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10493 rm -f conftest.val
10494 else
10495 ac_cv_sizeof_uintptr_t=0
10498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10499 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10500 cat >>confdefs.h <<_ACEOF
10501 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10502 _ACEOF
10507 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10508 echo "$as_me:$LINENO: checking size of off_t" >&5
10509 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10510 if test "${ac_cv_sizeof_off_t+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 if test "$cross_compiling" = yes; then
10514 ac_cv_sizeof_off_t=4
10515 else
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <stdio.h>
10523 #include <sys/types.h>
10524 main()
10526 FILE *f=fopen("conftestval", "w");
10527 if (!f) exit(1);
10528 fprintf(f, "%d\n", sizeof(off_t));
10529 exit(0);
10531 _ACEOF
10532 rm -f conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_sizeof_off_t=`cat conftestval`
10544 else
10545 echo "$as_me: program exited with status $ac_status" >&5
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ( exit $ac_status )
10550 ac_cv_sizeof_off_t=0
10552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10558 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10560 cat >>confdefs.h <<_ACEOF
10561 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10562 _ACEOF
10565 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10566 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10567 if test "$have_long_long" = yes -a \
10568 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10569 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_LARGEFILE_SUPPORT 1
10573 _ACEOF
10575 echo "$as_me:$LINENO: result: yes" >&5
10576 echo "${ECHO_T}yes" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10582 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10583 echo "$as_me:$LINENO: checking size of time_t" >&5
10584 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10585 if test "${ac_cv_sizeof_time_t+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 if test "$cross_compiling" = yes; then
10589 ac_cv_sizeof_time_t=4
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <stdio.h>
10598 #include <time.h>
10599 main()
10601 FILE *f=fopen("conftestval", "w");
10602 if (!f) exit(1);
10603 fprintf(f, "%d\n", sizeof(time_t));
10604 exit(0);
10606 _ACEOF
10607 rm -f conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_sizeof_time_t=`cat conftestval`
10619 else
10620 echo "$as_me: program exited with status $ac_status" >&5
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ( exit $ac_status )
10625 ac_cv_sizeof_time_t=0
10627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10633 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10635 cat >>confdefs.h <<_ACEOF
10636 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10637 _ACEOF
10641 # if have pthread_t then define SIZEOF_PTHREAD_T
10642 ac_save_cc="$CC"
10643 if test "$ac_cv_kpthread" = "yes"
10644 then CC="$CC -Kpthread"
10645 elif test "$ac_cv_kthread" = "yes"
10646 then CC="$CC -Kthread"
10647 elif test "$ac_cv_pthread" = "yes"
10648 then CC="$CC -pthread"
10650 echo "$as_me:$LINENO: checking for pthread_t" >&5
10651 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10652 have_pthread_t=no
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <pthread.h>
10661 main ()
10663 pthread_t x; x = *(pthread_t*)0;
10665 return 0;
10667 _ACEOF
10668 rm -f conftest.$ac_objext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10670 (eval $ac_compile) 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try='test -s conftest.$ac_objext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 have_pthread_t=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10698 echo "${ECHO_T}$have_pthread_t" >&6
10699 if test "$have_pthread_t" = yes ; then
10700 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10701 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10702 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10703 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 if test "$cross_compiling" = yes; then
10707 ac_cv_sizeof_pthread_t=4
10708 else
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <stdio.h>
10716 #include <pthread.h>
10717 main()
10719 FILE *f=fopen("conftestval", "w");
10720 if (!f) exit(1);
10721 fprintf(f, "%d\n", sizeof(pthread_t));
10722 exit(0);
10724 _ACEOF
10725 rm -f conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_sizeof_pthread_t=`cat conftestval`
10737 else
10738 echo "$as_me: program exited with status $ac_status" >&5
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ( exit $ac_status )
10743 ac_cv_sizeof_pthread_t=0
10745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10751 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10753 cat >>confdefs.h <<_ACEOF
10754 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10755 _ACEOF
10758 CC="$ac_save_cc"
10760 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10761 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10762 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10763 if test "${enable_toolbox_glue+set}" = set; then
10764 enableval="$enable_toolbox_glue"
10768 if test -z "$enable_toolbox_glue"
10769 then
10770 case $ac_sys_system/$ac_sys_release in
10771 Darwin/*)
10772 enable_toolbox_glue="yes";;
10774 enable_toolbox_glue="no";;
10775 esac
10777 case "$enable_toolbox_glue" in
10778 yes)
10779 extra_machdep_objs="Python/mactoolboxglue.o"
10780 extra_undefs="-u _PyMac_Error"
10782 cat >>confdefs.h <<\_ACEOF
10783 #define USE_TOOLBOX_OBJECT_GLUE 1
10784 _ACEOF
10788 extra_machdep_objs=""
10789 extra_undefs=""
10791 esac
10792 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10793 echo "${ECHO_T}$enable_toolbox_glue" >&6
10796 case $ac_sys_system/$ac_sys_release in
10797 Darwin/[01567]\..*)
10798 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10800 Darwin/*)
10801 OTHER_LIBTOOL_OPT=""
10803 esac
10806 case $ac_sys_system/$ac_sys_release in
10807 Darwin/[01567]\..*)
10808 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10809 if test "${enable_universalsdk}"; then
10811 else
10812 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10814 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10815 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10816 Darwin/*)
10817 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10818 if test ${gcc_version} '<' 4.0
10819 then
10820 LIBTOOL_CRUFT="-lcc_dynamic"
10821 else
10822 LIBTOOL_CRUFT=""
10824 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10825 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10826 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10827 esac
10829 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10830 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10831 if test "$enable_framework"
10832 then
10833 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10834 # -F. is needed to allow linking to the framework while
10835 # in the build location.
10837 cat >>confdefs.h <<\_ACEOF
10838 #define WITH_NEXT_FRAMEWORK 1
10839 _ACEOF
10841 echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6
10843 else
10844 echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10848 echo "$as_me:$LINENO: checking for dyld" >&5
10849 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10850 case $ac_sys_system/$ac_sys_release in
10851 Darwin/*)
10853 cat >>confdefs.h <<\_ACEOF
10854 #define WITH_DYLD 1
10855 _ACEOF
10857 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10858 echo "${ECHO_T}always on for Darwin" >&6
10861 echo "$as_me:$LINENO: result: no" >&5
10862 echo "${ECHO_T}no" >&6
10864 esac
10866 # Set info about shared libraries.
10872 # SO is the extension of shared libraries `(including the dot!)
10873 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10874 echo "$as_me:$LINENO: checking SO" >&5
10875 echo $ECHO_N "checking SO... $ECHO_C" >&6
10876 if test -z "$SO"
10877 then
10878 case $ac_sys_system in
10879 hp*|HP*)
10880 case `uname -m` in
10881 ia64) SO=.so;;
10882 *) SO=.sl;;
10883 esac
10885 CYGWIN*) SO=.dll;;
10886 *) SO=.so;;
10887 esac
10888 else
10889 # this might also be a termcap variable, see #610332
10890 echo
10891 echo '====================================================================='
10892 echo '+ +'
10893 echo '+ WARNING: You have set SO in your environment. +'
10894 echo '+ Do you really mean to change the extension for shared libraries? +'
10895 echo '+ Continuing in 10 seconds to let you to ponder. +'
10896 echo '+ +'
10897 echo '====================================================================='
10898 sleep 10
10900 echo "$as_me:$LINENO: result: $SO" >&5
10901 echo "${ECHO_T}$SO" >&6
10903 cat >>confdefs.h <<_ACEOF
10904 #define SHLIB_EXT "$SO"
10905 _ACEOF
10907 # LDSHARED is the ld *command* used to create shared library
10908 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10909 # (Shared libraries in this instance are shared modules to be loaded into
10910 # Python, as opposed to building Python itself as a shared library.)
10911 echo "$as_me:$LINENO: checking LDSHARED" >&5
10912 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10913 if test -z "$LDSHARED"
10914 then
10915 case $ac_sys_system/$ac_sys_release in
10916 AIX*)
10917 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10918 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10920 BeOS*)
10921 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10922 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10924 IRIX/5*) LDSHARED="ld -shared";;
10925 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10926 SunOS/5*)
10927 if test "$GCC" = "yes"
10928 then LDSHARED='$(CC) -shared'
10929 else LDSHARED='$(CC) -G';
10930 fi ;;
10931 hp*|HP*) LDSHARED="ld -b";;
10932 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10933 Darwin/1.3*)
10934 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10935 if test "$enable_framework" ; then
10936 # Link against the framework. All externals should be defined.
10937 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10938 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10939 else
10940 # No framework. Ignore undefined symbols, assuming they come from Python
10941 LDSHARED="$LDSHARED -undefined suppress"
10942 fi ;;
10943 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10944 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10945 if test "$enable_framework" ; then
10946 # Link against the framework. All externals should be defined.
10947 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10949 else
10950 # No framework, use the Python app as bundle-loader
10951 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10952 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10953 fi ;;
10954 Darwin/*)
10955 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10956 # This allows an extension to be used in any Python
10957 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10958 if test ${cur_target} '>' 10.2; then
10959 cur_target=10.3
10961 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10962 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10963 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10964 then
10965 if test "${enable_universalsdk}"; then
10966 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10968 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10969 BLDSHARED="$LDSHARED"
10970 else
10971 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10972 if test "$enable_framework" ; then
10973 # Link against the framework. All externals should be defined.
10974 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10975 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10976 else
10977 # No framework, use the Python app as bundle-loader
10978 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10979 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10983 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10984 BSD/OS*/4*) LDSHARED="gcc -shared";;
10985 OpenBSD*|FreeBSD*)
10986 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10987 then
10988 LDSHARED="$CC -shared ${LDFLAGS}"
10989 else
10990 LDSHARED="ld -Bshareable ${LDFLAGS}"
10991 fi;;
10992 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
10993 OpenUNIX*|UnixWare*)
10994 if test "$GCC" = "yes"
10995 then LDSHARED='$(CC) -shared'
10996 else LDSHARED='$(CC) -G'
10997 fi;;
10998 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
10999 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11000 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11001 atheos*) LDSHARED="gcc -shared";;
11002 *) LDSHARED="ld";;
11003 esac
11005 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11006 echo "${ECHO_T}$LDSHARED" >&6
11007 BLDSHARED=${BLDSHARED-$LDSHARED}
11008 # CCSHARED are the C *flags* used to create objects to go into a shared
11009 # library (module) -- this is only needed for a few systems
11010 echo "$as_me:$LINENO: checking CCSHARED" >&5
11011 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11012 if test -z "$CCSHARED"
11013 then
11014 case $ac_sys_system/$ac_sys_release in
11015 SunOS*) if test "$GCC" = yes;
11016 then CCSHARED="-fPIC";
11017 else CCSHARED="-xcode=pic32";
11018 fi;;
11019 hp*|HP*) if test "$GCC" = yes;
11020 then CCSHARED="-fPIC";
11021 else CCSHARED="+z";
11022 fi;;
11023 Linux*|GNU*) CCSHARED="-fPIC";;
11024 BSD/OS*/4*) CCSHARED="-fpic";;
11025 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11026 OpenUNIX*|UnixWare*)
11027 if test "$GCC" = "yes"
11028 then CCSHARED="-fPIC"
11029 else CCSHARED="-KPIC"
11030 fi;;
11031 SCO_SV*)
11032 if test "$GCC" = "yes"
11033 then CCSHARED="-fPIC"
11034 else CCSHARED="-Kpic -belf"
11035 fi;;
11036 Monterey*) CCSHARED="-G";;
11037 IRIX*/6*) case $CC in
11038 *gcc*) CCSHARED="-shared";;
11039 *) CCSHARED="";;
11040 esac;;
11041 atheos*) CCSHARED="-fPIC";;
11042 esac
11044 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11045 echo "${ECHO_T}$CCSHARED" >&6
11046 # LINKFORSHARED are the flags passed to the $(CC) command that links
11047 # the python executable -- this is only needed for a few systems
11048 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11049 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11050 if test -z "$LINKFORSHARED"
11051 then
11052 case $ac_sys_system/$ac_sys_release in
11053 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11054 hp*|HP*)
11055 LINKFORSHARED="-Wl,-E -Wl,+s";;
11056 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11057 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11058 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11059 # -u libsys_s pulls in all symbols in libsys
11060 Darwin/*)
11061 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11062 # which is
11063 # not used by the core itself but which needs to be in the core so
11064 # that dynamically loaded extension modules have access to it.
11065 # -prebind is no longer used, because it actually seems to give a
11066 # slowdown in stead of a speedup, maybe due to the large number of
11067 # dynamic loads Python does.
11069 LINKFORSHARED="$extra_undefs"
11070 if test "$enable_framework"
11071 then
11072 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11074 LINKFORSHARED="$LINKFORSHARED";;
11075 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11076 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11077 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11078 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11079 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11080 then
11081 LINKFORSHARED="-Wl,--export-dynamic"
11082 fi;;
11083 SunOS/5*) case $CC in
11084 *gcc*)
11085 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11086 then
11087 LINKFORSHARED="-Xlinker --export-dynamic"
11088 fi;;
11089 esac;;
11090 CYGWIN*)
11091 if test $enable_shared = "no"
11092 then
11093 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11094 fi;;
11095 esac
11097 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11098 echo "${ECHO_T}$LINKFORSHARED" >&6
11101 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11102 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11103 if test ! "$LIBRARY" = "$LDLIBRARY"
11104 then
11105 case $ac_sys_system in
11106 CYGWIN*)
11107 # Cygwin needs CCSHARED when building extension DLLs
11108 # but not when building the interpreter DLL.
11109 CFLAGSFORSHARED='';;
11111 CFLAGSFORSHARED='$(CCSHARED)'
11112 esac
11114 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11115 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11117 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11118 # library (with --enable-shared).
11119 # For platforms on which shared libraries are not allowed to have unresolved
11120 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11121 # if it is not required, since it creates a dependency of the shared library
11122 # to LIBS. This, in turn, means that applications linking the shared libpython
11123 # don't need to link LIBS explicitly. The default should be only changed
11124 # on systems where this approach causes problems.
11126 echo "$as_me:$LINENO: checking SHLIBS" >&5
11127 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11128 case "$ac_sys_system" in
11130 SHLIBS='$(LIBS)';;
11131 esac
11132 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11133 echo "${ECHO_T}$SHLIBS" >&6
11136 # checks for libraries
11138 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-ldl $LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any gcc2 internal prototype to avoid an error. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11158 char dlopen ();
11160 main ()
11162 dlopen ();
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_lib_dl_dlopen=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_cv_lib_dl_dlopen=no
11196 rm -f conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11202 if test $ac_cv_lib_dl_dlopen = yes; then
11203 cat >>confdefs.h <<_ACEOF
11204 #define HAVE_LIBDL 1
11205 _ACEOF
11207 LIBS="-ldl $LIBS"
11210 # Dynamic linking for SunOS/Solaris and SYSV
11212 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-ldld $LIBS"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11232 char shl_load ();
11234 main ()
11236 shl_load ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_dld_shl_load=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_lib_dld_shl_load=no
11270 rm -f conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11276 if test $ac_cv_lib_dld_shl_load = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_LIBDLD 1
11279 _ACEOF
11281 LIBS="-ldld $LIBS"
11284 # Dynamic linking for HP-UX
11286 # only check for sem_ini if thread support is requested
11287 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11288 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11289 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11290 if test "${ac_cv_search_sem_init+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 ac_func_search_save_LIBS=$LIBS
11294 ac_cv_search_sem_init=no
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11302 /* Override any gcc2 internal prototype to avoid an error. */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11308 char sem_init ();
11310 main ()
11312 sem_init ();
11314 return 0;
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_search_sem_init="none required"
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11345 rm -f conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 if test "$ac_cv_search_sem_init" = no; then
11348 for ac_lib in pthread rt posix4; do
11349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11363 char sem_init ();
11365 main ()
11367 sem_init ();
11369 return 0;
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_search_sem_init="-l$ac_lib"
11395 break
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11401 rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 done
11405 LIBS=$ac_func_search_save_LIBS
11407 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11408 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11409 if test "$ac_cv_search_sem_init" != no; then
11410 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11413 # 'Real Time' functions on Solaris
11414 # posix4 on Solaris 2.6
11415 # pthread (first!) on Linux
11418 # check if we need libintl for locale functions
11419 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11420 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11421 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424 ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-lintl $LIBS"
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11433 /* Override any gcc2 internal prototype to avoid an error. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 /* We use char because int might match the return type of a gcc2
11438 builtin and then its argument prototype would still apply. */
11439 char textdomain ();
11441 main ()
11443 textdomain ();
11445 return 0;
11447 _ACEOF
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_lib_intl_textdomain=yes
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_cv_lib_intl_textdomain=no
11477 rm -f conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11482 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11483 if test $ac_cv_lib_intl_textdomain = yes; then
11485 cat >>confdefs.h <<\_ACEOF
11486 #define WITH_LIBINTL 1
11487 _ACEOF
11492 # checks for system dependent C++ extensions support
11493 case "$ac_sys_system" in
11494 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11495 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #include "/usr/lpp/xlC/include/load.h"
11504 main ()
11506 loadAndInit("", 0, "")
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11534 cat >>confdefs.h <<\_ACEOF
11535 #define AIX_GENUINE_CPLUSPLUS 1
11536 _ACEOF
11538 echo "$as_me:$LINENO: result: yes" >&5
11539 echo "${ECHO_T}yes" >&6
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6
11547 rm -f conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext;;
11549 *) ;;
11550 esac
11552 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11553 # BeOS' sockets are stashed in libnet.
11554 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11555 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11556 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 ac_check_lib_save_LIBS=$LIBS
11560 LIBS="-lnsl $LIBS"
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 /* We use char because int might match the return type of a gcc2
11573 builtin and then its argument prototype would still apply. */
11574 char t_open ();
11576 main ()
11578 t_open ();
11580 return 0;
11582 _ACEOF
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_lib_nsl_t_open=yes
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_lib_nsl_t_open=no
11612 rm -f conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11614 LIBS=$ac_check_lib_save_LIBS
11616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11617 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11618 if test $ac_cv_lib_nsl_t_open = yes; then
11619 LIBS="-lnsl $LIBS"
11621 # SVR4
11622 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11623 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11624 if test "${ac_cv_lib_socket_socket+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lsocket $LIBS $LIBS"
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h. */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11636 /* Override any gcc2 internal prototype to avoid an error. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642 char socket ();
11644 main ()
11646 socket ();
11648 return 0;
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_lib_socket_socket=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_cv_lib_socket_socket=no
11680 rm -f conftest.err conftest.$ac_objext \
11681 conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11684 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11685 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11686 if test $ac_cv_lib_socket_socket = yes; then
11687 LIBS="-lsocket $LIBS"
11689 # SVR4 sockets
11691 case "$ac_sys_system" in
11692 BeOS*)
11693 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11694 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11695 if test "${ac_cv_lib_net_socket+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-lnet $LIBS $LIBS"
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11707 /* Override any gcc2 internal prototype to avoid an error. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11713 char socket ();
11715 main ()
11717 socket ();
11719 return 0;
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_lib_net_socket=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_cv_lib_net_socket=no
11751 rm -f conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_lib_save_LIBS
11755 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11756 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11757 if test $ac_cv_lib_net_socket = yes; then
11758 LIBS="-lnet $LIBS"
11760 # BeOS
11762 esac
11764 echo "$as_me:$LINENO: checking for --with-libs" >&5
11765 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11767 # Check whether --with-libs or --without-libs was given.
11768 if test "${with_libs+set}" = set; then
11769 withval="$with_libs"
11771 echo "$as_me:$LINENO: result: $withval" >&5
11772 echo "${ECHO_T}$withval" >&6
11773 LIBS="$withval $LIBS"
11775 else
11776 echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6
11780 # Check for use of the system libffi library
11781 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11782 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11784 # Check whether --with-system_ffi or --without-system_ffi was given.
11785 if test "${with_system_ffi+set}" = set; then
11786 withval="$with_system_ffi"
11790 if test -z "$with_system_ffi"
11791 then with_system_ffi="no"
11793 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11794 echo "${ECHO_T}$with_system_ffi" >&6
11796 # Determine if signalmodule should be used.
11799 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11800 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11802 # Check whether --with-signal-module or --without-signal-module was given.
11803 if test "${with_signal_module+set}" = set; then
11804 withval="$with_signal_module"
11808 if test -z "$with_signal_module"
11809 then with_signal_module="yes"
11811 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11812 echo "${ECHO_T}$with_signal_module" >&6
11814 if test "${with_signal_module}" = "yes"; then
11815 USE_SIGNAL_MODULE=""
11816 SIGNAL_OBJS=""
11817 else
11818 USE_SIGNAL_MODULE="#"
11819 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11822 # This is used to generate Setup.config
11824 USE_THREAD_MODULE=""
11826 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11827 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11830 # Check whether --with-dec-threads or --without-dec-threads was given.
11831 if test "${with_dec_threads+set}" = set; then
11832 withval="$with_dec_threads"
11834 echo "$as_me:$LINENO: result: $withval" >&5
11835 echo "${ECHO_T}$withval" >&6
11836 LDLAST=-threads
11837 if test "${with_thread+set}" != set; then
11838 with_thread="$withval";
11840 else
11841 echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6
11845 # Templates for things AC_DEFINEd more than once.
11846 # For a single AC_DEFINE, no template is needed.
11854 echo "$as_me:$LINENO: checking for --with-threads" >&5
11855 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11857 # Check whether --with-threads or --without-threads was given.
11858 if test "${with_threads+set}" = set; then
11859 withval="$with_threads"
11863 # --with-thread is deprecated, but check for it anyway
11865 # Check whether --with-thread or --without-thread was given.
11866 if test "${with_thread+set}" = set; then
11867 withval="$with_thread"
11868 with_threads=$with_thread
11871 if test -z "$with_threads"
11872 then with_threads="yes"
11874 echo "$as_me:$LINENO: result: $with_threads" >&5
11875 echo "${ECHO_T}$with_threads" >&6
11878 if test "$with_threads" = "no"
11879 then
11880 USE_THREAD_MODULE="#"
11881 elif test "$ac_cv_pthread_is_default" = yes
11882 then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define WITH_THREAD 1
11885 _ACEOF
11887 # Defining _REENTRANT on system with POSIX threads should not hurt.
11888 cat >>confdefs.h <<\_ACEOF
11889 #define _REENTRANT 1
11890 _ACEOF
11892 posix_threads=yes
11893 THREADOBJ="Python/thread.o"
11894 elif test "$ac_cv_kpthread" = "yes"
11895 then
11896 CC="$CC -Kpthread"
11897 if test "$ac_cv_cxx_thread" = "yes"; then
11898 CXX="$CXX -Kpthread"
11900 cat >>confdefs.h <<\_ACEOF
11901 #define WITH_THREAD 1
11902 _ACEOF
11904 posix_threads=yes
11905 THREADOBJ="Python/thread.o"
11906 elif test "$ac_cv_kthread" = "yes"
11907 then
11908 CC="$CC -Kthread"
11909 if test "$ac_cv_cxx_thread" = "yes"; then
11910 CXX="$CXX -Kthread"
11912 cat >>confdefs.h <<\_ACEOF
11913 #define WITH_THREAD 1
11914 _ACEOF
11916 posix_threads=yes
11917 THREADOBJ="Python/thread.o"
11918 elif test "$ac_cv_pthread" = "yes"
11919 then
11920 CC="$CC -pthread"
11921 if test "$ac_cv_cxx_thread" = "yes"; then
11922 CXX="$CXX -pthread"
11924 cat >>confdefs.h <<\_ACEOF
11925 #define WITH_THREAD 1
11926 _ACEOF
11928 posix_threads=yes
11929 THREADOBJ="Python/thread.o"
11930 else
11931 if test ! -z "$with_threads" -a -d "$with_threads"
11932 then LDFLAGS="$LDFLAGS -L$with_threads"
11934 if test ! -z "$withval" -a -d "$withval"
11935 then LDFLAGS="$LDFLAGS -L$withval"
11938 # According to the POSIX spec, a pthreads implementation must
11939 # define _POSIX_THREADS in unistd.h. Some apparently don't
11940 # (e.g. gnu pth with pthread emulation)
11941 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11942 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 #include <unistd.h>
11951 #ifdef _POSIX_THREADS
11953 #endif
11955 _ACEOF
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 $EGREP "yes" >/dev/null 2>&1; then
11958 unistd_defines_pthreads=yes
11959 else
11960 unistd_defines_pthreads=no
11962 rm -f conftest*
11964 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11965 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11967 cat >>confdefs.h <<\_ACEOF
11968 #define _REENTRANT 1
11969 _ACEOF
11971 if test "${ac_cv_header_cthreads_h+set}" = set; then
11972 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11973 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11974 if test "${ac_cv_header_cthreads_h+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11978 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11979 else
11980 # Is the header compilable?
11981 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11982 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 $ac_includes_default
11990 #include <cthreads.h>
11991 _ACEOF
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_header_compiler=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_header_compiler=no
12021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12023 echo "${ECHO_T}$ac_header_compiler" >&6
12025 # Is the header present?
12026 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12027 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 #include <cthreads.h>
12035 _ACEOF
12036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } >/dev/null; then
12044 if test -s conftest.err; then
12045 ac_cpp_err=$ac_c_preproc_warn_flag
12046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12047 else
12048 ac_cpp_err=
12050 else
12051 ac_cpp_err=yes
12053 if test -z "$ac_cpp_err"; then
12054 ac_header_preproc=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_preproc=no
12061 rm -f conftest.err conftest.$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12063 echo "${ECHO_T}$ac_header_preproc" >&6
12065 # So? What about this header?
12066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12067 yes:no: )
12068 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12069 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12071 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12072 ac_header_preproc=yes
12074 no:yes:* )
12075 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12076 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12078 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12080 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12082 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12086 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12088 cat <<\_ASBOX
12089 ## ------------------------------------------------ ##
12090 ## Report this to http://www.python.org/python-bugs ##
12091 ## ------------------------------------------------ ##
12092 _ASBOX
12094 sed "s/^/$as_me: WARNING: /" >&2
12096 esac
12097 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12098 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12099 if test "${ac_cv_header_cthreads_h+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 ac_cv_header_cthreads_h=$ac_header_preproc
12104 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12105 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12108 if test $ac_cv_header_cthreads_h = yes; then
12109 cat >>confdefs.h <<\_ACEOF
12110 #define WITH_THREAD 1
12111 _ACEOF
12113 cat >>confdefs.h <<\_ACEOF
12114 #define C_THREADS 1
12115 _ACEOF
12118 cat >>confdefs.h <<\_ACEOF
12119 #define HURD_C_THREADS 1
12120 _ACEOF
12122 LIBS="$LIBS -lthreads"
12123 THREADOBJ="Python/thread.o"
12124 else
12126 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12127 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12128 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12129 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12133 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12134 else
12135 # Is the header compilable?
12136 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12137 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 $ac_includes_default
12145 #include <mach/cthreads.h>
12146 _ACEOF
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest.$ac_objext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_header_compiler=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_header_compiler=no
12176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12178 echo "${ECHO_T}$ac_header_compiler" >&6
12180 # Is the header present?
12181 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12182 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <mach/cthreads.h>
12190 _ACEOF
12191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev/null; then
12199 if test -s conftest.err; then
12200 ac_cpp_err=$ac_c_preproc_warn_flag
12201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12202 else
12203 ac_cpp_err=
12205 else
12206 ac_cpp_err=yes
12208 if test -z "$ac_cpp_err"; then
12209 ac_header_preproc=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_header_preproc=no
12216 rm -f conftest.err conftest.$ac_ext
12217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12218 echo "${ECHO_T}$ac_header_preproc" >&6
12220 # So? What about this header?
12221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12222 yes:no: )
12223 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12224 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12226 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12227 ac_header_preproc=yes
12229 no:yes:* )
12230 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12231 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12233 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12235 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12237 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12239 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12241 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12243 cat <<\_ASBOX
12244 ## ------------------------------------------------ ##
12245 ## Report this to http://www.python.org/python-bugs ##
12246 ## ------------------------------------------------ ##
12247 _ASBOX
12249 sed "s/^/$as_me: WARNING: /" >&2
12251 esac
12252 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12253 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12254 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12259 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12260 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12263 if test $ac_cv_header_mach_cthreads_h = yes; then
12264 cat >>confdefs.h <<\_ACEOF
12265 #define WITH_THREAD 1
12266 _ACEOF
12268 cat >>confdefs.h <<\_ACEOF
12269 #define C_THREADS 1
12270 _ACEOF
12273 cat >>confdefs.h <<\_ACEOF
12274 #define MACH_C_THREADS 1
12275 _ACEOF
12277 THREADOBJ="Python/thread.o"
12278 else
12280 echo "$as_me:$LINENO: checking for --with-pth" >&5
12281 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12283 # Check whether --with-pth or --without-pth was given.
12284 if test "${with_pth+set}" = set; then
12285 withval="$with_pth"
12286 echo "$as_me:$LINENO: result: $withval" >&5
12287 echo "${ECHO_T}$withval" >&6
12288 cat >>confdefs.h <<\_ACEOF
12289 #define WITH_THREAD 1
12290 _ACEOF
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_PTH 1
12295 _ACEOF
12297 LIBS="-lpth $LIBS"
12298 THREADOBJ="Python/thread.o"
12299 else
12300 echo "$as_me:$LINENO: result: no" >&5
12301 echo "${ECHO_T}no" >&6
12303 # Just looking for pthread_create in libpthread is not enough:
12304 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12305 # So we really have to include pthread.h, and then link.
12306 _libs=$LIBS
12307 LIBS="$LIBS -lpthread"
12308 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12309 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <pthread.h>
12318 void * start_routine (void *arg) { exit (0); }
12320 main ()
12323 pthread_create (NULL, NULL, start_routine, NULL)
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12351 echo "$as_me:$LINENO: result: yes" >&5
12352 echo "${ECHO_T}yes" >&6
12353 cat >>confdefs.h <<\_ACEOF
12354 #define WITH_THREAD 1
12355 _ACEOF
12357 posix_threads=yes
12358 THREADOBJ="Python/thread.o"
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12364 LIBS=$_libs
12365 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12366 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12367 if test "${ac_cv_func_pthread_detach+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define pthread_detach innocuous_pthread_detach
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char pthread_detach (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12391 #undef pthread_detach
12393 /* Override any gcc2 internal prototype to avoid an error. */
12394 #ifdef __cplusplus
12395 extern "C"
12397 #endif
12398 /* We use char because int might match the return type of a gcc2
12399 builtin and then its argument prototype would still apply. */
12400 char pthread_detach ();
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12405 choke me
12406 #else
12407 char (*f) () = pthread_detach;
12408 #endif
12409 #ifdef __cplusplus
12411 #endif
12414 main ()
12416 return f != pthread_detach;
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag"
12431 || test ! -s conftest.err'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_func_pthread_detach=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_func_pthread_detach=no
12450 rm -f conftest.err conftest.$ac_objext \
12451 conftest$ac_exeext conftest.$ac_ext
12453 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12454 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12455 if test $ac_cv_func_pthread_detach = yes; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define WITH_THREAD 1
12458 _ACEOF
12460 posix_threads=yes
12461 THREADOBJ="Python/thread.o"
12462 else
12464 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12465 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12466 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12467 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12472 else
12473 # Is the header compilable?
12474 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12475 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 #include <atheos/threads.h>
12484 _ACEOF
12485 rm -f conftest.$ac_objext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest.$ac_objext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_header_compiler=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_header_compiler=no
12514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6
12518 # Is the header present?
12519 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12520 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <atheos/threads.h>
12528 _ACEOF
12529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } >/dev/null; then
12537 if test -s conftest.err; then
12538 ac_cpp_err=$ac_c_preproc_warn_flag
12539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12540 else
12541 ac_cpp_err=
12543 else
12544 ac_cpp_err=yes
12546 if test -z "$ac_cpp_err"; then
12547 ac_header_preproc=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_header_preproc=no
12554 rm -f conftest.err conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12556 echo "${ECHO_T}$ac_header_preproc" >&6
12558 # So? What about this header?
12559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12560 yes:no: )
12561 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12562 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12564 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12565 ac_header_preproc=yes
12567 no:yes:* )
12568 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12569 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12571 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12573 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12575 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12577 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12579 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12581 cat <<\_ASBOX
12582 ## ------------------------------------------------ ##
12583 ## Report this to http://www.python.org/python-bugs ##
12584 ## ------------------------------------------------ ##
12585 _ASBOX
12587 sed "s/^/$as_me: WARNING: /" >&2
12589 esac
12590 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12591 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12592 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 ac_cv_header_atheos_threads_h=$ac_header_preproc
12597 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12598 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12601 if test $ac_cv_header_atheos_threads_h = yes; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define WITH_THREAD 1
12604 _ACEOF
12607 cat >>confdefs.h <<\_ACEOF
12608 #define ATHEOS_THREADS 1
12609 _ACEOF
12611 THREADOBJ="Python/thread.o"
12612 else
12614 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12615 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12616 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12617 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12621 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12622 else
12623 # Is the header compilable?
12624 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12625 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <kernel/OS.h>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_header_compiler=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_header_compiler=no
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6
12668 # Is the header present?
12669 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12670 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <kernel/OS.h>
12678 _ACEOF
12679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev/null; then
12687 if test -s conftest.err; then
12688 ac_cpp_err=$ac_c_preproc_warn_flag
12689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12690 else
12691 ac_cpp_err=
12693 else
12694 ac_cpp_err=yes
12696 if test -z "$ac_cpp_err"; then
12697 ac_header_preproc=yes
12698 else
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_header_preproc=no
12704 rm -f conftest.err conftest.$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12706 echo "${ECHO_T}$ac_header_preproc" >&6
12708 # So? What about this header?
12709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12710 yes:no: )
12711 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12712 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12714 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12715 ac_header_preproc=yes
12717 no:yes:* )
12718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12723 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12725 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12727 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12729 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12731 cat <<\_ASBOX
12732 ## ------------------------------------------------ ##
12733 ## Report this to http://www.python.org/python-bugs ##
12734 ## ------------------------------------------------ ##
12735 _ASBOX
12737 sed "s/^/$as_me: WARNING: /" >&2
12739 esac
12740 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12741 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12742 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 ac_cv_header_kernel_OS_h=$ac_header_preproc
12747 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12751 if test $ac_cv_header_kernel_OS_h = yes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define WITH_THREAD 1
12754 _ACEOF
12757 cat >>confdefs.h <<\_ACEOF
12758 #define BEOS_THREADS 1
12759 _ACEOF
12761 THREADOBJ="Python/thread.o"
12762 else
12764 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12765 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12766 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lpthreads $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 /* Override any gcc2 internal prototype to avoid an error. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 /* We use char because int might match the return type of a gcc2
12783 builtin and then its argument prototype would still apply. */
12784 char pthread_create ();
12786 main ()
12788 pthread_create ();
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_lib_pthreads_pthread_create=yes
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_cv_lib_pthreads_pthread_create=no
12822 rm -f conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12826 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12827 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12828 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12829 cat >>confdefs.h <<\_ACEOF
12830 #define WITH_THREAD 1
12831 _ACEOF
12833 posix_threads=yes
12834 LIBS="$LIBS -lpthreads"
12835 THREADOBJ="Python/thread.o"
12836 else
12838 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12839 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12840 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lc_r $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char pthread_create ();
12860 main ()
12862 pthread_create ();
12864 return 0;
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_cv_lib_c_r_pthread_create=yes
12890 else
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 ac_cv_lib_c_r_pthread_create=no
12896 rm -f conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_lib_save_LIBS
12900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12901 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12902 if test $ac_cv_lib_c_r_pthread_create = yes; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define WITH_THREAD 1
12905 _ACEOF
12907 posix_threads=yes
12908 LIBS="$LIBS -lc_r"
12909 THREADOBJ="Python/thread.o"
12910 else
12912 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12913 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12914 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917 ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-lpthread $LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char __pthread_create_system ();
12934 main ()
12936 __pthread_create_system ();
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_lib_pthread___pthread_create_system=yes
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 ac_cv_lib_pthread___pthread_create_system=no
12970 rm -f conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 LIBS=$ac_check_lib_save_LIBS
12974 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12975 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12976 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12977 cat >>confdefs.h <<\_ACEOF
12978 #define WITH_THREAD 1
12979 _ACEOF
12981 posix_threads=yes
12982 LIBS="$LIBS -lpthread"
12983 THREADOBJ="Python/thread.o"
12984 else
12986 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12987 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12988 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 ac_check_lib_save_LIBS=$LIBS
12992 LIBS="-lcma $LIBS"
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any gcc2 internal prototype to avoid an error. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char pthread_create ();
13008 main ()
13010 pthread_create ();
13012 return 0;
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_cma_pthread_create=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_cv_lib_cma_pthread_create=no
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 LIBS=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13049 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13050 if test $ac_cv_lib_cma_pthread_create = yes; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define WITH_THREAD 1
13053 _ACEOF
13055 posix_threads=yes
13056 LIBS="$LIBS -lcma"
13057 THREADOBJ="Python/thread.o"
13058 else
13060 USE_THREAD_MODULE="#"
13079 rm -f conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13089 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13090 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13091 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-lmpc $LIBS"
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 /* Override any gcc2 internal prototype to avoid an error. */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 /* We use char because int might match the return type of a gcc2
13108 builtin and then its argument prototype would still apply. */
13109 char usconfig ();
13111 main ()
13113 usconfig ();
13115 return 0;
13117 _ACEOF
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag"
13128 || test ! -s conftest.err'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest$ac_exeext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_cv_lib_mpc_usconfig=yes
13141 else
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_cv_lib_mpc_usconfig=no
13147 rm -f conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13152 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13153 if test $ac_cv_lib_mpc_usconfig = yes; then
13154 cat >>confdefs.h <<\_ACEOF
13155 #define WITH_THREAD 1
13156 _ACEOF
13158 LIBS="$LIBS -lmpc"
13159 THREADOBJ="Python/thread.o"
13160 USE_THREAD_MODULE=""
13164 if test "$posix_threads" != "yes"; then
13165 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13166 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13167 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170 ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-lthread $LIBS"
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13179 /* Override any gcc2 internal prototype to avoid an error. */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13185 char thr_create ();
13187 main ()
13189 thr_create ();
13191 return 0;
13193 _ACEOF
13194 rm -f conftest.$ac_objext conftest$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196 (eval $ac_link) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag"
13204 || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_lib_thread_thr_create=yes
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_lib_thread_thr_create=no
13223 rm -f conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13228 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13229 if test $ac_cv_lib_thread_thr_create = yes; then
13230 cat >>confdefs.h <<\_ACEOF
13231 #define WITH_THREAD 1
13232 _ACEOF
13234 LIBS="$LIBS -lthread"
13235 THREADOBJ="Python/thread.o"
13236 USE_THREAD_MODULE=""
13241 if test "$USE_THREAD_MODULE" != "#"
13242 then
13243 # If the above checks didn't disable threads, (at least) OSF1
13244 # needs this '-threads' argument during linking.
13245 case $ac_sys_system in
13246 OSF1) LDLAST=-threads;;
13247 esac
13251 if test "$posix_threads" = "yes"; then
13252 if test "$unistd_defines_pthreads" = "no"; then
13254 cat >>confdefs.h <<\_ACEOF
13255 #define _POSIX_THREADS 1
13256 _ACEOF
13260 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13261 case $ac_sys_system/$ac_sys_release in
13262 SunOS/5.6)
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_PTHREAD_DESTRUCTOR 1
13265 _ACEOF
13268 SunOS/5.8)
13269 cat >>confdefs.h <<\_ACEOF
13270 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13271 _ACEOF
13274 esac
13276 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13277 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13278 if test "${ac_cv_pthread_system_supported+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 if test "$cross_compiling" = yes; then
13282 ac_cv_pthread_system_supported=no
13283 else
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h. */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <pthread.h>
13291 void *foo(void *parm) {
13292 return NULL;
13294 main() {
13295 pthread_attr_t attr;
13296 pthread_t id;
13297 if (pthread_attr_init(&attr)) exit(-1);
13298 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13299 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13300 exit(0);
13302 _ACEOF
13303 rm -f conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_pthread_system_supported=yes
13315 else
13316 echo "$as_me: program exited with status $ac_status" >&5
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ( exit $ac_status )
13321 ac_cv_pthread_system_supported=no
13323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13329 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13330 if test "$ac_cv_pthread_system_supported" = "yes"; then
13332 cat >>confdefs.h <<\_ACEOF
13333 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13334 _ACEOF
13338 for ac_func in pthread_sigmask
13340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13341 echo "$as_me:$LINENO: checking for $ac_func" >&5
13342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13343 if eval "test \"\${$as_ac_var+set}\" = set"; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13354 #define $ac_func innocuous_$ac_func
13356 /* System header to define __stub macros and hopefully few prototypes,
13357 which can conflict with char $ac_func (); below.
13358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13359 <limits.h> exists even on freestanding compilers. */
13361 #ifdef __STDC__
13362 # include <limits.h>
13363 #else
13364 # include <assert.h>
13365 #endif
13367 #undef $ac_func
13369 /* Override any gcc2 internal prototype to avoid an error. */
13370 #ifdef __cplusplus
13371 extern "C"
13373 #endif
13374 /* We use char because int might match the return type of a gcc2
13375 builtin and then its argument prototype would still apply. */
13376 char $ac_func ();
13377 /* The GNU C library defines this for functions which it implements
13378 to always fail with ENOSYS. Some functions are actually named
13379 something starting with __ and the normal name is an alias. */
13380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381 choke me
13382 #else
13383 char (*f) () = $ac_func;
13384 #endif
13385 #ifdef __cplusplus
13387 #endif
13390 main ()
13392 return f != $ac_func;
13394 return 0;
13396 _ACEOF
13397 rm -f conftest.$ac_objext conftest$ac_exeext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag"
13407 || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 eval "$as_ac_var=yes"
13420 else
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 eval "$as_ac_var=no"
13426 rm -f conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13431 if test `eval echo '${'$as_ac_var'}'` = yes; then
13432 cat >>confdefs.h <<_ACEOF
13433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13434 _ACEOF
13435 case $ac_sys_system in
13436 CYGWIN*)
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13440 _ACEOF
13443 esac
13445 done
13450 # Check for enable-ipv6
13453 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13454 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13455 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13456 if test "${enable_ipv6+set}" = set; then
13457 enableval="$enable_ipv6"
13458 case "$enableval" in
13460 echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6
13462 ipv6=no
13464 *) echo "$as_me:$LINENO: result: yes" >&5
13465 echo "${ECHO_T}yes" >&6
13466 cat >>confdefs.h <<\_ACEOF
13467 #define ENABLE_IPV6 1
13468 _ACEOF
13470 ipv6=yes
13472 esac
13473 else
13475 if test "$cross_compiling" = yes; then
13476 echo "$as_me:$LINENO: result: no" >&5
13477 echo "${ECHO_T}no" >&6
13478 ipv6=no
13480 else
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 /* AF_INET6 available check */
13488 #include <sys/types.h>
13489 #include <sys/socket.h>
13490 main()
13492 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13493 exit(1);
13494 else
13495 exit(0);
13498 _ACEOF
13499 rm -f conftest$ac_exeext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6
13512 ipv6=yes
13513 else
13514 echo "$as_me: program exited with status $ac_status" >&5
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ( exit $ac_status )
13519 echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6
13521 ipv6=no
13523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13526 if test "$ipv6" = "yes"; then
13527 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13528 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 #include <sys/types.h>
13536 #include <netinet/in.h>
13538 main ()
13540 struct sockaddr_in6 x;
13541 x.sin6_scope_id;
13543 return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548 (eval $ac_compile) 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest.$ac_objext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 echo "$as_me:$LINENO: result: yes" >&5
13569 echo "${ECHO_T}yes" >&6
13570 ipv6=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13577 ipv6=no
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 cat >>confdefs.h <<\_ACEOF
13584 #define ENABLE_IPV6 1
13585 _ACEOF
13591 ipv6type=unknown
13592 ipv6lib=none
13593 ipv6trylibc=no
13595 if test "$ipv6" = "yes"; then
13596 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13597 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13598 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13600 case $i in
13601 inria)
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 #include <netinet/in.h>
13610 #ifdef IPV6_INRIA_VERSION
13612 #endif
13613 _ACEOF
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "yes" >/dev/null 2>&1; then
13616 ipv6type=$i
13618 rm -f conftest*
13621 kame)
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h. */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13629 #include <netinet/in.h>
13630 #ifdef __KAME__
13632 #endif
13633 _ACEOF
13634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13635 $EGREP "yes" >/dev/null 2>&1; then
13636 ipv6type=$i;
13637 ipv6lib=inet6
13638 ipv6libdir=/usr/local/v6/lib
13639 ipv6trylibc=yes
13641 rm -f conftest*
13644 linux-glibc)
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13652 #include <features.h>
13653 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13655 #endif
13656 _ACEOF
13657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13658 $EGREP "yes" >/dev/null 2>&1; then
13659 ipv6type=$i;
13660 ipv6trylibc=yes
13662 rm -f conftest*
13665 linux-inet6)
13666 if test -d /usr/inet6; then
13667 ipv6type=$i
13668 ipv6lib=inet6
13669 ipv6libdir=/usr/inet6/lib
13670 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13673 solaris)
13674 if test -f /etc/netconfig; then
13675 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13676 ipv6type=$i
13677 ipv6trylibc=yes
13681 toshiba)
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13689 #include <sys/param.h>
13690 #ifdef _TOSHIBA_INET6
13692 #endif
13693 _ACEOF
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "yes" >/dev/null 2>&1; then
13696 ipv6type=$i;
13697 ipv6lib=inet6;
13698 ipv6libdir=/usr/local/v6/lib
13700 rm -f conftest*
13703 v6d)
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #include </usr/local/v6/include/sys/v6config.h>
13712 #ifdef __V6D__
13714 #endif
13715 _ACEOF
13716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13717 $EGREP "yes" >/dev/null 2>&1; then
13718 ipv6type=$i;
13719 ipv6lib=v6;
13720 ipv6libdir=/usr/local/v6/lib;
13721 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13723 rm -f conftest*
13726 zeta)
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h. */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13734 #include <sys/param.h>
13735 #ifdef _ZETA_MINAMI_INET6
13737 #endif
13738 _ACEOF
13739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13740 $EGREP "yes" >/dev/null 2>&1; then
13741 ipv6type=$i;
13742 ipv6lib=inet6;
13743 ipv6libdir=/usr/local/v6/lib
13745 rm -f conftest*
13748 esac
13749 if test "$ipv6type" != "unknown"; then
13750 break
13752 done
13753 echo "$as_me:$LINENO: result: $ipv6type" >&5
13754 echo "${ECHO_T}$ipv6type" >&6
13757 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13758 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13759 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13760 echo "using lib$ipv6lib"
13761 else
13762 if test $ipv6trylibc = "yes"; then
13763 echo "using libc"
13764 else
13765 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13766 echo "You need to fetch lib$ipv6lib.a from appropriate"
13767 echo 'ipv6 kit and compile beforehand.'
13768 exit 1
13773 # Check for --with-doc-strings
13774 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13775 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13777 # Check whether --with-doc-strings or --without-doc-strings was given.
13778 if test "${with_doc_strings+set}" = set; then
13779 withval="$with_doc_strings"
13783 if test -z "$with_doc_strings"
13784 then with_doc_strings="yes"
13786 if test "$with_doc_strings" != "no"
13787 then
13789 cat >>confdefs.h <<\_ACEOF
13790 #define WITH_DOC_STRINGS 1
13791 _ACEOF
13794 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13795 echo "${ECHO_T}$with_doc_strings" >&6
13797 # Check for Python-specific malloc support
13798 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13799 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13801 # Check whether --with-tsc or --without-tsc was given.
13802 if test "${with_tsc+set}" = set; then
13803 withval="$with_tsc"
13805 if test "$withval" != no
13806 then
13808 cat >>confdefs.h <<\_ACEOF
13809 #define WITH_TSC 1
13810 _ACEOF
13812 echo "$as_me:$LINENO: result: yes" >&5
13813 echo "${ECHO_T}yes" >&6
13814 else echo "$as_me:$LINENO: result: no" >&5
13815 echo "${ECHO_T}no" >&6
13817 else
13818 echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13822 # Check for Python-specific malloc support
13823 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13824 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13826 # Check whether --with-pymalloc or --without-pymalloc was given.
13827 if test "${with_pymalloc+set}" = set; then
13828 withval="$with_pymalloc"
13832 if test -z "$with_pymalloc"
13833 then with_pymalloc="yes"
13835 if test "$with_pymalloc" != "no"
13836 then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define WITH_PYMALLOC 1
13840 _ACEOF
13843 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13844 echo "${ECHO_T}$with_pymalloc" >&6
13846 # Check for --with-wctype-functions
13847 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13848 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13850 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13851 if test "${with_wctype_functions+set}" = set; then
13852 withval="$with_wctype_functions"
13854 if test "$withval" != no
13855 then
13857 cat >>confdefs.h <<\_ACEOF
13858 #define WANT_WCTYPE_FUNCTIONS 1
13859 _ACEOF
13861 echo "$as_me:$LINENO: result: yes" >&5
13862 echo "${ECHO_T}yes" >&6
13863 else echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6
13866 else
13867 echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6
13871 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13873 DLINCLDIR=.
13875 # the dlopen() function means we might want to use dynload_shlib.o. some
13876 # platforms, such as AIX, have dlopen(), but don't want to use it.
13878 for ac_func in dlopen
13880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_var+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13907 #undef $ac_func
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 #ifdef __cplusplus
13911 extern "C"
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func ();
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921 choke me
13922 #else
13923 char (*f) () = $ac_func;
13924 #endif
13925 #ifdef __cplusplus
13927 #endif
13930 main ()
13932 return f != $ac_func;
13934 return 0;
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 eval "$as_ac_var=yes"
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 eval "$as_ac_var=no"
13966 rm -f conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13971 if test `eval echo '${'$as_ac_var'}'` = yes; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13974 _ACEOF
13977 done
13980 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13981 # loading of modules.
13983 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13984 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13985 if test -z "$DYNLOADFILE"
13986 then
13987 case $ac_sys_system/$ac_sys_release in
13988 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13989 if test "$ac_cv_func_dlopen" = yes
13990 then DYNLOADFILE="dynload_shlib.o"
13991 else DYNLOADFILE="dynload_aix.o"
13994 BeOS*) DYNLOADFILE="dynload_beos.o";;
13995 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13996 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
13997 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
13998 atheos*) DYNLOADFILE="dynload_atheos.o";;
14000 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14001 # out any dynamic loading
14002 if test "$ac_cv_func_dlopen" = yes
14003 then DYNLOADFILE="dynload_shlib.o"
14004 else DYNLOADFILE="dynload_stub.o"
14007 esac
14009 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14010 echo "${ECHO_T}$DYNLOADFILE" >&6
14011 if test "$DYNLOADFILE" != "dynload_stub.o"
14012 then
14014 cat >>confdefs.h <<\_ACEOF
14015 #define HAVE_DYNAMIC_LOADING 1
14016 _ACEOF
14020 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14023 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14024 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14025 if test -z "$MACHDEP_OBJS"
14026 then
14027 MACHDEP_OBJS=$extra_machdep_objs
14028 else
14029 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14031 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14032 echo "${ECHO_T}MACHDEP_OBJS" >&6
14034 # checks for library functions
14111 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14112 execv fork fpathconf ftime ftruncate \
14113 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14114 getpriority getpwent getspnam getspent getsid getwd \
14115 kill killpg lchown lstat mkfifo mknod mktime \
14116 mremap nice pathconf pause plock poll pthread_init \
14117 putenv readlink realpath \
14118 select setegid seteuid setgid \
14119 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14120 sigaction siginterrupt sigrelse strftime \
14121 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14122 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14125 echo "$as_me:$LINENO: checking for $ac_func" >&5
14126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14127 if eval "test \"\${$as_ac_var+set}\" = set"; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h. */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14138 #define $ac_func innocuous_$ac_func
14140 /* System header to define __stub macros and hopefully few prototypes,
14141 which can conflict with char $ac_func (); below.
14142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14143 <limits.h> exists even on freestanding compilers. */
14145 #ifdef __STDC__
14146 # include <limits.h>
14147 #else
14148 # include <assert.h>
14149 #endif
14151 #undef $ac_func
14153 /* Override any gcc2 internal prototype to avoid an error. */
14154 #ifdef __cplusplus
14155 extern "C"
14157 #endif
14158 /* We use char because int might match the return type of a gcc2
14159 builtin and then its argument prototype would still apply. */
14160 char $ac_func ();
14161 /* The GNU C library defines this for functions which it implements
14162 to always fail with ENOSYS. Some functions are actually named
14163 something starting with __ and the normal name is an alias. */
14164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165 choke me
14166 #else
14167 char (*f) () = $ac_func;
14168 #endif
14169 #ifdef __cplusplus
14171 #endif
14174 main ()
14176 return f != $ac_func;
14178 return 0;
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 eval "$as_ac_var=yes"
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 eval "$as_ac_var=no"
14210 rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14215 if test `eval echo '${'$as_ac_var'}'` = yes; then
14216 cat >>confdefs.h <<_ACEOF
14217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14218 _ACEOF
14221 done
14224 # For some functions, having a definition is not sufficient, since
14225 # we want to take their address.
14226 echo "$as_me:$LINENO: checking for chroot" >&5
14227 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h. */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 #include <unistd.h>
14236 main ()
14238 void *x=chroot
14240 return 0;
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -z "$ac_c_werror_flag"
14253 || test ! -s conftest.err'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_CHROOT 1
14268 _ACEOF
14270 echo "$as_me:$LINENO: result: yes" >&5
14271 echo "${ECHO_T}yes" >&6
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 echo "$as_me:$LINENO: result: no" >&5
14277 echo "${ECHO_T}no" >&6
14280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14281 echo "$as_me:$LINENO: checking for link" >&5
14282 echo $ECHO_N "checking for link... $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <unistd.h>
14291 main ()
14293 void *x=link
14295 return 0;
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag"
14308 || test ! -s conftest.err'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest.$ac_objext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_LINK 1
14323 _ACEOF
14325 echo "$as_me:$LINENO: result: yes" >&5
14326 echo "${ECHO_T}yes" >&6
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 echo "$as_me:$LINENO: result: no" >&5
14332 echo "${ECHO_T}no" >&6
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 echo "$as_me:$LINENO: checking for symlink" >&5
14337 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <unistd.h>
14346 main ()
14348 void *x=symlink
14350 return 0;
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag"
14363 || test ! -s conftest.err'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14376 cat >>confdefs.h <<\_ACEOF
14377 #define HAVE_SYMLINK 1
14378 _ACEOF
14380 echo "$as_me:$LINENO: result: yes" >&5
14381 echo "${ECHO_T}yes" >&6
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 echo "$as_me:$LINENO: result: no" >&5
14387 echo "${ECHO_T}no" >&6
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391 echo "$as_me:$LINENO: checking for fchdir" >&5
14392 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <unistd.h>
14401 main ()
14403 void *x=fchdir
14405 return 0;
14407 _ACEOF
14408 rm -f conftest.$ac_objext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410 (eval $ac_compile) 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -z "$ac_c_werror_flag"
14418 || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest.$ac_objext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_FCHDIR 1
14433 _ACEOF
14435 echo "$as_me:$LINENO: result: yes" >&5
14436 echo "${ECHO_T}yes" >&6
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 echo "$as_me:$LINENO: result: no" >&5
14442 echo "${ECHO_T}no" >&6
14445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14446 echo "$as_me:$LINENO: checking for fsync" >&5
14447 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <unistd.h>
14456 main ()
14458 void *x=fsync
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_FSYNC 1
14488 _ACEOF
14490 echo "$as_me:$LINENO: result: yes" >&5
14491 echo "${ECHO_T}yes" >&6
14492 else
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6
14500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14501 echo "$as_me:$LINENO: checking for fdatasync" >&5
14502 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <unistd.h>
14511 main ()
14513 void *x=fdatasync
14515 return 0;
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14541 cat >>confdefs.h <<\_ACEOF
14542 #define HAVE_FDATASYNC 1
14543 _ACEOF
14545 echo "$as_me:$LINENO: result: yes" >&5
14546 echo "${ECHO_T}yes" >&6
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 echo "$as_me:$LINENO: result: no" >&5
14552 echo "${ECHO_T}no" >&6
14555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557 # On some systems (eg. FreeBSD 5), we would find a definition of the
14558 # functions ctermid_r, setgroups in the library, but no prototype
14559 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14560 # address to avoid compiler warnings and potential miscompilations
14561 # because of the missing prototypes.
14563 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14564 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14572 #include "confdefs.h"
14573 #include <stdio.h>
14576 main ()
14578 void* p = ctermid_r
14580 return 0;
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag"
14593 || test ! -s conftest.err'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; } &&
14599 { ac_try='test -s conftest.$ac_objext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14606 cat >>confdefs.h <<\_ACEOF
14607 #define HAVE_CTERMID_R 1
14608 _ACEOF
14610 echo "$as_me:$LINENO: result: yes" >&5
14611 echo "${ECHO_T}yes" >&6
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6
14620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14622 echo "$as_me:$LINENO: checking for flock" >&5
14623 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h. */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14631 #include "confdefs.h"
14632 #include <sys/file.h>
14635 main ()
14637 void* p = flock
14639 return 0;
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14665 cat >>confdefs.h <<\_ACEOF
14666 #define HAVE_FLOCK 1
14667 _ACEOF
14669 echo "$as_me:$LINENO: result: yes" >&5
14670 echo "${ECHO_T}yes" >&6
14671 else
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14675 echo "$as_me:$LINENO: result: no" >&5
14676 echo "${ECHO_T}no" >&6
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14681 echo "$as_me:$LINENO: checking for getpagesize" >&5
14682 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14683 cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h. */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14690 #include "confdefs.h"
14691 #include <unistd.h>
14694 main ()
14696 void* p = getpagesize
14698 return 0;
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_GETPAGESIZE 1
14726 _ACEOF
14728 echo "$as_me:$LINENO: result: yes" >&5
14729 echo "${ECHO_T}yes" >&6
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 echo "$as_me:$LINENO: result: no" >&5
14735 echo "${ECHO_T}no" >&6
14738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14740 for ac_prog in true
14742 # Extract the first word of "$ac_prog", so it can be a program name with args.
14743 set dummy $ac_prog; ac_word=$2
14744 echo "$as_me:$LINENO: checking for $ac_word" >&5
14745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14746 if test "${ac_cv_prog_TRUE+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749 if test -n "$TRUE"; then
14750 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14751 else
14752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14753 for as_dir in $PATH
14755 IFS=$as_save_IFS
14756 test -z "$as_dir" && as_dir=.
14757 for ac_exec_ext in '' $ac_executable_extensions; do
14758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_prog_TRUE="$ac_prog"
14760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14761 break 2
14763 done
14764 done
14768 TRUE=$ac_cv_prog_TRUE
14769 if test -n "$TRUE"; then
14770 echo "$as_me:$LINENO: result: $TRUE" >&5
14771 echo "${ECHO_T}$TRUE" >&6
14772 else
14773 echo "$as_me:$LINENO: result: no" >&5
14774 echo "${ECHO_T}no" >&6
14777 test -n "$TRUE" && break
14778 done
14779 test -n "$TRUE" || TRUE="/bin/true"
14782 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14783 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14784 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lc $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14802 char inet_aton ();
14804 main ()
14806 inet_aton ();
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag"
14821 || test ! -s conftest.err'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest$ac_exeext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_c_inet_aton=yes
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_cv_lib_c_inet_aton=no
14840 rm -f conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14842 LIBS=$ac_check_lib_save_LIBS
14844 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14845 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14846 if test $ac_cv_lib_c_inet_aton = yes; then
14847 $ac_cv_prog_TRUE
14848 else
14850 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14851 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14852 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lresolv $LIBS"
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h. */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 /* Override any gcc2 internal prototype to avoid an error. */
14865 #ifdef __cplusplus
14866 extern "C"
14867 #endif
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14870 char inet_aton ();
14872 main ()
14874 inet_aton ();
14876 return 0;
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try='test -s conftest$ac_exeext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_lib_resolv_inet_aton=yes
14902 else
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_lib_resolv_inet_aton=no
14908 rm -f conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext conftest.$ac_ext
14910 LIBS=$ac_check_lib_save_LIBS
14912 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14913 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14914 if test $ac_cv_lib_resolv_inet_aton = yes; then
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_LIBRESOLV 1
14917 _ACEOF
14919 LIBS="-lresolv $LIBS"
14927 echo "$as_me:$LINENO: checking for hstrerror" >&5
14928 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 #include "confdefs.h"
14937 #include <netdb.h>
14940 main ()
14942 void* p = hstrerror; hstrerror(0)
14944 return 0;
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_c_werror_flag"
14957 || test ! -s conftest.err'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_HSTRERROR 1
14972 _ACEOF
14974 echo "$as_me:$LINENO: result: yes" >&5
14975 echo "${ECHO_T}yes" >&6
14976 else
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 echo "$as_me:$LINENO: result: no" >&5
14981 echo "${ECHO_T}no" >&6
14984 rm -f conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14987 echo "$as_me:$LINENO: checking for inet_aton" >&5
14988 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h. */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14996 #include "confdefs.h"
14997 #include <sys/types.h>
14998 #include <sys/socket.h>
14999 #include <netinet/in.h>
15000 #include <arpa/inet.h>
15003 main ()
15005 void* p = inet_aton;inet_aton(0,0)
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_INET_ATON 1
15035 _ACEOF
15037 echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 echo "$as_me:$LINENO: result: no" >&5
15044 echo "${ECHO_T}no" >&6
15047 rm -f conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15050 echo "$as_me:$LINENO: checking for inet_pton" >&5
15051 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15059 #include "confdefs.h"
15060 #include <sys/types.h>
15061 #include <sys/socket.h>
15062 #include <netinet/in.h>
15063 #include <arpa/inet.h>
15066 main ()
15068 void* p = inet_pton
15070 return 0;
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_INET_PTON 1
15098 _ACEOF
15100 echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 echo "$as_me:$LINENO: result: no" >&5
15107 echo "${ECHO_T}no" >&6
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15112 # On some systems, setgroups is in unistd.h, on others, in grp.h
15113 echo "$as_me:$LINENO: checking for setgroups" >&5
15114 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 #include "confdefs.h"
15123 #include <unistd.h>
15124 #ifdef HAVE_GRP_H
15125 #include <grp.h>
15126 #endif
15129 main ()
15131 void* p = setgroups
15133 return 0;
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138 (eval $ac_compile) 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag"
15146 || test ! -s conftest.err'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_SETGROUPS 1
15161 _ACEOF
15163 echo "$as_me:$LINENO: result: yes" >&5
15164 echo "${ECHO_T}yes" >&6
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175 # check for openpty and forkpty
15178 for ac_func in openpty
15180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15181 echo "$as_me:$LINENO: checking for $ac_func" >&5
15182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15183 if eval "test \"\${$as_ac_var+set}\" = set"; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15194 #define $ac_func innocuous_$ac_func
15196 /* System header to define __stub macros and hopefully few prototypes,
15197 which can conflict with char $ac_func (); below.
15198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15199 <limits.h> exists even on freestanding compilers. */
15201 #ifdef __STDC__
15202 # include <limits.h>
15203 #else
15204 # include <assert.h>
15205 #endif
15207 #undef $ac_func
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 #ifdef __cplusplus
15211 extern "C"
15213 #endif
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15216 char $ac_func ();
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15221 choke me
15222 #else
15223 char (*f) () = $ac_func;
15224 #endif
15225 #ifdef __cplusplus
15227 #endif
15230 main ()
15232 return f != $ac_func;
15234 return 0;
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15239 (eval $ac_link) 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 eval "$as_ac_var=yes"
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 eval "$as_ac_var=no"
15266 rm -f conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15271 if test `eval echo '${'$as_ac_var'}'` = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15274 _ACEOF
15276 else
15277 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15278 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15279 if test "${ac_cv_lib_util_openpty+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282 ac_check_lib_save_LIBS=$LIBS
15283 LIBS="-lutil $LIBS"
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15291 /* Override any gcc2 internal prototype to avoid an error. */
15292 #ifdef __cplusplus
15293 extern "C"
15294 #endif
15295 /* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15297 char openpty ();
15299 main ()
15301 openpty ();
15303 return 0;
15305 _ACEOF
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>conftest.er1
15309 ac_status=$?
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } &&
15315 { ac_try='test -z "$ac_c_werror_flag"
15316 || test ! -s conftest.err'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest$ac_exeext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_cv_lib_util_openpty=yes
15329 else
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_cv_lib_util_openpty=no
15335 rm -f conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15339 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15340 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15341 if test $ac_cv_lib_util_openpty = yes; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAVE_OPENPTY 1
15344 _ACEOF
15345 LIBS="$LIBS -lutil"
15346 else
15347 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15348 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15349 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 ac_check_lib_save_LIBS=$LIBS
15353 LIBS="-lbsd $LIBS"
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h. */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15361 /* Override any gcc2 internal prototype to avoid an error. */
15362 #ifdef __cplusplus
15363 extern "C"
15364 #endif
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15367 char openpty ();
15369 main ()
15371 openpty ();
15373 return 0;
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_bsd_openpty=yes
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_cv_lib_bsd_openpty=no
15405 rm -f conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_check_lib_save_LIBS
15409 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15410 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15411 if test $ac_cv_lib_bsd_openpty = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define HAVE_OPENPTY 1
15414 _ACEOF
15415 LIBS="$LIBS -lbsd"
15423 done
15426 for ac_func in forkpty
15428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15429 echo "$as_me:$LINENO: checking for $ac_func" >&5
15430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15431 if eval "test \"\${$as_ac_var+set}\" = set"; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h. */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15442 #define $ac_func innocuous_$ac_func
15444 /* System header to define __stub macros and hopefully few prototypes,
15445 which can conflict with char $ac_func (); below.
15446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15447 <limits.h> exists even on freestanding compilers. */
15449 #ifdef __STDC__
15450 # include <limits.h>
15451 #else
15452 # include <assert.h>
15453 #endif
15455 #undef $ac_func
15457 /* Override any gcc2 internal prototype to avoid an error. */
15458 #ifdef __cplusplus
15459 extern "C"
15461 #endif
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15464 char $ac_func ();
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15469 choke me
15470 #else
15471 char (*f) () = $ac_func;
15472 #endif
15473 #ifdef __cplusplus
15475 #endif
15478 main ()
15480 return f != $ac_func;
15482 return 0;
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 eval "$as_ac_var=yes"
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 eval "$as_ac_var=no"
15514 rm -f conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15522 _ACEOF
15524 else
15525 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15526 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15527 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 ac_check_lib_save_LIBS=$LIBS
15531 LIBS="-lutil $LIBS"
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h. */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15539 /* Override any gcc2 internal prototype to avoid an error. */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15545 char forkpty ();
15547 main ()
15549 forkpty ();
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest$ac_exeext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_lib_util_forkpty=yes
15577 else
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_cv_lib_util_forkpty=no
15583 rm -f conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15587 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15588 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15589 if test $ac_cv_lib_util_forkpty = yes; then
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_FORKPTY 1
15592 _ACEOF
15593 LIBS="$LIBS -lutil"
15594 else
15595 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15596 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15597 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600 ac_check_lib_save_LIBS=$LIBS
15601 LIBS="-lbsd $LIBS"
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 /* Override any gcc2 internal prototype to avoid an error. */
15610 #ifdef __cplusplus
15611 extern "C"
15612 #endif
15613 /* We use char because int might match the return type of a gcc2
15614 builtin and then its argument prototype would still apply. */
15615 char forkpty ();
15617 main ()
15619 forkpty ();
15621 return 0;
15623 _ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15626 (eval $ac_link) 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest$ac_exeext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_cv_lib_bsd_forkpty=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_bsd_forkpty=no
15653 rm -f conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 LIBS=$ac_check_lib_save_LIBS
15657 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15658 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15659 if test $ac_cv_lib_bsd_forkpty = yes; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_FORKPTY 1
15662 _ACEOF
15663 LIBS="$LIBS -lbsd"
15671 done
15674 # check for long file support functions
15681 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15684 echo "$as_me:$LINENO: checking for $ac_func" >&5
15685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15686 if eval "test \"\${$as_ac_var+set}\" = set"; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h. */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15697 #define $ac_func innocuous_$ac_func
15699 /* System header to define __stub macros and hopefully few prototypes,
15700 which can conflict with char $ac_func (); below.
15701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15702 <limits.h> exists even on freestanding compilers. */
15704 #ifdef __STDC__
15705 # include <limits.h>
15706 #else
15707 # include <assert.h>
15708 #endif
15710 #undef $ac_func
15712 /* Override any gcc2 internal prototype to avoid an error. */
15713 #ifdef __cplusplus
15714 extern "C"
15716 #endif
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15719 char $ac_func ();
15720 /* The GNU C library defines this for functions which it implements
15721 to always fail with ENOSYS. Some functions are actually named
15722 something starting with __ and the normal name is an alias. */
15723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15724 choke me
15725 #else
15726 char (*f) () = $ac_func;
15727 #endif
15728 #ifdef __cplusplus
15730 #endif
15733 main ()
15735 return f != $ac_func;
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742 (eval $ac_link) 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest$ac_exeext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 eval "$as_ac_var=yes"
15763 else
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 eval "$as_ac_var=no"
15769 rm -f conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15774 if test `eval echo '${'$as_ac_var'}'` = yes; then
15775 cat >>confdefs.h <<_ACEOF
15776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15777 _ACEOF
15780 done
15788 for ac_func in dup2 getcwd strdup strerror memmove
15790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15791 echo "$as_me:$LINENO: checking for $ac_func" >&5
15792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15793 if eval "test \"\${$as_ac_var+set}\" = set"; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15804 #define $ac_func innocuous_$ac_func
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func (); below.
15808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15809 <limits.h> exists even on freestanding compilers. */
15811 #ifdef __STDC__
15812 # include <limits.h>
15813 #else
15814 # include <assert.h>
15815 #endif
15817 #undef $ac_func
15819 /* Override any gcc2 internal prototype to avoid an error. */
15820 #ifdef __cplusplus
15821 extern "C"
15823 #endif
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15826 char $ac_func ();
15827 /* The GNU C library defines this for functions which it implements
15828 to always fail with ENOSYS. Some functions are actually named
15829 something starting with __ and the normal name is an alias. */
15830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15831 choke me
15832 #else
15833 char (*f) () = $ac_func;
15834 #endif
15835 #ifdef __cplusplus
15837 #endif
15840 main ()
15842 return f != $ac_func;
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 eval "$as_ac_var=yes"
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 eval "$as_ac_var=no"
15876 rm -f conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15881 if test `eval echo '${'$as_ac_var'}'` = yes; then
15882 cat >>confdefs.h <<_ACEOF
15883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15884 _ACEOF
15886 else
15887 case $LIBOBJS in
15888 "$ac_func.$ac_objext" | \
15889 *" $ac_func.$ac_objext" | \
15890 "$ac_func.$ac_objext "* | \
15891 *" $ac_func.$ac_objext "* ) ;;
15892 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15893 esac
15896 done
15900 for ac_func in getpgrp
15902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15903 echo "$as_me:$LINENO: checking for $ac_func" >&5
15904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15905 if eval "test \"\${$as_ac_var+set}\" = set"; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15916 #define $ac_func innocuous_$ac_func
15918 /* System header to define __stub macros and hopefully few prototypes,
15919 which can conflict with char $ac_func (); below.
15920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15921 <limits.h> exists even on freestanding compilers. */
15923 #ifdef __STDC__
15924 # include <limits.h>
15925 #else
15926 # include <assert.h>
15927 #endif
15929 #undef $ac_func
15931 /* Override any gcc2 internal prototype to avoid an error. */
15932 #ifdef __cplusplus
15933 extern "C"
15935 #endif
15936 /* We use char because int might match the return type of a gcc2
15937 builtin and then its argument prototype would still apply. */
15938 char $ac_func ();
15939 /* The GNU C library defines this for functions which it implements
15940 to always fail with ENOSYS. Some functions are actually named
15941 something starting with __ and the normal name is an alias. */
15942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15943 choke me
15944 #else
15945 char (*f) () = $ac_func;
15946 #endif
15947 #ifdef __cplusplus
15949 #endif
15952 main ()
15954 return f != $ac_func;
15956 return 0;
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15961 (eval $ac_link) 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest$ac_exeext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 eval "$as_ac_var=yes"
15982 else
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 eval "$as_ac_var=no"
15988 rm -f conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15993 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15996 _ACEOF
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 #include <unistd.h>
16005 main ()
16007 getpgrp(0);
16009 return 0;
16011 _ACEOF
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_c_werror_flag"
16022 || test ! -s conftest.err'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16035 cat >>confdefs.h <<\_ACEOF
16036 #define GETPGRP_HAVE_ARG 1
16037 _ACEOF
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 done
16051 for ac_func in setpgrp
16053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16054 echo "$as_me:$LINENO: checking for $ac_func" >&5
16055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16056 if eval "test \"\${$as_ac_var+set}\" = set"; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16067 #define $ac_func innocuous_$ac_func
16069 /* System header to define __stub macros and hopefully few prototypes,
16070 which can conflict with char $ac_func (); below.
16071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072 <limits.h> exists even on freestanding compilers. */
16074 #ifdef __STDC__
16075 # include <limits.h>
16076 #else
16077 # include <assert.h>
16078 #endif
16080 #undef $ac_func
16082 /* Override any gcc2 internal prototype to avoid an error. */
16083 #ifdef __cplusplus
16084 extern "C"
16086 #endif
16087 /* We use char because int might match the return type of a gcc2
16088 builtin and then its argument prototype would still apply. */
16089 char $ac_func ();
16090 /* The GNU C library defines this for functions which it implements
16091 to always fail with ENOSYS. Some functions are actually named
16092 something starting with __ and the normal name is an alias. */
16093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16094 choke me
16095 #else
16096 char (*f) () = $ac_func;
16097 #endif
16098 #ifdef __cplusplus
16100 #endif
16103 main ()
16105 return f != $ac_func;
16107 return 0;
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>conftest.er1
16113 ac_status=$?
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 eval "$as_ac_var=yes"
16133 else
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 eval "$as_ac_var=no"
16139 rm -f conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16144 if test `eval echo '${'$as_ac_var'}'` = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16147 _ACEOF
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 #include <unistd.h>
16156 main ()
16158 setpgrp(0,0);
16160 return 0;
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16186 cat >>confdefs.h <<\_ACEOF
16187 #define SETPGRP_HAVE_ARG 1
16188 _ACEOF
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16199 done
16202 for ac_func in gettimeofday
16204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 echo "$as_me:$LINENO: checking for $ac_func" >&5
16206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16207 if eval "test \"\${$as_ac_var+set}\" = set"; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h. */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16218 #define $ac_func innocuous_$ac_func
16220 /* System header to define __stub macros and hopefully few prototypes,
16221 which can conflict with char $ac_func (); below.
16222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16223 <limits.h> exists even on freestanding compilers. */
16225 #ifdef __STDC__
16226 # include <limits.h>
16227 #else
16228 # include <assert.h>
16229 #endif
16231 #undef $ac_func
16233 /* Override any gcc2 internal prototype to avoid an error. */
16234 #ifdef __cplusplus
16235 extern "C"
16237 #endif
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16240 char $ac_func ();
16241 /* The GNU C library defines this for functions which it implements
16242 to always fail with ENOSYS. Some functions are actually named
16243 something starting with __ and the normal name is an alias. */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16245 choke me
16246 #else
16247 char (*f) () = $ac_func;
16248 #endif
16249 #ifdef __cplusplus
16251 #endif
16254 main ()
16256 return f != $ac_func;
16258 return 0;
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest$ac_exeext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 eval "$as_ac_var=yes"
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 eval "$as_ac_var=no"
16290 rm -f conftest.err conftest.$ac_objext \
16291 conftest$ac_exeext conftest.$ac_ext
16293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16295 if test `eval echo '${'$as_ac_var'}'` = yes; then
16296 cat >>confdefs.h <<_ACEOF
16297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16298 _ACEOF
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <sys/time.h>
16307 main ()
16309 gettimeofday((struct timeval*)0,(struct timezone*)0);
16311 return 0;
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16337 else
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16342 cat >>confdefs.h <<\_ACEOF
16343 #define GETTIMEOFDAY_NO_TZ 1
16344 _ACEOF
16348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16351 done
16354 echo "$as_me:$LINENO: checking for major" >&5
16355 echo $ECHO_N "checking for major... $ECHO_C" >&6
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 #if defined(MAJOR_IN_MKDEV)
16364 #include <sys/mkdev.h>
16365 #elif defined(MAJOR_IN_SYSMACROS)
16366 #include <sys/sysmacros.h>
16367 #else
16368 #include <sys/types.h>
16369 #endif
16372 main ()
16375 makedev(major(0),minor(0));
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383 (eval $ac_link) 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag"
16391 || test ! -s conftest.err'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest$ac_exeext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE_DEVICE_MACROS 1
16407 _ACEOF
16409 echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16417 echo "$as_me:$LINENO: result: no" >&5
16418 echo "${ECHO_T}no" >&6
16421 rm -f conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16424 # On OSF/1 V5.1, getaddrinfo is available, but a define
16425 # for [no]getaddrinfo in netdb.h.
16426 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16427 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16435 #include <sys/types.h>
16436 #include <sys/socket.h>
16437 #include <netdb.h>
16438 #include <stdio.h>
16441 main ()
16444 getaddrinfo(NULL, NULL, NULL, NULL);
16447 return 0;
16449 _ACEOF
16450 rm -f conftest.$ac_objext conftest$ac_exeext
16451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16452 (eval $ac_link) 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try='test -z "$ac_c_werror_flag"
16460 || test ! -s conftest.err'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; } &&
16466 { ac_try='test -s conftest$ac_exeext'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; }; then
16473 echo "$as_me:$LINENO: result: yes" >&5
16474 echo "${ECHO_T}yes" >&6
16475 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16476 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16477 if test "$cross_compiling" = yes; then
16478 echo "$as_me:$LINENO: result: buggy" >&5
16479 echo "${ECHO_T}buggy" >&6
16480 buggygetaddrinfo=yes
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 #include <sys/types.h>
16490 #include <netdb.h>
16491 #include <string.h>
16492 #include <sys/socket.h>
16493 #include <netinet/in.h>
16495 main()
16497 int passive, gaierr, inet4 = 0, inet6 = 0;
16498 struct addrinfo hints, *ai, *aitop;
16499 char straddr[INET6_ADDRSTRLEN], strport[16];
16501 for (passive = 0; passive <= 1; passive++) {
16502 memset(&hints, 0, sizeof(hints));
16503 hints.ai_family = AF_UNSPEC;
16504 hints.ai_flags = passive ? AI_PASSIVE : 0;
16505 hints.ai_socktype = SOCK_STREAM;
16506 hints.ai_protocol = IPPROTO_TCP;
16507 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16508 (void)gai_strerror(gaierr);
16509 goto bad;
16511 for (ai = aitop; ai; ai = ai->ai_next) {
16512 if (ai->ai_addr == NULL ||
16513 ai->ai_addrlen == 0 ||
16514 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16515 straddr, sizeof(straddr), strport, sizeof(strport),
16516 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16517 goto bad;
16519 switch (ai->ai_family) {
16520 case AF_INET:
16521 if (strcmp(strport, "54321") != 0) {
16522 goto bad;
16524 if (passive) {
16525 if (strcmp(straddr, "0.0.0.0") != 0) {
16526 goto bad;
16528 } else {
16529 if (strcmp(straddr, "127.0.0.1") != 0) {
16530 goto bad;
16533 inet4++;
16534 break;
16535 case AF_INET6:
16536 if (strcmp(strport, "54321") != 0) {
16537 goto bad;
16539 if (passive) {
16540 if (strcmp(straddr, "::") != 0) {
16541 goto bad;
16543 } else {
16544 if (strcmp(straddr, "::1") != 0) {
16545 goto bad;
16548 inet6++;
16549 break;
16550 case AF_UNSPEC:
16551 goto bad;
16552 break;
16553 default:
16554 /* another family support? */
16555 break;
16560 if (!(inet4 == 0 || inet4 == 2))
16561 goto bad;
16562 if (!(inet6 == 0 || inet6 == 2))
16563 goto bad;
16565 if (aitop)
16566 freeaddrinfo(aitop);
16567 exit(0);
16569 bad:
16570 if (aitop)
16571 freeaddrinfo(aitop);
16572 exit(1);
16575 _ACEOF
16576 rm -f conftest$ac_exeext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16578 (eval $ac_link) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 echo "$as_me:$LINENO: result: good" >&5
16588 echo "${ECHO_T}good" >&6
16589 buggygetaddrinfo=no
16590 else
16591 echo "$as_me: program exited with status $ac_status" >&5
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ( exit $ac_status )
16596 echo "$as_me:$LINENO: result: buggy" >&5
16597 echo "${ECHO_T}buggy" >&6
16598 buggygetaddrinfo=yes
16600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16607 echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6
16609 buggygetaddrinfo=yes
16612 rm -f conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16615 if test "$buggygetaddrinfo" = "yes"; then
16616 if test "$ipv6" = "yes"; then
16617 echo 'Fatal: You must get working getaddrinfo() function.'
16618 echo ' or you can specify "--disable-ipv6"'.
16619 exit 1
16621 else
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_GETADDRINFO 1
16625 _ACEOF
16629 for ac_func in getnameinfo
16631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632 echo "$as_me:$LINENO: checking for $ac_func" >&5
16633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16634 if eval "test \"\${$as_ac_var+set}\" = set"; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637 cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h. */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645 #define $ac_func innocuous_$ac_func
16647 /* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16652 #ifdef __STDC__
16653 # include <limits.h>
16654 #else
16655 # include <assert.h>
16656 #endif
16658 #undef $ac_func
16660 /* Override any gcc2 internal prototype to avoid an error. */
16661 #ifdef __cplusplus
16662 extern "C"
16664 #endif
16665 /* We use char because int might match the return type of a gcc2
16666 builtin and then its argument prototype would still apply. */
16667 char $ac_func ();
16668 /* The GNU C library defines this for functions which it implements
16669 to always fail with ENOSYS. Some functions are actually named
16670 something starting with __ and the normal name is an alias. */
16671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16672 choke me
16673 #else
16674 char (*f) () = $ac_func;
16675 #endif
16676 #ifdef __cplusplus
16678 #endif
16681 main ()
16683 return f != $ac_func;
16685 return 0;
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 eval "$as_ac_var=yes"
16711 else
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 eval "$as_ac_var=no"
16717 rm -f conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16722 if test `eval echo '${'$as_ac_var'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16725 _ACEOF
16728 done
16731 # checks for structures
16732 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16734 if test "${ac_cv_header_time+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h. */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743 #include <sys/types.h>
16744 #include <sys/time.h>
16745 #include <time.h>
16748 main ()
16750 if ((struct tm *) 0)
16751 return 0;
16753 return 0;
16755 _ACEOF
16756 rm -f conftest.$ac_objext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758 (eval $ac_compile) 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try='test -z "$ac_c_werror_flag"
16766 || test ! -s conftest.err'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } &&
16772 { ac_try='test -s conftest.$ac_objext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_header_time=yes
16779 else
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 ac_cv_header_time=no
16785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16788 echo "${ECHO_T}$ac_cv_header_time" >&6
16789 if test $ac_cv_header_time = yes; then
16791 cat >>confdefs.h <<\_ACEOF
16792 #define TIME_WITH_SYS_TIME 1
16793 _ACEOF
16797 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16798 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16799 if test "${ac_cv_struct_tm+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/types.h>
16809 #include <time.h>
16812 main ()
16814 struct tm *tp; tp->tm_sec;
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_struct_tm=time.h
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_cv_struct_tm=sys/time.h
16848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16851 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16852 if test $ac_cv_struct_tm = sys/time.h; then
16854 cat >>confdefs.h <<\_ACEOF
16855 #define TM_IN_SYS_TIME 1
16856 _ACEOF
16860 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16861 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16862 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865 cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h. */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <sys/types.h>
16872 #include <$ac_cv_struct_tm>
16876 main ()
16878 static struct tm ac_aggr;
16879 if (ac_aggr.tm_zone)
16880 return 0;
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_member_struct_tm_tm_zone=yes
16908 else
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h. */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 #include <sys/types.h>
16919 #include <$ac_cv_struct_tm>
16923 main ()
16925 static struct tm ac_aggr;
16926 if (sizeof ac_aggr.tm_zone)
16927 return 0;
16929 return 0;
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934 (eval $ac_compile) 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag"
16942 || test ! -s conftest.err'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_member_struct_tm_tm_zone=yes
16955 else
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_cv_member_struct_tm_tm_zone=no
16961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16967 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16969 cat >>confdefs.h <<_ACEOF
16970 #define HAVE_STRUCT_TM_TM_ZONE 1
16971 _ACEOF
16976 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_TM_ZONE 1
16980 _ACEOF
16982 else
16983 echo "$as_me:$LINENO: checking for tzname" >&5
16984 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16985 if test "${ac_cv_var_tzname+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h. */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 #include <time.h>
16995 #ifndef tzname /* For SGI. */
16996 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16997 #endif
17000 main ()
17002 atoi(*tzname);
17004 return 0;
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_var_tzname=yes
17030 else
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ac_cv_var_tzname=no
17036 rm -f conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17040 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17041 if test $ac_cv_var_tzname = yes; then
17043 cat >>confdefs.h <<\_ACEOF
17044 #define HAVE_TZNAME 1
17045 _ACEOF
17050 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17051 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17052 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 $ac_includes_default
17063 main ()
17065 static struct stat ac_aggr;
17066 if (ac_aggr.st_rdev)
17067 return 0;
17069 return 0;
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest.$ac_objext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_member_struct_stat_st_rdev=yes
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 $ac_includes_default
17107 main ()
17109 static struct stat ac_aggr;
17110 if (sizeof ac_aggr.st_rdev)
17111 return 0;
17113 return 0;
17115 _ACEOF
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_member_struct_stat_st_rdev=yes
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_cv_member_struct_stat_st_rdev=no
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17149 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17150 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17151 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_STRUCT_STAT_ST_RDEV 1
17155 _ACEOF
17160 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17161 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17162 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17173 main ()
17175 static struct stat ac_aggr;
17176 if (ac_aggr.st_blksize)
17177 return 0;
17179 return 0;
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 ac_cv_member_struct_stat_st_blksize=yes
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h. */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 $ac_includes_default
17217 main ()
17219 static struct stat ac_aggr;
17220 if (sizeof ac_aggr.st_blksize)
17221 return 0;
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag"
17236 || test ! -s conftest.err'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
17248 ac_cv_member_struct_stat_st_blksize=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_member_struct_stat_st_blksize=no
17255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17259 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17260 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17261 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17263 cat >>confdefs.h <<_ACEOF
17264 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17265 _ACEOF
17270 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17271 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17272 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17283 main ()
17285 static struct stat ac_aggr;
17286 if (ac_aggr.st_flags)
17287 return 0;
17289 return 0;
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17294 (eval $ac_compile) 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_member_struct_stat_st_flags=yes
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 $ac_includes_default
17327 main ()
17329 static struct stat ac_aggr;
17330 if (sizeof ac_aggr.st_flags)
17331 return 0;
17333 return 0;
17335 _ACEOF
17336 rm -f conftest.$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag"
17346 || test ! -s conftest.err'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest.$ac_objext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_member_struct_stat_st_flags=yes
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_member_struct_stat_st_flags=no
17365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17369 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17370 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17371 if test $ac_cv_member_struct_stat_st_flags = yes; then
17373 cat >>confdefs.h <<_ACEOF
17374 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17375 _ACEOF
17380 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17381 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17382 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17393 main ()
17395 static struct stat ac_aggr;
17396 if (ac_aggr.st_gen)
17397 return 0;
17399 return 0;
17401 _ACEOF
17402 rm -f conftest.$ac_objext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17404 (eval $ac_compile) 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest.$ac_objext'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_cv_member_struct_stat_st_gen=yes
17425 else
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h. */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 $ac_includes_default
17437 main ()
17439 static struct stat ac_aggr;
17440 if (sizeof ac_aggr.st_gen)
17441 return 0;
17443 return 0;
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag"
17456 || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_member_struct_stat_st_gen=yes
17469 else
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_member_struct_stat_st_gen=no
17475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17481 if test $ac_cv_member_struct_stat_st_gen = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_STRUCT_STAT_ST_GEN 1
17485 _ACEOF
17490 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17491 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17492 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 $ac_includes_default
17503 main ()
17505 static struct stat ac_aggr;
17506 if (ac_aggr.st_birthtime)
17507 return 0;
17509 return 0;
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag"
17522 || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_member_struct_stat_st_birthtime=yes
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17547 main ()
17549 static struct stat ac_aggr;
17550 if (sizeof ac_aggr.st_birthtime)
17551 return 0;
17553 return 0;
17555 _ACEOF
17556 rm -f conftest.$ac_objext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_cv_member_struct_stat_st_birthtime=yes
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_cv_member_struct_stat_st_birthtime=no
17585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17589 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17590 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17591 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17595 _ACEOF
17600 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17601 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17602 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 else
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h. */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611 $ac_includes_default
17613 main ()
17615 static struct stat ac_aggr;
17616 if (ac_aggr.st_blocks)
17617 return 0;
17619 return 0;
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest.$ac_objext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_member_struct_stat_st_blocks=yes
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 $ac_includes_default
17657 main ()
17659 static struct stat ac_aggr;
17660 if (sizeof ac_aggr.st_blocks)
17661 return 0;
17663 return 0;
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17668 (eval $ac_compile) 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -z "$ac_c_werror_flag"
17676 || test ! -s conftest.err'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_member_struct_stat_st_blocks=yes
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_cv_member_struct_stat_st_blocks=no
17695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17700 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17701 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17705 _ACEOF
17708 cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_ST_BLOCKS 1
17710 _ACEOF
17712 else
17713 case $LIBOBJS in
17714 "fileblocks.$ac_objext" | \
17715 *" fileblocks.$ac_objext" | \
17716 "fileblocks.$ac_objext "* | \
17717 *" fileblocks.$ac_objext "* ) ;;
17718 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17719 esac
17725 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17726 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17727 if test "${ac_cv_header_time_altzone+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 #include <time.h>
17738 main ()
17740 return altzone;
17742 return 0;
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747 (eval $ac_compile) 2>conftest.er1
17748 ac_status=$?
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag"
17755 || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest.$ac_objext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ac_cv_header_time_altzone=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_cv_header_time_altzone=no
17774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17778 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17779 if test $ac_cv_header_time_altzone = yes; then
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_ALTZONE 1
17783 _ACEOF
17787 was_it_defined=no
17788 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17789 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17797 #include <sys/types.h>
17798 #include <sys/select.h>
17799 #include <sys/time.h>
17802 main ()
17806 return 0;
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17833 cat >>confdefs.h <<\_ACEOF
17834 #define SYS_SELECT_WITH_SYS_TIME 1
17835 _ACEOF
17837 was_it_defined=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17846 echo "${ECHO_T}$was_it_defined" >&6
17848 echo "$as_me:$LINENO: checking for addrinfo" >&5
17849 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17850 if test "${ac_cv_struct_addrinfo+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17860 # include <netdb.h>
17862 main ()
17864 struct addrinfo a
17866 return 0;
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871 (eval $ac_compile) 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try='test -z "$ac_c_werror_flag"
17879 || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_struct_addrinfo=yes
17892 else
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_struct_addrinfo=no
17898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17901 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17902 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17903 if test $ac_cv_struct_addrinfo = yes; then
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_ADDRINFO 1
17907 _ACEOF
17911 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17912 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17913 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 # include <sys/types.h>
17924 # include <sys/socket.h>
17926 main ()
17928 struct sockaddr_storage s
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest.$ac_objext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_struct_sockaddr_storage=yes
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_struct_sockaddr_storage=no
17962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17966 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17967 if test $ac_cv_struct_sockaddr_storage = yes; then
17969 cat >>confdefs.h <<\_ACEOF
17970 #define HAVE_SOCKADDR_STORAGE 1
17971 _ACEOF
17975 # checks for compiler characteristics
17978 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17979 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17980 if test "${ac_cv_c_char_unsigned+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 $ac_includes_default
17991 main ()
17993 static int test_array [1 - 2 * !(((char) -1) < 0)];
17994 test_array [0] = 0
17997 return 0;
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_c_char_unsigned=no
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_c_char_unsigned=yes
18029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18032 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18033 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18034 cat >>confdefs.h <<\_ACEOF
18035 #define __CHAR_UNSIGNED__ 1
18036 _ACEOF
18040 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18041 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18042 if test "${ac_cv_c_const+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18053 main ()
18055 /* FIXME: Include the comments suggested by Paul. */
18056 #ifndef __cplusplus
18057 /* Ultrix mips cc rejects this. */
18058 typedef int charset[2];
18059 const charset x;
18060 /* SunOS 4.1.1 cc rejects this. */
18061 char const *const *ccp;
18062 char **p;
18063 /* NEC SVR4.0.2 mips cc rejects this. */
18064 struct point {int x, y;};
18065 static struct point const zero = {0,0};
18066 /* AIX XL C 1.02.0.0 rejects this.
18067 It does not let you subtract one const X* pointer from another in
18068 an arm of an if-expression whose if-part is not a constant
18069 expression */
18070 const char *g = "string";
18071 ccp = &g + (g ? g-g : 0);
18072 /* HPUX 7.0 cc rejects these. */
18073 ++ccp;
18074 p = (char**) ccp;
18075 ccp = (char const *const *) p;
18076 { /* SCO 3.2v4 cc rejects this. */
18077 char *t;
18078 char const *s = 0 ? (char *) 0 : (char const *) 0;
18080 *t++ = 0;
18082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18083 int x[] = {25, 17};
18084 const int *foo = &x[0];
18085 ++foo;
18087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18088 typedef const int *iptr;
18089 iptr p = 0;
18090 ++p;
18092 { /* AIX XL C 1.02.0.0 rejects this saying
18093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18094 struct s { int j; const int *ap[3]; };
18095 struct s *b; b->j = 5;
18097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18098 const int foo = 10;
18100 #endif
18103 return 0;
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag"
18116 || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_c_const=yes
18129 else
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 ac_cv_c_const=no
18135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18137 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18138 echo "${ECHO_T}$ac_cv_c_const" >&6
18139 if test $ac_cv_c_const = no; then
18141 cat >>confdefs.h <<\_ACEOF
18142 #define const
18143 _ACEOF
18148 works=no
18149 echo "$as_me:$LINENO: checking for working volatile" >&5
18150 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18159 main ()
18161 volatile int x; x = 0;
18163 return 0;
18165 _ACEOF
18166 rm -f conftest.$ac_objext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18168 (eval $ac_compile) 2>conftest.er1
18169 ac_status=$?
18170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag"
18176 || test ! -s conftest.err'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest.$ac_objext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 works=yes
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18194 cat >>confdefs.h <<\_ACEOF
18195 #define volatile
18196 _ACEOF
18200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18201 echo "$as_me:$LINENO: result: $works" >&5
18202 echo "${ECHO_T}$works" >&6
18204 works=no
18205 echo "$as_me:$LINENO: checking for working signed char" >&5
18206 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h. */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18215 main ()
18217 signed char c;
18219 return 0;
18221 _ACEOF
18222 rm -f conftest.$ac_objext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224 (eval $ac_compile) 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest.$ac_objext'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 works=yes
18245 else
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18250 cat >>confdefs.h <<\_ACEOF
18251 #define signed
18252 _ACEOF
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18257 echo "$as_me:$LINENO: result: $works" >&5
18258 echo "${ECHO_T}$works" >&6
18260 have_prototypes=no
18261 echo "$as_me:$LINENO: checking for prototypes" >&5
18262 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 int foo(int x) { return 0; }
18271 main ()
18273 return foo(10);
18275 return 0;
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_PROTOTYPES 1
18304 _ACEOF
18306 have_prototypes=yes
18308 else
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18314 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18315 echo "${ECHO_T}$have_prototypes" >&6
18317 works=no
18318 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18319 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 #include <stdarg.h>
18328 int foo(int x, ...) {
18329 va_list va;
18330 va_start(va, x);
18331 va_arg(va, int);
18332 va_arg(va, char *);
18333 va_arg(va, double);
18334 return 0;
18338 main ()
18340 return foo(10, "", 3.14);
18342 return 0;
18344 _ACEOF
18345 rm -f conftest.$ac_objext
18346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18347 (eval $ac_compile) 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
18354 { ac_try='test -z "$ac_c_werror_flag"
18355 || test ! -s conftest.err'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try='test -s conftest.$ac_objext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_STDARG_PROTOTYPES 1
18371 _ACEOF
18373 works=yes
18375 else
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18381 echo "$as_me:$LINENO: result: $works" >&5
18382 echo "${ECHO_T}$works" >&6
18384 # check for socketpair
18385 echo "$as_me:$LINENO: checking for socketpair" >&5
18386 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 #include <sys/types.h>
18395 #include <sys/socket.h>
18398 main ()
18400 void *x=socketpair
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18407 (eval $ac_compile) 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try='test -z "$ac_c_werror_flag"
18415 || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest.$ac_objext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE_SOCKETPAIR 1
18430 _ACEOF
18432 echo "$as_me:$LINENO: result: yes" >&5
18433 echo "${ECHO_T}yes" >&6
18434 else
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 echo "$as_me:$LINENO: result: no" >&5
18439 echo "${ECHO_T}no" >&6
18442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18444 # check if sockaddr has sa_len member
18445 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18446 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <sys/types.h>
18454 #include <sys/socket.h>
18456 main ()
18458 struct sockaddr x;
18459 x.sa_len = 0;
18461 return 0;
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466 (eval $ac_compile) 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -z "$ac_c_werror_flag"
18474 || test ! -s conftest.err'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 echo "$as_me:$LINENO: result: yes" >&5
18487 echo "${ECHO_T}yes" >&6
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE_SOCKADDR_SA_LEN 1
18491 _ACEOF
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 echo "$as_me:$LINENO: result: no" >&5
18498 echo "${ECHO_T}no" >&6
18500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18502 va_list_is_array=no
18503 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18504 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18512 #ifdef HAVE_STDARG_PROTOTYPES
18513 #include <stdarg.h>
18514 #else
18515 #include <varargs.h>
18516 #endif
18519 main ()
18521 va_list list1, list2; list1 = list2;
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528 (eval $ac_compile) 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18549 else
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18555 cat >>confdefs.h <<\_ACEOF
18556 #define VA_LIST_IS_ARRAY 1
18557 _ACEOF
18559 va_list_is_array=yes
18562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18563 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18564 echo "${ECHO_T}$va_list_is_array" >&6
18566 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18570 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18571 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18572 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583 #define gethostbyname_r innocuous_gethostbyname_r
18585 /* System header to define __stub macros and hopefully few prototypes,
18586 which can conflict with char gethostbyname_r (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18588 <limits.h> exists even on freestanding compilers. */
18590 #ifdef __STDC__
18591 # include <limits.h>
18592 #else
18593 # include <assert.h>
18594 #endif
18596 #undef gethostbyname_r
18598 /* Override any gcc2 internal prototype to avoid an error. */
18599 #ifdef __cplusplus
18600 extern "C"
18602 #endif
18603 /* We use char because int might match the return type of a gcc2
18604 builtin and then its argument prototype would still apply. */
18605 char gethostbyname_r ();
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18610 choke me
18611 #else
18612 char (*f) () = gethostbyname_r;
18613 #endif
18614 #ifdef __cplusplus
18616 #endif
18619 main ()
18621 return f != gethostbyname_r;
18623 return 0;
18625 _ACEOF
18626 rm -f conftest.$ac_objext conftest$ac_exeext
18627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18628 (eval $ac_link) 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try='test -z "$ac_c_werror_flag"
18636 || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_func_gethostbyname_r=yes
18649 else
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 ac_cv_func_gethostbyname_r=no
18655 rm -f conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18658 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18659 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18660 if test $ac_cv_func_gethostbyname_r = yes; then
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE_GETHOSTBYNAME_R 1
18664 _ACEOF
18666 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18667 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18668 OLD_CFLAGS=$CFLAGS
18669 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h. */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18677 # include <netdb.h>
18680 main ()
18683 char *name;
18684 struct hostent *he, *res;
18685 char buffer[2048];
18686 int buflen = 2048;
18687 int h_errnop;
18689 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18692 return 0;
18694 _ACEOF
18695 rm -f conftest.$ac_objext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18697 (eval $ac_compile) 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag"
18705 || test ! -s conftest.err'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_GETHOSTBYNAME_R 1
18720 _ACEOF
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18725 _ACEOF
18727 echo "$as_me:$LINENO: result: yes" >&5
18728 echo "${ECHO_T}yes" >&6
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18735 echo "$as_me:$LINENO: result: no" >&5
18736 echo "${ECHO_T}no" >&6
18737 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18738 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 # include <netdb.h>
18749 main ()
18752 char *name;
18753 struct hostent *he;
18754 char buffer[2048];
18755 int buflen = 2048;
18756 int h_errnop;
18758 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18761 return 0;
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest.$ac_objext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_GETHOSTBYNAME_R 1
18789 _ACEOF
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18794 _ACEOF
18796 echo "$as_me:$LINENO: result: yes" >&5
18797 echo "${ECHO_T}yes" >&6
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18804 echo "$as_me:$LINENO: result: no" >&5
18805 echo "${ECHO_T}no" >&6
18806 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18807 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18815 # include <netdb.h>
18818 main ()
18821 char *name;
18822 struct hostent *he;
18823 struct hostent_data data;
18825 (void) gethostbyname_r(name, he, &data);
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18854 cat >>confdefs.h <<\_ACEOF
18855 #define HAVE_GETHOSTBYNAME_R 1
18856 _ACEOF
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18861 _ACEOF
18863 echo "$as_me:$LINENO: result: yes" >&5
18864 echo "${ECHO_T}yes" >&6
18866 else
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18871 echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18882 CFLAGS=$OLD_CFLAGS
18884 else
18887 for ac_func in gethostbyname
18889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18890 echo "$as_me:$LINENO: checking for $ac_func" >&5
18891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18892 if eval "test \"\${$as_ac_var+set}\" = set"; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h. */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18903 #define $ac_func innocuous_$ac_func
18905 /* System header to define __stub macros and hopefully few prototypes,
18906 which can conflict with char $ac_func (); below.
18907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18908 <limits.h> exists even on freestanding compilers. */
18910 #ifdef __STDC__
18911 # include <limits.h>
18912 #else
18913 # include <assert.h>
18914 #endif
18916 #undef $ac_func
18918 /* Override any gcc2 internal prototype to avoid an error. */
18919 #ifdef __cplusplus
18920 extern "C"
18922 #endif
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18925 char $ac_func ();
18926 /* The GNU C library defines this for functions which it implements
18927 to always fail with ENOSYS. Some functions are actually named
18928 something starting with __ and the normal name is an alias. */
18929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18930 choke me
18931 #else
18932 char (*f) () = $ac_func;
18933 #endif
18934 #ifdef __cplusplus
18936 #endif
18939 main ()
18941 return f != $ac_func;
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 eval "$as_ac_var=yes"
18969 else
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 eval "$as_ac_var=no"
18975 rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18980 if test `eval echo '${'$as_ac_var'}'` = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18983 _ACEOF
18986 done
18997 # checks for system services
18998 # (none yet)
19000 # Linux requires this for correct f.p. operations
19001 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19002 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19003 if test "${ac_cv_func___fpu_control+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h. */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19014 #define __fpu_control innocuous___fpu_control
19016 /* System header to define __stub macros and hopefully few prototypes,
19017 which can conflict with char __fpu_control (); below.
19018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19019 <limits.h> exists even on freestanding compilers. */
19021 #ifdef __STDC__
19022 # include <limits.h>
19023 #else
19024 # include <assert.h>
19025 #endif
19027 #undef __fpu_control
19029 /* Override any gcc2 internal prototype to avoid an error. */
19030 #ifdef __cplusplus
19031 extern "C"
19033 #endif
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char __fpu_control ();
19037 /* The GNU C library defines this for functions which it implements
19038 to always fail with ENOSYS. Some functions are actually named
19039 something starting with __ and the normal name is an alias. */
19040 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19041 choke me
19042 #else
19043 char (*f) () = __fpu_control;
19044 #endif
19045 #ifdef __cplusplus
19047 #endif
19050 main ()
19052 return f != __fpu_control;
19054 return 0;
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_func___fpu_control=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func___fpu_control=no
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19089 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19090 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19091 if test $ac_cv_func___fpu_control = yes; then
19093 else
19095 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19096 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19097 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100 ac_check_lib_save_LIBS=$LIBS
19101 LIBS="-lieee $LIBS"
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any gcc2 internal prototype to avoid an error. */
19110 #ifdef __cplusplus
19111 extern "C"
19112 #endif
19113 /* We use char because int might match the return type of a gcc2
19114 builtin and then its argument prototype would still apply. */
19115 char __fpu_control ();
19117 main ()
19119 __fpu_control ();
19121 return 0;
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 (eval $ac_link) 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag"
19134 || test ! -s conftest.err'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_lib_ieee___fpu_control=yes
19147 else
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_cv_lib_ieee___fpu_control=no
19153 rm -f conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19157 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19158 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19159 if test $ac_cv_lib_ieee___fpu_control = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define HAVE_LIBIEEE 1
19162 _ACEOF
19164 LIBS="-lieee $LIBS"
19172 # Check for --with-fpectl
19173 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19174 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19176 # Check whether --with-fpectl or --without-fpectl was given.
19177 if test "${with_fpectl+set}" = set; then
19178 withval="$with_fpectl"
19180 if test "$withval" != no
19181 then
19183 cat >>confdefs.h <<\_ACEOF
19184 #define WANT_SIGFPE_HANDLER 1
19185 _ACEOF
19187 echo "$as_me:$LINENO: result: yes" >&5
19188 echo "${ECHO_T}yes" >&6
19189 else echo "$as_me:$LINENO: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19192 else
19193 echo "$as_me:$LINENO: result: no" >&5
19194 echo "${ECHO_T}no" >&6
19197 # check for --with-libm=...
19199 case $ac_sys_system in
19200 Darwin) ;;
19201 BeOS) ;;
19202 *) LIBM=-lm
19203 esac
19204 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19205 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19207 # Check whether --with-libm or --without-libm was given.
19208 if test "${with_libm+set}" = set; then
19209 withval="$with_libm"
19211 if test "$withval" = no
19212 then LIBM=
19213 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19214 echo "${ECHO_T}force LIBM empty" >&6
19215 elif test "$withval" != yes
19216 then LIBM=$withval
19217 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19218 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19219 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19220 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19221 { (exit 1); exit 1; }; }
19223 else
19224 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19225 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19228 # check for --with-libc=...
19230 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19231 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19233 # Check whether --with-libc or --without-libc was given.
19234 if test "${with_libc+set}" = set; then
19235 withval="$with_libc"
19237 if test "$withval" = no
19238 then LIBC=
19239 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19240 echo "${ECHO_T}force LIBC empty" >&6
19241 elif test "$withval" != yes
19242 then LIBC=$withval
19243 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19244 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19245 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19246 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19247 { (exit 1); exit 1; }; }
19249 else
19250 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19251 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19254 # check for hypot() in math library
19255 LIBS_SAVE=$LIBS
19256 LIBS="$LIBS $LIBM"
19258 for ac_func in hypot
19260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19261 echo "$as_me:$LINENO: checking for $ac_func" >&5
19262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19263 if eval "test \"\${$as_ac_var+set}\" = set"; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19274 #define $ac_func innocuous_$ac_func
19276 /* System header to define __stub macros and hopefully few prototypes,
19277 which can conflict with char $ac_func (); below.
19278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279 <limits.h> exists even on freestanding compilers. */
19281 #ifdef __STDC__
19282 # include <limits.h>
19283 #else
19284 # include <assert.h>
19285 #endif
19287 #undef $ac_func
19289 /* Override any gcc2 internal prototype to avoid an error. */
19290 #ifdef __cplusplus
19291 extern "C"
19293 #endif
19294 /* We use char because int might match the return type of a gcc2
19295 builtin and then its argument prototype would still apply. */
19296 char $ac_func ();
19297 /* The GNU C library defines this for functions which it implements
19298 to always fail with ENOSYS. Some functions are actually named
19299 something starting with __ and the normal name is an alias. */
19300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19301 choke me
19302 #else
19303 char (*f) () = $ac_func;
19304 #endif
19305 #ifdef __cplusplus
19307 #endif
19310 main ()
19312 return f != $ac_func;
19314 return 0;
19316 _ACEOF
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19319 (eval $ac_link) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -z "$ac_c_werror_flag"
19327 || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 eval "$as_ac_var=yes"
19340 else
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 eval "$as_ac_var=no"
19346 rm -f conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext conftest.$ac_ext
19349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19351 if test `eval echo '${'$as_ac_var'}'` = yes; then
19352 cat >>confdefs.h <<_ACEOF
19353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19354 _ACEOF
19356 else
19357 case $LIBOBJS in
19358 "$ac_func.$ac_objext" | \
19359 *" $ac_func.$ac_objext" | \
19360 "$ac_func.$ac_objext "* | \
19361 *" $ac_func.$ac_objext "* ) ;;
19362 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19363 esac
19366 done
19369 LIBS=$LIBS_SAVE
19371 # check for wchar.h
19372 if test "${ac_cv_header_wchar_h+set}" = set; then
19373 echo "$as_me:$LINENO: checking for wchar.h" >&5
19374 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19375 if test "${ac_cv_header_wchar_h+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19379 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19380 else
19381 # Is the header compilable?
19382 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19383 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 $ac_includes_default
19391 #include <wchar.h>
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395 (eval $ac_compile) 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_c_werror_flag"
19403 || test ! -s conftest.err'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 ac_header_compiler=yes
19416 else
19417 echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19420 ac_header_compiler=no
19422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19424 echo "${ECHO_T}$ac_header_compiler" >&6
19426 # Is the header present?
19427 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19428 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #include <wchar.h>
19436 _ACEOF
19437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } >/dev/null; then
19445 if test -s conftest.err; then
19446 ac_cpp_err=$ac_c_preproc_warn_flag
19447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19448 else
19449 ac_cpp_err=
19451 else
19452 ac_cpp_err=yes
19454 if test -z "$ac_cpp_err"; then
19455 ac_header_preproc=yes
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_header_preproc=no
19462 rm -f conftest.err conftest.$ac_ext
19463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19464 echo "${ECHO_T}$ac_header_preproc" >&6
19466 # So? What about this header?
19467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19468 yes:no: )
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19470 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19472 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19473 ac_header_preproc=yes
19475 no:yes:* )
19476 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19477 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19479 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19481 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19483 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19485 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19487 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19489 cat <<\_ASBOX
19490 ## ------------------------------------------------ ##
19491 ## Report this to http://www.python.org/python-bugs ##
19492 ## ------------------------------------------------ ##
19493 _ASBOX
19495 sed "s/^/$as_me: WARNING: /" >&2
19497 esac
19498 echo "$as_me:$LINENO: checking for wchar.h" >&5
19499 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19500 if test "${ac_cv_header_wchar_h+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503 ac_cv_header_wchar_h=$ac_header_preproc
19505 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19506 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19509 if test $ac_cv_header_wchar_h = yes; then
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_WCHAR_H 1
19514 _ACEOF
19516 wchar_h="yes"
19518 else
19519 wchar_h="no"
19525 # determine wchar_t size
19526 if test "$wchar_h" = yes
19527 then
19528 echo "$as_me:$LINENO: checking for wchar_t" >&5
19529 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19530 if test "${ac_cv_type_wchar_t+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533 cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h. */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 #include <wchar.h>
19542 main ()
19544 if ((wchar_t *) 0)
19545 return 0;
19546 if (sizeof (wchar_t))
19547 return 0;
19549 return 0;
19551 _ACEOF
19552 rm -f conftest.$ac_objext
19553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19554 (eval $ac_compile) 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } &&
19561 { ac_try='test -z "$ac_c_werror_flag"
19562 || test ! -s conftest.err'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; } &&
19568 { ac_try='test -s conftest.$ac_objext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 ac_cv_type_wchar_t=yes
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ac_cv_type_wchar_t=no
19581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19584 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19586 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19587 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19588 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591 if test "$ac_cv_type_wchar_t" = yes; then
19592 # The cast to unsigned long works around a bug in the HP C Compiler
19593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19595 # This bug is HP SR number 8606223364.
19596 if test "$cross_compiling" = yes; then
19597 # Depending upon the size, compute the lo and hi bounds.
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 #include <wchar.h>
19607 main ()
19609 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19610 test_array [0] = 0
19613 return 0;
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>conftest.er1
19619 ac_status=$?
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } &&
19625 { ac_try='test -z "$ac_c_werror_flag"
19626 || test ! -s conftest.err'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_lo=0 ac_mid=0
19639 while :; do
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 #include <wchar.h>
19649 main ()
19651 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19652 test_array [0] = 0
19655 return 0;
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_hi=$ac_mid; break
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_lo=`expr $ac_mid + 1`
19686 if test $ac_lo -le $ac_mid; then
19687 ac_lo= ac_hi=
19688 break
19690 ac_mid=`expr 2 '*' $ac_mid + 1`
19692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19693 done
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h. */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #include <wchar.h>
19707 main ()
19709 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19710 test_array [0] = 0
19713 return 0;
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_hi=-1 ac_mid=-1
19739 while :; do
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <wchar.h>
19749 main ()
19751 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19752 test_array [0] = 0
19755 return 0;
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_lo=$ac_mid; break
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_hi=`expr '(' $ac_mid ')' - 1`
19786 if test $ac_mid -le $ac_hi; then
19787 ac_lo= ac_hi=
19788 break
19790 ac_mid=`expr 2 '*' $ac_mid`
19792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793 done
19794 else
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_lo= ac_hi=
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 # Binary search between lo and hi bounds.
19804 while test "x$ac_lo" != "x$ac_hi"; do
19805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h. */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 #include <wchar.h>
19815 main ()
19817 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19818 test_array [0] = 0
19821 return 0;
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826 (eval $ac_compile) 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_c_werror_flag"
19834 || test ! -s conftest.err'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest.$ac_objext'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 ac_hi=$ac_mid
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_lo=`expr '(' $ac_mid ')' + 1`
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 done
19855 case $ac_lo in
19856 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19857 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19858 See \`config.log' for more details." >&5
19859 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19860 See \`config.log' for more details." >&2;}
19861 { (exit 1); exit 1; }; } ;;
19862 esac
19863 else
19864 if test "$cross_compiling" = yes; then
19865 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19866 See \`config.log' for more details." >&5
19867 echo "$as_me: error: cannot run test program while cross compiling
19868 See \`config.log' for more details." >&2;}
19869 { (exit 1); exit 1; }; }
19870 else
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h. */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <wchar.h>
19879 long longval () { return (long) (sizeof (wchar_t)); }
19880 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19881 #include <stdio.h>
19882 #include <stdlib.h>
19884 main ()
19887 FILE *f = fopen ("conftest.val", "w");
19888 if (! f)
19889 exit (1);
19890 if (((long) (sizeof (wchar_t))) < 0)
19892 long i = longval ();
19893 if (i != ((long) (sizeof (wchar_t))))
19894 exit (1);
19895 fprintf (f, "%ld\n", i);
19897 else
19899 unsigned long i = ulongval ();
19900 if (i != ((long) (sizeof (wchar_t))))
19901 exit (1);
19902 fprintf (f, "%lu\n", i);
19904 exit (ferror (f) || fclose (f) != 0);
19907 return 0;
19909 _ACEOF
19910 rm -f conftest$ac_exeext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19912 (eval $ac_link) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_sizeof_wchar_t=`cat conftest.val`
19922 else
19923 echo "$as_me: program exited with status $ac_status" >&5
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ( exit $ac_status )
19928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19929 See \`config.log' for more details." >&5
19930 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19931 See \`config.log' for more details." >&2;}
19932 { (exit 1); exit 1; }; }
19934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19937 rm -f conftest.val
19938 else
19939 ac_cv_sizeof_wchar_t=0
19942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19943 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19944 cat >>confdefs.h <<_ACEOF
19945 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19946 _ACEOF
19951 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19952 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19953 have_ucs4_tcl=no
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19961 #include <tcl.h>
19962 #if TCL_UTF_MAX != 6
19963 # error "NOT UCS4_TCL"
19964 #endif
19966 main ()
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19997 cat >>confdefs.h <<\_ACEOF
19998 #define HAVE_UCS4_TCL 1
19999 _ACEOF
20001 have_ucs4_tcl=yes
20003 else
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20009 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20010 echo "${ECHO_T}$have_ucs4_tcl" >&6
20012 # check whether wchar_t is signed or not
20013 if test "$wchar_h" = yes
20014 then
20015 # check whether wchar_t is signed or not
20016 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20017 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20018 if test "${ac_cv_wchar_t_signed+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20022 if test "$cross_compiling" = yes; then
20023 ac_cv_wchar_t_signed=yes
20024 else
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20032 #include <wchar.h>
20033 int main()
20035 /* Success: exit code 0 */
20036 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20039 _ACEOF
20040 rm -f conftest$ac_exeext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20042 (eval $ac_link) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_cv_wchar_t_signed=yes
20052 else
20053 echo "$as_me: program exited with status $ac_status" >&5
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 ( exit $ac_status )
20058 ac_cv_wchar_t_signed=no
20060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20064 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20065 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20068 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20069 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20070 # Check whether --enable-unicode or --disable-unicode was given.
20071 if test "${enable_unicode+set}" = set; then
20072 enableval="$enable_unicode"
20074 else
20075 enable_unicode=yes
20078 if test $enable_unicode = yes
20079 then
20080 # Without any arguments, Py_UNICODE defaults to two-byte mode
20081 case "$have_ucs4_tcl" in
20082 yes) enable_unicode="ucs4"
20084 *) enable_unicode="ucs2"
20086 esac
20091 case "$enable_unicode" in
20092 ucs2) unicode_size="2"
20093 cat >>confdefs.h <<\_ACEOF
20094 #define Py_UNICODE_SIZE 2
20095 _ACEOF
20098 ucs4) unicode_size="4"
20099 cat >>confdefs.h <<\_ACEOF
20100 #define Py_UNICODE_SIZE 4
20101 _ACEOF
20104 esac
20110 if test "$enable_unicode" = "no"
20111 then
20112 UNICODE_OBJS=""
20113 echo "$as_me:$LINENO: result: not used" >&5
20114 echo "${ECHO_T}not used" >&6
20115 else
20116 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20118 cat >>confdefs.h <<\_ACEOF
20119 #define Py_USING_UNICODE 1
20120 _ACEOF
20123 # wchar_t is only usable if it maps to an unsigned type
20124 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20125 -a "$ac_cv_wchar_t_signed" = "no"
20126 then
20127 PY_UNICODE_TYPE="wchar_t"
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_USABLE_WCHAR_T 1
20131 _ACEOF
20133 cat >>confdefs.h <<\_ACEOF
20134 #define PY_UNICODE_TYPE wchar_t
20135 _ACEOF
20137 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20138 then
20139 PY_UNICODE_TYPE="unsigned short"
20140 cat >>confdefs.h <<\_ACEOF
20141 #define PY_UNICODE_TYPE unsigned short
20142 _ACEOF
20144 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20145 then
20146 PY_UNICODE_TYPE="unsigned long"
20147 cat >>confdefs.h <<\_ACEOF
20148 #define PY_UNICODE_TYPE unsigned long
20149 _ACEOF
20151 else
20152 PY_UNICODE_TYPE="no type found"
20154 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20155 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20158 # check for endianness
20159 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20160 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20161 if test "${ac_cv_c_bigendian+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164 # See if sys/param.h defines the BYTE_ORDER macro.
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h. */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20171 #include <sys/types.h>
20172 #include <sys/param.h>
20175 main ()
20177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20178 bogus endian macros
20179 #endif
20182 return 0;
20184 _ACEOF
20185 rm -f conftest.$ac_objext
20186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20187 (eval $ac_compile) 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
20194 { ac_try='test -z "$ac_c_werror_flag"
20195 || test ! -s conftest.err'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 # It does; now see whether it defined to BIG_ENDIAN or not.
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <sys/types.h>
20215 #include <sys/param.h>
20218 main ()
20220 #if BYTE_ORDER != BIG_ENDIAN
20221 not big endian
20222 #endif
20225 return 0;
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_c_bigendian=yes
20251 else
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_cv_c_bigendian=no
20257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 else
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 # It does not; compile a test program.
20263 if test "$cross_compiling" = yes; then
20264 # try to guess the endianness by grepping values into an object file
20265 ac_cv_c_bigendian=unknown
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20274 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20277 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20279 main ()
20281 _ascii (); _ebcdic ();
20283 return 0;
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag"
20296 || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20309 ac_cv_c_bigendian=yes
20311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20312 if test "$ac_cv_c_bigendian" = unknown; then
20313 ac_cv_c_bigendian=no
20314 else
20315 # finding both strings is unlikely to happen, but who knows?
20316 ac_cv_c_bigendian=unknown
20319 else
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20325 else
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 main ()
20335 /* Are we little or big endian? From Harbison&Steele. */
20336 union
20338 long l;
20339 char c[sizeof (long)];
20340 } u;
20341 u.l = 1;
20342 exit (u.c[sizeof (long) - 1] == 1);
20344 _ACEOF
20345 rm -f conftest$ac_exeext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347 (eval $ac_link) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_c_bigendian=no
20357 else
20358 echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ( exit $ac_status )
20363 ac_cv_c_bigendian=yes
20365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20370 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20372 case $ac_cv_c_bigendian in
20373 yes)
20375 cat >>confdefs.h <<\_ACEOF
20376 #define WORDS_BIGENDIAN 1
20377 _ACEOF
20382 { { echo "$as_me:$LINENO: error: unknown endianness
20383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20384 echo "$as_me: error: unknown endianness
20385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20386 { (exit 1); exit 1; }; } ;;
20387 esac
20392 # Check whether right shifting a negative integer extends the sign bit
20393 # or fills with zeros (like the Cray J90, according to Tim Peters).
20394 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20395 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20396 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20400 if test "$cross_compiling" = yes; then
20401 ac_cv_rshift_extends_sign=yes
20402 else
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 int main()
20412 exit(((-1)>>3 == -1) ? 0 : 1);
20415 _ACEOF
20416 rm -f conftest$ac_exeext
20417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20418 (eval $ac_link) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_rshift_extends_sign=yes
20428 else
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ( exit $ac_status )
20434 ac_cv_rshift_extends_sign=no
20436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20440 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20441 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20442 if test "$ac_cv_rshift_extends_sign" = no
20443 then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20447 _ACEOF
20451 # check for getc_unlocked and related locking functions
20452 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20453 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20454 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h. */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 #include <stdio.h>
20466 main ()
20469 FILE *f = fopen("/dev/null", "r");
20470 flockfile(f);
20471 getc_unlocked(f);
20472 funlockfile(f);
20475 return 0;
20477 _ACEOF
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag"
20488 || test ! -s conftest.err'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest$ac_exeext'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_cv_have_getc_unlocked=yes
20501 else
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 ac_cv_have_getc_unlocked=no
20507 rm -f conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20511 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20512 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20513 if test "$ac_cv_have_getc_unlocked" = yes
20514 then
20516 cat >>confdefs.h <<\_ACEOF
20517 #define HAVE_GETC_UNLOCKED 1
20518 _ACEOF
20522 # check where readline lives
20523 # save the value of LIBS so we don't actually link Python with readline
20524 LIBS_no_readline=$LIBS
20526 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20527 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20528 if test "${ac_cv_lib_readline_readline+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531 ac_check_lib_save_LIBS=$LIBS
20532 LIBS="-lreadline $LIBS"
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 /* Override any gcc2 internal prototype to avoid an error. */
20541 #ifdef __cplusplus
20542 extern "C"
20543 #endif
20544 /* We use char because int might match the return type of a gcc2
20545 builtin and then its argument prototype would still apply. */
20546 char readline ();
20548 main ()
20550 readline ();
20552 return 0;
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557 (eval $ac_link) 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag"
20565 || test ! -s conftest.err'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try='test -s conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_lib_readline_readline=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_readline_readline=no
20584 rm -f conftest.err conftest.$ac_objext \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20588 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20589 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20590 if test $ac_cv_lib_readline_readline = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_LIBREADLINE 1
20593 _ACEOF
20595 LIBS="-lreadline $LIBS"
20599 if test "$ac_cv_have_readline_readline" = no
20600 then
20602 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20603 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20604 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-ltermcap $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any gcc2 internal prototype to avoid an error. */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 /* We use char because int might match the return type of a gcc2
20621 builtin and then its argument prototype would still apply. */
20622 char readline ();
20624 main ()
20626 readline ();
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try='test -z "$ac_c_werror_flag"
20641 || test ! -s conftest.err'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; } &&
20647 { ac_try='test -s conftest$ac_exeext'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ac_cv_lib_termcap_readline=yes
20654 else
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 ac_cv_lib_termcap_readline=no
20660 rm -f conftest.err conftest.$ac_objext \
20661 conftest$ac_exeext conftest.$ac_ext
20662 LIBS=$ac_check_lib_save_LIBS
20664 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20665 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20666 if test $ac_cv_lib_termcap_readline = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_LIBTERMCAP 1
20669 _ACEOF
20671 LIBS="-ltermcap $LIBS"
20677 # check for readline 2.1
20678 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20679 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20680 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683 ac_check_lib_save_LIBS=$LIBS
20684 LIBS="-lreadline $LIBS"
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 /* Override any gcc2 internal prototype to avoid an error. */
20693 #ifdef __cplusplus
20694 extern "C"
20695 #endif
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20698 char rl_callback_handler_install ();
20700 main ()
20702 rl_callback_handler_install ();
20704 return 0;
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20709 (eval $ac_link) 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
20716 { ac_try='test -z "$ac_c_werror_flag"
20717 || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try='test -s conftest$ac_exeext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 ac_cv_lib_readline_rl_callback_handler_install=yes
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ac_cv_lib_readline_rl_callback_handler_install=no
20736 rm -f conftest.err conftest.$ac_objext \
20737 conftest$ac_exeext conftest.$ac_ext
20738 LIBS=$ac_check_lib_save_LIBS
20740 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20741 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20742 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_RL_CALLBACK 1
20746 _ACEOF
20751 # check for readline 2.2
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 #include <readline/readline.h>
20759 _ACEOF
20760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } >/dev/null; then
20768 if test -s conftest.err; then
20769 ac_cpp_err=$ac_c_preproc_warn_flag
20770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20771 else
20772 ac_cpp_err=
20774 else
20775 ac_cpp_err=yes
20777 if test -z "$ac_cpp_err"; then
20778 have_readline=yes
20779 else
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 have_readline=no
20785 rm -f conftest.err conftest.$ac_ext
20786 if test $have_readline = yes
20787 then
20788 cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h. */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 #include <readline/readline.h>
20796 _ACEOF
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20800 cat >>confdefs.h <<\_ACEOF
20801 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20802 _ACEOF
20805 rm -f conftest*
20809 # check for readline 4.0
20810 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20811 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20812 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815 ac_check_lib_save_LIBS=$LIBS
20816 LIBS="-lreadline $LIBS"
20817 cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h. */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20824 /* Override any gcc2 internal prototype to avoid an error. */
20825 #ifdef __cplusplus
20826 extern "C"
20827 #endif
20828 /* We use char because int might match the return type of a gcc2
20829 builtin and then its argument prototype would still apply. */
20830 char rl_pre_input_hook ();
20832 main ()
20834 rl_pre_input_hook ();
20836 return 0;
20838 _ACEOF
20839 rm -f conftest.$ac_objext conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>conftest.er1
20842 ac_status=$?
20843 grep -v '^ *+' conftest.er1 >conftest.err
20844 rm -f conftest.er1
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -z "$ac_c_werror_flag"
20849 || test ! -s conftest.err'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try='test -s conftest$ac_exeext'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; }; then
20861 ac_cv_lib_readline_rl_pre_input_hook=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_cv_lib_readline_rl_pre_input_hook=no
20868 rm -f conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20873 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20874 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_RL_PRE_INPUT_HOOK 1
20878 _ACEOF
20883 # check for readline 4.2
20884 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20885 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20886 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 else
20889 ac_check_lib_save_LIBS=$LIBS
20890 LIBS="-lreadline $LIBS"
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20898 /* Override any gcc2 internal prototype to avoid an error. */
20899 #ifdef __cplusplus
20900 extern "C"
20901 #endif
20902 /* We use char because int might match the return type of a gcc2
20903 builtin and then its argument prototype would still apply. */
20904 char rl_completion_matches ();
20906 main ()
20908 rl_completion_matches ();
20910 return 0;
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_lib_readline_rl_completion_matches=yes
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_lib_readline_rl_completion_matches=no
20942 rm -f conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20946 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20947 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20948 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_RL_COMPLETION_MATCHES 1
20952 _ACEOF
20957 # also in readline 4.2
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <readline/readline.h>
20965 _ACEOF
20966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } >/dev/null; then
20974 if test -s conftest.err; then
20975 ac_cpp_err=$ac_c_preproc_warn_flag
20976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20977 else
20978 ac_cpp_err=
20980 else
20981 ac_cpp_err=yes
20983 if test -z "$ac_cpp_err"; then
20984 have_readline=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 have_readline=no
20991 rm -f conftest.err conftest.$ac_ext
20992 if test $have_readline = yes
20993 then
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 #include <readline/readline.h>
21002 _ACEOF
21003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21004 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_RL_CATCH_SIGNAL 1
21008 _ACEOF
21011 rm -f conftest*
21015 # End of readline checks: restore LIBS
21016 LIBS=$LIBS_no_readline
21018 echo "$as_me:$LINENO: checking for broken nice()" >&5
21019 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21020 if test "${ac_cv_broken_nice+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21024 if test "$cross_compiling" = yes; then
21025 ac_cv_broken_nice=no
21026 else
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21034 int main()
21036 int val1 = nice(1);
21037 if (val1 != -1 && val1 == nice(2))
21038 exit(0);
21039 exit(1);
21042 _ACEOF
21043 rm -f conftest$ac_exeext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21045 (eval $ac_link) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_cv_broken_nice=yes
21055 else
21056 echo "$as_me: program exited with status $ac_status" >&5
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ( exit $ac_status )
21061 ac_cv_broken_nice=no
21063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21068 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21069 if test "$ac_cv_broken_nice" = yes
21070 then
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_BROKEN_NICE 1
21074 _ACEOF
21078 echo "$as_me:$LINENO: checking for broken poll()" >&5
21079 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21080 if test "$cross_compiling" = yes; then
21081 ac_cv_broken_poll=no
21082 else
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 #include <poll.h>
21092 int main (void)
21094 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21096 close (42);
21098 int poll_test = poll (&poll_struct, 1, 0);
21100 if (poll_test < 0)
21102 exit(0);
21104 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21106 exit(0);
21108 else
21110 exit(1);
21114 _ACEOF
21115 rm -f conftest$ac_exeext
21116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21117 (eval $ac_link) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_cv_broken_poll=yes
21127 else
21128 echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ( exit $ac_status )
21133 ac_cv_broken_poll=no
21135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21137 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21138 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21139 if test "$ac_cv_broken_poll" = yes
21140 then
21142 cat >>confdefs.h <<\_ACEOF
21143 #define HAVE_BROKEN_POLL 1
21144 _ACEOF
21148 # Before we can test tzset, we need to check if struct tm has a tm_zone
21149 # (which is not required by ISO C or UNIX spec) and/or if we support
21150 # tzname[]
21151 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21152 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <sys/types.h>
21163 #include <$ac_cv_struct_tm>
21167 main ()
21169 static struct tm ac_aggr;
21170 if (ac_aggr.tm_zone)
21171 return 0;
21173 return 0;
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178 (eval $ac_compile) 2>conftest.er1
21179 ac_status=$?
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } &&
21185 { ac_try='test -z "$ac_c_werror_flag"
21186 || test ! -s conftest.err'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; } &&
21192 { ac_try='test -s conftest.$ac_objext'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 ac_cv_member_struct_tm_tm_zone=yes
21199 else
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <sys/types.h>
21210 #include <$ac_cv_struct_tm>
21214 main ()
21216 static struct tm ac_aggr;
21217 if (sizeof ac_aggr.tm_zone)
21218 return 0;
21220 return 0;
21222 _ACEOF
21223 rm -f conftest.$ac_objext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225 (eval $ac_compile) 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try='test -z "$ac_c_werror_flag"
21233 || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_member_struct_tm_tm_zone=yes
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_member_struct_tm_tm_zone=no
21252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21257 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21258 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21260 cat >>confdefs.h <<_ACEOF
21261 #define HAVE_STRUCT_TM_TM_ZONE 1
21262 _ACEOF
21267 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21269 cat >>confdefs.h <<\_ACEOF
21270 #define HAVE_TM_ZONE 1
21271 _ACEOF
21273 else
21274 echo "$as_me:$LINENO: checking for tzname" >&5
21275 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21276 if test "${ac_cv_var_tzname+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 #include <time.h>
21286 #ifndef tzname /* For SGI. */
21287 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21288 #endif
21291 main ()
21293 atoi(*tzname);
21295 return 0;
21297 _ACEOF
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag"
21308 || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_cv_var_tzname=yes
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_cv_var_tzname=no
21327 rm -f conftest.err conftest.$ac_objext \
21328 conftest$ac_exeext conftest.$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21331 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21332 if test $ac_cv_var_tzname = yes; then
21334 cat >>confdefs.h <<\_ACEOF
21335 #define HAVE_TZNAME 1
21336 _ACEOF
21342 # check tzset(3) exists and works like we expect it to
21343 echo "$as_me:$LINENO: checking for working tzset()" >&5
21344 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21345 if test "${ac_cv_working_tzset+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21349 if test "$cross_compiling" = yes; then
21350 ac_cv_working_tzset=no
21351 else
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 #include <stdlib.h>
21360 #include <time.h>
21361 #include <string.h>
21363 #if HAVE_TZNAME
21364 extern char *tzname[];
21365 #endif
21367 int main()
21369 /* Note that we need to ensure that not only does tzset(3)
21370 do 'something' with localtime, but it works as documented
21371 in the library reference and as expected by the test suite.
21372 This includes making sure that tzname is set properly if
21373 tm->tm_zone does not exist since it is the alternative way
21374 of getting timezone info.
21376 Red Hat 6.2 doesn't understand the southern hemisphere
21377 after New Year's Day.
21380 time_t groundhogday = 1044144000; /* GMT-based */
21381 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21383 putenv("TZ=UTC+0");
21384 tzset();
21385 if (localtime(&groundhogday)->tm_hour != 0)
21386 exit(1);
21387 #if HAVE_TZNAME
21388 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21389 if (strcmp(tzname[0], "UTC") ||
21390 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21391 exit(1);
21392 #endif
21394 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21395 tzset();
21396 if (localtime(&groundhogday)->tm_hour != 19)
21397 exit(1);
21398 #if HAVE_TZNAME
21399 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21400 exit(1);
21401 #endif
21403 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21404 tzset();
21405 if (localtime(&groundhogday)->tm_hour != 11)
21406 exit(1);
21407 #if HAVE_TZNAME
21408 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21409 exit(1);
21410 #endif
21412 #if HAVE_STRUCT_TM_TM_ZONE
21413 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21414 exit(1);
21415 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21416 exit(1);
21417 #endif
21419 exit(0);
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_working_tzset=yes
21435 else
21436 echo "$as_me: program exited with status $ac_status" >&5
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ( exit $ac_status )
21441 ac_cv_working_tzset=no
21443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21447 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21448 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21449 if test "$ac_cv_working_tzset" = yes
21450 then
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_WORKING_TZSET 1
21454 _ACEOF
21458 # Look for subsecond timestamps in struct stat
21459 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21460 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21461 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h. */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <sys/stat.h>
21472 main ()
21475 struct stat st;
21476 st.st_mtim.tv_nsec = 1;
21479 return 0;
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_cv_stat_tv_nsec=yes
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_cv_stat_tv_nsec=no
21511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21515 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21516 if test "$ac_cv_stat_tv_nsec" = yes
21517 then
21519 cat >>confdefs.h <<\_ACEOF
21520 #define HAVE_STAT_TV_NSEC 1
21521 _ACEOF
21525 # Look for BSD style subsecond timestamps in struct stat
21526 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21527 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21528 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <sys/stat.h>
21539 main ()
21542 struct stat st;
21543 st.st_mtimespec.tv_nsec = 1;
21546 return 0;
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21552 ac_status=$?
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_stat_tv_nsec2=yes
21572 else
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_stat_tv_nsec2=no
21578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21581 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21582 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21583 if test "$ac_cv_stat_tv_nsec2" = yes
21584 then
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_STAT_TV_NSEC2 1
21588 _ACEOF
21592 # On HP/UX 11.0, mvwdelch is a block with a return statement
21593 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21594 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21595 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 #include <curses.h>
21606 main ()
21609 int rtn;
21610 rtn = mvwdelch(0,0,0);
21613 return 0;
21615 _ACEOF
21616 rm -f conftest.$ac_objext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21618 (eval $ac_compile) 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try='test -z "$ac_c_werror_flag"
21626 || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest.$ac_objext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_mvwdelch_is_expression=yes
21639 else
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_cv_mvwdelch_is_expression=no
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21649 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21651 if test "$ac_cv_mvwdelch_is_expression" = yes
21652 then
21654 cat >>confdefs.h <<\_ACEOF
21655 #define MVWDELCH_IS_EXPRESSION 1
21656 _ACEOF
21660 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21661 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21662 if test "${ac_cv_window_has_flags+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 else
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <curses.h>
21673 main ()
21676 WINDOW *w;
21677 w->_flags = 0;
21680 return 0;
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21685 (eval $ac_compile) 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_cv_window_has_flags=yes
21706 else
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_cv_window_has_flags=no
21712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21715 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21716 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21719 if test "$ac_cv_window_has_flags" = yes
21720 then
21722 cat >>confdefs.h <<\_ACEOF
21723 #define WINDOW_HAS_FLAGS 1
21724 _ACEOF
21728 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21729 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21731 if test -e /dev/ptmx
21732 then
21733 echo "$as_me:$LINENO: result: yes" >&5
21734 echo "${ECHO_T}yes" >&6
21736 cat >>confdefs.h <<\_ACEOF
21737 #define HAVE_DEV_PTMX 1
21738 _ACEOF
21740 else
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21745 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21746 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21748 if test -e /dev/ptc
21749 then
21750 echo "$as_me:$LINENO: result: yes" >&5
21751 echo "${ECHO_T}yes" >&6
21753 cat >>confdefs.h <<\_ACEOF
21754 #define HAVE_DEV_PTC 1
21755 _ACEOF
21757 else
21758 echo "$as_me:$LINENO: result: no" >&5
21759 echo "${ECHO_T}no" >&6
21762 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21763 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21764 if test "$cross_compiling" = yes; then
21765 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21766 See \`config.log' for more details." >&5
21767 echo "$as_me: error: cannot run test program while cross compiling
21768 See \`config.log' for more details." >&2;}
21769 { (exit 1); exit 1; }; }
21770 else
21771 cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h. */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 #include <stdio.h>
21778 #include <stddef.h>
21779 #include <string.h>
21781 int main()
21783 char buffer[4];
21785 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21786 return 1;
21788 if (strncmp(buffer, "123", 3))
21789 return 1;
21791 return 0;
21793 _ACEOF
21794 rm -f conftest$ac_exeext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21796 (eval $ac_link) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 echo "$as_me:$LINENO: result: yes" >&5
21806 echo "${ECHO_T}yes" >&6
21808 cat >>confdefs.h <<\_ACEOF
21809 #define PY_FORMAT_SIZE_T "z"
21810 _ACEOF
21812 else
21813 echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ( exit $ac_status )
21818 echo "$as_me:$LINENO: result: no" >&5
21819 echo "${ECHO_T}no" >&6
21821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21824 echo "$as_me:$LINENO: checking for socklen_t" >&5
21825 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21826 if test "${ac_cv_type_socklen_t+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 #ifdef HAVE_SYS_TYPES_H
21837 #include <sys/types.h>
21838 #endif
21839 #ifdef HAVE_SYS_SOCKET_H
21840 #include <sys/socket.h>
21841 #endif
21845 main ()
21847 if ((socklen_t *) 0)
21848 return 0;
21849 if (sizeof (socklen_t))
21850 return 0;
21852 return 0;
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857 (eval $ac_compile) 2>conftest.er1
21858 ac_status=$?
21859 grep -v '^ *+' conftest.er1 >conftest.err
21860 rm -f conftest.er1
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -z "$ac_c_werror_flag"
21865 || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest.$ac_objext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_type_socklen_t=yes
21878 else
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ac_cv_type_socklen_t=no
21884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21886 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21887 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21888 if test $ac_cv_type_socklen_t = yes; then
21890 else
21892 cat >>confdefs.h <<\_ACEOF
21893 #define socklen_t int
21894 _ACEOF
21901 for h in `(cd $srcdir;echo Python/thread_*.h)`
21903 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21904 done
21907 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21908 echo "$as_me:$LINENO: checking for build directories" >&5
21909 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21910 for dir in $SRCDIRS; do
21911 if test ! -d $dir; then
21912 mkdir $dir
21914 done
21915 echo "$as_me:$LINENO: result: done" >&5
21916 echo "${ECHO_T}done" >&6
21918 # generate output files
21919 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21921 cat >confcache <<\_ACEOF
21922 # This file is a shell script that caches the results of configure
21923 # tests run on this system so they can be shared between configure
21924 # scripts and configure runs, see configure's option --config-cache.
21925 # It is not useful on other systems. If it contains results you don't
21926 # want to keep, you may remove or edit it.
21928 # config.status only pays attention to the cache file if you give it
21929 # the --recheck option to rerun configure.
21931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21933 # following values.
21935 _ACEOF
21937 # The following way of writing the cache mishandles newlines in values,
21938 # but we know of no workaround that is simple, portable, and efficient.
21939 # So, don't put newlines in cache variables' values.
21940 # Ultrix sh set writes to stderr and can't be redirected directly,
21941 # and sets the high bit in the cache file unless we assign to the vars.
21943 (set) 2>&1 |
21944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21945 *ac_space=\ *)
21946 # `set' does not quote correctly, so add quotes (double-quote
21947 # substitution turns \\\\ into \\, and sed turns \\ into \).
21948 sed -n \
21949 "s/'/'\\\\''/g;
21950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21953 # `set' quotes correctly as required by POSIX, so do not add quotes.
21954 sed -n \
21955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21957 esac;
21959 sed '
21960 t clear
21961 : clear
21962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21963 t end
21964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21965 : end' >>confcache
21966 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21967 if test -w $cache_file; then
21968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21969 cat confcache >$cache_file
21970 else
21971 echo "not updating unwritable cache $cache_file"
21974 rm -f confcache
21976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21977 # Let make expand exec_prefix.
21978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21982 # trailing colons and then remove the whole line if VPATH becomes empty
21983 # (actually we leave an empty line to preserve line numbers).
21984 if test "x$srcdir" = x.; then
21985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21986 s/:*\$(srcdir):*/:/;
21987 s/:*\${srcdir}:*/:/;
21988 s/:*@srcdir@:*/:/;
21989 s/^\([^=]*=[ ]*\):*/\1/;
21990 s/:*$//;
21991 s/^[^=]*=[ ]*$//;
21995 DEFS=-DHAVE_CONFIG_H
21997 ac_libobjs=
21998 ac_ltlibobjs=
21999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22000 # 1. Remove the extension, and $U if already installed.
22001 ac_i=`echo "$ac_i" |
22002 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22003 # 2. Add them.
22004 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22005 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22006 done
22007 LIBOBJS=$ac_libobjs
22009 LTLIBOBJS=$ac_ltlibobjs
22013 : ${CONFIG_STATUS=./config.status}
22014 ac_clean_files_save=$ac_clean_files
22015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22016 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22017 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22018 cat >$CONFIG_STATUS <<_ACEOF
22019 #! $SHELL
22020 # Generated by $as_me.
22021 # Run this file to recreate the current configuration.
22022 # Compiler output produced by configure, useful for debugging
22023 # configure, is in config.log if it exists.
22025 debug=false
22026 ac_cs_recheck=false
22027 ac_cs_silent=false
22028 SHELL=\${CONFIG_SHELL-$SHELL}
22029 _ACEOF
22031 cat >>$CONFIG_STATUS <<\_ACEOF
22032 ## --------------------- ##
22033 ## M4sh Initialization. ##
22034 ## --------------------- ##
22036 # Be Bourne compatible
22037 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22038 emulate sh
22039 NULLCMD=:
22040 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22041 # is contrary to our usage. Disable this feature.
22042 alias -g '${1+"$@"}'='"$@"'
22043 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22044 set -o posix
22046 DUALCASE=1; export DUALCASE # for MKS sh
22048 # Support unset when possible.
22049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22050 as_unset=unset
22051 else
22052 as_unset=false
22056 # Work around bugs in pre-3.0 UWIN ksh.
22057 $as_unset ENV MAIL MAILPATH
22058 PS1='$ '
22059 PS2='> '
22060 PS4='+ '
22062 # NLS nuisances.
22063 for as_var in \
22064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22066 LC_TELEPHONE LC_TIME
22068 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22069 eval $as_var=C; export $as_var
22070 else
22071 $as_unset $as_var
22073 done
22075 # Required to use basename.
22076 if expr a : '\(a\)' >/dev/null 2>&1; then
22077 as_expr=expr
22078 else
22079 as_expr=false
22082 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22083 as_basename=basename
22084 else
22085 as_basename=false
22089 # Name of the executable.
22090 as_me=`$as_basename "$0" ||
22091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22092 X"$0" : 'X\(//\)$' \| \
22093 X"$0" : 'X\(/\)$' \| \
22094 . : '\(.\)' 2>/dev/null ||
22095 echo X/"$0" |
22096 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22097 /^X\/\(\/\/\)$/{ s//\1/; q; }
22098 /^X\/\(\/\).*/{ s//\1/; q; }
22099 s/.*/./; q'`
22102 # PATH needs CR, and LINENO needs CR and PATH.
22103 # Avoid depending upon Character Ranges.
22104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22107 as_cr_digits='0123456789'
22108 as_cr_alnum=$as_cr_Letters$as_cr_digits
22110 # The user is always right.
22111 if test "${PATH_SEPARATOR+set}" != set; then
22112 echo "#! /bin/sh" >conf$$.sh
22113 echo "exit 0" >>conf$$.sh
22114 chmod +x conf$$.sh
22115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22116 PATH_SEPARATOR=';'
22117 else
22118 PATH_SEPARATOR=:
22120 rm -f conf$$.sh
22124 as_lineno_1=$LINENO
22125 as_lineno_2=$LINENO
22126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22127 test "x$as_lineno_1" != "x$as_lineno_2" &&
22128 test "x$as_lineno_3" = "x$as_lineno_2" || {
22129 # Find who we are. Look in the path if we contain no path at all
22130 # relative or not.
22131 case $0 in
22132 *[\\/]* ) as_myself=$0 ;;
22133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22136 IFS=$as_save_IFS
22137 test -z "$as_dir" && as_dir=.
22138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22139 done
22142 esac
22143 # We did not find ourselves, most probably we were run as `sh COMMAND'
22144 # in which case we are not to be found in the path.
22145 if test "x$as_myself" = x; then
22146 as_myself=$0
22148 if test ! -f "$as_myself"; then
22149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22151 { (exit 1); exit 1; }; }
22153 case $CONFIG_SHELL in
22155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22156 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22158 IFS=$as_save_IFS
22159 test -z "$as_dir" && as_dir=.
22160 for as_base in sh bash ksh sh5; do
22161 case $as_dir in
22163 if ("$as_dir/$as_base" -c '
22164 as_lineno_1=$LINENO
22165 as_lineno_2=$LINENO
22166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22167 test "x$as_lineno_1" != "x$as_lineno_2" &&
22168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22169 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22170 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22171 CONFIG_SHELL=$as_dir/$as_base
22172 export CONFIG_SHELL
22173 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22174 fi;;
22175 esac
22176 done
22177 done
22179 esac
22181 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22182 # uniformly replaced by the line number. The first 'sed' inserts a
22183 # line-number line before each line; the second 'sed' does the real
22184 # work. The second script uses 'N' to pair each line-number line
22185 # with the numbered line, and appends trailing '-' during
22186 # substitution so that $LINENO is not a special case at line end.
22187 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22188 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22189 sed '=' <$as_myself |
22190 sed '
22192 s,$,-,
22193 : loop
22194 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22195 t loop
22196 s,-$,,
22197 s,^['$as_cr_digits']*\n,,
22198 ' >$as_me.lineno &&
22199 chmod +x $as_me.lineno ||
22200 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22201 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22202 { (exit 1); exit 1; }; }
22204 # Don't try to exec as it changes $[0], causing all sort of problems
22205 # (the dirname of $[0] is not the place where we might find the
22206 # original and so on. Autoconf is especially sensible to this).
22207 . ./$as_me.lineno
22208 # Exit status is that of the last command.
22209 exit
22213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22214 *c*,-n*) ECHO_N= ECHO_C='
22215 ' ECHO_T=' ' ;;
22216 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22217 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22218 esac
22220 if expr a : '\(a\)' >/dev/null 2>&1; then
22221 as_expr=expr
22222 else
22223 as_expr=false
22226 rm -f conf$$ conf$$.exe conf$$.file
22227 echo >conf$$.file
22228 if ln -s conf$$.file conf$$ 2>/dev/null; then
22229 # We could just check for DJGPP; but this test a) works b) is more generic
22230 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22231 if test -f conf$$.exe; then
22232 # Don't use ln at all; we don't have any links
22233 as_ln_s='cp -p'
22234 else
22235 as_ln_s='ln -s'
22237 elif ln conf$$.file conf$$ 2>/dev/null; then
22238 as_ln_s=ln
22239 else
22240 as_ln_s='cp -p'
22242 rm -f conf$$ conf$$.exe conf$$.file
22244 if mkdir -p . 2>/dev/null; then
22245 as_mkdir_p=:
22246 else
22247 test -d ./-p && rmdir ./-p
22248 as_mkdir_p=false
22251 as_executable_p="test -f"
22253 # Sed expression to map a string onto a valid CPP name.
22254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22256 # Sed expression to map a string onto a valid variable name.
22257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22260 # IFS
22261 # We need space, tab and new line, in precisely that order.
22262 as_nl='
22264 IFS=" $as_nl"
22266 # CDPATH.
22267 $as_unset CDPATH
22269 exec 6>&1
22271 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22272 # report actual input values of CONFIG_FILES etc. instead of their
22273 # values after options handling. Logging --version etc. is OK.
22274 exec 5>>config.log
22276 echo
22277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22278 ## Running $as_me. ##
22279 _ASBOX
22280 } >&5
22281 cat >&5 <<_CSEOF
22283 This file was extended by python $as_me 2.5, which was
22284 generated by GNU Autoconf 2.59. Invocation command line was
22286 CONFIG_FILES = $CONFIG_FILES
22287 CONFIG_HEADERS = $CONFIG_HEADERS
22288 CONFIG_LINKS = $CONFIG_LINKS
22289 CONFIG_COMMANDS = $CONFIG_COMMANDS
22290 $ $0 $@
22292 _CSEOF
22293 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22294 echo >&5
22295 _ACEOF
22297 # Files that config.status was made for.
22298 if test -n "$ac_config_files"; then
22299 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22302 if test -n "$ac_config_headers"; then
22303 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22306 if test -n "$ac_config_links"; then
22307 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22310 if test -n "$ac_config_commands"; then
22311 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22314 cat >>$CONFIG_STATUS <<\_ACEOF
22316 ac_cs_usage="\
22317 \`$as_me' instantiates files from templates according to the
22318 current configuration.
22320 Usage: $0 [OPTIONS] [FILE]...
22322 -h, --help print this help, then exit
22323 -V, --version print version number, then exit
22324 -q, --quiet do not print progress messages
22325 -d, --debug don't remove temporary files
22326 --recheck update $as_me by reconfiguring in the same conditions
22327 --file=FILE[:TEMPLATE]
22328 instantiate the configuration file FILE
22329 --header=FILE[:TEMPLATE]
22330 instantiate the configuration header FILE
22332 Configuration files:
22333 $config_files
22335 Configuration headers:
22336 $config_headers
22338 Report bugs to <bug-autoconf@gnu.org>."
22339 _ACEOF
22341 cat >>$CONFIG_STATUS <<_ACEOF
22342 ac_cs_version="\\
22343 python config.status 2.5
22344 configured by $0, generated by GNU Autoconf 2.59,
22345 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22347 Copyright (C) 2003 Free Software Foundation, Inc.
22348 This config.status script is free software; the Free Software Foundation
22349 gives unlimited permission to copy, distribute and modify it."
22350 srcdir=$srcdir
22351 INSTALL="$INSTALL"
22352 _ACEOF
22354 cat >>$CONFIG_STATUS <<\_ACEOF
22355 # If no file are specified by the user, then we need to provide default
22356 # value. By we need to know if files were specified by the user.
22357 ac_need_defaults=:
22358 while test $# != 0
22360 case $1 in
22361 --*=*)
22362 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22363 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22364 ac_shift=:
22367 ac_option=$1
22368 ac_optarg=$2
22369 ac_shift=shift
22371 *) # This is not an option, so the user has probably given explicit
22372 # arguments.
22373 ac_option=$1
22374 ac_need_defaults=false;;
22375 esac
22377 case $ac_option in
22378 # Handling of the options.
22379 _ACEOF
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22382 ac_cs_recheck=: ;;
22383 --version | --vers* | -V )
22384 echo "$ac_cs_version"; exit 0 ;;
22385 --he | --h)
22386 # Conflict between --help and --header
22387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22388 Try \`$0 --help' for more information." >&5
22389 echo "$as_me: error: ambiguous option: $1
22390 Try \`$0 --help' for more information." >&2;}
22391 { (exit 1); exit 1; }; };;
22392 --help | --hel | -h )
22393 echo "$ac_cs_usage"; exit 0 ;;
22394 --debug | --d* | -d )
22395 debug=: ;;
22396 --file | --fil | --fi | --f )
22397 $ac_shift
22398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22399 ac_need_defaults=false;;
22400 --header | --heade | --head | --hea )
22401 $ac_shift
22402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22403 ac_need_defaults=false;;
22404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22406 ac_cs_silent=: ;;
22408 # This is an error.
22409 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22410 Try \`$0 --help' for more information." >&5
22411 echo "$as_me: error: unrecognized option: $1
22412 Try \`$0 --help' for more information." >&2;}
22413 { (exit 1); exit 1; }; } ;;
22415 *) ac_config_targets="$ac_config_targets $1" ;;
22417 esac
22418 shift
22419 done
22421 ac_configure_extra_args=
22423 if $ac_cs_silent; then
22424 exec 6>/dev/null
22425 ac_configure_extra_args="$ac_configure_extra_args --silent"
22428 _ACEOF
22429 cat >>$CONFIG_STATUS <<_ACEOF
22430 if \$ac_cs_recheck; then
22431 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22432 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22435 _ACEOF
22441 cat >>$CONFIG_STATUS <<\_ACEOF
22442 for ac_config_target in $ac_config_targets
22444 case "$ac_config_target" in
22445 # Handling of arguments.
22446 "Mac/OSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/Makefile" ;;
22447 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22448 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22449 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22450 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22451 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22452 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22453 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22454 { (exit 1); exit 1; }; };;
22455 esac
22456 done
22458 # If the user did not use the arguments to specify the items to instantiate,
22459 # then the envvar interface is used. Set only those that are not.
22460 # We use the long form for the default assignment because of an extremely
22461 # bizarre bug on SunOS 4.1.3.
22462 if $ac_need_defaults; then
22463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22467 # Have a temporary directory for convenience. Make it in the build tree
22468 # simply because there is no reason to put it here, and in addition,
22469 # creating and moving files from /tmp can sometimes cause problems.
22470 # Create a temporary directory, and hook for its removal unless debugging.
22471 $debug ||
22473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22474 trap '{ (exit 1); exit 1; }' 1 2 13 15
22477 # Create a (secure) tmp directory for tmp files.
22480 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22481 test -n "$tmp" && test -d "$tmp"
22482 } ||
22484 tmp=./confstat$$-$RANDOM
22485 (umask 077 && mkdir $tmp)
22486 } ||
22488 echo "$me: cannot create a temporary directory in ." >&2
22489 { (exit 1); exit 1; }
22492 _ACEOF
22494 cat >>$CONFIG_STATUS <<_ACEOF
22497 # CONFIG_FILES section.
22500 # No need to generate the scripts if there are no CONFIG_FILES.
22501 # This happens for instance when ./config.status config.h
22502 if test -n "\$CONFIG_FILES"; then
22503 # Protect against being on the right side of a sed subst in config.status.
22504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22506 s,@SHELL@,$SHELL,;t t
22507 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22508 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22509 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22510 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22511 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22512 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22513 s,@exec_prefix@,$exec_prefix,;t t
22514 s,@prefix@,$prefix,;t t
22515 s,@program_transform_name@,$program_transform_name,;t t
22516 s,@bindir@,$bindir,;t t
22517 s,@sbindir@,$sbindir,;t t
22518 s,@libexecdir@,$libexecdir,;t t
22519 s,@datadir@,$datadir,;t t
22520 s,@sysconfdir@,$sysconfdir,;t t
22521 s,@sharedstatedir@,$sharedstatedir,;t t
22522 s,@localstatedir@,$localstatedir,;t t
22523 s,@libdir@,$libdir,;t t
22524 s,@includedir@,$includedir,;t t
22525 s,@oldincludedir@,$oldincludedir,;t t
22526 s,@infodir@,$infodir,;t t
22527 s,@mandir@,$mandir,;t t
22528 s,@build_alias@,$build_alias,;t t
22529 s,@host_alias@,$host_alias,;t t
22530 s,@target_alias@,$target_alias,;t t
22531 s,@DEFS@,$DEFS,;t t
22532 s,@ECHO_C@,$ECHO_C,;t t
22533 s,@ECHO_N@,$ECHO_N,;t t
22534 s,@ECHO_T@,$ECHO_T,;t t
22535 s,@LIBS@,$LIBS,;t t
22536 s,@VERSION@,$VERSION,;t t
22537 s,@SOVERSION@,$SOVERSION,;t t
22538 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22539 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22540 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22541 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22542 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22543 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22544 s,@MACHDEP@,$MACHDEP,;t t
22545 s,@SGI_ABI@,$SGI_ABI,;t t
22546 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22547 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22548 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22549 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22550 s,@CC@,$CC,;t t
22551 s,@CFLAGS@,$CFLAGS,;t t
22552 s,@LDFLAGS@,$LDFLAGS,;t t
22553 s,@CPPFLAGS@,$CPPFLAGS,;t t
22554 s,@ac_ct_CC@,$ac_ct_CC,;t t
22555 s,@EXEEXT@,$EXEEXT,;t t
22556 s,@OBJEXT@,$OBJEXT,;t t
22557 s,@CXX@,$CXX,;t t
22558 s,@MAINCC@,$MAINCC,;t t
22559 s,@CPP@,$CPP,;t t
22560 s,@EGREP@,$EGREP,;t t
22561 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22562 s,@LIBRARY@,$LIBRARY,;t t
22563 s,@LDLIBRARY@,$LDLIBRARY,;t t
22564 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22565 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22566 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22567 s,@INSTSONAME@,$INSTSONAME,;t t
22568 s,@RUNSHARED@,$RUNSHARED,;t t
22569 s,@LINKCC@,$LINKCC,;t t
22570 s,@RANLIB@,$RANLIB,;t t
22571 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22572 s,@AR@,$AR,;t t
22573 s,@SVNVERSION@,$SVNVERSION,;t t
22574 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22575 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22576 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22577 s,@LN@,$LN,;t t
22578 s,@OPT@,$OPT,;t t
22579 s,@BASECFLAGS@,$BASECFLAGS,;t t
22580 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22581 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22582 s,@SO@,$SO,;t t
22583 s,@LDSHARED@,$LDSHARED,;t t
22584 s,@BLDSHARED@,$BLDSHARED,;t t
22585 s,@CCSHARED@,$CCSHARED,;t t
22586 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22587 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22588 s,@SHLIBS@,$SHLIBS,;t t
22589 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22590 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22591 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22592 s,@LDLAST@,$LDLAST,;t t
22593 s,@THREADOBJ@,$THREADOBJ,;t t
22594 s,@DLINCLDIR@,$DLINCLDIR,;t t
22595 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22596 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22597 s,@TRUE@,$TRUE,;t t
22598 s,@LIBOBJS@,$LIBOBJS,;t t
22599 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22600 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22601 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22602 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22603 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22604 s,@LIBM@,$LIBM,;t t
22605 s,@LIBC@,$LIBC,;t t
22606 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22607 s,@THREADHEADERS@,$THREADHEADERS,;t t
22608 s,@SRCDIRS@,$SRCDIRS,;t t
22609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22610 CEOF
22612 _ACEOF
22614 cat >>$CONFIG_STATUS <<\_ACEOF
22615 # Split the substitutions into bite-sized pieces for seds with
22616 # small command number limits, like on Digital OSF/1 and HP-UX.
22617 ac_max_sed_lines=48
22618 ac_sed_frag=1 # Number of current file.
22619 ac_beg=1 # First line for current file.
22620 ac_end=$ac_max_sed_lines # Line after last line for current file.
22621 ac_more_lines=:
22622 ac_sed_cmds=
22623 while $ac_more_lines; do
22624 if test $ac_beg -gt 1; then
22625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22626 else
22627 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22629 if test ! -s $tmp/subs.frag; then
22630 ac_more_lines=false
22631 else
22632 # The purpose of the label and of the branching condition is to
22633 # speed up the sed processing (if there are no `@' at all, there
22634 # is no need to browse any of the substitutions).
22635 # These are the two extra sed commands mentioned above.
22636 (echo ':t
22637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22638 if test -z "$ac_sed_cmds"; then
22639 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22640 else
22641 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22643 ac_sed_frag=`expr $ac_sed_frag + 1`
22644 ac_beg=$ac_end
22645 ac_end=`expr $ac_end + $ac_max_sed_lines`
22647 done
22648 if test -z "$ac_sed_cmds"; then
22649 ac_sed_cmds=cat
22651 fi # test -n "$CONFIG_FILES"
22653 _ACEOF
22654 cat >>$CONFIG_STATUS <<\_ACEOF
22655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22657 case $ac_file in
22658 - | *:- | *:-:* ) # input from stdin
22659 cat >$tmp/stdin
22660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22664 * ) ac_file_in=$ac_file.in ;;
22665 esac
22667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22670 X"$ac_file" : 'X\(//\)[^/]' \| \
22671 X"$ac_file" : 'X\(//\)$' \| \
22672 X"$ac_file" : 'X\(/\)' \| \
22673 . : '\(.\)' 2>/dev/null ||
22674 echo X"$ac_file" |
22675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22677 /^X\(\/\/\)$/{ s//\1/; q; }
22678 /^X\(\/\).*/{ s//\1/; q; }
22679 s/.*/./; q'`
22680 { if $as_mkdir_p; then
22681 mkdir -p "$ac_dir"
22682 else
22683 as_dir="$ac_dir"
22684 as_dirs=
22685 while test ! -d "$as_dir"; do
22686 as_dirs="$as_dir $as_dirs"
22687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22689 X"$as_dir" : 'X\(//\)[^/]' \| \
22690 X"$as_dir" : 'X\(//\)$' \| \
22691 X"$as_dir" : 'X\(/\)' \| \
22692 . : '\(.\)' 2>/dev/null ||
22693 echo X"$as_dir" |
22694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22696 /^X\(\/\/\)$/{ s//\1/; q; }
22697 /^X\(\/\).*/{ s//\1/; q; }
22698 s/.*/./; q'`
22699 done
22700 test ! -n "$as_dirs" || mkdir $as_dirs
22701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22703 { (exit 1); exit 1; }; }; }
22705 ac_builddir=.
22707 if test "$ac_dir" != .; then
22708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22709 # A "../" for each directory in $ac_dir_suffix.
22710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22711 else
22712 ac_dir_suffix= ac_top_builddir=
22715 case $srcdir in
22716 .) # No --srcdir option. We are building in place.
22717 ac_srcdir=.
22718 if test -z "$ac_top_builddir"; then
22719 ac_top_srcdir=.
22720 else
22721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22722 fi ;;
22723 [\\/]* | ?:[\\/]* ) # Absolute path.
22724 ac_srcdir=$srcdir$ac_dir_suffix;
22725 ac_top_srcdir=$srcdir ;;
22726 *) # Relative path.
22727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22729 esac
22731 # Do not use `cd foo && pwd` to compute absolute paths, because
22732 # the directories may not exist.
22733 case `pwd` in
22734 .) ac_abs_builddir="$ac_dir";;
22736 case "$ac_dir" in
22737 .) ac_abs_builddir=`pwd`;;
22738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22739 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22740 esac;;
22741 esac
22742 case $ac_abs_builddir in
22743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22745 case ${ac_top_builddir}. in
22746 .) ac_abs_top_builddir=$ac_abs_builddir;;
22747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22749 esac;;
22750 esac
22751 case $ac_abs_builddir in
22752 .) ac_abs_srcdir=$ac_srcdir;;
22754 case $ac_srcdir in
22755 .) ac_abs_srcdir=$ac_abs_builddir;;
22756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22758 esac;;
22759 esac
22760 case $ac_abs_builddir in
22761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22763 case $ac_top_srcdir in
22764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22767 esac;;
22768 esac
22771 case $INSTALL in
22772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22773 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22774 esac
22776 if test x"$ac_file" != x-; then
22777 { echo "$as_me:$LINENO: creating $ac_file" >&5
22778 echo "$as_me: creating $ac_file" >&6;}
22779 rm -f "$ac_file"
22781 # Let's still pretend it is `configure' which instantiates (i.e., don't
22782 # use $as_me), people would be surprised to read:
22783 # /* config.h. Generated by config.status. */
22784 if test x"$ac_file" = x-; then
22785 configure_input=
22786 else
22787 configure_input="$ac_file. "
22789 configure_input=$configure_input"Generated from `echo $ac_file_in |
22790 sed 's,.*/,,'` by configure."
22792 # First look for the input files in the build tree, otherwise in the
22793 # src tree.
22794 ac_file_inputs=`IFS=:
22795 for f in $ac_file_in; do
22796 case $f in
22797 -) echo $tmp/stdin ;;
22798 [\\/$]*)
22799 # Absolute (can't be DOS-style, as IFS=:)
22800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22801 echo "$as_me: error: cannot find input file: $f" >&2;}
22802 { (exit 1); exit 1; }; }
22803 echo "$f";;
22804 *) # Relative
22805 if test -f "$f"; then
22806 # Build tree
22807 echo "$f"
22808 elif test -f "$srcdir/$f"; then
22809 # Source tree
22810 echo "$srcdir/$f"
22811 else
22812 # /dev/null tree
22813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22814 echo "$as_me: error: cannot find input file: $f" >&2;}
22815 { (exit 1); exit 1; }; }
22816 fi;;
22817 esac
22818 done` || { (exit 1); exit 1; }
22819 _ACEOF
22820 cat >>$CONFIG_STATUS <<_ACEOF
22821 sed "$ac_vpsub
22822 $extrasub
22823 _ACEOF
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22827 s,@configure_input@,$configure_input,;t t
22828 s,@srcdir@,$ac_srcdir,;t t
22829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22830 s,@top_srcdir@,$ac_top_srcdir,;t t
22831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22832 s,@builddir@,$ac_builddir,;t t
22833 s,@abs_builddir@,$ac_abs_builddir,;t t
22834 s,@top_builddir@,$ac_top_builddir,;t t
22835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22836 s,@INSTALL@,$ac_INSTALL,;t t
22837 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22838 rm -f $tmp/stdin
22839 if test x"$ac_file" != x-; then
22840 mv $tmp/out $ac_file
22841 else
22842 cat $tmp/out
22843 rm -f $tmp/out
22846 done
22847 _ACEOF
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22851 # CONFIG_HEADER section.
22854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22857 # ac_d sets the value in "#define NAME VALUE" lines.
22858 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22859 ac_dB='[ ].*$,\1#\2'
22860 ac_dC=' '
22861 ac_dD=',;t'
22862 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22863 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22864 ac_uB='$,\1#\2define\3'
22865 ac_uC=' '
22866 ac_uD=',;t'
22868 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22870 case $ac_file in
22871 - | *:- | *:-:* ) # input from stdin
22872 cat >$tmp/stdin
22873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22877 * ) ac_file_in=$ac_file.in ;;
22878 esac
22880 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22881 echo "$as_me: creating $ac_file" >&6;}
22883 # First look for the input files in the build tree, otherwise in the
22884 # src tree.
22885 ac_file_inputs=`IFS=:
22886 for f in $ac_file_in; do
22887 case $f in
22888 -) echo $tmp/stdin ;;
22889 [\\/$]*)
22890 # Absolute (can't be DOS-style, as IFS=:)
22891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22892 echo "$as_me: error: cannot find input file: $f" >&2;}
22893 { (exit 1); exit 1; }; }
22894 # Do quote $f, to prevent DOS paths from being IFS'd.
22895 echo "$f";;
22896 *) # Relative
22897 if test -f "$f"; then
22898 # Build tree
22899 echo "$f"
22900 elif test -f "$srcdir/$f"; then
22901 # Source tree
22902 echo "$srcdir/$f"
22903 else
22904 # /dev/null tree
22905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22906 echo "$as_me: error: cannot find input file: $f" >&2;}
22907 { (exit 1); exit 1; }; }
22908 fi;;
22909 esac
22910 done` || { (exit 1); exit 1; }
22911 # Remove the trailing spaces.
22912 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22914 _ACEOF
22916 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22917 # `conftest.undefs', that substitutes the proper values into
22918 # config.h.in to produce config.h. The first handles `#define'
22919 # templates, and the second `#undef' templates.
22920 # And first: Protect against being on the right side of a sed subst in
22921 # config.status. Protect against being in an unquoted here document
22922 # in config.status.
22923 rm -f conftest.defines conftest.undefs
22924 # Using a here document instead of a string reduces the quoting nightmare.
22925 # Putting comments in sed scripts is not portable.
22927 # `end' is used to avoid that the second main sed command (meant for
22928 # 0-ary CPP macros) applies to n-ary macro definitions.
22929 # See the Autoconf documentation for `clear'.
22930 cat >confdef2sed.sed <<\_ACEOF
22931 s/[\\&,]/\\&/g
22932 s,[\\$`],\\&,g
22933 t clear
22934 : clear
22935 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22936 t end
22937 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22938 : end
22939 _ACEOF
22940 # If some macros were called several times there might be several times
22941 # the same #defines, which is useless. Nevertheless, we may not want to
22942 # sort them, since we want the *last* AC-DEFINE to be honored.
22943 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22944 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22945 rm -f confdef2sed.sed
22947 # This sed command replaces #undef with comments. This is necessary, for
22948 # example, in the case of _POSIX_SOURCE, which is predefined and required
22949 # on some systems where configure will not decide to define it.
22950 cat >>conftest.undefs <<\_ACEOF
22951 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22952 _ACEOF
22954 # Break up conftest.defines because some shells have a limit on the size
22955 # of here documents, and old seds have small limits too (100 cmds).
22956 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22957 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22958 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22959 echo ' :' >>$CONFIG_STATUS
22960 rm -f conftest.tail
22961 while grep . conftest.defines >/dev/null
22963 # Write a limited-size here document to $tmp/defines.sed.
22964 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22965 # Speed up: don't consider the non `#define' lines.
22966 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22967 # Work around the forget-to-reset-the-flag bug.
22968 echo 't clr' >>$CONFIG_STATUS
22969 echo ': clr' >>$CONFIG_STATUS
22970 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22971 echo 'CEOF
22972 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22973 rm -f $tmp/in
22974 mv $tmp/out $tmp/in
22975 ' >>$CONFIG_STATUS
22976 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22977 rm -f conftest.defines
22978 mv conftest.tail conftest.defines
22979 done
22980 rm -f conftest.defines
22981 echo ' fi # grep' >>$CONFIG_STATUS
22982 echo >>$CONFIG_STATUS
22984 # Break up conftest.undefs because some shells have a limit on the size
22985 # of here documents, and old seds have small limits too (100 cmds).
22986 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22987 rm -f conftest.tail
22988 while grep . conftest.undefs >/dev/null
22990 # Write a limited-size here document to $tmp/undefs.sed.
22991 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22992 # Speed up: don't consider the non `#undef'
22993 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22994 # Work around the forget-to-reset-the-flag bug.
22995 echo 't clr' >>$CONFIG_STATUS
22996 echo ': clr' >>$CONFIG_STATUS
22997 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22998 echo 'CEOF
22999 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23000 rm -f $tmp/in
23001 mv $tmp/out $tmp/in
23002 ' >>$CONFIG_STATUS
23003 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23004 rm -f conftest.undefs
23005 mv conftest.tail conftest.undefs
23006 done
23007 rm -f conftest.undefs
23009 cat >>$CONFIG_STATUS <<\_ACEOF
23010 # Let's still pretend it is `configure' which instantiates (i.e., don't
23011 # use $as_me), people would be surprised to read:
23012 # /* config.h. Generated by config.status. */
23013 if test x"$ac_file" = x-; then
23014 echo "/* Generated by configure. */" >$tmp/config.h
23015 else
23016 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23018 cat $tmp/in >>$tmp/config.h
23019 rm -f $tmp/in
23020 if test x"$ac_file" != x-; then
23021 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23023 echo "$as_me: $ac_file is unchanged" >&6;}
23024 else
23025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23027 X"$ac_file" : 'X\(//\)[^/]' \| \
23028 X"$ac_file" : 'X\(//\)$' \| \
23029 X"$ac_file" : 'X\(/\)' \| \
23030 . : '\(.\)' 2>/dev/null ||
23031 echo X"$ac_file" |
23032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23034 /^X\(\/\/\)$/{ s//\1/; q; }
23035 /^X\(\/\).*/{ s//\1/; q; }
23036 s/.*/./; q'`
23037 { if $as_mkdir_p; then
23038 mkdir -p "$ac_dir"
23039 else
23040 as_dir="$ac_dir"
23041 as_dirs=
23042 while test ! -d "$as_dir"; do
23043 as_dirs="$as_dir $as_dirs"
23044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046 X"$as_dir" : 'X\(//\)[^/]' \| \
23047 X"$as_dir" : 'X\(//\)$' \| \
23048 X"$as_dir" : 'X\(/\)' \| \
23049 . : '\(.\)' 2>/dev/null ||
23050 echo X"$as_dir" |
23051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23053 /^X\(\/\/\)$/{ s//\1/; q; }
23054 /^X\(\/\).*/{ s//\1/; q; }
23055 s/.*/./; q'`
23056 done
23057 test ! -n "$as_dirs" || mkdir $as_dirs
23058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23060 { (exit 1); exit 1; }; }; }
23062 rm -f $ac_file
23063 mv $tmp/config.h $ac_file
23065 else
23066 cat $tmp/config.h
23067 rm -f $tmp/config.h
23069 done
23070 _ACEOF
23072 cat >>$CONFIG_STATUS <<\_ACEOF
23074 { (exit 0); exit 0; }
23075 _ACEOF
23076 chmod +x $CONFIG_STATUS
23077 ac_clean_files=$ac_clean_files_save
23080 # configure is writing to config.log, and then calls config.status.
23081 # config.status does its own redirection, appending to config.log.
23082 # Unfortunately, on DOS this fails, as config.log is still kept open
23083 # by configure, so config.status won't be able to write to it; its
23084 # output is simply discarded. So we exec the FD to /dev/null,
23085 # effectively closing config.log, so it can be properly (re)opened and
23086 # appended to by config.status. When coming back to configure, we
23087 # need to make the FD available again.
23088 if test "$no_create" != yes; then
23089 ac_cs_success=:
23090 ac_config_status_args=
23091 test "$silent" = yes &&
23092 ac_config_status_args="$ac_config_status_args --quiet"
23093 exec 5>/dev/null
23094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23095 exec 5>>config.log
23096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23097 # would make configure fail if this is the last instruction.
23098 $ac_cs_success || { (exit 1); exit 1; }
23102 echo "creating Modules/Setup"
23103 if test ! -f Modules/Setup
23104 then
23105 cp $srcdir/Modules/Setup.dist Modules/Setup
23108 echo "creating Modules/Setup.local"
23109 if test ! -f Modules/Setup.local
23110 then
23111 echo "# Edit this file for local setup changes" >Modules/Setup.local
23114 echo "creating Makefile"
23115 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23116 -s Modules Modules/Setup.config \
23117 Modules/Setup.local Modules/Setup
23118 mv config.c Modules