Document PEP 352 changes. Also added GeneratorExit.
[python.git] / configure
blobaad20c811a66a553201ce52f1cff9be512b70ad6
1 #! /bin/sh
2 # From configure.in Revision: 42437 .
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 PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
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-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[012345678])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 Darwin/8.*)
1517 define_xopen_source=no
1520 esac
1522 if test $define_xopen_source = yes
1523 then
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1527 # compiler
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1531 cat >>confdefs.h <<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1533 _ACEOF
1538 cat >>confdefs.h <<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1540 _ACEOF
1543 esac
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1552 SunOS/5.10)
1556 cat >>confdefs.h <<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1558 _ACEOF
1561 esac
1564 cat >>confdefs.h <<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1566 _ACEOF
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1582 then
1583 CC="cc $SGI_ABI"
1584 LDFLAGS="$SGI_ABI $LDFLAGS"
1585 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1596 then
1597 case $MACHDEP in
1598 darwin)
1599 EXTRAPLATDIR="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1603 EXTRAPLATDIR=""
1604 EXTRAMACHDEPPATH=""
1606 esac
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1613 # needs to check it
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1632 withval="$with_gcc"
1634 case $withval in
1635 no) CC=cc
1636 without_gcc=yes;;
1637 yes) CC=gcc
1638 without_gcc=no;;
1639 *) CC=$withval
1640 without_gcc=$withval;;
1641 esac
1642 else
1644 case $ac_sys_system in
1645 AIX*) CC=cc_r
1646 without_gcc=;;
1647 BeOS*)
1648 case $BE_HOST_CPU in
1649 ppc)
1650 CC=mwcc
1651 without_gcc=yes
1652 BASECFLAGS="$BASECFLAGS -export pragma"
1653 OPT="$OPT -O"
1654 LDFLAGS="$LDFLAGS -nodup"
1656 x86)
1657 CC=gcc
1658 without_gcc=no
1659 OPT="$OPT -O"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1666 esac
1667 AR="\$(srcdir)/Modules/ar_beos"
1668 RANLIB=:
1670 Monterey*)
1671 RANLIB=:
1672 without_gcc=;;
1673 *) without_gcc=no;;
1674 esac
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1681 MAINOBJ=python.o
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1687 withval="$with_cxx"
1689 check_cxx=no
1690 case $withval in
1691 no) CXX=
1692 with_cxx=no;;
1693 *) CXX=$withval
1694 MAINOBJ=ccpython.o
1695 with_cxx=$withval;;
1696 esac
1697 else
1699 with_cxx=no
1700 check_cxx=yes
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1707 then
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1717 then
1718 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 CXX=$ac_cv_prog_CXX
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1756 done
1757 test -n "$CXX" || CXX="notfound"
1759 if test "$CXX" = "notfound"
1760 then
1761 CXX=
1762 else
1763 ac_ext=cc
1764 ac_cpp='$CXXCPP $CPPFLAGS'
1765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1776 main ()
1780 return 0;
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 conftest.$ac_ext )
1811 # This is the source file.
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1933 then
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1941 ac_ext=c
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1968 done
1969 done
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1984 ac_ct_CC=$CC
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2006 done
2007 done
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 CC=$ac_ct_CC
2021 else
2022 CC="$ac_cv_prog_CC"
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}cc; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2064 ac_ct_CC=$CC
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2086 done
2087 done
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 CC=$ac_ct_CC
2101 else
2102 CC="$ac_cv_prog_CC"
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 ac_prog_rejected=no
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected=yes
2127 continue
2129 ac_cv_prog_CC="cc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2133 done
2134 done
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy $ac_cv_prog_CC
2139 shift
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2144 shift
2145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2150 CC=$ac_cv_prog_CC
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog in cl
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2190 CC=$ac_cv_prog_CC
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2194 else
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2200 done
2202 if test -z "$CC"; then
2203 ac_ct_CC=$CC
2204 for ac_prog in cl
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2242 done
2244 CC=$ac_ct_CC
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev/null >&5) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev/null >&5) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev/null >&5) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2284 main ()
2288 return 0;
2290 _ACEOF
2291 ac_clean_files_save=$ac_clean_files
2292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2295 # of exeext.
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306 # resort.
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2310 ac_cv_exeext=
2311 # b.out is created by i960 compilers.
2312 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2318 conftest.$ac_ext )
2319 # This is the source file.
2321 [ab].out )
2322 # We found the default executable, but exeext='' is most
2323 # certainly right.
2324 break;;
2325 *.* )
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2330 export ac_cv_exeext
2331 break;;
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 cross_compiling=no
2365 else
2366 if test "$cross_compiling" = maybe; then
2367 cross_compiling=yes
2368 else
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383 ac_clean_files=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2401 # `rm'.
2402 for ac_file in conftest.exe conftest conftest.*; do
2403 test -f "$ac_file" || continue
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 export ac_cv_exeext
2408 break;;
2409 * ) break;;
2410 esac
2411 done
2412 else
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.$ac_ext
2425 EXEEXT=$ac_cv_exeext
2426 ac_exeext=$EXEEXT
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2454 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2457 break;;
2458 esac
2459 done
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT=$ac_cv_objext
2476 ac_objext=$OBJEXT
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 main ()
2492 #ifndef __GNUC__
2493 choke me
2494 #endif
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_compiler_gnu=yes
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 ac_compiler_gnu=no
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS=${CFLAGS+set}
2537 ac_save_CFLAGS=$CFLAGS
2538 CFLAGS="-g"
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_g=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_cv_prog_cc_g=no
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2596 CFLAGS="-g -O2"
2597 else
2598 CFLAGS="-g"
2600 else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_cv_prog_cc_stdc=no
2613 ac_save_CC=$CC
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #include <stdarg.h>
2621 #include <stdio.h>
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2631 return p[i];
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2656 int argc;
2657 char **argv;
2659 main ()
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 return 0;
2665 _ACEOF
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC="$ac_save_CC $ac_arg"
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc=$ac_arg
2699 break
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext
2706 done
2707 rm -f conftest.$ac_ext conftest.$ac_objext
2708 CC=$ac_save_CC
2712 case "x$ac_cv_prog_cc_stdc" in
2713 x|xno)
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC="$CC $ac_cv_prog_cc_stdc" ;;
2720 esac
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #ifndef __cplusplus
2728 choke me
2729 #endif
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
2754 '' \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2759 'void exit (int);'
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 $ac_declaration
2768 #include <stdlib.h>
2770 main ()
2772 exit (42);
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 continue
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 $ac_declaration
2815 main ()
2817 exit (42);
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 break
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 done
2852 rm -f conftest*
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2883 CPP=
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 ac_preproc_ok=false
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 #ifdef __STDC__
2908 # include <limits.h>
2909 #else
2910 # include <assert.h>
2911 #endif
2912 Syntax error
2913 _ACEOF
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev/null; then
2922 if test -s conftest.err; then
2923 ac_cpp_err=$ac_c_preproc_warn_flag
2924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2925 else
2926 ac_cpp_err=
2928 else
2929 ac_cpp_err=yes
2931 if test -z "$ac_cpp_err"; then
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2938 continue
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2951 _ACEOF
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null; then
2960 if test -s conftest.err; then
2961 ac_cpp_err=$ac_c_preproc_warn_flag
2962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2963 else
2964 ac_cpp_err=
2966 else
2967 ac_cpp_err=yes
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2971 continue
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2977 ac_preproc_ok=:
2978 break
2980 rm -f conftest.err conftest.$ac_ext
2982 done
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2986 break
2989 done
2990 ac_cv_prog_CPP=$CPP
2993 CPP=$ac_cv_prog_CPP
2994 else
2995 ac_cv_prog_CPP=$CPP
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
2999 ac_preproc_ok=false
3000 for ac_c_preproc_warn_flag in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #ifdef __STDC__
3015 # include <limits.h>
3016 #else
3017 # include <assert.h>
3018 #endif
3019 Syntax error
3020 _ACEOF
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
3031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3032 else
3033 ac_cpp_err=
3035 else
3036 ac_cpp_err=yes
3038 if test -z "$ac_cpp_err"; then
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Broken: fails on valid input.
3045 continue
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3058 _ACEOF
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null; then
3067 if test -s conftest.err; then
3068 ac_cpp_err=$ac_c_preproc_warn_flag
3069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3070 else
3071 ac_cpp_err=
3073 else
3074 ac_cpp_err=yes
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3078 continue
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3087 rm -f conftest.err conftest.$ac_ext
3089 done
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3094 else
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3115 then ac_cv_prog_egrep='grep -E'
3116 else ac_cv_prog_egrep='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifdef _AIX
3135 #endif
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev/null 2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h <<\_ACEOF
3143 #define _ALL_SOURCE 1
3144 _ACEOF
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3150 rm -f conftest*
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3156 Linux*/1*)
3157 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3158 echo See README for details.
3159 exit 1;;
3160 esac
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval="$with_suffix"
3170 case $withval in
3171 no) EXEEXT=;;
3172 yes) EXEEXT=.exe;;
3173 *) EXEEXT=$withval;;
3174 esac
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3189 then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3192 BUILDEXEEXT=.exe
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 BUILDEXEEXT=$EXEEXT
3198 rmdir CaseSensitiveTestDir
3200 case $MACHDEP in
3201 bsdos*)
3202 case $CC in
3203 gcc) CC="$CC -D_HAVE_BSDI";;
3204 esac;;
3205 esac
3207 case $ac_sys_system in
3208 hp*|HP*)
3209 case $CC in
3210 cc|*/cc) CC="$CC -Ae";;
3211 esac;;
3212 Monterey*)
3213 case $CC in
3214 cc) CC="$CC -Wl,-Bexport";;
3215 esac;;
3216 SunOS*)
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h <<\_ACEOF
3220 #define __EXTENSIONS__ 1
3221 _ACEOF
3224 esac
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3231 then
3232 LIBRARY='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY="$LIBRARY"
3257 BLDLIBRARY='$(LDLIBRARY)'
3258 INSTSONAME='$(LDLIBRARY)'
3259 DLLLIBRARY=''
3260 LDLIBRARYDIR=''
3261 RUNSHARED=''
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3268 # linking.
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3273 then
3274 if test -z "$CXX"; then
3275 LINKCC="\$(PURIFY) \$(CC)"
3276 else
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc # 2>&5
3279 echo 'void foo(){}' > conftest_b.$ac_ext
3280 $CC -c conftest_b.$ac_ext # 2>&5
3281 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3282 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3283 then
3284 LINKCC="\$(PURIFY) \$(CC)"
3285 else
3286 LINKCC="\$(PURIFY) \$(CXX)"
3288 rm -fr conftest*
3290 case $ac_sys_system in
3291 AIX*)
3292 exp_extra="\"\""
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3295 exp_extra="."
3297 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 Monterey64*)
3299 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3300 esac
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval="$enable_shared"
3313 if test -z "$enable_shared"
3314 then
3315 case $ac_sys_system in
3316 CYGWIN* | atheos*)
3317 enable_shared="yes";;
3319 enable_shared="no";;
3320 esac
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval="$enable_profiling"
3330 ac_save_cc="$CC"
3331 CC="$CC -pg"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling="no"
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3342 _ACEOF
3343 rm -f conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling="yes"
3355 else
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ( exit $ac_status )
3361 ac_enable_profiling="no"
3363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3365 CC="$ac_save_cc"
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3371 "yes")
3372 BASECFLAGS="-pg $BASECFLAGS"
3373 LDFLAGS="-pg $LDFLAGS"
3375 esac
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3387 then
3388 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3390 BLDLIBRARY=''
3391 else
3392 BLDLIBRARY='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h <<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3400 _ACEOF
3402 case $ac_sys_system in
3403 BeOS*)
3404 LDLIBRARY='libpython$(VERSION).so'
3406 CYGWIN*)
3407 LDLIBRARY='libpython$(VERSION).dll.a'
3408 DLLLIBRARY='libpython$(VERSION).dll'
3410 SunOS*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME="$LDLIBRARY".$SOVERSION
3416 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3417 LDLIBRARY='libpython$(VERSION).so'
3418 BLDLIBRARY='-L. -lpython$(VERSION)'
3419 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3421 FreeBSD*)
3422 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3424 esac
3425 INSTSONAME="$LDLIBRARY".$SOVERSION
3427 hp*|HP*)
3428 LDLIBRARY='libpython$(VERSION).sl'
3429 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3432 OSF*)
3433 LDLIBRARY='libpython$(VERSION).so'
3434 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3437 atheos*)
3438 LDLIBRARY='libpython$(VERSION).so'
3439 BLDLIBRARY='-L. -lpython$(VERSION)'
3440 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3442 esac
3443 else # shared is disabled
3444 case $ac_sys_system in
3445 CYGWIN*)
3446 BLDLIBRARY='$(LIBRARY)'
3447 LDLIBRARY='libpython$(VERSION).dll.a'
3449 esac
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3482 RANLIB=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB=$ac_ct_RANLIB
3531 else
3532 RANLIB="$ac_cv_prog_RANLIB"
3536 for ac_prog in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR="$AR" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3564 AR=$ac_cv_prog_AR
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3568 else
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3574 done
3575 test -n "$AR" || AR="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3605 SVNVERSION=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3609 else
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3615 then
3616 SVNVERSION="svnversion \$(srcdir)"
3617 else
3618 SVNVERSION="echo exported"
3621 case $MACHDEP in
3622 bsdos*|hp*|HP*)
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3625 then
3626 INSTALL="${srcdir}/install-sh -c"
3628 esac
3629 ac_aux_dir=
3630 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3631 if test -f $ac_dir/install-sh; then
3632 ac_aux_dir=$ac_dir
3633 ac_install_sh="$ac_aux_dir/install-sh -c"
3634 break
3635 elif test -f $ac_dir/install.sh; then
3636 ac_aux_dir=$ac_dir
3637 ac_install_sh="$ac_aux_dir/install.sh -c"
3638 break
3639 elif test -f $ac_dir/shtool; then
3640 ac_aux_dir=$ac_dir
3641 ac_install_sh="$ac_aux_dir/shtool install -c"
3642 break
3644 done
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3660 # AIX /bin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 # Account for people who put trailing slashes in PATH elements.
3679 case $as_dir/ in
3680 ./ | .// | /cC/* | \
3681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3683 /usr/ucb/* ) ;;
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3687 # by default.
3688 for ac_prog in ginstall scoinst install; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3699 else
3700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3701 break 3
3704 done
3705 done
3707 esac
3708 done
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL=$ac_cv_path_install
3714 else
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3738 BeOS*) LN="ln -s";;
3739 CYGWIN*) LN="ln -s";;
3740 atheos*) LN="ln -s";;
3741 *) LN=ln;;
3742 esac
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval="$with_pydebug"
3753 if test "$withval" != no
3754 then
3756 cat >>confdefs.h <<\_ACEOF
3757 #define Py_DEBUG 1
3758 _ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3762 Py_DEBUG='true'
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3782 # user set OPT.
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3787 if test -z "$OPT"
3788 then
3789 case $GCC in
3790 yes)
3791 case $ac_cv_prog_cc_g in
3792 yes)
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3795 # debug builds.
3796 OPT="-g -Wall -Wstrict-prototypes"
3797 else
3798 OPT="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT="-O3 -Wall -Wstrict-prototypes"
3804 esac
3805 case $ac_sys_system in
3806 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3808 esac
3812 OPT="-O"
3814 esac
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3819 Monterey*)
3820 OPT=""
3822 esac
3827 # tweak BASECFLAGS based on compiler and platform
3828 case $GCC in
3829 yes)
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3835 ac_save_cc="$CC"
3836 CC="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok=no
3839 else
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3847 _ACEOF
3848 rm -f conftest$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok=yes
3860 else
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ( exit $ac_status )
3866 ac_cv_no_strict_aliasing_ok=no
3868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3870 CC="$ac_save_cc"
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3874 then
3875 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3878 SCO_SV*)
3879 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3882 Darwin*)
3883 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3885 esac
3889 case $ac_sys_system in
3890 OpenUNIX*|UnixWare*)
3891 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3893 OSF*)
3894 BASECFLAGS="$BASECFLAGS -ieee -std"
3896 SCO_SV*)
3897 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3899 esac
3901 esac
3903 if test "$Py_DEBUG" = 'true'; then
3905 else
3906 OPT="-DNDEBUG $OPT"
3909 if test "$ac_arch_flags"
3910 then
3911 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3915 if test "$CC" = icc
3916 then
3917 ac_cv_opt_olimit_ok=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_save_cc="$CC"
3926 CC="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok=no
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3937 _ACEOF
3938 rm -f conftest$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok=yes
3950 else
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ( exit $ac_status )
3956 ac_cv_opt_olimit_ok=no
3958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3960 CC="$ac_save_cc"
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3969 # environment?
3970 Darwin*)
3973 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3975 esac
3976 else
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 ac_save_cc="$CC"
3983 CC="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_olimit_ok=no
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3994 _ACEOF
3995 rm -f conftest$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_olimit_ok=yes
4007 else
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ( exit $ac_status )
4013 ac_cv_olimit_ok=no
4015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017 CC="$ac_save_cc"
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default=no
4039 else
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4051 int main(){
4052 pthread_t p;
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4054 return 1;
4055 (void)pthread_detach(p);
4056 return 0;
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default=yes
4073 ac_cv_kthread=no
4074 ac_cv_pthread=no
4076 else
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ( exit $ac_status )
4082 ac_cv_pthread_is_default=no
4084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4094 then
4095 ac_cv_kpthread=no
4096 else
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 ac_save_cc="$CC"
4108 CC="$CC -Kpthread"
4109 if test "$cross_compiling" = yes; then
4110 ac_cv_kpthread=no
4111 else
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4123 int main(){
4124 pthread_t p;
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4126 return 1;
4127 (void)pthread_detach(p);
4128 return 0;
4131 _ACEOF
4132 rm -f conftest$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_kpthread=yes
4144 else
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ( exit $ac_status )
4150 ac_cv_kpthread=no
4152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4154 CC="$ac_save_cc"
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4162 then
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_save_cc="$CC"
4174 CC="$CC -Kthread"
4175 if test "$cross_compiling" = yes; then
4176 ac_cv_kthread=no
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4189 int main(){
4190 pthread_t p;
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4192 return 1;
4193 (void)pthread_detach(p);
4194 return 0;
4197 _ACEOF
4198 rm -f conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_kthread=yes
4210 else
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ( exit $ac_status )
4216 ac_cv_kthread=no
4218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 CC="$ac_save_cc"
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4228 then
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 ac_save_cc="$CC"
4240 CC="$CC -pthread"
4241 if test "$cross_compiling" = yes; then
4242 ac_cv_pthread=no
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4255 int main(){
4256 pthread_t p;
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4258 return 1;
4259 (void)pthread_detach(p);
4260 return 0;
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_pthread=yes
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ( exit $ac_status )
4282 ac_cv_pthread=no
4284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4286 CC="$ac_save_cc"
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4295 ac_cv_cxx_thread=no
4296 if test ! -z "$CXX"
4297 then
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4300 ac_save_cxx="$CXX"
4302 if test "$ac_cv_kpthread" = "yes"
4303 then
4304 CXX="$CXX -Kpthread"
4305 ac_cv_cxx_thread=yes
4306 elif test "$ac_cv_kthread" = "yes"
4307 then
4308 CXX="$CXX -Kthread"
4309 ac_cv_cxx_thread=yes
4310 elif test "$ac_cv_pthread" = "yes"
4311 then
4312 CXX="$CXX -pthread"
4313 ac_cv_cxx_thread=yes
4316 if test $ac_cv_cxx_thread = yes
4317 then
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4319 $CXX -c conftest.$ac_ext 2>&5
4320 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4321 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4322 then
4323 ac_cv_cxx_thread=yes
4324 else
4325 ac_cv_cxx_thread=no
4327 rm -fr conftest*
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4332 CXX="$ac_save_cxx"
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4353 main ()
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_header_stdc=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4458 main ()
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4464 exit(2);
4465 exit (0);
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4480 else
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ( exit $ac_status )
4486 ac_cv_header_stdc=no
4488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4498 _ACEOF
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 _ACEOF
4571 done
4613 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4616 unistd.h utime.h \
4617 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4618 sys/modem.h \
4619 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4620 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4621 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4622 bluetooth/bluetooth.h
4624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4633 else
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_header_compiler=no
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_c_preproc_warn_flag
4700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4701 else
4702 ac_cpp_err=
4704 else
4705 ac_cpp_err=yes
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc=yes
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ac_header_preproc=no
4715 rm -f conftest.err conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4721 yes:no: )
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc=yes
4728 no:yes:* )
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4742 cat <<\_ASBOX
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4746 _ASBOX
4748 sed "s/^/$as_me: WARNING: /" >&2
4750 esac
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 _ACEOF
4769 done
4776 ac_header_dirent=no
4777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <$ac_hdr>
4794 main ()
4796 if ((DIR *) 0)
4797 return 0;
4799 return 0;
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4838 _ACEOF
4840 ac_header_dirent=$ac_hdr; break
4843 done
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 ac_func_search_save_LIBS=$LIBS
4852 ac_cv_search_opendir=no
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 #ifdef __cplusplus
4862 extern "C"
4863 #endif
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4866 char opendir ();
4868 main ()
4870 opendir ();
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir="none required"
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4905 if test "$ac_cv_search_opendir" = no; then
4906 for ac_lib in dir; do
4907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char opendir ();
4923 main ()
4925 opendir ();
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir="-l$ac_lib"
4953 break
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 done
4963 LIBS=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4972 else
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_func_search_save_LIBS=$LIBS
4979 ac_cv_search_opendir=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 #ifdef __cplusplus
4989 extern "C"
4990 #endif
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char opendir ();
4995 main ()
4997 opendir ();
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir="none required"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 if test "$ac_cv_search_opendir" = no; then
5033 for ac_lib in x; do
5034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 #ifdef __cplusplus
5044 extern "C"
5045 #endif
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char opendir ();
5050 main ()
5052 opendir ();
5054 return 0;
5056 _ACEOF
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir="-l$ac_lib"
5080 break
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 done
5090 LIBS=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5114 main ()
5116 return makedev(0, 0);
5118 return 0;
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev=no
5150 rm -f conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5166 else
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_compiler=no
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5222 _ACEOF
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234 else
5235 ac_cpp_err=
5237 else
5238 ac_cpp_err=yes
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_preproc=no
5248 rm -f conftest.err conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254 yes:no: )
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc=yes
5261 no:yes:* )
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5275 cat <<\_ASBOX
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5279 _ASBOX
5281 sed "s/^/$as_me: WARNING: /" >&2
5283 esac
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h <<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5299 _ACEOF
5305 if test $ac_cv_header_sys_mkdev_h = no; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5314 else
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5370 _ACEOF
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_c_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5423 cat <<\_ASBOX
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5427 _ASBOX
5429 sed "s/^/$as_me: WARNING: /" >&2
5431 esac
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h <<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5447 _ACEOF
5456 # On Solaris, term.h requires curses.h
5458 for ac_header in term.h
5460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5474 #include <curses.h>
5475 #endif
5478 #include <$ac_header>
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h <<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 _ACEOF
5520 done
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header in linux/netlink.h
5527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5542 #endif
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5545 #endif
5548 #include <$ac_header>
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5590 done
5593 # checks for typedefs
5594 was_it_defined=no
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <time.h>
5605 _ACEOF
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev/null 2>&1; then
5608 was_it_defined=yes
5609 else
5612 cat >>confdefs.h <<\_ACEOF
5613 #define clock_t long
5614 _ACEOF
5618 rm -f conftest*
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5634 main ()
5636 makedev(0, 0)
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cv_has_makedev=no
5670 rm -f conftest.err conftest.$ac_objext \
5671 conftest$ac_exeext conftest.$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5685 main ()
5687 makedev(0, 0)
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev=yes
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_has_makedev=no
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define _OSF_SOURCE 1
5727 _ACEOF
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5737 _ACEOF
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5748 use_lfs=yes
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5763 main ()
5765 struct rlimit foo;
5767 return 0;
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 sol_lfs_bug=no
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 sol_lfs_bug=yes
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5803 use_lfs=no
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h <<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5812 _ACEOF
5815 cat >>confdefs.h <<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5817 _ACEOF
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h <<\EOF
5823 #if defined(SCO_DS)
5824 #undef _OFF_T
5825 #endif
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5842 main ()
5844 if ((mode_t *) 0)
5845 return 0;
5846 if (sizeof (mode_t))
5847 return 0;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_type_mode_t=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5887 else
5889 cat >>confdefs.h <<_ACEOF
5890 #define mode_t int
5891 _ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5908 main ()
5910 if ((off_t *) 0)
5911 return 0;
5912 if (sizeof (off_t))
5913 return 0;
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_type_off_t=no
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5953 else
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5974 main ()
5976 if ((pid_t *) 0)
5977 return 0;
5978 if (sizeof (pid_t))
5979 return 0;
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t=yes
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ac_cv_type_pid_t=no
6013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6019 else
6021 cat >>confdefs.h <<_ACEOF
6022 #define pid_t int
6023 _ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <signal.h>
6040 #ifdef signal
6041 # undef signal
6042 #endif
6043 #ifdef __cplusplus
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6045 #else
6046 void (*signal ()) ();
6047 #endif
6050 main ()
6052 int i;
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal=void
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_type_signal=int
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h <<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6093 _ACEOF
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6109 main ()
6111 if ((size_t *) 0)
6112 return 0;
6113 if (sizeof (size_t))
6114 return 0;
6116 return 0;
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_cv_type_size_t=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6154 else
6156 cat >>confdefs.h <<_ACEOF
6157 #define size_t unsigned
6158 _ACEOF
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev/null 2>&1; then
6178 ac_cv_type_uid_t=yes
6179 else
6180 ac_cv_type_uid_t=no
6182 rm -f conftest*
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define uid_t int
6191 _ACEOF
6194 cat >>confdefs.h <<\_ACEOF
6195 #define gid_t int
6196 _ACEOF
6200 echo "$as_me:$LINENO: checking for ssize_t" >&5
6201 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6202 if test "${ac_cv_type_ssize_t+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 main ()
6215 if ((ssize_t *) 0)
6216 return 0;
6217 if (sizeof (ssize_t))
6218 return 0;
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_c_werror_flag"
6233 || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_ssize_t=yes
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_cv_type_ssize_t=no
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6255 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6256 if test $ac_cv_type_ssize_t = yes; then
6258 cat >>confdefs.h <<\_ACEOF
6259 #define HAVE_SSIZE_T 1
6260 _ACEOF
6265 # Sizes of various common basic types
6266 # ANSI C requires sizeof(char) == 1, so no need to check it
6267 echo "$as_me:$LINENO: checking for int" >&5
6268 echo $ECHO_N "checking for int... $ECHO_C" >&6
6269 if test "${ac_cv_type_int+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6280 main ()
6282 if ((int *) 0)
6283 return 0;
6284 if (sizeof (int))
6285 return 0;
6287 return 0;
6289 _ACEOF
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest.$ac_objext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_type_int=yes
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_type_int=no
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6322 echo "${ECHO_T}$ac_cv_type_int" >&6
6324 echo "$as_me:$LINENO: checking size of int" >&5
6325 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6326 if test "${ac_cv_sizeof_int+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 if test "$ac_cv_type_int" = yes; then
6330 # The cast to unsigned long works around a bug in the HP C Compiler
6331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6333 # This bug is HP SR number 8606223364.
6334 if test "$cross_compiling" = yes; then
6335 # Depending upon the size, compute the lo and hi bounds.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6344 main ()
6346 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6347 test_array [0] = 0
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_lo=0 ac_mid=0
6376 while :; do
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6385 main ()
6387 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6388 test_array [0] = 0
6391 return 0;
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_hi=$ac_mid; break
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_lo=`expr $ac_mid + 1`
6422 if test $ac_lo -le $ac_mid; then
6423 ac_lo= ac_hi=
6424 break
6426 ac_mid=`expr 2 '*' $ac_mid + 1`
6428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 done
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6442 main ()
6444 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6445 test_array [0] = 0
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6473 ac_hi=-1 ac_mid=-1
6474 while :; do
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 $ac_includes_default
6483 main ()
6485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6486 test_array [0] = 0
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag"
6502 || test ! -s conftest.err'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_lo=$ac_mid; break
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_hi=`expr '(' $ac_mid ')' - 1`
6520 if test $ac_mid -le $ac_hi; then
6521 ac_lo= ac_hi=
6522 break
6524 ac_mid=`expr 2 '*' $ac_mid`
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 done
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_lo= ac_hi=
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537 # Binary search between lo and hi bounds.
6538 while test "x$ac_lo" != "x$ac_hi"; do
6539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6548 main ()
6550 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6551 test_array [0] = 0
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_hi=$ac_mid
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_lo=`expr '(' $ac_mid ')' + 1`
6586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 done
6588 case $ac_lo in
6589 ?*) ac_cv_sizeof_int=$ac_lo;;
6590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6591 See \`config.log' for more details." >&5
6592 echo "$as_me: error: cannot compute sizeof (int), 77
6593 See \`config.log' for more details." >&2;}
6594 { (exit 1); exit 1; }; } ;;
6595 esac
6596 else
6597 if test "$cross_compiling" = yes; then
6598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6599 See \`config.log' for more details." >&5
6600 echo "$as_me: error: cannot run test program while cross compiling
6601 See \`config.log' for more details." >&2;}
6602 { (exit 1); exit 1; }; }
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 long longval () { return (long) (sizeof (int)); }
6612 unsigned long ulongval () { return (long) (sizeof (int)); }
6613 #include <stdio.h>
6614 #include <stdlib.h>
6616 main ()
6619 FILE *f = fopen ("conftest.val", "w");
6620 if (! f)
6621 exit (1);
6622 if (((long) (sizeof (int))) < 0)
6624 long i = longval ();
6625 if (i != ((long) (sizeof (int))))
6626 exit (1);
6627 fprintf (f, "%ld\n", i);
6629 else
6631 unsigned long i = ulongval ();
6632 if (i != ((long) (sizeof (int))))
6633 exit (1);
6634 fprintf (f, "%lu\n", i);
6636 exit (ferror (f) || fclose (f) != 0);
6639 return 0;
6641 _ACEOF
6642 rm -f conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_sizeof_int=`cat conftest.val`
6654 else
6655 echo "$as_me: program exited with status $ac_status" >&5
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 ( exit $ac_status )
6660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6661 See \`config.log' for more details." >&5
6662 echo "$as_me: error: cannot compute sizeof (int), 77
6663 See \`config.log' for more details." >&2;}
6664 { (exit 1); exit 1; }; }
6666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 rm -f conftest.val
6670 else
6671 ac_cv_sizeof_int=0
6674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6675 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6676 cat >>confdefs.h <<_ACEOF
6677 #define SIZEOF_INT $ac_cv_sizeof_int
6678 _ACEOF
6681 echo "$as_me:$LINENO: checking for long" >&5
6682 echo $ECHO_N "checking for long... $ECHO_C" >&6
6683 if test "${ac_cv_type_long+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6694 main ()
6696 if ((long *) 0)
6697 return 0;
6698 if (sizeof (long))
6699 return 0;
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag"
6714 || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_type_long=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_cv_type_long=no
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6736 echo "${ECHO_T}$ac_cv_type_long" >&6
6738 echo "$as_me:$LINENO: checking size of long" >&5
6739 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6740 if test "${ac_cv_sizeof_long+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 if test "$ac_cv_type_long" = yes; then
6744 # The cast to unsigned long works around a bug in the HP C Compiler
6745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6747 # This bug is HP SR number 8606223364.
6748 if test "$cross_compiling" = yes; then
6749 # Depending upon the size, compute the lo and hi bounds.
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6758 main ()
6760 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6761 test_array [0] = 0
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_lo=0 ac_mid=0
6790 while :; do
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 $ac_includes_default
6799 main ()
6801 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6802 test_array [0] = 0
6805 return 0;
6807 _ACEOF
6808 rm -f conftest.$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_hi=$ac_mid; break
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_lo=`expr $ac_mid + 1`
6836 if test $ac_lo -le $ac_mid; then
6837 ac_lo= ac_hi=
6838 break
6840 ac_mid=`expr 2 '*' $ac_mid + 1`
6842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843 done
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6856 main ()
6858 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6859 test_array [0] = 0
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_hi=-1 ac_mid=-1
6888 while :; do
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 $ac_includes_default
6897 main ()
6899 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6900 test_array [0] = 0
6903 return 0;
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6908 (eval $ac_compile) 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -z "$ac_c_werror_flag"
6916 || test ! -s conftest.err'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; } &&
6922 { ac_try='test -s conftest.$ac_objext'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 ac_lo=$ac_mid; break
6929 else
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_hi=`expr '(' $ac_mid ')' - 1`
6934 if test $ac_mid -le $ac_hi; then
6935 ac_lo= ac_hi=
6936 break
6938 ac_mid=`expr 2 '*' $ac_mid`
6940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 done
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_lo= ac_hi=
6948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6951 # Binary search between lo and hi bounds.
6952 while test "x$ac_lo" != "x$ac_hi"; do
6953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6962 main ()
6964 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6965 test_array [0] = 0
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag"
6981 || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_hi=$ac_mid
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_lo=`expr '(' $ac_mid ')' + 1`
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001 done
7002 case $ac_lo in
7003 ?*) ac_cv_sizeof_long=$ac_lo;;
7004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot compute sizeof (long), 77
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; } ;;
7009 esac
7010 else
7011 if test "$cross_compiling" = yes; then
7012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7013 See \`config.log' for more details." >&5
7014 echo "$as_me: error: cannot run test program while cross compiling
7015 See \`config.log' for more details." >&2;}
7016 { (exit 1); exit 1; }; }
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025 long longval () { return (long) (sizeof (long)); }
7026 unsigned long ulongval () { return (long) (sizeof (long)); }
7027 #include <stdio.h>
7028 #include <stdlib.h>
7030 main ()
7033 FILE *f = fopen ("conftest.val", "w");
7034 if (! f)
7035 exit (1);
7036 if (((long) (sizeof (long))) < 0)
7038 long i = longval ();
7039 if (i != ((long) (sizeof (long))))
7040 exit (1);
7041 fprintf (f, "%ld\n", i);
7043 else
7045 unsigned long i = ulongval ();
7046 if (i != ((long) (sizeof (long))))
7047 exit (1);
7048 fprintf (f, "%lu\n", i);
7050 exit (ferror (f) || fclose (f) != 0);
7053 return 0;
7055 _ACEOF
7056 rm -f conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 ac_cv_sizeof_long=`cat conftest.val`
7068 else
7069 echo "$as_me: program exited with status $ac_status" >&5
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ( exit $ac_status )
7074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7075 See \`config.log' for more details." >&5
7076 echo "$as_me: error: cannot compute sizeof (long), 77
7077 See \`config.log' for more details." >&2;}
7078 { (exit 1); exit 1; }; }
7080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7083 rm -f conftest.val
7084 else
7085 ac_cv_sizeof_long=0
7088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7089 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7090 cat >>confdefs.h <<_ACEOF
7091 #define SIZEOF_LONG $ac_cv_sizeof_long
7092 _ACEOF
7095 echo "$as_me:$LINENO: checking for void *" >&5
7096 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7097 if test "${ac_cv_type_void_p+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 if ((void * *) 0)
7111 return 0;
7112 if (sizeof (void *))
7113 return 0;
7115 return 0;
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120 (eval $ac_compile) 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -z "$ac_c_werror_flag"
7128 || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_type_void_p=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_type_void_p=no
7147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7150 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7152 echo "$as_me:$LINENO: checking size of void *" >&5
7153 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7154 if test "${ac_cv_sizeof_void_p+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 if test "$ac_cv_type_void_p" = yes; then
7158 # The cast to unsigned long works around a bug in the HP C Compiler
7159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7161 # This bug is HP SR number 8606223364.
7162 if test "$cross_compiling" = yes; then
7163 # Depending upon the size, compute the lo and hi bounds.
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7172 main ()
7174 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7175 test_array [0] = 0
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_lo=0 ac_mid=0
7204 while :; do
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7213 main ()
7215 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7216 test_array [0] = 0
7219 return 0;
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_hi=$ac_mid; break
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_lo=`expr $ac_mid + 1`
7250 if test $ac_lo -le $ac_mid; then
7251 ac_lo= ac_hi=
7252 break
7254 ac_mid=`expr 2 '*' $ac_mid + 1`
7256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7257 done
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7270 main ()
7272 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7273 test_array [0] = 0
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_hi=-1 ac_mid=-1
7302 while :; do
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7311 main ()
7313 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7314 test_array [0] = 0
7317 return 0;
7319 _ACEOF
7320 rm -f conftest.$ac_objext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -z "$ac_c_werror_flag"
7330 || test ! -s conftest.err'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; } &&
7336 { ac_try='test -s conftest.$ac_objext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_lo=$ac_mid; break
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_hi=`expr '(' $ac_mid ')' - 1`
7348 if test $ac_mid -le $ac_hi; then
7349 ac_lo= ac_hi=
7350 break
7352 ac_mid=`expr 2 '*' $ac_mid`
7354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7355 done
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_lo= ac_hi=
7362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 # Binary search between lo and hi bounds.
7366 while test "x$ac_lo" != "x$ac_hi"; do
7367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7376 main ()
7378 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7379 test_array [0] = 0
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_hi=$ac_mid
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_lo=`expr '(' $ac_mid ')' + 1`
7414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7415 done
7416 case $ac_lo in
7417 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7418 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7419 See \`config.log' for more details." >&5
7420 echo "$as_me: error: cannot compute sizeof (void *), 77
7421 See \`config.log' for more details." >&2;}
7422 { (exit 1); exit 1; }; } ;;
7423 esac
7424 else
7425 if test "$cross_compiling" = yes; then
7426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7427 See \`config.log' for more details." >&5
7428 echo "$as_me: error: cannot run test program while cross compiling
7429 See \`config.log' for more details." >&2;}
7430 { (exit 1); exit 1; }; }
7431 else
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 long longval () { return (long) (sizeof (void *)); }
7440 unsigned long ulongval () { return (long) (sizeof (void *)); }
7441 #include <stdio.h>
7442 #include <stdlib.h>
7444 main ()
7447 FILE *f = fopen ("conftest.val", "w");
7448 if (! f)
7449 exit (1);
7450 if (((long) (sizeof (void *))) < 0)
7452 long i = longval ();
7453 if (i != ((long) (sizeof (void *))))
7454 exit (1);
7455 fprintf (f, "%ld\n", i);
7457 else
7459 unsigned long i = ulongval ();
7460 if (i != ((long) (sizeof (void *))))
7461 exit (1);
7462 fprintf (f, "%lu\n", i);
7464 exit (ferror (f) || fclose (f) != 0);
7467 return 0;
7469 _ACEOF
7470 rm -f conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_sizeof_void_p=`cat conftest.val`
7482 else
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ( exit $ac_status )
7488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7489 See \`config.log' for more details." >&5
7490 echo "$as_me: error: cannot compute sizeof (void *), 77
7491 See \`config.log' for more details." >&2;}
7492 { (exit 1); exit 1; }; }
7494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7497 rm -f conftest.val
7498 else
7499 ac_cv_sizeof_void_p=0
7502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7503 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7504 cat >>confdefs.h <<_ACEOF
7505 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7506 _ACEOF
7509 echo "$as_me:$LINENO: checking for short" >&5
7510 echo $ECHO_N "checking for short... $ECHO_C" >&6
7511 if test "${ac_cv_type_short+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7522 main ()
7524 if ((short *) 0)
7525 return 0;
7526 if (sizeof (short))
7527 return 0;
7529 return 0;
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_type_short=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 ac_cv_type_short=no
7561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7564 echo "${ECHO_T}$ac_cv_type_short" >&6
7566 echo "$as_me:$LINENO: checking size of short" >&5
7567 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7568 if test "${ac_cv_sizeof_short+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 if test "$ac_cv_type_short" = yes; then
7572 # The cast to unsigned long works around a bug in the HP C Compiler
7573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7575 # This bug is HP SR number 8606223364.
7576 if test "$cross_compiling" = yes; then
7577 # Depending upon the size, compute the lo and hi bounds.
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 $ac_includes_default
7586 main ()
7588 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7589 test_array [0] = 0
7592 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7597 (eval $ac_compile) 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -z "$ac_c_werror_flag"
7605 || test ! -s conftest.err'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try='test -s conftest.$ac_objext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 ac_lo=0 ac_mid=0
7618 while :; do
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7627 main ()
7629 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7630 test_array [0] = 0
7633 return 0;
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -z "$ac_c_werror_flag"
7646 || test ! -s conftest.err'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try='test -s conftest.$ac_objext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_hi=$ac_mid; break
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_lo=`expr $ac_mid + 1`
7664 if test $ac_lo -le $ac_mid; then
7665 ac_lo= ac_hi=
7666 break
7668 ac_mid=`expr 2 '*' $ac_mid + 1`
7670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7671 done
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7684 main ()
7686 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7687 test_array [0] = 0
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_hi=-1 ac_mid=-1
7716 while :; do
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7725 main ()
7727 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7728 test_array [0] = 0
7731 return 0;
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_lo=$ac_mid; break
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_hi=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7763 ac_lo= ac_hi=
7764 break
7766 ac_mid=`expr 2 '*' $ac_mid`
7768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7769 done
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7774 ac_lo= ac_hi=
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 # Binary search between lo and hi bounds.
7780 while test "x$ac_lo" != "x$ac_hi"; do
7781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7790 main ()
7792 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7793 test_array [0] = 0
7796 return 0;
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_hi=$ac_mid
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_lo=`expr '(' $ac_mid ')' + 1`
7828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7829 done
7830 case $ac_lo in
7831 ?*) ac_cv_sizeof_short=$ac_lo;;
7832 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7833 See \`config.log' for more details." >&5
7834 echo "$as_me: error: cannot compute sizeof (short), 77
7835 See \`config.log' for more details." >&2;}
7836 { (exit 1); exit 1; }; } ;;
7837 esac
7838 else
7839 if test "$cross_compiling" = yes; then
7840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7841 See \`config.log' for more details." >&5
7842 echo "$as_me: error: cannot run test program while cross compiling
7843 See \`config.log' for more details." >&2;}
7844 { (exit 1); exit 1; }; }
7845 else
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 long longval () { return (long) (sizeof (short)); }
7854 unsigned long ulongval () { return (long) (sizeof (short)); }
7855 #include <stdio.h>
7856 #include <stdlib.h>
7858 main ()
7861 FILE *f = fopen ("conftest.val", "w");
7862 if (! f)
7863 exit (1);
7864 if (((long) (sizeof (short))) < 0)
7866 long i = longval ();
7867 if (i != ((long) (sizeof (short))))
7868 exit (1);
7869 fprintf (f, "%ld\n", i);
7871 else
7873 unsigned long i = ulongval ();
7874 if (i != ((long) (sizeof (short))))
7875 exit (1);
7876 fprintf (f, "%lu\n", i);
7878 exit (ferror (f) || fclose (f) != 0);
7881 return 0;
7883 _ACEOF
7884 rm -f conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_sizeof_short=`cat conftest.val`
7896 else
7897 echo "$as_me: program exited with status $ac_status" >&5
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ( exit $ac_status )
7902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7903 See \`config.log' for more details." >&5
7904 echo "$as_me: error: cannot compute sizeof (short), 77
7905 See \`config.log' for more details." >&2;}
7906 { (exit 1); exit 1; }; }
7908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7911 rm -f conftest.val
7912 else
7913 ac_cv_sizeof_short=0
7916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7917 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7918 cat >>confdefs.h <<_ACEOF
7919 #define SIZEOF_SHORT $ac_cv_sizeof_short
7920 _ACEOF
7923 echo "$as_me:$LINENO: checking for float" >&5
7924 echo $ECHO_N "checking for float... $ECHO_C" >&6
7925 if test "${ac_cv_type_float+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7936 main ()
7938 if ((float *) 0)
7939 return 0;
7940 if (sizeof (float))
7941 return 0;
7943 return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest.$ac_objext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_type_float=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_type_float=no
7975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7978 echo "${ECHO_T}$ac_cv_type_float" >&6
7980 echo "$as_me:$LINENO: checking size of float" >&5
7981 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7982 if test "${ac_cv_sizeof_float+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 if test "$ac_cv_type_float" = yes; then
7986 # The cast to unsigned long works around a bug in the HP C Compiler
7987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7989 # This bug is HP SR number 8606223364.
7990 if test "$cross_compiling" = yes; then
7991 # Depending upon the size, compute the lo and hi bounds.
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
8000 main ()
8002 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8003 test_array [0] = 0
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 ac_lo=0 ac_mid=0
8032 while :; do
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8041 main ()
8043 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8044 test_array [0] = 0
8047 return 0;
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag"
8060 || test ! -s conftest.err'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest.$ac_objext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_hi=$ac_mid; break
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 ac_lo=`expr $ac_mid + 1`
8078 if test $ac_lo -le $ac_mid; then
8079 ac_lo= ac_hi=
8080 break
8082 ac_mid=`expr 2 '*' $ac_mid + 1`
8084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8085 done
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8098 main ()
8100 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8101 test_array [0] = 0
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_c_werror_flag"
8117 || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_hi=-1 ac_mid=-1
8130 while :; do
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8139 main ()
8141 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8142 test_array [0] = 0
8145 return 0;
8147 _ACEOF
8148 rm -f conftest.$ac_objext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8150 (eval $ac_compile) 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 (eval $ac_try) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest.$ac_objext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_lo=$ac_mid; break
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_hi=`expr '(' $ac_mid ')' - 1`
8176 if test $ac_mid -le $ac_hi; then
8177 ac_lo= ac_hi=
8178 break
8180 ac_mid=`expr 2 '*' $ac_mid`
8182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183 done
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_lo= ac_hi=
8190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8193 # Binary search between lo and hi bounds.
8194 while test "x$ac_lo" != "x$ac_hi"; do
8195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8204 main ()
8206 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8207 test_array [0] = 0
8210 return 0;
8212 _ACEOF
8213 rm -f conftest.$ac_objext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8215 (eval $ac_compile) 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_hi=$ac_mid
8236 else
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_lo=`expr '(' $ac_mid ')' + 1`
8242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8243 done
8244 case $ac_lo in
8245 ?*) ac_cv_sizeof_float=$ac_lo;;
8246 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8247 See \`config.log' for more details." >&5
8248 echo "$as_me: error: cannot compute sizeof (float), 77
8249 See \`config.log' for more details." >&2;}
8250 { (exit 1); exit 1; }; } ;;
8251 esac
8252 else
8253 if test "$cross_compiling" = yes; then
8254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8255 See \`config.log' for more details." >&5
8256 echo "$as_me: error: cannot run test program while cross compiling
8257 See \`config.log' for more details." >&2;}
8258 { (exit 1); exit 1; }; }
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 long longval () { return (long) (sizeof (float)); }
8268 unsigned long ulongval () { return (long) (sizeof (float)); }
8269 #include <stdio.h>
8270 #include <stdlib.h>
8272 main ()
8275 FILE *f = fopen ("conftest.val", "w");
8276 if (! f)
8277 exit (1);
8278 if (((long) (sizeof (float))) < 0)
8280 long i = longval ();
8281 if (i != ((long) (sizeof (float))))
8282 exit (1);
8283 fprintf (f, "%ld\n", i);
8285 else
8287 unsigned long i = ulongval ();
8288 if (i != ((long) (sizeof (float))))
8289 exit (1);
8290 fprintf (f, "%lu\n", i);
8292 exit (ferror (f) || fclose (f) != 0);
8295 return 0;
8297 _ACEOF
8298 rm -f conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_sizeof_float=`cat conftest.val`
8310 else
8311 echo "$as_me: program exited with status $ac_status" >&5
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ( exit $ac_status )
8316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8317 See \`config.log' for more details." >&5
8318 echo "$as_me: error: cannot compute sizeof (float), 77
8319 See \`config.log' for more details." >&2;}
8320 { (exit 1); exit 1; }; }
8322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8325 rm -f conftest.val
8326 else
8327 ac_cv_sizeof_float=0
8330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8331 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8332 cat >>confdefs.h <<_ACEOF
8333 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8334 _ACEOF
8337 echo "$as_me:$LINENO: checking for double" >&5
8338 echo $ECHO_N "checking for double... $ECHO_C" >&6
8339 if test "${ac_cv_type_double+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8350 main ()
8352 if ((double *) 0)
8353 return 0;
8354 if (sizeof (double))
8355 return 0;
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_type_double=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_type_double=no
8389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8392 echo "${ECHO_T}$ac_cv_type_double" >&6
8394 echo "$as_me:$LINENO: checking size of double" >&5
8395 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8396 if test "${ac_cv_sizeof_double+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 if test "$ac_cv_type_double" = yes; then
8400 # The cast to unsigned long works around a bug in the HP C Compiler
8401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8403 # This bug is HP SR number 8606223364.
8404 if test "$cross_compiling" = yes; then
8405 # Depending upon the size, compute the lo and hi bounds.
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8414 main ()
8416 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8417 test_array [0] = 0
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_lo=0 ac_mid=0
8446 while :; do
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8455 main ()
8457 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8458 test_array [0] = 0
8461 return 0;
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8466 (eval $ac_compile) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_hi=$ac_mid; break
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_lo=`expr $ac_mid + 1`
8492 if test $ac_lo -le $ac_mid; then
8493 ac_lo= ac_hi=
8494 break
8496 ac_mid=`expr 2 '*' $ac_mid + 1`
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 done
8500 else
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8512 main ()
8514 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8515 test_array [0] = 0
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest.$ac_objext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_hi=-1 ac_mid=-1
8544 while :; do
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8553 main ()
8555 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8556 test_array [0] = 0
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_lo=$ac_mid; break
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_hi=`expr '(' $ac_mid ')' - 1`
8590 if test $ac_mid -le $ac_hi; then
8591 ac_lo= ac_hi=
8592 break
8594 ac_mid=`expr 2 '*' $ac_mid`
8596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597 done
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 ac_lo= ac_hi=
8604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8607 # Binary search between lo and hi bounds.
8608 while test "x$ac_lo" != "x$ac_hi"; do
8609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8618 main ()
8620 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8621 test_array [0] = 0
8624 return 0;
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_hi=$ac_mid
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_lo=`expr '(' $ac_mid ')' + 1`
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657 done
8658 case $ac_lo in
8659 ?*) ac_cv_sizeof_double=$ac_lo;;
8660 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8661 See \`config.log' for more details." >&5
8662 echo "$as_me: error: cannot compute sizeof (double), 77
8663 See \`config.log' for more details." >&2;}
8664 { (exit 1); exit 1; }; } ;;
8665 esac
8666 else
8667 if test "$cross_compiling" = yes; then
8668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8669 See \`config.log' for more details." >&5
8670 echo "$as_me: error: cannot run test program while cross compiling
8671 See \`config.log' for more details." >&2;}
8672 { (exit 1); exit 1; }; }
8673 else
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8681 long longval () { return (long) (sizeof (double)); }
8682 unsigned long ulongval () { return (long) (sizeof (double)); }
8683 #include <stdio.h>
8684 #include <stdlib.h>
8686 main ()
8689 FILE *f = fopen ("conftest.val", "w");
8690 if (! f)
8691 exit (1);
8692 if (((long) (sizeof (double))) < 0)
8694 long i = longval ();
8695 if (i != ((long) (sizeof (double))))
8696 exit (1);
8697 fprintf (f, "%ld\n", i);
8699 else
8701 unsigned long i = ulongval ();
8702 if (i != ((long) (sizeof (double))))
8703 exit (1);
8704 fprintf (f, "%lu\n", i);
8706 exit (ferror (f) || fclose (f) != 0);
8709 return 0;
8711 _ACEOF
8712 rm -f conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_sizeof_double=`cat conftest.val`
8724 else
8725 echo "$as_me: program exited with status $ac_status" >&5
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ( exit $ac_status )
8730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8731 See \`config.log' for more details." >&5
8732 echo "$as_me: error: cannot compute sizeof (double), 77
8733 See \`config.log' for more details." >&2;}
8734 { (exit 1); exit 1; }; }
8736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8739 rm -f conftest.val
8740 else
8741 ac_cv_sizeof_double=0
8744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8745 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8746 cat >>confdefs.h <<_ACEOF
8747 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8748 _ACEOF
8751 echo "$as_me:$LINENO: checking for fpos_t" >&5
8752 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8753 if test "${ac_cv_type_fpos_t+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8764 main ()
8766 if ((fpos_t *) 0)
8767 return 0;
8768 if (sizeof (fpos_t))
8769 return 0;
8771 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776 (eval $ac_compile) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest.$ac_objext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 ac_cv_type_fpos_t=yes
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_cv_type_fpos_t=no
8803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8806 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8808 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8809 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8810 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 if test "$ac_cv_type_fpos_t" = yes; then
8814 # The cast to unsigned long works around a bug in the HP C Compiler
8815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8817 # This bug is HP SR number 8606223364.
8818 if test "$cross_compiling" = yes; then
8819 # Depending upon the size, compute the lo and hi bounds.
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8828 main ()
8830 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8831 test_array [0] = 0
8834 return 0;
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839 (eval $ac_compile) 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag"
8847 || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_lo=0 ac_mid=0
8860 while :; do
8861 cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h. */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8869 main ()
8871 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8872 test_array [0] = 0
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8880 (eval $ac_compile) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest.$ac_objext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_hi=$ac_mid; break
8901 else
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_lo=`expr $ac_mid + 1`
8906 if test $ac_lo -le $ac_mid; then
8907 ac_lo= ac_hi=
8908 break
8910 ac_mid=`expr 2 '*' $ac_mid + 1`
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913 done
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8926 main ()
8928 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8929 test_array [0] = 0
8932 return 0;
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_hi=-1 ac_mid=-1
8958 while :; do
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 $ac_includes_default
8967 main ()
8969 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8970 test_array [0] = 0
8973 return 0;
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_lo=$ac_mid; break
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_hi=`expr '(' $ac_mid ')' - 1`
9004 if test $ac_mid -le $ac_hi; then
9005 ac_lo= ac_hi=
9006 break
9008 ac_mid=`expr 2 '*' $ac_mid`
9010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011 done
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_lo= ac_hi=
9018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9021 # Binary search between lo and hi bounds.
9022 while test "x$ac_lo" != "x$ac_hi"; do
9023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9032 main ()
9034 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9035 test_array [0] = 0
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043 (eval $ac_compile) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest.$ac_objext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_hi=$ac_mid
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_lo=`expr '(' $ac_mid ')' + 1`
9070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9071 done
9072 case $ac_lo in
9073 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9075 See \`config.log' for more details." >&5
9076 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9077 See \`config.log' for more details." >&2;}
9078 { (exit 1); exit 1; }; } ;;
9079 esac
9080 else
9081 if test "$cross_compiling" = yes; then
9082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9083 See \`config.log' for more details." >&5
9084 echo "$as_me: error: cannot run test program while cross compiling
9085 See \`config.log' for more details." >&2;}
9086 { (exit 1); exit 1; }; }
9087 else
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 long longval () { return (long) (sizeof (fpos_t)); }
9096 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9097 #include <stdio.h>
9098 #include <stdlib.h>
9100 main ()
9103 FILE *f = fopen ("conftest.val", "w");
9104 if (! f)
9105 exit (1);
9106 if (((long) (sizeof (fpos_t))) < 0)
9108 long i = longval ();
9109 if (i != ((long) (sizeof (fpos_t))))
9110 exit (1);
9111 fprintf (f, "%ld\n", i);
9113 else
9115 unsigned long i = ulongval ();
9116 if (i != ((long) (sizeof (fpos_t))))
9117 exit (1);
9118 fprintf (f, "%lu\n", i);
9120 exit (ferror (f) || fclose (f) != 0);
9123 return 0;
9125 _ACEOF
9126 rm -f conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_sizeof_fpos_t=`cat conftest.val`
9138 else
9139 echo "$as_me: program exited with status $ac_status" >&5
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ( exit $ac_status )
9144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9145 See \`config.log' for more details." >&5
9146 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9147 See \`config.log' for more details." >&2;}
9148 { (exit 1); exit 1; }; }
9150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9153 rm -f conftest.val
9154 else
9155 ac_cv_sizeof_fpos_t=0
9158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9159 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9160 cat >>confdefs.h <<_ACEOF
9161 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9162 _ACEOF
9165 echo "$as_me:$LINENO: checking for size_t" >&5
9166 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9167 if test "${ac_cv_type_size_t+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9178 main ()
9180 if ((size_t *) 0)
9181 return 0;
9182 if (sizeof (size_t))
9183 return 0;
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_type_size_t=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_type_size_t=no
9217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9220 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9222 echo "$as_me:$LINENO: checking size of size_t" >&5
9223 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9224 if test "${ac_cv_sizeof_size_t+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 if test "$ac_cv_type_size_t" = yes; then
9228 # The cast to unsigned long works around a bug in the HP C Compiler
9229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9231 # This bug is HP SR number 8606223364.
9232 if test "$cross_compiling" = yes; then
9233 # Depending upon the size, compute the lo and hi bounds.
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9242 main ()
9244 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9245 test_array [0] = 0
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_lo=0 ac_mid=0
9274 while :; do
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9283 main ()
9285 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9286 test_array [0] = 0
9289 return 0;
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_hi=$ac_mid; break
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_lo=`expr $ac_mid + 1`
9320 if test $ac_lo -le $ac_mid; then
9321 ac_lo= ac_hi=
9322 break
9324 ac_mid=`expr 2 '*' $ac_mid + 1`
9326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9327 done
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9340 main ()
9342 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9343 test_array [0] = 0
9346 return 0;
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest.$ac_objext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_hi=-1 ac_mid=-1
9372 while :; do
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 $ac_includes_default
9381 main ()
9383 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9384 test_array [0] = 0
9387 return 0;
9389 _ACEOF
9390 rm -f conftest.$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest.$ac_objext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_lo=$ac_mid; break
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_hi=`expr '(' $ac_mid ')' - 1`
9418 if test $ac_mid -le $ac_hi; then
9419 ac_lo= ac_hi=
9420 break
9422 ac_mid=`expr 2 '*' $ac_mid`
9424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9425 done
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_lo= ac_hi=
9432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 # Binary search between lo and hi bounds.
9436 while test "x$ac_lo" != "x$ac_hi"; do
9437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 $ac_includes_default
9446 main ()
9448 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9449 test_array [0] = 0
9452 return 0;
9454 _ACEOF
9455 rm -f conftest.$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_hi=$ac_mid
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_lo=`expr '(' $ac_mid ')' + 1`
9484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9485 done
9486 case $ac_lo in
9487 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9488 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9489 See \`config.log' for more details." >&5
9490 echo "$as_me: error: cannot compute sizeof (size_t), 77
9491 See \`config.log' for more details." >&2;}
9492 { (exit 1); exit 1; }; } ;;
9493 esac
9494 else
9495 if test "$cross_compiling" = yes; then
9496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9497 See \`config.log' for more details." >&5
9498 echo "$as_me: error: cannot run test program while cross compiling
9499 See \`config.log' for more details." >&2;}
9500 { (exit 1); exit 1; }; }
9501 else
9502 cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h. */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 $ac_includes_default
9509 long longval () { return (long) (sizeof (size_t)); }
9510 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9511 #include <stdio.h>
9512 #include <stdlib.h>
9514 main ()
9517 FILE *f = fopen ("conftest.val", "w");
9518 if (! f)
9519 exit (1);
9520 if (((long) (sizeof (size_t))) < 0)
9522 long i = longval ();
9523 if (i != ((long) (sizeof (size_t))))
9524 exit (1);
9525 fprintf (f, "%ld\n", i);
9527 else
9529 unsigned long i = ulongval ();
9530 if (i != ((long) (sizeof (size_t))))
9531 exit (1);
9532 fprintf (f, "%lu\n", i);
9534 exit (ferror (f) || fclose (f) != 0);
9537 return 0;
9539 _ACEOF
9540 rm -f conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_sizeof_size_t=`cat conftest.val`
9552 else
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 ( exit $ac_status )
9558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9559 See \`config.log' for more details." >&5
9560 echo "$as_me: error: cannot compute sizeof (size_t), 77
9561 See \`config.log' for more details." >&2;}
9562 { (exit 1); exit 1; }; }
9564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9567 rm -f conftest.val
9568 else
9569 ac_cv_sizeof_size_t=0
9572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9573 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9574 cat >>confdefs.h <<_ACEOF
9575 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9576 _ACEOF
9580 echo "$as_me:$LINENO: checking for long long support" >&5
9581 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9582 have_long_long=no
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9591 main ()
9593 long long x; x = (long long)0;
9595 return 0;
9597 _ACEOF
9598 rm -f conftest.$ac_objext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag"
9608 || test ! -s conftest.err'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest.$ac_objext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_LONG_LONG 1
9624 _ACEOF
9626 have_long_long=yes
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: $have_long_long" >&5
9635 echo "${ECHO_T}$have_long_long" >&6
9636 if test "$have_long_long" = yes ; then
9637 echo "$as_me:$LINENO: checking for long long" >&5
9638 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9639 if test "${ac_cv_type_long_long+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 $ac_includes_default
9650 main ()
9652 if ((long long *) 0)
9653 return 0;
9654 if (sizeof (long long))
9655 return 0;
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662 (eval $ac_compile) 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_type_long_long=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_cv_type_long_long=no
9689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9692 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9694 echo "$as_me:$LINENO: checking size of long long" >&5
9695 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9696 if test "${ac_cv_sizeof_long_long+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 if test "$ac_cv_type_long_long" = yes; then
9700 # The cast to unsigned long works around a bug in the HP C Compiler
9701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9703 # This bug is HP SR number 8606223364.
9704 if test "$cross_compiling" = yes; then
9705 # Depending upon the size, compute the lo and hi bounds.
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9714 main ()
9716 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9717 test_array [0] = 0
9720 return 0;
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_lo=0 ac_mid=0
9746 while :; do
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9755 main ()
9757 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9758 test_array [0] = 0
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_hi=$ac_mid; break
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_lo=`expr $ac_mid + 1`
9792 if test $ac_lo -le $ac_mid; then
9793 ac_lo= ac_hi=
9794 break
9796 ac_mid=`expr 2 '*' $ac_mid + 1`
9798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9799 done
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9812 main ()
9814 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9815 test_array [0] = 0
9818 return 0;
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest.$ac_objext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_hi=-1 ac_mid=-1
9844 while :; do
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9853 main ()
9855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9856 test_array [0] = 0
9859 return 0;
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest.$ac_objext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_lo=$ac_mid; break
9885 else
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_hi=`expr '(' $ac_mid ')' - 1`
9890 if test $ac_mid -le $ac_hi; then
9891 ac_lo= ac_hi=
9892 break
9894 ac_mid=`expr 2 '*' $ac_mid`
9896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897 done
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_lo= ac_hi=
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9907 # Binary search between lo and hi bounds.
9908 while test "x$ac_lo" != "x$ac_hi"; do
9909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 $ac_includes_default
9918 main ()
9920 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9921 test_array [0] = 0
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_hi=$ac_mid
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_lo=`expr '(' $ac_mid ')' + 1`
9956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9957 done
9958 case $ac_lo in
9959 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9961 See \`config.log' for more details." >&5
9962 echo "$as_me: error: cannot compute sizeof (long long), 77
9963 See \`config.log' for more details." >&2;}
9964 { (exit 1); exit 1; }; } ;;
9965 esac
9966 else
9967 if test "$cross_compiling" = yes; then
9968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9969 See \`config.log' for more details." >&5
9970 echo "$as_me: error: cannot run test program while cross compiling
9971 See \`config.log' for more details." >&2;}
9972 { (exit 1); exit 1; }; }
9973 else
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9981 long longval () { return (long) (sizeof (long long)); }
9982 unsigned long ulongval () { return (long) (sizeof (long long)); }
9983 #include <stdio.h>
9984 #include <stdlib.h>
9986 main ()
9989 FILE *f = fopen ("conftest.val", "w");
9990 if (! f)
9991 exit (1);
9992 if (((long) (sizeof (long long))) < 0)
9994 long i = longval ();
9995 if (i != ((long) (sizeof (long long))))
9996 exit (1);
9997 fprintf (f, "%ld\n", i);
9999 else
10001 unsigned long i = ulongval ();
10002 if (i != ((long) (sizeof (long long))))
10003 exit (1);
10004 fprintf (f, "%lu\n", i);
10006 exit (ferror (f) || fclose (f) != 0);
10009 return 0;
10011 _ACEOF
10012 rm -f conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_sizeof_long_long=`cat conftest.val`
10024 else
10025 echo "$as_me: program exited with status $ac_status" >&5
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ( exit $ac_status )
10030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10031 See \`config.log' for more details." >&5
10032 echo "$as_me: error: cannot compute sizeof (long long), 77
10033 See \`config.log' for more details." >&2;}
10034 { (exit 1); exit 1; }; }
10036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10039 rm -f conftest.val
10040 else
10041 ac_cv_sizeof_long_long=0
10044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10045 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10046 cat >>confdefs.h <<_ACEOF
10047 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10048 _ACEOF
10053 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10054 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10055 have_uintptr_t=no
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10064 main ()
10066 uintptr_t x; x = (uintptr_t)0;
10068 return 0;
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest.$ac_objext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10095 cat >>confdefs.h <<\_ACEOF
10096 #define HAVE_UINTPTR_T 1
10097 _ACEOF
10099 have_uintptr_t=yes
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10107 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10108 echo "${ECHO_T}$have_uintptr_t" >&6
10109 if test "$have_uintptr_t" = yes ; then
10110 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10111 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10112 if test "${ac_cv_type_uintptr_t+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10123 main ()
10125 if ((uintptr_t *) 0)
10126 return 0;
10127 if (sizeof (uintptr_t))
10128 return 0;
10130 return 0;
10132 _ACEOF
10133 rm -f conftest.$ac_objext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135 (eval $ac_compile) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_type_uintptr_t=yes
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_type_uintptr_t=no
10162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10165 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10167 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10168 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10169 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 if test "$ac_cv_type_uintptr_t" = yes; then
10173 # The cast to unsigned long works around a bug in the HP C Compiler
10174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10176 # This bug is HP SR number 8606223364.
10177 if test "$cross_compiling" = yes; then
10178 # Depending upon the size, compute the lo and hi bounds.
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 $ac_includes_default
10187 main ()
10189 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10190 test_array [0] = 0
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest.$ac_objext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_lo=0 ac_mid=0
10219 while :; do
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 $ac_includes_default
10228 main ()
10230 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10231 test_array [0] = 0
10234 return 0;
10236 _ACEOF
10237 rm -f conftest.$ac_objext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -z "$ac_c_werror_flag"
10247 || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest.$ac_objext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_hi=$ac_mid; break
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_lo=`expr $ac_mid + 1`
10265 if test $ac_lo -le $ac_mid; then
10266 ac_lo= ac_hi=
10267 break
10269 ac_mid=`expr 2 '*' $ac_mid + 1`
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 done
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10285 main ()
10287 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10288 test_array [0] = 0
10291 return 0;
10293 _ACEOF
10294 rm -f conftest.$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_hi=-1 ac_mid=-1
10317 while :; do
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10326 main ()
10328 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10329 test_array [0] = 0
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest.$ac_objext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_lo=$ac_mid; break
10358 else
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_hi=`expr '(' $ac_mid ')' - 1`
10363 if test $ac_mid -le $ac_hi; then
10364 ac_lo= ac_hi=
10365 break
10367 ac_mid=`expr 2 '*' $ac_mid`
10369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10370 done
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_lo= ac_hi=
10377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380 # Binary search between lo and hi bounds.
10381 while test "x$ac_lo" != "x$ac_hi"; do
10382 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10383 cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h. */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 $ac_includes_default
10391 main ()
10393 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10394 test_array [0] = 0
10397 return 0;
10399 _ACEOF
10400 rm -f conftest.$ac_objext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_hi=$ac_mid
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_lo=`expr '(' $ac_mid ')' + 1`
10429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10430 done
10431 case $ac_lo in
10432 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10433 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10434 See \`config.log' for more details." >&5
10435 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10436 See \`config.log' for more details." >&2;}
10437 { (exit 1); exit 1; }; } ;;
10438 esac
10439 else
10440 if test "$cross_compiling" = yes; then
10441 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10442 See \`config.log' for more details." >&5
10443 echo "$as_me: error: cannot run test program while cross compiling
10444 See \`config.log' for more details." >&2;}
10445 { (exit 1); exit 1; }; }
10446 else
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 $ac_includes_default
10454 long longval () { return (long) (sizeof (uintptr_t)); }
10455 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10456 #include <stdio.h>
10457 #include <stdlib.h>
10459 main ()
10462 FILE *f = fopen ("conftest.val", "w");
10463 if (! f)
10464 exit (1);
10465 if (((long) (sizeof (uintptr_t))) < 0)
10467 long i = longval ();
10468 if (i != ((long) (sizeof (uintptr_t))))
10469 exit (1);
10470 fprintf (f, "%ld\n", i);
10472 else
10474 unsigned long i = ulongval ();
10475 if (i != ((long) (sizeof (uintptr_t))))
10476 exit (1);
10477 fprintf (f, "%lu\n", i);
10479 exit (ferror (f) || fclose (f) != 0);
10482 return 0;
10484 _ACEOF
10485 rm -f conftest$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10497 else
10498 echo "$as_me: program exited with status $ac_status" >&5
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ( exit $ac_status )
10503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10504 See \`config.log' for more details." >&5
10505 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10506 See \`config.log' for more details." >&2;}
10507 { (exit 1); exit 1; }; }
10509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10512 rm -f conftest.val
10513 else
10514 ac_cv_sizeof_uintptr_t=0
10517 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10518 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10519 cat >>confdefs.h <<_ACEOF
10520 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10521 _ACEOF
10526 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10527 echo "$as_me:$LINENO: checking size of off_t" >&5
10528 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10529 if test "${ac_cv_sizeof_off_t+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 if test "$cross_compiling" = yes; then
10533 ac_cv_sizeof_off_t=4
10534 else
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <stdio.h>
10542 #include <sys/types.h>
10543 main()
10545 FILE *f=fopen("conftestval", "w");
10546 if (!f) exit(1);
10547 fprintf(f, "%d\n", sizeof(off_t));
10548 exit(0);
10550 _ACEOF
10551 rm -f conftest$ac_exeext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_sizeof_off_t=`cat conftestval`
10563 else
10564 echo "$as_me: program exited with status $ac_status" >&5
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ( exit $ac_status )
10569 ac_cv_sizeof_off_t=0
10571 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10577 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10579 cat >>confdefs.h <<_ACEOF
10580 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10581 _ACEOF
10584 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10585 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10586 if test "$have_long_long" = yes -a \
10587 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10588 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_LARGEFILE_SUPPORT 1
10592 _ACEOF
10594 echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6
10596 else
10597 echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10601 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10602 echo "$as_me:$LINENO: checking size of time_t" >&5
10603 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10604 if test "${ac_cv_sizeof_time_t+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607 if test "$cross_compiling" = yes; then
10608 ac_cv_sizeof_time_t=4
10609 else
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #include <stdio.h>
10617 #include <time.h>
10618 main()
10620 FILE *f=fopen("conftestval", "w");
10621 if (!f) exit(1);
10622 fprintf(f, "%d\n", sizeof(time_t));
10623 exit(0);
10625 _ACEOF
10626 rm -f conftest$ac_exeext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_sizeof_time_t=`cat conftestval`
10638 else
10639 echo "$as_me: program exited with status $ac_status" >&5
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ( exit $ac_status )
10644 ac_cv_sizeof_time_t=0
10646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10651 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10652 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10654 cat >>confdefs.h <<_ACEOF
10655 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10656 _ACEOF
10660 # if have pthread_t then define SIZEOF_PTHREAD_T
10661 ac_save_cc="$CC"
10662 if test "$ac_cv_kpthread" = "yes"
10663 then CC="$CC -Kpthread"
10664 elif test "$ac_cv_kthread" = "yes"
10665 then CC="$CC -Kthread"
10666 elif test "$ac_cv_pthread" = "yes"
10667 then CC="$CC -pthread"
10669 echo "$as_me:$LINENO: checking for pthread_t" >&5
10670 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10671 have_pthread_t=no
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <pthread.h>
10680 main ()
10682 pthread_t x; x = *(pthread_t*)0;
10684 return 0;
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag"
10697 || test ! -s conftest.err'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 have_pthread_t=yes
10710 else
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10716 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10717 echo "${ECHO_T}$have_pthread_t" >&6
10718 if test "$have_pthread_t" = yes ; then
10719 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10720 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10721 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10722 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 if test "$cross_compiling" = yes; then
10726 ac_cv_sizeof_pthread_t=4
10727 else
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 #include <stdio.h>
10735 #include <pthread.h>
10736 main()
10738 FILE *f=fopen("conftestval", "w");
10739 if (!f) exit(1);
10740 fprintf(f, "%d\n", sizeof(pthread_t));
10741 exit(0);
10743 _ACEOF
10744 rm -f conftest$ac_exeext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746 (eval $ac_link) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_cv_sizeof_pthread_t=`cat conftestval`
10756 else
10757 echo "$as_me: program exited with status $ac_status" >&5
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ( exit $ac_status )
10762 ac_cv_sizeof_pthread_t=0
10764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10770 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10772 cat >>confdefs.h <<_ACEOF
10773 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10774 _ACEOF
10777 CC="$ac_save_cc"
10779 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10780 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10781 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10782 if test "${enable_toolbox_glue+set}" = set; then
10783 enableval="$enable_toolbox_glue"
10787 if test -z "$enable_toolbox_glue"
10788 then
10789 case $ac_sys_system/$ac_sys_release in
10790 Darwin/*)
10791 enable_toolbox_glue="yes";;
10793 enable_toolbox_glue="no";;
10794 esac
10796 case "$enable_toolbox_glue" in
10797 yes)
10798 extra_machdep_objs="Python/mactoolboxglue.o"
10799 extra_undefs="-u _PyMac_Error"
10801 cat >>confdefs.h <<\_ACEOF
10802 #define USE_TOOLBOX_OBJECT_GLUE 1
10803 _ACEOF
10807 extra_machdep_objs=""
10808 extra_undefs=""
10810 esac
10811 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10812 echo "${ECHO_T}$enable_toolbox_glue" >&6
10815 case $ac_sys_system/$ac_sys_release in
10816 Darwin/[01234567].*)
10817 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10819 Darwin/*)
10820 OTHER_LIBTOOL_OPT=""
10822 esac
10825 case $ac_sys_system/$ac_sys_release in
10826 Darwin/[01234567].*)
10827 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`"
10828 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10829 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10830 Darwin/*)
10831 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10832 if test ${gcc_version} '<' 4.0
10833 then
10834 LIBTOOL_CRUFT="-lcc_dynamic"
10835 else
10836 LIBTOOL_CRUFT=""
10838 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10839 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10840 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10841 esac
10843 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10844 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10845 if test "$enable_framework"
10846 then
10847 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10848 # -F. is needed to allow linking to the framework while
10849 # in the build location.
10851 cat >>confdefs.h <<\_ACEOF
10852 #define WITH_NEXT_FRAMEWORK 1
10853 _ACEOF
10855 echo "$as_me:$LINENO: result: yes" >&5
10856 echo "${ECHO_T}yes" >&6
10857 else
10858 echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10862 echo "$as_me:$LINENO: checking for dyld" >&5
10863 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10864 case $ac_sys_system/$ac_sys_release in
10865 Darwin/*)
10867 cat >>confdefs.h <<\_ACEOF
10868 #define WITH_DYLD 1
10869 _ACEOF
10871 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10872 echo "${ECHO_T}always on for Darwin" >&6
10875 echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6
10878 esac
10880 # Set info about shared libraries.
10886 # SO is the extension of shared libraries `(including the dot!)
10887 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10888 echo "$as_me:$LINENO: checking SO" >&5
10889 echo $ECHO_N "checking SO... $ECHO_C" >&6
10890 if test -z "$SO"
10891 then
10892 case $ac_sys_system in
10893 hp*|HP*) SO=.sl;;
10894 CYGWIN*) SO=.dll;;
10895 *) SO=.so;;
10896 esac
10897 else
10898 # this might also be a termcap variable, see #610332
10899 echo
10900 echo '====================================================================='
10901 echo '+ +'
10902 echo '+ WARNING: You have set SO in your environment. +'
10903 echo '+ Do you really mean to change the extension for shared libraries? +'
10904 echo '+ Continuing in 10 seconds to let you to ponder. +'
10905 echo '+ +'
10906 echo '====================================================================='
10907 sleep 10
10909 echo "$as_me:$LINENO: result: $SO" >&5
10910 echo "${ECHO_T}$SO" >&6
10911 # LDSHARED is the ld *command* used to create shared library
10912 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10913 # (Shared libraries in this instance are shared modules to be loaded into
10914 # Python, as opposed to building Python itself as a shared library.)
10915 echo "$as_me:$LINENO: checking LDSHARED" >&5
10916 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10917 if test -z "$LDSHARED"
10918 then
10919 case $ac_sys_system/$ac_sys_release in
10920 AIX*)
10921 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10922 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10924 BeOS*)
10925 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10926 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10928 IRIX/5*) LDSHARED="ld -shared";;
10929 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10930 SunOS/5*)
10931 if test "$GCC" = "yes"
10932 then LDSHARED='$(CC) -shared'
10933 else LDSHARED='$(CC) -G';
10934 fi ;;
10935 hp*|HP*) LDSHARED="ld -b";;
10936 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10937 Darwin/1.3*)
10938 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10939 if test "$enable_framework" ; then
10940 # Link against the framework. All externals should be defined.
10941 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10942 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10943 else
10944 # No framework. Ignore undefined symbols, assuming they come from Python
10945 LDSHARED="$LDSHARED -undefined suppress"
10946 fi ;;
10947 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10948 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10949 if test "$enable_framework" ; then
10950 # Link against the framework. All externals should be defined.
10951 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10952 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10953 else
10954 # No framework, use the Python app as bundle-loader
10955 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10956 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10957 fi ;;
10958 Darwin/*)
10959 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10960 # This allows an extension to be used in any Python
10961 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10962 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10963 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10964 then
10965 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10966 BLDSHARED="$LDSHARED"
10967 else
10968 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10969 if test "$enable_framework" ; then
10970 # Link against the framework. All externals should be defined.
10971 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10972 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10973 else
10974 # No framework, use the Python app as bundle-loader
10975 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10976 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10980 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10981 BSD/OS*/4*) LDSHARED="gcc -shared";;
10982 OpenBSD*|FreeBSD*)
10983 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10984 then
10985 LDSHARED="$CC -shared ${LDFLAGS}"
10986 else
10987 LDSHARED="ld -Bshareable ${LDFLAGS}"
10988 fi;;
10989 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
10990 OpenUNIX*|UnixWare*)
10991 if test "$GCC" = "yes"
10992 then LDSHARED='$(CC) -shared'
10993 else LDSHARED='$(CC) -G'
10994 fi;;
10995 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
10996 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10997 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
10998 atheos*) LDSHARED="gcc -shared";;
10999 *) LDSHARED="ld";;
11000 esac
11002 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11003 echo "${ECHO_T}$LDSHARED" >&6
11004 BLDSHARED=${BLDSHARED-$LDSHARED}
11005 # CCSHARED are the C *flags* used to create objects to go into a shared
11006 # library (module) -- this is only needed for a few systems
11007 echo "$as_me:$LINENO: checking CCSHARED" >&5
11008 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11009 if test -z "$CCSHARED"
11010 then
11011 case $ac_sys_system/$ac_sys_release in
11012 SunOS*) if test "$GCC" = yes;
11013 then CCSHARED="-fPIC";
11014 else CCSHARED="-xcode=pic32";
11015 fi;;
11016 hp*|HP*) if test "$GCC" = yes;
11017 then CCSHARED="-fPIC";
11018 else CCSHARED="+z";
11019 fi;;
11020 Linux*|GNU*) CCSHARED="-fPIC";;
11021 BSD/OS*/4*) CCSHARED="-fpic";;
11022 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11023 OpenUNIX*|UnixWare*)
11024 if test "$GCC" = "yes"
11025 then CCSHARED="-fPIC"
11026 else CCSHARED="-KPIC"
11027 fi;;
11028 SCO_SV*)
11029 if test "$GCC" = "yes"
11030 then CCSHARED="-fPIC"
11031 else CCSHARED="-Kpic -belf"
11032 fi;;
11033 Monterey*) CCSHARED="-G";;
11034 IRIX*/6*) case $CC in
11035 *gcc*) CCSHARED="-shared";;
11036 *) CCSHARED="";;
11037 esac;;
11038 atheos*) CCSHARED="-fPIC";;
11039 esac
11041 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11042 echo "${ECHO_T}$CCSHARED" >&6
11043 # LINKFORSHARED are the flags passed to the $(CC) command that links
11044 # the python executable -- this is only needed for a few systems
11045 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11046 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11047 if test -z "$LINKFORSHARED"
11048 then
11049 case $ac_sys_system/$ac_sys_release in
11050 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11051 hp*|HP*)
11052 LINKFORSHARED="-Wl,-E -Wl,+s";;
11053 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11054 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11055 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11056 # -u libsys_s pulls in all symbols in libsys
11057 Darwin/*)
11058 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11059 # which is
11060 # not used by the core itself but which needs to be in the core so
11061 # that dynamically loaded extension modules have access to it.
11062 # -prebind is no longer used, because it actually seems to give a
11063 # slowdown in stead of a speedup, maybe due to the large number of
11064 # dynamic loads Python does.
11066 LINKFORSHARED="$extra_undefs"
11067 if test "$enable_framework"
11068 then
11069 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11071 LINKFORSHARED="$LINKFORSHARED";;
11072 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11073 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11074 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11075 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11076 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11077 then
11078 LINKFORSHARED="-Wl,--export-dynamic"
11079 fi;;
11080 SunOS/5*) case $CC in
11081 *gcc*)
11082 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11083 then
11084 LINKFORSHARED="-Xlinker --export-dynamic"
11085 fi;;
11086 esac;;
11087 CYGWIN*)
11088 if test $enable_shared = "no"
11089 then
11090 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11091 fi;;
11092 esac
11094 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11095 echo "${ECHO_T}$LINKFORSHARED" >&6
11098 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11099 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11100 if test ! "$LIBRARY" = "$LDLIBRARY"
11101 then
11102 case $ac_sys_system in
11103 CYGWIN*)
11104 # Cygwin needs CCSHARED when building extension DLLs
11105 # but not when building the interpreter DLL.
11106 CFLAGSFORSHARED='';;
11108 CFLAGSFORSHARED='$(CCSHARED)'
11109 esac
11111 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11112 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11114 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11115 # library (with --enable-shared).
11116 # For platforms on which shared libraries are not allowed to have unresolved
11117 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11118 # if it is not required, since it creates a dependency of the shared library
11119 # to LIBS. This, in turn, means that applications linking the shared libpython
11120 # don't need to link LIBS explicitly. The default should be only changed
11121 # on systems where this approach causes problems.
11123 echo "$as_me:$LINENO: checking SHLIBS" >&5
11124 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11125 case "$ac_sys_system" in
11127 SHLIBS='$(LIBS)';;
11128 esac
11129 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11130 echo "${ECHO_T}$SHLIBS" >&6
11133 # checks for libraries
11135 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-ldl $LIBS"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char dlopen ();
11157 main ()
11159 dlopen ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_c_werror_flag"
11174 || test ! -s conftest.err'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_lib_dl_dlopen=yes
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_cv_lib_dl_dlopen=no
11193 rm -f conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11199 if test $ac_cv_lib_dl_dlopen = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define HAVE_LIBDL 1
11202 _ACEOF
11204 LIBS="-ldl $LIBS"
11207 # Dynamic linking for SunOS/Solaris and SYSV
11209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-ldld $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11223 /* Override any gcc2 internal prototype to avoid an error. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char shl_load ();
11231 main ()
11233 shl_load ();
11235 return 0;
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_dld_shl_load=yes
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_cv_lib_dld_shl_load=no
11267 rm -f conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11273 if test $ac_cv_lib_dld_shl_load = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define HAVE_LIBDLD 1
11276 _ACEOF
11278 LIBS="-ldld $LIBS"
11281 # Dynamic linking for HP-UX
11283 # only check for sem_ini if thread support is requested
11284 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11285 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11286 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11287 if test "${ac_cv_search_sem_init+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 ac_func_search_save_LIBS=$LIBS
11291 ac_cv_search_sem_init=no
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char sem_init ();
11307 main ()
11309 sem_init ();
11311 return 0;
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_search_sem_init="none required"
11337 else
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11342 rm -f conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 if test "$ac_cv_search_sem_init" = no; then
11345 for ac_lib in pthread rt posix4; do
11346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11354 /* Override any gcc2 internal prototype to avoid an error. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char sem_init ();
11362 main ()
11364 sem_init ();
11366 return 0;
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_search_sem_init="-l$ac_lib"
11392 break
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11398 rm -f conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 done
11402 LIBS=$ac_func_search_save_LIBS
11404 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11405 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11406 if test "$ac_cv_search_sem_init" != no; then
11407 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11410 # 'Real Time' functions on Solaris
11411 # posix4 on Solaris 2.6
11412 # pthread (first!) on Linux
11415 # check if we need libintl for locale functions
11416 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11417 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11418 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-lintl $LIBS"
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 /* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436 char textdomain ();
11438 main ()
11440 textdomain ();
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_lib_intl_textdomain=yes
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 ac_cv_lib_intl_textdomain=no
11474 rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11479 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11480 if test $ac_cv_lib_intl_textdomain = yes; then
11482 cat >>confdefs.h <<\_ACEOF
11483 #define WITH_LIBINTL 1
11484 _ACEOF
11489 # checks for system dependent C++ extensions support
11490 case "$ac_sys_system" in
11491 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11492 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h. */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 #include "/usr/lpp/xlC/include/load.h"
11501 main ()
11503 loadAndInit("", 0, "")
11505 return 0;
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11531 cat >>confdefs.h <<\_ACEOF
11532 #define AIX_GENUINE_CPLUSPLUS 1
11533 _ACEOF
11535 echo "$as_me:$LINENO: result: yes" >&5
11536 echo "${ECHO_T}yes" >&6
11537 else
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 echo "$as_me:$LINENO: result: no" >&5
11542 echo "${ECHO_T}no" >&6
11544 rm -f conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext;;
11546 *) ;;
11547 esac
11549 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11550 # BeOS' sockets are stashed in libnet.
11551 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11552 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11553 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-lnsl $LIBS"
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11565 /* Override any gcc2 internal prototype to avoid an error. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char t_open ();
11573 main ()
11575 t_open ();
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -z "$ac_c_werror_flag"
11590 || test ! -s conftest.err'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_lib_nsl_t_open=yes
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_cv_lib_nsl_t_open=no
11609 rm -f conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11613 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11614 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11615 if test $ac_cv_lib_nsl_t_open = yes; then
11616 LIBS="-lnsl $LIBS"
11618 # SVR4
11619 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11620 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11621 if test "${ac_cv_lib_socket_socket+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lsocket $LIBS $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any gcc2 internal prototype to avoid an error. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char socket ();
11641 main ()
11643 socket ();
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_lib_socket_socket=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_cv_lib_socket_socket=no
11677 rm -f conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11682 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11683 if test $ac_cv_lib_socket_socket = yes; then
11684 LIBS="-lsocket $LIBS"
11686 # SVR4 sockets
11688 case "$ac_sys_system" in
11689 BeOS*)
11690 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11691 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11692 if test "${ac_cv_lib_net_socket+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lnet $LIBS $LIBS"
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11704 /* Override any gcc2 internal prototype to avoid an error. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 /* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710 char socket ();
11712 main ()
11714 socket ();
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_net_socket=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_lib_net_socket=no
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LIBS=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11753 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11754 if test $ac_cv_lib_net_socket = yes; then
11755 LIBS="-lnet $LIBS"
11757 # BeOS
11759 esac
11761 echo "$as_me:$LINENO: checking for --with-libs" >&5
11762 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11764 # Check whether --with-libs or --without-libs was given.
11765 if test "${with_libs+set}" = set; then
11766 withval="$with_libs"
11768 echo "$as_me:$LINENO: result: $withval" >&5
11769 echo "${ECHO_T}$withval" >&6
11770 LIBS="$withval $LIBS"
11772 else
11773 echo "$as_me:$LINENO: result: no" >&5
11774 echo "${ECHO_T}no" >&6
11777 # Determine if signalmodule should be used.
11780 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11781 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11783 # Check whether --with-signal-module or --without-signal-module was given.
11784 if test "${with_signal_module+set}" = set; then
11785 withval="$with_signal_module"
11789 if test -z "$with_signal_module"
11790 then with_signal_module="yes"
11792 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11793 echo "${ECHO_T}$with_signal_module" >&6
11795 if test "${with_signal_module}" = "yes"; then
11796 USE_SIGNAL_MODULE=""
11797 SIGNAL_OBJS=""
11798 else
11799 USE_SIGNAL_MODULE="#"
11800 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11803 # This is used to generate Setup.config
11805 USE_THREAD_MODULE=""
11807 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11808 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11811 # Check whether --with-dec-threads or --without-dec-threads was given.
11812 if test "${with_dec_threads+set}" = set; then
11813 withval="$with_dec_threads"
11815 echo "$as_me:$LINENO: result: $withval" >&5
11816 echo "${ECHO_T}$withval" >&6
11817 LDLAST=-threads
11818 if test "${with_thread+set}" != set; then
11819 with_thread="$withval";
11821 else
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11826 # Templates for things AC_DEFINEd more than once.
11827 # For a single AC_DEFINE, no template is needed.
11835 echo "$as_me:$LINENO: checking for --with-threads" >&5
11836 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11838 # Check whether --with-threads or --without-threads was given.
11839 if test "${with_threads+set}" = set; then
11840 withval="$with_threads"
11844 # --with-thread is deprecated, but check for it anyway
11846 # Check whether --with-thread or --without-thread was given.
11847 if test "${with_thread+set}" = set; then
11848 withval="$with_thread"
11849 with_threads=$with_thread
11852 if test -z "$with_threads"
11853 then with_threads="yes"
11855 echo "$as_me:$LINENO: result: $with_threads" >&5
11856 echo "${ECHO_T}$with_threads" >&6
11859 if test "$with_threads" = "no"
11860 then
11861 USE_THREAD_MODULE="#"
11862 elif test "$ac_cv_pthread_is_default" = yes
11863 then
11864 cat >>confdefs.h <<\_ACEOF
11865 #define WITH_THREAD 1
11866 _ACEOF
11868 # Defining _REENTRANT on system with POSIX threads should not hurt.
11869 cat >>confdefs.h <<\_ACEOF
11870 #define _REENTRANT 1
11871 _ACEOF
11873 posix_threads=yes
11874 THREADOBJ="Python/thread.o"
11875 elif test "$ac_cv_kpthread" = "yes"
11876 then
11877 CC="$CC -Kpthread"
11878 if test "$ac_cv_cxx_thread" = "yes"; then
11879 CXX="$CXX -Kpthread"
11881 cat >>confdefs.h <<\_ACEOF
11882 #define WITH_THREAD 1
11883 _ACEOF
11885 posix_threads=yes
11886 THREADOBJ="Python/thread.o"
11887 elif test "$ac_cv_kthread" = "yes"
11888 then
11889 CC="$CC -Kthread"
11890 if test "$ac_cv_cxx_thread" = "yes"; then
11891 CXX="$CXX -Kthread"
11893 cat >>confdefs.h <<\_ACEOF
11894 #define WITH_THREAD 1
11895 _ACEOF
11897 posix_threads=yes
11898 THREADOBJ="Python/thread.o"
11899 elif test "$ac_cv_pthread" = "yes"
11900 then
11901 CC="$CC -pthread"
11902 if test "$ac_cv_cxx_thread" = "yes"; then
11903 CXX="$CXX -pthread"
11905 cat >>confdefs.h <<\_ACEOF
11906 #define WITH_THREAD 1
11907 _ACEOF
11909 posix_threads=yes
11910 THREADOBJ="Python/thread.o"
11911 else
11912 if test ! -z "$with_threads" -a -d "$with_threads"
11913 then LDFLAGS="$LDFLAGS -L$with_threads"
11915 if test ! -z "$withval" -a -d "$withval"
11916 then LDFLAGS="$LDFLAGS -L$withval"
11919 # According to the POSIX spec, a pthreads implementation must
11920 # define _POSIX_THREADS in unistd.h. Some apparently don't
11921 # (e.g. gnu pth with pthread emulation)
11922 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11923 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11931 #include <unistd.h>
11932 #ifdef _POSIX_THREADS
11934 #endif
11936 _ACEOF
11937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11938 $EGREP "yes" >/dev/null 2>&1; then
11939 unistd_defines_pthreads=yes
11940 else
11941 unistd_defines_pthreads=no
11943 rm -f conftest*
11945 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11946 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11948 cat >>confdefs.h <<\_ACEOF
11949 #define _REENTRANT 1
11950 _ACEOF
11952 if test "${ac_cv_header_cthreads_h+set}" = set; then
11953 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11954 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11955 if test "${ac_cv_header_cthreads_h+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11959 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11960 else
11961 # Is the header compilable?
11962 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11963 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 $ac_includes_default
11971 #include <cthreads.h>
11972 _ACEOF
11973 rm -f conftest.$ac_objext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_header_compiler=no
12002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12004 echo "${ECHO_T}$ac_header_compiler" >&6
12006 # Is the header present?
12007 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12008 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <cthreads.h>
12016 _ACEOF
12017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 else
12029 ac_cpp_err=
12031 else
12032 ac_cpp_err=yes
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc=yes
12036 else
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_header_preproc=no
12042 rm -f conftest.err conftest.$ac_ext
12043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 yes:no: )
12049 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12052 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12055 no:yes:* )
12056 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12057 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12059 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12061 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12063 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12065 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12067 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12069 cat <<\_ASBOX
12070 ## ------------------------------------------------ ##
12071 ## Report this to http://www.python.org/python-bugs ##
12072 ## ------------------------------------------------ ##
12073 _ASBOX
12075 sed "s/^/$as_me: WARNING: /" >&2
12077 esac
12078 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12079 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12080 if test "${ac_cv_header_cthreads_h+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 ac_cv_header_cthreads_h=$ac_header_preproc
12085 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12086 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12089 if test $ac_cv_header_cthreads_h = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define WITH_THREAD 1
12092 _ACEOF
12094 cat >>confdefs.h <<\_ACEOF
12095 #define C_THREADS 1
12096 _ACEOF
12099 cat >>confdefs.h <<\_ACEOF
12100 #define HURD_C_THREADS 1
12101 _ACEOF
12103 LIBS="$LIBS -lthreads"
12104 THREADOBJ="Python/thread.o"
12105 else
12107 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12108 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12109 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12110 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12115 else
12116 # Is the header compilable?
12117 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12118 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12126 #include <mach/cthreads.h>
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_compiler=no
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6
12161 # Is the header present?
12162 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12163 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <mach/cthreads.h>
12171 _ACEOF
12172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12186 else
12187 ac_cpp_err=yes
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_header_preproc=no
12197 rm -f conftest.err conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 yes:no: )
12204 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc=yes
12210 no:yes:* )
12211 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12224 cat <<\_ASBOX
12225 ## ------------------------------------------------ ##
12226 ## Report this to http://www.python.org/python-bugs ##
12227 ## ------------------------------------------------ ##
12228 _ASBOX
12230 sed "s/^/$as_me: WARNING: /" >&2
12232 esac
12233 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12234 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12235 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12240 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12241 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12244 if test $ac_cv_header_mach_cthreads_h = yes; then
12245 cat >>confdefs.h <<\_ACEOF
12246 #define WITH_THREAD 1
12247 _ACEOF
12249 cat >>confdefs.h <<\_ACEOF
12250 #define C_THREADS 1
12251 _ACEOF
12254 cat >>confdefs.h <<\_ACEOF
12255 #define MACH_C_THREADS 1
12256 _ACEOF
12258 THREADOBJ="Python/thread.o"
12259 else
12261 echo "$as_me:$LINENO: checking for --with-pth" >&5
12262 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12264 # Check whether --with-pth or --without-pth was given.
12265 if test "${with_pth+set}" = set; then
12266 withval="$with_pth"
12267 echo "$as_me:$LINENO: result: $withval" >&5
12268 echo "${ECHO_T}$withval" >&6
12269 cat >>confdefs.h <<\_ACEOF
12270 #define WITH_THREAD 1
12271 _ACEOF
12274 cat >>confdefs.h <<\_ACEOF
12275 #define HAVE_PTH 1
12276 _ACEOF
12278 LIBS="-lpth $LIBS"
12279 THREADOBJ="Python/thread.o"
12280 else
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12284 # Just looking for pthread_create in libpthread is not enough:
12285 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12286 # So we really have to include pthread.h, and then link.
12287 _libs=$LIBS
12288 LIBS="$LIBS -lpthread"
12289 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12290 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <pthread.h>
12299 void * start_routine (void *arg) { exit (0); }
12301 main ()
12304 pthread_create (NULL, NULL, start_routine, NULL)
12306 return 0;
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest$ac_exeext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12332 echo "$as_me:$LINENO: result: yes" >&5
12333 echo "${ECHO_T}yes" >&6
12334 cat >>confdefs.h <<\_ACEOF
12335 #define WITH_THREAD 1
12336 _ACEOF
12338 posix_threads=yes
12339 THREADOBJ="Python/thread.o"
12340 else
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12345 LIBS=$_libs
12346 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12347 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12348 if test "${ac_cv_func_pthread_detach+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12359 #define pthread_detach innocuous_pthread_detach
12361 /* System header to define __stub macros and hopefully few prototypes,
12362 which can conflict with char pthread_detach (); below.
12363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12364 <limits.h> exists even on freestanding compilers. */
12366 #ifdef __STDC__
12367 # include <limits.h>
12368 #else
12369 # include <assert.h>
12370 #endif
12372 #undef pthread_detach
12374 /* Override any gcc2 internal prototype to avoid an error. */
12375 #ifdef __cplusplus
12376 extern "C"
12378 #endif
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12381 char pthread_detach ();
12382 /* The GNU C library defines this for functions which it implements
12383 to always fail with ENOSYS. Some functions are actually named
12384 something starting with __ and the normal name is an alias. */
12385 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12386 choke me
12387 #else
12388 char (*f) () = pthread_detach;
12389 #endif
12390 #ifdef __cplusplus
12392 #endif
12395 main ()
12397 return f != pthread_detach;
12399 return 0;
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_func_pthread_detach=yes
12425 else
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_cv_func_pthread_detach=no
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12435 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12436 if test $ac_cv_func_pthread_detach = yes; then
12437 cat >>confdefs.h <<\_ACEOF
12438 #define WITH_THREAD 1
12439 _ACEOF
12441 posix_threads=yes
12442 THREADOBJ="Python/thread.o"
12443 else
12445 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12446 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12447 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12448 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12452 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12453 else
12454 # Is the header compilable?
12455 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12456 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12464 #include <atheos/threads.h>
12465 _ACEOF
12466 rm -f conftest.$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_header_compiler=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_compiler=no
12495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12497 echo "${ECHO_T}$ac_header_compiler" >&6
12499 # Is the header present?
12500 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12501 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 #include <atheos/threads.h>
12509 _ACEOF
12510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } >/dev/null; then
12518 if test -s conftest.err; then
12519 ac_cpp_err=$ac_c_preproc_warn_flag
12520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12521 else
12522 ac_cpp_err=
12524 else
12525 ac_cpp_err=yes
12527 if test -z "$ac_cpp_err"; then
12528 ac_header_preproc=yes
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_header_preproc=no
12535 rm -f conftest.err conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12537 echo "${ECHO_T}$ac_header_preproc" >&6
12539 # So? What about this header?
12540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12541 yes:no: )
12542 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12543 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12545 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12546 ac_header_preproc=yes
12548 no:yes:* )
12549 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12550 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12552 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12554 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12556 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12558 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12560 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12562 cat <<\_ASBOX
12563 ## ------------------------------------------------ ##
12564 ## Report this to http://www.python.org/python-bugs ##
12565 ## ------------------------------------------------ ##
12566 _ASBOX
12568 sed "s/^/$as_me: WARNING: /" >&2
12570 esac
12571 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12572 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12573 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 ac_cv_header_atheos_threads_h=$ac_header_preproc
12578 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12579 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12582 if test $ac_cv_header_atheos_threads_h = yes; then
12583 cat >>confdefs.h <<\_ACEOF
12584 #define WITH_THREAD 1
12585 _ACEOF
12588 cat >>confdefs.h <<\_ACEOF
12589 #define ATHEOS_THREADS 1
12590 _ACEOF
12592 THREADOBJ="Python/thread.o"
12593 else
12595 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12596 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12597 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12598 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12603 else
12604 # Is the header compilable?
12605 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12606 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12607 cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h. */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 #include <kernel/OS.h>
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_header_compiler=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_header_compiler=no
12645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 echo "${ECHO_T}$ac_header_compiler" >&6
12649 # Is the header present?
12650 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12651 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h. */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <kernel/OS.h>
12659 _ACEOF
12660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev/null; then
12668 if test -s conftest.err; then
12669 ac_cpp_err=$ac_c_preproc_warn_flag
12670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12671 else
12672 ac_cpp_err=
12674 else
12675 ac_cpp_err=yes
12677 if test -z "$ac_cpp_err"; then
12678 ac_header_preproc=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_header_preproc=no
12685 rm -f conftest.err conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12691 yes:no: )
12692 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc=yes
12698 no:yes:* )
12699 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12712 cat <<\_ASBOX
12713 ## ------------------------------------------------ ##
12714 ## Report this to http://www.python.org/python-bugs ##
12715 ## ------------------------------------------------ ##
12716 _ASBOX
12718 sed "s/^/$as_me: WARNING: /" >&2
12720 esac
12721 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12722 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12723 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 ac_cv_header_kernel_OS_h=$ac_header_preproc
12728 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12729 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12732 if test $ac_cv_header_kernel_OS_h = yes; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define WITH_THREAD 1
12735 _ACEOF
12738 cat >>confdefs.h <<\_ACEOF
12739 #define BEOS_THREADS 1
12740 _ACEOF
12742 THREADOBJ="Python/thread.o"
12743 else
12745 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12746 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12747 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lpthreads $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any gcc2 internal prototype to avoid an error. */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 /* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12765 char pthread_create ();
12767 main ()
12769 pthread_create ();
12771 return 0;
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_lib_pthreads_pthread_create=yes
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 ac_cv_lib_pthreads_pthread_create=no
12803 rm -f conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12807 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12808 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12809 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12810 cat >>confdefs.h <<\_ACEOF
12811 #define WITH_THREAD 1
12812 _ACEOF
12814 posix_threads=yes
12815 LIBS="$LIBS -lpthreads"
12816 THREADOBJ="Python/thread.o"
12817 else
12819 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12820 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12821 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lc_r $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 /* Override any gcc2 internal prototype to avoid an error. */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 /* We use char because int might match the return type of a gcc2
12838 builtin and then its argument prototype would still apply. */
12839 char pthread_create ();
12841 main ()
12843 pthread_create ();
12845 return 0;
12847 _ACEOF
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_lib_c_r_pthread_create=yes
12871 else
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_lib_c_r_pthread_create=no
12877 rm -f conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12882 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12883 if test $ac_cv_lib_c_r_pthread_create = yes; then
12884 cat >>confdefs.h <<\_ACEOF
12885 #define WITH_THREAD 1
12886 _ACEOF
12888 posix_threads=yes
12889 LIBS="$LIBS -lc_r"
12890 THREADOBJ="Python/thread.o"
12891 else
12893 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12894 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12895 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lpthread $LIBS"
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any gcc2 internal prototype to avoid an error. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char __pthread_create_system ();
12915 main ()
12917 __pthread_create_system ();
12919 return 0;
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_pthread___pthread_create_system=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_cv_lib_pthread___pthread_create_system=no
12951 rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12956 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12957 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12958 cat >>confdefs.h <<\_ACEOF
12959 #define WITH_THREAD 1
12960 _ACEOF
12962 posix_threads=yes
12963 LIBS="$LIBS -lpthread"
12964 THREADOBJ="Python/thread.o"
12965 else
12967 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12968 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12969 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-lcma $LIBS"
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 /* Override any gcc2 internal prototype to avoid an error. */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 /* We use char because int might match the return type of a gcc2
12986 builtin and then its argument prototype would still apply. */
12987 char pthread_create ();
12989 main ()
12991 pthread_create ();
12993 return 0;
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag"
13006 || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_lib_cma_pthread_create=yes
13019 else
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_cv_lib_cma_pthread_create=no
13025 rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13029 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13030 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13031 if test $ac_cv_lib_cma_pthread_create = yes; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define WITH_THREAD 1
13034 _ACEOF
13036 posix_threads=yes
13037 LIBS="$LIBS -lcma"
13038 THREADOBJ="Python/thread.o"
13039 else
13041 USE_THREAD_MODULE="#"
13060 rm -f conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13070 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13071 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13072 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lmpc $LIBS"
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13084 /* Override any gcc2 internal prototype to avoid an error. */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13090 char usconfig ();
13092 main ()
13094 usconfig ();
13096 return 0;
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest$ac_exeext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_mpc_usconfig=yes
13122 else
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_cv_lib_mpc_usconfig=no
13128 rm -f conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13133 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13134 if test $ac_cv_lib_mpc_usconfig = yes; then
13135 cat >>confdefs.h <<\_ACEOF
13136 #define WITH_THREAD 1
13137 _ACEOF
13139 LIBS="$LIBS -lmpc"
13140 THREADOBJ="Python/thread.o"
13141 USE_THREAD_MODULE=""
13145 if test "$posix_threads" != "yes"; then
13146 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13147 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13148 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-lthread $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13160 /* Override any gcc2 internal prototype to avoid an error. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 /* We use char because int might match the return type of a gcc2
13165 builtin and then its argument prototype would still apply. */
13166 char thr_create ();
13168 main ()
13170 thr_create ();
13172 return 0;
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag"
13185 || test ! -s conftest.err'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_lib_thread_thr_create=yes
13198 else
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 ac_cv_lib_thread_thr_create=no
13204 rm -f conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 LIBS=$ac_check_lib_save_LIBS
13208 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13209 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13210 if test $ac_cv_lib_thread_thr_create = yes; then
13211 cat >>confdefs.h <<\_ACEOF
13212 #define WITH_THREAD 1
13213 _ACEOF
13215 LIBS="$LIBS -lthread"
13216 THREADOBJ="Python/thread.o"
13217 USE_THREAD_MODULE=""
13222 if test "$USE_THREAD_MODULE" != "#"
13223 then
13224 # If the above checks didn't disable threads, (at least) OSF1
13225 # needs this '-threads' argument during linking.
13226 case $ac_sys_system in
13227 OSF1) LDLAST=-threads;;
13228 esac
13232 if test "$posix_threads" = "yes"; then
13233 if test "$unistd_defines_pthreads" = "no"; then
13235 cat >>confdefs.h <<\_ACEOF
13236 #define _POSIX_THREADS 1
13237 _ACEOF
13241 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13242 case $ac_sys_system/$ac_sys_release in
13243 SunOS/5.6)
13244 cat >>confdefs.h <<\_ACEOF
13245 #define HAVE_PTHREAD_DESTRUCTOR 1
13246 _ACEOF
13249 SunOS/5.8)
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13252 _ACEOF
13255 esac
13257 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13258 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13259 if test "${ac_cv_pthread_system_supported+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262 if test "$cross_compiling" = yes; then
13263 ac_cv_pthread_system_supported=no
13264 else
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 #include <pthread.h>
13272 void *foo(void *parm) {
13273 return NULL;
13275 main() {
13276 pthread_attr_t attr;
13277 pthread_t id;
13278 if (pthread_attr_init(&attr)) exit(-1);
13279 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13280 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13281 exit(0);
13283 _ACEOF
13284 rm -f conftest$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286 (eval $ac_link) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_pthread_system_supported=yes
13296 else
13297 echo "$as_me: program exited with status $ac_status" >&5
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ( exit $ac_status )
13302 ac_cv_pthread_system_supported=no
13304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13309 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13310 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13311 if test "$ac_cv_pthread_system_supported" = "yes"; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13315 _ACEOF
13319 for ac_func in pthread_sigmask
13321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13322 echo "$as_me:$LINENO: checking for $ac_func" >&5
13323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13324 if eval "test \"\${$as_ac_var+set}\" = set"; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13335 #define $ac_func innocuous_$ac_func
13337 /* System header to define __stub macros and hopefully few prototypes,
13338 which can conflict with char $ac_func (); below.
13339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13340 <limits.h> exists even on freestanding compilers. */
13342 #ifdef __STDC__
13343 # include <limits.h>
13344 #else
13345 # include <assert.h>
13346 #endif
13348 #undef $ac_func
13350 /* Override any gcc2 internal prototype to avoid an error. */
13351 #ifdef __cplusplus
13352 extern "C"
13354 #endif
13355 /* We use char because int might match the return type of a gcc2
13356 builtin and then its argument prototype would still apply. */
13357 char $ac_func ();
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13362 choke me
13363 #else
13364 char (*f) () = $ac_func;
13365 #endif
13366 #ifdef __cplusplus
13368 #endif
13371 main ()
13373 return f != $ac_func;
13375 return 0;
13377 _ACEOF
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag"
13388 || test ! -s conftest.err'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 eval "$as_ac_var=yes"
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 eval "$as_ac_var=no"
13407 rm -f conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13412 if test `eval echo '${'$as_ac_var'}'` = yes; then
13413 cat >>confdefs.h <<_ACEOF
13414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13415 _ACEOF
13416 case $ac_sys_system in
13417 CYGWIN*)
13419 cat >>confdefs.h <<\_ACEOF
13420 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13421 _ACEOF
13424 esac
13426 done
13431 # Check for enable-ipv6
13434 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13435 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13436 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13437 if test "${enable_ipv6+set}" = set; then
13438 enableval="$enable_ipv6"
13439 case "$enableval" in
13441 echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6
13443 ipv6=no
13445 *) echo "$as_me:$LINENO: result: yes" >&5
13446 echo "${ECHO_T}yes" >&6
13447 cat >>confdefs.h <<\_ACEOF
13448 #define ENABLE_IPV6 1
13449 _ACEOF
13451 ipv6=yes
13453 esac
13454 else
13456 if test "$cross_compiling" = yes; then
13457 echo "$as_me:$LINENO: result: no" >&5
13458 echo "${ECHO_T}no" >&6
13459 ipv6=no
13461 else
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h. */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 /* AF_INET6 available check */
13469 #include <sys/types.h>
13470 #include <sys/socket.h>
13471 main()
13473 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13474 exit(1);
13475 else
13476 exit(0);
13479 _ACEOF
13480 rm -f conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 echo "$as_me:$LINENO: result: yes" >&5
13492 echo "${ECHO_T}yes" >&6
13493 ipv6=yes
13494 else
13495 echo "$as_me: program exited with status $ac_status" >&5
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ( exit $ac_status )
13500 echo "$as_me:$LINENO: result: no" >&5
13501 echo "${ECHO_T}no" >&6
13502 ipv6=no
13504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13507 if test "$ipv6" = "yes"; then
13508 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13509 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <sys/types.h>
13517 #include <netinet/in.h>
13519 main ()
13521 struct sockaddr_in6 x;
13522 x.sin6_scope_id;
13524 return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 echo "$as_me:$LINENO: result: yes" >&5
13550 echo "${ECHO_T}yes" >&6
13551 ipv6=yes
13552 else
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6
13558 ipv6=no
13560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563 if test "$ipv6" = "yes"; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define ENABLE_IPV6 1
13566 _ACEOF
13572 ipv6type=unknown
13573 ipv6lib=none
13574 ipv6trylibc=no
13576 if test "$ipv6" = "yes"; then
13577 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13578 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13579 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13581 case $i in
13582 inria)
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 #include <netinet/in.h>
13591 #ifdef IPV6_INRIA_VERSION
13593 #endif
13594 _ACEOF
13595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13596 $EGREP "yes" >/dev/null 2>&1; then
13597 ipv6type=$i
13599 rm -f conftest*
13602 kame)
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 #include <netinet/in.h>
13611 #ifdef __KAME__
13613 #endif
13614 _ACEOF
13615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 $EGREP "yes" >/dev/null 2>&1; then
13617 ipv6type=$i;
13618 ipv6lib=inet6
13619 ipv6libdir=/usr/local/v6/lib
13620 ipv6trylibc=yes
13622 rm -f conftest*
13625 linux-glibc)
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 #include <features.h>
13634 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13636 #endif
13637 _ACEOF
13638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13639 $EGREP "yes" >/dev/null 2>&1; then
13640 ipv6type=$i;
13641 ipv6trylibc=yes
13643 rm -f conftest*
13646 linux-inet6)
13647 if test -d /usr/inet6; then
13648 ipv6type=$i
13649 ipv6lib=inet6
13650 ipv6libdir=/usr/inet6/lib
13651 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13654 solaris)
13655 if test -f /etc/netconfig; then
13656 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13657 ipv6type=$i
13658 ipv6trylibc=yes
13662 toshiba)
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h. */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 #include <sys/param.h>
13671 #ifdef _TOSHIBA_INET6
13673 #endif
13674 _ACEOF
13675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13676 $EGREP "yes" >/dev/null 2>&1; then
13677 ipv6type=$i;
13678 ipv6lib=inet6;
13679 ipv6libdir=/usr/local/v6/lib
13681 rm -f conftest*
13684 v6d)
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13692 #include </usr/local/v6/include/sys/v6config.h>
13693 #ifdef __V6D__
13695 #endif
13696 _ACEOF
13697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13698 $EGREP "yes" >/dev/null 2>&1; then
13699 ipv6type=$i;
13700 ipv6lib=v6;
13701 ipv6libdir=/usr/local/v6/lib;
13702 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13704 rm -f conftest*
13707 zeta)
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 #include <sys/param.h>
13716 #ifdef _ZETA_MINAMI_INET6
13718 #endif
13719 _ACEOF
13720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13721 $EGREP "yes" >/dev/null 2>&1; then
13722 ipv6type=$i;
13723 ipv6lib=inet6;
13724 ipv6libdir=/usr/local/v6/lib
13726 rm -f conftest*
13729 esac
13730 if test "$ipv6type" != "unknown"; then
13731 break
13733 done
13734 echo "$as_me:$LINENO: result: $ipv6type" >&5
13735 echo "${ECHO_T}$ipv6type" >&6
13738 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13739 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13740 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13741 echo "using lib$ipv6lib"
13742 else
13743 if test $ipv6trylibc = "yes"; then
13744 echo "using libc"
13745 else
13746 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13747 echo "You need to fetch lib$ipv6lib.a from appropriate"
13748 echo 'ipv6 kit and compile beforehand.'
13749 exit 1
13754 # Check for --with-doc-strings
13755 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13756 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13758 # Check whether --with-doc-strings or --without-doc-strings was given.
13759 if test "${with_doc_strings+set}" = set; then
13760 withval="$with_doc_strings"
13764 if test -z "$with_doc_strings"
13765 then with_doc_strings="yes"
13767 if test "$with_doc_strings" != "no"
13768 then
13770 cat >>confdefs.h <<\_ACEOF
13771 #define WITH_DOC_STRINGS 1
13772 _ACEOF
13775 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13776 echo "${ECHO_T}$with_doc_strings" >&6
13778 # Check for Python-specific malloc support
13779 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13780 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13782 # Check whether --with-tsc or --without-tsc was given.
13783 if test "${with_tsc+set}" = set; then
13784 withval="$with_tsc"
13786 if test "$withval" != no
13787 then
13789 cat >>confdefs.h <<\_ACEOF
13790 #define WITH_TSC 1
13791 _ACEOF
13793 echo "$as_me:$LINENO: result: yes" >&5
13794 echo "${ECHO_T}yes" >&6
13795 else echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6
13798 else
13799 echo "$as_me:$LINENO: result: no" >&5
13800 echo "${ECHO_T}no" >&6
13803 # Check for Python-specific malloc support
13804 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13805 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13807 # Check whether --with-pymalloc or --without-pymalloc was given.
13808 if test "${with_pymalloc+set}" = set; then
13809 withval="$with_pymalloc"
13813 if test -z "$with_pymalloc"
13814 then with_pymalloc="yes"
13816 if test "$with_pymalloc" != "no"
13817 then
13819 cat >>confdefs.h <<\_ACEOF
13820 #define WITH_PYMALLOC 1
13821 _ACEOF
13824 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13825 echo "${ECHO_T}$with_pymalloc" >&6
13827 # Check for --with-wctype-functions
13828 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13829 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13831 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13832 if test "${with_wctype_functions+set}" = set; then
13833 withval="$with_wctype_functions"
13835 if test "$withval" != no
13836 then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define WANT_WCTYPE_FUNCTIONS 1
13840 _ACEOF
13842 echo "$as_me:$LINENO: result: yes" >&5
13843 echo "${ECHO_T}yes" >&6
13844 else echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6
13847 else
13848 echo "$as_me:$LINENO: result: no" >&5
13849 echo "${ECHO_T}no" >&6
13852 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13854 DLINCLDIR=.
13856 # the dlopen() function means we might want to use dynload_shlib.o. some
13857 # platforms, such as AIX, have dlopen(), but don't want to use it.
13859 for ac_func in dlopen
13861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 echo "$as_me:$LINENO: checking for $ac_func" >&5
13863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13864 if eval "test \"\${$as_ac_var+set}\" = set"; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h. */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13875 #define $ac_func innocuous_$ac_func
13877 /* System header to define __stub macros and hopefully few prototypes,
13878 which can conflict with char $ac_func (); below.
13879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13880 <limits.h> exists even on freestanding compilers. */
13882 #ifdef __STDC__
13883 # include <limits.h>
13884 #else
13885 # include <assert.h>
13886 #endif
13888 #undef $ac_func
13890 /* Override any gcc2 internal prototype to avoid an error. */
13891 #ifdef __cplusplus
13892 extern "C"
13894 #endif
13895 /* We use char because int might match the return type of a gcc2
13896 builtin and then its argument prototype would still apply. */
13897 char $ac_func ();
13898 /* The GNU C library defines this for functions which it implements
13899 to always fail with ENOSYS. Some functions are actually named
13900 something starting with __ and the normal name is an alias. */
13901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13902 choke me
13903 #else
13904 char (*f) () = $ac_func;
13905 #endif
13906 #ifdef __cplusplus
13908 #endif
13911 main ()
13913 return f != $ac_func;
13915 return 0;
13917 _ACEOF
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920 (eval $ac_link) 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag"
13928 || test ! -s conftest.err'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest$ac_exeext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 eval "$as_ac_var=yes"
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 eval "$as_ac_var=no"
13947 rm -f conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13952 if test `eval echo '${'$as_ac_var'}'` = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13955 _ACEOF
13958 done
13961 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13962 # loading of modules.
13964 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13965 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13966 if test -z "$DYNLOADFILE"
13967 then
13968 case $ac_sys_system/$ac_sys_release in
13969 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13970 if test "$ac_cv_func_dlopen" = yes
13971 then DYNLOADFILE="dynload_shlib.o"
13972 else DYNLOADFILE="dynload_aix.o"
13975 BeOS*) DYNLOADFILE="dynload_beos.o";;
13976 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13977 Darwin/*) DYNLOADFILE="dynload_next.o";;
13978 atheos*) DYNLOADFILE="dynload_atheos.o";;
13980 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13981 # out any dynamic loading
13982 if test "$ac_cv_func_dlopen" = yes
13983 then DYNLOADFILE="dynload_shlib.o"
13984 else DYNLOADFILE="dynload_stub.o"
13987 esac
13989 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13990 echo "${ECHO_T}$DYNLOADFILE" >&6
13991 if test "$DYNLOADFILE" != "dynload_stub.o"
13992 then
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_DYNAMIC_LOADING 1
13996 _ACEOF
14000 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14003 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14004 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14005 if test -z "$MACHDEP_OBJS"
14006 then
14007 MACHDEP_OBJS=$extra_machdep_objs
14008 else
14009 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14011 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14012 echo "${ECHO_T}MACHDEP_OBJS" >&6
14014 # checks for library functions
14089 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14090 execv fork fpathconf ftime ftruncate \
14091 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14092 getpriority getpwent getspnam getspent getsid getwd \
14093 kill killpg lchown lstat mkfifo mknod mktime \
14094 mremap nice pathconf pause plock poll pthread_init \
14095 putenv readlink realpath \
14096 select setegid seteuid setgid \
14097 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14098 sigaction siginterrupt sigrelse strftime \
14099 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14100 truncate uname unsetenv utimes waitpid wcscoll _getpty
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_var+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h. */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14116 #define $ac_func innocuous_$ac_func
14118 /* System header to define __stub macros and hopefully few prototypes,
14119 which can conflict with char $ac_func (); below.
14120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121 <limits.h> exists even on freestanding compilers. */
14123 #ifdef __STDC__
14124 # include <limits.h>
14125 #else
14126 # include <assert.h>
14127 #endif
14129 #undef $ac_func
14131 /* Override any gcc2 internal prototype to avoid an error. */
14132 #ifdef __cplusplus
14133 extern "C"
14135 #endif
14136 /* We use char because int might match the return type of a gcc2
14137 builtin and then its argument prototype would still apply. */
14138 char $ac_func ();
14139 /* The GNU C library defines this for functions which it implements
14140 to always fail with ENOSYS. Some functions are actually named
14141 something starting with __ and the normal name is an alias. */
14142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14143 choke me
14144 #else
14145 char (*f) () = $ac_func;
14146 #endif
14147 #ifdef __cplusplus
14149 #endif
14152 main ()
14154 return f != $ac_func;
14156 return 0;
14158 _ACEOF
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161 (eval $ac_link) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest$ac_exeext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 eval "$as_ac_var=yes"
14182 else
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 eval "$as_ac_var=no"
14188 rm -f conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14193 if test `eval echo '${'$as_ac_var'}'` = yes; then
14194 cat >>confdefs.h <<_ACEOF
14195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14196 _ACEOF
14199 done
14202 # For some functions, having a definition is not sufficient, since
14203 # we want to take their address.
14204 echo "$as_me:$LINENO: checking for chroot" >&5
14205 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <unistd.h>
14214 main ()
14216 void *x=chroot
14218 return 0;
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14244 cat >>confdefs.h <<\_ACEOF
14245 #define HAVE_CHROOT 1
14246 _ACEOF
14248 echo "$as_me:$LINENO: result: yes" >&5
14249 echo "${ECHO_T}yes" >&6
14250 else
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 echo "$as_me:$LINENO: result: no" >&5
14255 echo "${ECHO_T}no" >&6
14258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259 echo "$as_me:$LINENO: checking for link" >&5
14260 echo $ECHO_N "checking for link... $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <unistd.h>
14269 main ()
14271 void *x=link
14273 return 0;
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278 (eval $ac_compile) 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag"
14286 || test ! -s conftest.err'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14299 cat >>confdefs.h <<\_ACEOF
14300 #define HAVE_LINK 1
14301 _ACEOF
14303 echo "$as_me:$LINENO: result: yes" >&5
14304 echo "${ECHO_T}yes" >&6
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 echo "$as_me:$LINENO: result: no" >&5
14310 echo "${ECHO_T}no" >&6
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 echo "$as_me:$LINENO: checking for symlink" >&5
14315 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <unistd.h>
14324 main ()
14326 void *x=symlink
14328 return 0;
14330 _ACEOF
14331 rm -f conftest.$ac_objext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14333 (eval $ac_compile) 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_SYMLINK 1
14356 _ACEOF
14358 echo "$as_me:$LINENO: result: yes" >&5
14359 echo "${ECHO_T}yes" >&6
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 echo "$as_me:$LINENO: result: no" >&5
14365 echo "${ECHO_T}no" >&6
14368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14369 echo "$as_me:$LINENO: checking for fchdir" >&5
14370 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h. */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <unistd.h>
14379 main ()
14381 void *x=fchdir
14383 return 0;
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_FCHDIR 1
14411 _ACEOF
14413 echo "$as_me:$LINENO: result: yes" >&5
14414 echo "${ECHO_T}yes" >&6
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 echo "$as_me:$LINENO: result: no" >&5
14420 echo "${ECHO_T}no" >&6
14423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14424 echo "$as_me:$LINENO: checking for fsync" >&5
14425 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h. */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 #include <unistd.h>
14434 main ()
14436 void *x=fsync
14438 return 0;
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag"
14451 || test ! -s conftest.err'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest.$ac_objext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14464 cat >>confdefs.h <<\_ACEOF
14465 #define HAVE_FSYNC 1
14466 _ACEOF
14468 echo "$as_me:$LINENO: result: yes" >&5
14469 echo "${ECHO_T}yes" >&6
14470 else
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6
14478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479 echo "$as_me:$LINENO: checking for fdatasync" >&5
14480 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 #include <unistd.h>
14489 main ()
14491 void *x=fdatasync
14493 return 0;
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_FDATASYNC 1
14521 _ACEOF
14523 echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6
14525 else
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6
14533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535 # On some systems (eg. FreeBSD 5), we would find a definition of the
14536 # functions ctermid_r, setgroups in the library, but no prototype
14537 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14538 # address to avoid compiler warnings and potential miscompilations
14539 # because of the missing prototypes.
14541 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14542 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14550 #include "confdefs.h"
14551 #include <stdio.h>
14554 main ()
14556 void* p = ctermid_r
14558 return 0;
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14584 cat >>confdefs.h <<\_ACEOF
14585 #define HAVE_CTERMID_R 1
14586 _ACEOF
14588 echo "$as_me:$LINENO: result: yes" >&5
14589 echo "${ECHO_T}yes" >&6
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 echo "$as_me:$LINENO: result: no" >&5
14595 echo "${ECHO_T}no" >&6
14598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14600 echo "$as_me:$LINENO: checking for flock" >&5
14601 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 #include "confdefs.h"
14610 #include <sys/file.h>
14613 main ()
14615 void* p = flock
14617 return 0;
14619 _ACEOF
14620 rm -f conftest.$ac_objext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag"
14630 || test ! -s conftest.err'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try='test -s conftest.$ac_objext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_FLOCK 1
14645 _ACEOF
14647 echo "$as_me:$LINENO: result: yes" >&5
14648 echo "${ECHO_T}yes" >&6
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 echo "$as_me:$LINENO: result: no" >&5
14654 echo "${ECHO_T}no" >&6
14657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 echo "$as_me:$LINENO: checking for getpagesize" >&5
14660 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 #include "confdefs.h"
14669 #include <unistd.h>
14672 main ()
14674 void* p = getpagesize
14676 return 0;
14678 _ACEOF
14679 rm -f conftest.$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681 (eval $ac_compile) 2>conftest.er1
14682 ac_status=$?
14683 grep -v '^ *+' conftest.er1 >conftest.err
14684 rm -f conftest.er1
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -z "$ac_c_werror_flag"
14689 || test ! -s conftest.err'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_GETPAGESIZE 1
14704 _ACEOF
14706 echo "$as_me:$LINENO: result: yes" >&5
14707 echo "${ECHO_T}yes" >&6
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6
14716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14718 for ac_prog in true
14720 # Extract the first word of "$ac_prog", so it can be a program name with args.
14721 set dummy $ac_prog; ac_word=$2
14722 echo "$as_me:$LINENO: checking for $ac_word" >&5
14723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14724 if test "${ac_cv_prog_TRUE+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727 if test -n "$TRUE"; then
14728 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14729 else
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14733 IFS=$as_save_IFS
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737 ac_cv_prog_TRUE="$ac_prog"
14738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14739 break 2
14741 done
14742 done
14746 TRUE=$ac_cv_prog_TRUE
14747 if test -n "$TRUE"; then
14748 echo "$as_me:$LINENO: result: $TRUE" >&5
14749 echo "${ECHO_T}$TRUE" >&6
14750 else
14751 echo "$as_me:$LINENO: result: no" >&5
14752 echo "${ECHO_T}no" >&6
14755 test -n "$TRUE" && break
14756 done
14757 test -n "$TRUE" || TRUE="/bin/true"
14760 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14761 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14762 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_check_lib_save_LIBS=$LIBS
14766 LIBS="-lc $LIBS"
14767 cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h. */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14774 /* Override any gcc2 internal prototype to avoid an error. */
14775 #ifdef __cplusplus
14776 extern "C"
14777 #endif
14778 /* We use char because int might match the return type of a gcc2
14779 builtin and then its argument prototype would still apply. */
14780 char inet_aton ();
14782 main ()
14784 inet_aton ();
14786 return 0;
14788 _ACEOF
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791 (eval $ac_link) 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -z "$ac_c_werror_flag"
14799 || test ! -s conftest.err'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest$ac_exeext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_cv_lib_c_inet_aton=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_c_inet_aton=no
14818 rm -f conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 LIBS=$ac_check_lib_save_LIBS
14822 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14823 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14824 if test $ac_cv_lib_c_inet_aton = yes; then
14825 $ac_cv_prog_TRUE
14826 else
14828 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14829 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14830 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 ac_check_lib_save_LIBS=$LIBS
14834 LIBS="-lresolv $LIBS"
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848 char inet_aton ();
14850 main ()
14852 inet_aton ();
14854 return 0;
14856 _ACEOF
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_resolv_inet_aton=yes
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_cv_lib_resolv_inet_aton=no
14886 rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14890 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14891 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14892 if test $ac_cv_lib_resolv_inet_aton = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_LIBRESOLV 1
14895 _ACEOF
14897 LIBS="-lresolv $LIBS"
14905 echo "$as_me:$LINENO: checking for hstrerror" >&5
14906 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 #include "confdefs.h"
14915 #include <netdb.h>
14918 main ()
14920 void* p = hstrerror; hstrerror(0)
14922 return 0;
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag"
14935 || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14948 cat >>confdefs.h <<\_ACEOF
14949 #define HAVE_HSTRERROR 1
14950 _ACEOF
14952 echo "$as_me:$LINENO: result: yes" >&5
14953 echo "${ECHO_T}yes" >&6
14954 else
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 echo "$as_me:$LINENO: result: no" >&5
14959 echo "${ECHO_T}no" >&6
14962 rm -f conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14965 echo "$as_me:$LINENO: checking for inet_aton" >&5
14966 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 #include "confdefs.h"
14975 #include <sys/types.h>
14976 #include <sys/socket.h>
14977 #include <netinet/in.h>
14978 #include <arpa/inet.h>
14981 main ()
14983 void* p = inet_aton;inet_aton(0,0)
14985 return 0;
14987 _ACEOF
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14990 (eval $ac_link) 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag"
14998 || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_INET_ATON 1
15013 _ACEOF
15015 echo "$as_me:$LINENO: result: yes" >&5
15016 echo "${ECHO_T}yes" >&6
15017 else
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15025 rm -f conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15028 echo "$as_me:$LINENO: checking for inet_pton" >&5
15029 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h. */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15037 #include "confdefs.h"
15038 #include <sys/types.h>
15039 #include <sys/socket.h>
15040 #include <netinet/in.h>
15041 #include <arpa/inet.h>
15044 main ()
15046 void* p = inet_pton
15048 return 0;
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try='test -z "$ac_c_werror_flag"
15061 || test ! -s conftest.err'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15074 cat >>confdefs.h <<\_ACEOF
15075 #define HAVE_INET_PTON 1
15076 _ACEOF
15078 echo "$as_me:$LINENO: result: yes" >&5
15079 echo "${ECHO_T}yes" >&6
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 echo "$as_me:$LINENO: result: no" >&5
15085 echo "${ECHO_T}no" >&6
15088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 # On some systems, setgroups is in unistd.h, on others, in grp.h
15091 echo "$as_me:$LINENO: checking for setgroups" >&5
15092 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 #include "confdefs.h"
15101 #include <unistd.h>
15102 #ifdef HAVE_GRP_H
15103 #include <grp.h>
15104 #endif
15107 main ()
15109 void* p = setgroups
15111 return 0;
15113 _ACEOF
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_SETGROUPS 1
15139 _ACEOF
15141 echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15143 else
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6
15151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15153 # check for openpty and forkpty
15156 for ac_func in openpty
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15172 #define $ac_func innocuous_$ac_func
15174 /* System header to define __stub macros and hopefully few prototypes,
15175 which can conflict with char $ac_func (); below.
15176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177 <limits.h> exists even on freestanding compilers. */
15179 #ifdef __STDC__
15180 # include <limits.h>
15181 #else
15182 # include <assert.h>
15183 #endif
15185 #undef $ac_func
15187 /* Override any gcc2 internal prototype to avoid an error. */
15188 #ifdef __cplusplus
15189 extern "C"
15191 #endif
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char $ac_func ();
15195 /* The GNU C library defines this for functions which it implements
15196 to always fail with ENOSYS. Some functions are actually named
15197 something starting with __ and the normal name is an alias. */
15198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15199 choke me
15200 #else
15201 char (*f) () = $ac_func;
15202 #endif
15203 #ifdef __cplusplus
15205 #endif
15208 main ()
15210 return f != $ac_func;
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest$ac_exeext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 eval "$as_ac_var=yes"
15238 else
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 eval "$as_ac_var=no"
15244 rm -f conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15249 if test `eval echo '${'$as_ac_var'}'` = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15252 _ACEOF
15254 else
15255 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15256 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15257 if test "${ac_cv_lib_util_openpty+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260 ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lutil $LIBS"
15262 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h. */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 /* Override any gcc2 internal prototype to avoid an error. */
15270 #ifdef __cplusplus
15271 extern "C"
15272 #endif
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15275 char openpty ();
15277 main ()
15279 openpty ();
15281 return 0;
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_cv_lib_util_openpty=yes
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_cv_lib_util_openpty=no
15313 rm -f conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15318 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15319 if test $ac_cv_lib_util_openpty = yes; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_OPENPTY 1
15322 _ACEOF
15323 LIBS="$LIBS -lutil"
15324 else
15325 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15326 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15327 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330 ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lbsd $LIBS"
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15339 /* Override any gcc2 internal prototype to avoid an error. */
15340 #ifdef __cplusplus
15341 extern "C"
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15345 char openpty ();
15347 main ()
15349 openpty ();
15351 return 0;
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag"
15364 || test ! -s conftest.err'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_bsd_openpty=yes
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_cv_lib_bsd_openpty=no
15383 rm -f conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15388 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15389 if test $ac_cv_lib_bsd_openpty = yes; then
15390 cat >>confdefs.h <<\_ACEOF
15391 #define HAVE_OPENPTY 1
15392 _ACEOF
15393 LIBS="$LIBS -lbsd"
15401 done
15404 for ac_func in forkpty
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_var+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15433 #undef $ac_func
15435 /* Override any gcc2 internal prototype to avoid an error. */
15436 #ifdef __cplusplus
15437 extern "C"
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442 char $ac_func ();
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 choke me
15448 #else
15449 char (*f) () = $ac_func;
15450 #endif
15451 #ifdef __cplusplus
15453 #endif
15456 main ()
15458 return f != $ac_func;
15460 return 0;
15462 _ACEOF
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465 (eval $ac_link) 2>conftest.er1
15466 ac_status=$?
15467 grep -v '^ *+' conftest.er1 >conftest.err
15468 rm -f conftest.er1
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -z "$ac_c_werror_flag"
15473 || test ! -s conftest.err'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try='test -s conftest$ac_exeext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 eval "$as_ac_var=yes"
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 eval "$as_ac_var=no"
15492 rm -f conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
15495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15497 if test `eval echo '${'$as_ac_var'}'` = yes; then
15498 cat >>confdefs.h <<_ACEOF
15499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15500 _ACEOF
15502 else
15503 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15504 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15505 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508 ac_check_lib_save_LIBS=$LIBS
15509 LIBS="-lutil $LIBS"
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15517 /* Override any gcc2 internal prototype to avoid an error. */
15518 #ifdef __cplusplus
15519 extern "C"
15520 #endif
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char forkpty ();
15525 main ()
15527 forkpty ();
15529 return 0;
15531 _ACEOF
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>conftest.er1
15535 ac_status=$?
15536 grep -v '^ *+' conftest.er1 >conftest.err
15537 rm -f conftest.er1
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -z "$ac_c_werror_flag"
15542 || test ! -s conftest.err'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest$ac_exeext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_cv_lib_util_forkpty=yes
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_cv_lib_util_forkpty=no
15561 rm -f conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
15563 LIBS=$ac_check_lib_save_LIBS
15565 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15566 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15567 if test $ac_cv_lib_util_forkpty = yes; then
15568 cat >>confdefs.h <<\_ACEOF
15569 #define HAVE_FORKPTY 1
15570 _ACEOF
15571 LIBS="$LIBS -lutil"
15572 else
15573 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15574 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15575 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578 ac_check_lib_save_LIBS=$LIBS
15579 LIBS="-lbsd $LIBS"
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15587 /* Override any gcc2 internal prototype to avoid an error. */
15588 #ifdef __cplusplus
15589 extern "C"
15590 #endif
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15593 char forkpty ();
15595 main ()
15597 forkpty ();
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext conftest$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest$ac_exeext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_cv_lib_bsd_forkpty=yes
15625 else
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_cv_lib_bsd_forkpty=no
15631 rm -f conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS
15635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15636 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15637 if test $ac_cv_lib_bsd_forkpty = yes; then
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE_FORKPTY 1
15640 _ACEOF
15641 LIBS="$LIBS -lbsd"
15649 done
15652 # check for long file support functions
15659 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15662 echo "$as_me:$LINENO: checking for $ac_func" >&5
15663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15664 if eval "test \"\${$as_ac_var+set}\" = set"; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667 cat >conftest.$ac_ext <<_ACEOF
15668 /* confdefs.h. */
15669 _ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h. */
15673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15675 #define $ac_func innocuous_$ac_func
15677 /* System header to define __stub macros and hopefully few prototypes,
15678 which can conflict with char $ac_func (); below.
15679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15680 <limits.h> exists even on freestanding compilers. */
15682 #ifdef __STDC__
15683 # include <limits.h>
15684 #else
15685 # include <assert.h>
15686 #endif
15688 #undef $ac_func
15690 /* Override any gcc2 internal prototype to avoid an error. */
15691 #ifdef __cplusplus
15692 extern "C"
15694 #endif
15695 /* We use char because int might match the return type of a gcc2
15696 builtin and then its argument prototype would still apply. */
15697 char $ac_func ();
15698 /* The GNU C library defines this for functions which it implements
15699 to always fail with ENOSYS. Some functions are actually named
15700 something starting with __ and the normal name is an alias. */
15701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15702 choke me
15703 #else
15704 char (*f) () = $ac_func;
15705 #endif
15706 #ifdef __cplusplus
15708 #endif
15711 main ()
15713 return f != $ac_func;
15715 return 0;
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag"
15728 || test ! -s conftest.err'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 eval "$as_ac_var=yes"
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 eval "$as_ac_var=no"
15747 rm -f conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15752 if test `eval echo '${'$as_ac_var'}'` = yes; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15755 _ACEOF
15758 done
15766 for ac_func in dup2 getcwd strdup strerror memmove
15768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15769 echo "$as_me:$LINENO: checking for $ac_func" >&5
15770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15771 if eval "test \"\${$as_ac_var+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15782 #define $ac_func innocuous_$ac_func
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15789 #ifdef __STDC__
15790 # include <limits.h>
15791 #else
15792 # include <assert.h>
15793 #endif
15795 #undef $ac_func
15797 /* Override any gcc2 internal prototype to avoid an error. */
15798 #ifdef __cplusplus
15799 extern "C"
15801 #endif
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15804 char $ac_func ();
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15809 choke me
15810 #else
15811 char (*f) () = $ac_func;
15812 #endif
15813 #ifdef __cplusplus
15815 #endif
15818 main ()
15820 return f != $ac_func;
15822 return 0;
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15827 (eval $ac_link) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 eval "$as_ac_var=yes"
15848 else
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 eval "$as_ac_var=no"
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15862 _ACEOF
15864 else
15865 case $LIBOBJS in
15866 "$ac_func.$ac_objext" | \
15867 *" $ac_func.$ac_objext" | \
15868 "$ac_func.$ac_objext "* | \
15869 *" $ac_func.$ac_objext "* ) ;;
15870 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15871 esac
15874 done
15878 for ac_func in getpgrp
15880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15881 echo "$as_me:$LINENO: checking for $ac_func" >&5
15882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15883 if eval "test \"\${$as_ac_var+set}\" = set"; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15894 #define $ac_func innocuous_$ac_func
15896 /* System header to define __stub macros and hopefully few prototypes,
15897 which can conflict with char $ac_func (); below.
15898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899 <limits.h> exists even on freestanding compilers. */
15901 #ifdef __STDC__
15902 # include <limits.h>
15903 #else
15904 # include <assert.h>
15905 #endif
15907 #undef $ac_func
15909 /* Override any gcc2 internal prototype to avoid an error. */
15910 #ifdef __cplusplus
15911 extern "C"
15913 #endif
15914 /* We use char because int might match the return type of a gcc2
15915 builtin and then its argument prototype would still apply. */
15916 char $ac_func ();
15917 /* The GNU C library defines this for functions which it implements
15918 to always fail with ENOSYS. Some functions are actually named
15919 something starting with __ and the normal name is an alias. */
15920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15921 choke me
15922 #else
15923 char (*f) () = $ac_func;
15924 #endif
15925 #ifdef __cplusplus
15927 #endif
15930 main ()
15932 return f != $ac_func;
15934 return 0;
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 eval "$as_ac_var=yes"
15960 else
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 eval "$as_ac_var=no"
15966 rm -f conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15971 if test `eval echo '${'$as_ac_var'}'` = yes; then
15972 cat >>confdefs.h <<_ACEOF
15973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15974 _ACEOF
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <unistd.h>
15983 main ()
15985 getpgrp(0);
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992 (eval $ac_compile) 2>conftest.er1
15993 ac_status=$?
15994 grep -v '^ *+' conftest.er1 >conftest.err
15995 rm -f conftest.er1
15996 cat conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try='test -z "$ac_c_werror_flag"
16000 || test ! -s conftest.err'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; } &&
16006 { ac_try='test -s conftest.$ac_objext'
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define GETPGRP_HAVE_ARG 1
16015 _ACEOF
16018 else
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16026 done
16029 for ac_func in setpgrp
16031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16034 if eval "test \"\${$as_ac_var+set}\" = set"; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16045 #define $ac_func innocuous_$ac_func
16047 /* System header to define __stub macros and hopefully few prototypes,
16048 which can conflict with char $ac_func (); below.
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
16052 #ifdef __STDC__
16053 # include <limits.h>
16054 #else
16055 # include <assert.h>
16056 #endif
16058 #undef $ac_func
16060 /* Override any gcc2 internal prototype to avoid an error. */
16061 #ifdef __cplusplus
16062 extern "C"
16064 #endif
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16067 char $ac_func ();
16068 /* The GNU C library defines this for functions which it implements
16069 to always fail with ENOSYS. Some functions are actually named
16070 something starting with __ and the normal name is an alias. */
16071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16072 choke me
16073 #else
16074 char (*f) () = $ac_func;
16075 #endif
16076 #ifdef __cplusplus
16078 #endif
16081 main ()
16083 return f != $ac_func;
16085 return 0;
16087 _ACEOF
16088 rm -f conftest.$ac_objext conftest$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090 (eval $ac_link) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag"
16098 || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 eval "$as_ac_var=yes"
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no"
16117 rm -f conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16125 _ACEOF
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <unistd.h>
16134 main ()
16136 setpgrp(0,0);
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>conftest.er1
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16164 cat >>confdefs.h <<\_ACEOF
16165 #define SETPGRP_HAVE_ARG 1
16166 _ACEOF
16169 else
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16177 done
16180 for ac_func in gettimeofday
16182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_func" >&5
16184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_var+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196 #define $ac_func innocuous_$ac_func
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16203 #ifdef __STDC__
16204 # include <limits.h>
16205 #else
16206 # include <assert.h>
16207 #endif
16209 #undef $ac_func
16211 /* Override any gcc2 internal prototype to avoid an error. */
16212 #ifdef __cplusplus
16213 extern "C"
16215 #endif
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16218 char $ac_func ();
16219 /* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223 choke me
16224 #else
16225 char (*f) () = $ac_func;
16226 #endif
16227 #ifdef __cplusplus
16229 #endif
16232 main ()
16234 return f != $ac_func;
16236 return 0;
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 eval "$as_ac_var=yes"
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 eval "$as_ac_var=no"
16268 rm -f conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 _ACEOF
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <sys/time.h>
16285 main ()
16287 gettimeofday((struct timeval*)0,(struct timezone*)0);
16289 return 0;
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16315 else
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16320 cat >>confdefs.h <<\_ACEOF
16321 #define GETTIMEOFDAY_NO_TZ 1
16322 _ACEOF
16326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329 done
16332 echo "$as_me:$LINENO: checking for major" >&5
16333 echo $ECHO_N "checking for major... $ECHO_C" >&6
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16341 #if defined(MAJOR_IN_MKDEV)
16342 #include <sys/mkdev.h>
16343 #elif defined(MAJOR_IN_SYSMACROS)
16344 #include <sys/sysmacros.h>
16345 #else
16346 #include <sys/types.h>
16347 #endif
16350 main ()
16353 makedev(major(0),minor(0));
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE_DEVICE_MACROS 1
16385 _ACEOF
16387 echo "$as_me:$LINENO: result: yes" >&5
16388 echo "${ECHO_T}yes" >&6
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16395 echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6
16399 rm -f conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16402 # On OSF/1 V5.1, getaddrinfo is available, but a define
16403 # for [no]getaddrinfo in netdb.h.
16404 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16405 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h. */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 #include <sys/types.h>
16414 #include <sys/socket.h>
16415 #include <netdb.h>
16416 #include <stdio.h>
16419 main ()
16422 getaddrinfo(NULL, NULL, NULL, NULL);
16425 return 0;
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag"
16438 || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16451 echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6
16453 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16454 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16455 if test "$cross_compiling" = yes; then
16456 echo "$as_me:$LINENO: result: buggy" >&5
16457 echo "${ECHO_T}buggy" >&6
16458 buggygetaddrinfo=yes
16459 else
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16467 #include <sys/types.h>
16468 #include <netdb.h>
16469 #include <string.h>
16470 #include <sys/socket.h>
16471 #include <netinet/in.h>
16473 main()
16475 int passive, gaierr, inet4 = 0, inet6 = 0;
16476 struct addrinfo hints, *ai, *aitop;
16477 char straddr[INET6_ADDRSTRLEN], strport[16];
16479 for (passive = 0; passive <= 1; passive++) {
16480 memset(&hints, 0, sizeof(hints));
16481 hints.ai_family = AF_UNSPEC;
16482 hints.ai_flags = passive ? AI_PASSIVE : 0;
16483 hints.ai_socktype = SOCK_STREAM;
16484 hints.ai_protocol = IPPROTO_TCP;
16485 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16486 (void)gai_strerror(gaierr);
16487 goto bad;
16489 for (ai = aitop; ai; ai = ai->ai_next) {
16490 if (ai->ai_addr == NULL ||
16491 ai->ai_addrlen == 0 ||
16492 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16493 straddr, sizeof(straddr), strport, sizeof(strport),
16494 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16495 goto bad;
16497 switch (ai->ai_family) {
16498 case AF_INET:
16499 if (strcmp(strport, "54321") != 0) {
16500 goto bad;
16502 if (passive) {
16503 if (strcmp(straddr, "0.0.0.0") != 0) {
16504 goto bad;
16506 } else {
16507 if (strcmp(straddr, "127.0.0.1") != 0) {
16508 goto bad;
16511 inet4++;
16512 break;
16513 case AF_INET6:
16514 if (strcmp(strport, "54321") != 0) {
16515 goto bad;
16517 if (passive) {
16518 if (strcmp(straddr, "::") != 0) {
16519 goto bad;
16521 } else {
16522 if (strcmp(straddr, "::1") != 0) {
16523 goto bad;
16526 inet6++;
16527 break;
16528 case AF_UNSPEC:
16529 goto bad;
16530 break;
16531 default:
16532 /* another family support? */
16533 break;
16538 if (!(inet4 == 0 || inet4 == 2))
16539 goto bad;
16540 if (!(inet6 == 0 || inet6 == 2))
16541 goto bad;
16543 if (aitop)
16544 freeaddrinfo(aitop);
16545 exit(0);
16547 bad:
16548 if (aitop)
16549 freeaddrinfo(aitop);
16550 exit(1);
16553 _ACEOF
16554 rm -f conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 echo "$as_me:$LINENO: result: good" >&5
16566 echo "${ECHO_T}good" >&6
16567 buggygetaddrinfo=no
16568 else
16569 echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ( exit $ac_status )
16574 echo "$as_me:$LINENO: result: buggy" >&5
16575 echo "${ECHO_T}buggy" >&6
16576 buggygetaddrinfo=yes
16578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16585 echo "$as_me:$LINENO: result: no" >&5
16586 echo "${ECHO_T}no" >&6
16587 buggygetaddrinfo=yes
16590 rm -f conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16593 if test "$buggygetaddrinfo" = "yes"; then
16594 if test "$ipv6" = "yes"; then
16595 echo 'Fatal: You must get working getaddrinfo() function.'
16596 echo ' or you can specify "--disable-ipv6"'.
16597 exit 1
16599 else
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_GETADDRINFO 1
16603 _ACEOF
16607 for ac_func in getnameinfo
16609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16610 echo "$as_me:$LINENO: checking for $ac_func" >&5
16611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16612 if eval "test \"\${$as_ac_var+set}\" = set"; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16623 #define $ac_func innocuous_$ac_func
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char $ac_func (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16630 #ifdef __STDC__
16631 # include <limits.h>
16632 #else
16633 # include <assert.h>
16634 #endif
16636 #undef $ac_func
16638 /* Override any gcc2 internal prototype to avoid an error. */
16639 #ifdef __cplusplus
16640 extern "C"
16642 #endif
16643 /* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16645 char $ac_func ();
16646 /* The GNU C library defines this for functions which it implements
16647 to always fail with ENOSYS. Some functions are actually named
16648 something starting with __ and the normal name is an alias. */
16649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16650 choke me
16651 #else
16652 char (*f) () = $ac_func;
16653 #endif
16654 #ifdef __cplusplus
16656 #endif
16659 main ()
16661 return f != $ac_func;
16663 return 0;
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag"
16676 || test ! -s conftest.err'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try='test -s conftest$ac_exeext'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 eval "$as_ac_var=yes"
16689 else
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 eval "$as_ac_var=no"
16695 rm -f conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16700 if test `eval echo '${'$as_ac_var'}'` = yes; then
16701 cat >>confdefs.h <<_ACEOF
16702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16703 _ACEOF
16706 done
16709 # checks for structures
16710 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16711 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16712 if test "${ac_cv_header_time+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h. */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 #include <sys/types.h>
16722 #include <sys/time.h>
16723 #include <time.h>
16726 main ()
16728 if ((struct tm *) 0)
16729 return 0;
16731 return 0;
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag"
16744 || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest.$ac_objext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_header_time=yes
16757 else
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_header_time=no
16763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16766 echo "${ECHO_T}$ac_cv_header_time" >&6
16767 if test $ac_cv_header_time = yes; then
16769 cat >>confdefs.h <<\_ACEOF
16770 #define TIME_WITH_SYS_TIME 1
16771 _ACEOF
16775 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16776 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16777 if test "${ac_cv_struct_tm+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 #include <sys/types.h>
16787 #include <time.h>
16790 main ()
16792 struct tm *tp; tp->tm_sec;
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag"
16807 || test ! -s conftest.err'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest.$ac_objext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_struct_tm=time.h
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_struct_tm=sys/time.h
16826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16828 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16829 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16830 if test $ac_cv_struct_tm = sys/time.h; then
16832 cat >>confdefs.h <<\_ACEOF
16833 #define TM_IN_SYS_TIME 1
16834 _ACEOF
16838 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16839 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16840 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <sys/types.h>
16850 #include <$ac_cv_struct_tm>
16854 main ()
16856 static struct tm ac_aggr;
16857 if (ac_aggr.tm_zone)
16858 return 0;
16860 return 0;
16862 _ACEOF
16863 rm -f conftest.$ac_objext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag"
16873 || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest.$ac_objext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_member_struct_tm_tm_zone=yes
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 cat >conftest.$ac_ext <<_ACEOF
16891 /* confdefs.h. */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 #include <sys/types.h>
16897 #include <$ac_cv_struct_tm>
16901 main ()
16903 static struct tm ac_aggr;
16904 if (sizeof ac_aggr.tm_zone)
16905 return 0;
16907 return 0;
16909 _ACEOF
16910 rm -f conftest.$ac_objext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 (eval $ac_compile) 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_member_struct_tm_tm_zone=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_member_struct_tm_tm_zone=no
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16944 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16945 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16947 cat >>confdefs.h <<_ACEOF
16948 #define HAVE_STRUCT_TM_TM_ZONE 1
16949 _ACEOF
16954 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_TM_ZONE 1
16958 _ACEOF
16960 else
16961 echo "$as_me:$LINENO: checking for tzname" >&5
16962 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16963 if test "${ac_cv_var_tzname+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966 cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h. */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 #include <time.h>
16973 #ifndef tzname /* For SGI. */
16974 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16975 #endif
16978 main ()
16980 atoi(*tzname);
16982 return 0;
16984 _ACEOF
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag"
16995 || test ! -s conftest.err'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest$ac_exeext'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_cv_var_tzname=yes
17008 else
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_cv_var_tzname=no
17014 rm -f conftest.err conftest.$ac_objext \
17015 conftest$ac_exeext conftest.$ac_ext
17017 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17018 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17019 if test $ac_cv_var_tzname = yes; then
17021 cat >>confdefs.h <<\_ACEOF
17022 #define HAVE_TZNAME 1
17023 _ACEOF
17028 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17029 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17030 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17041 main ()
17043 static struct stat ac_aggr;
17044 if (ac_aggr.st_rdev)
17045 return 0;
17047 return 0;
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_member_struct_stat_st_rdev=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17085 main ()
17087 static struct stat ac_aggr;
17088 if (sizeof ac_aggr.st_rdev)
17089 return 0;
17091 return 0;
17093 _ACEOF
17094 rm -f conftest.$ac_objext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest.$ac_objext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_member_struct_stat_st_rdev=yes
17117 else
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ac_cv_member_struct_stat_st_rdev=no
17123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17128 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17129 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_STRUCT_STAT_ST_RDEV 1
17133 _ACEOF
17138 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h. */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 $ac_includes_default
17151 main ()
17153 static struct stat ac_aggr;
17154 if (ac_aggr.st_blksize)
17155 return 0;
17157 return 0;
17159 _ACEOF
17160 rm -f conftest.$ac_objext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17162 (eval $ac_compile) 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -z "$ac_c_werror_flag"
17170 || test ! -s conftest.err'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_member_struct_stat_st_blksize=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17195 main ()
17197 static struct stat ac_aggr;
17198 if (sizeof ac_aggr.st_blksize)
17199 return 0;
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_member_struct_stat_st_blksize=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_cv_member_struct_stat_st_blksize=no
17233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17238 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17239 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17241 cat >>confdefs.h <<_ACEOF
17242 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17243 _ACEOF
17248 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17249 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17250 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 $ac_includes_default
17261 main ()
17263 static struct stat ac_aggr;
17264 if (ac_aggr.st_flags)
17265 return 0;
17267 return 0;
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_member_struct_stat_st_flags=yes
17293 else
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17305 main ()
17307 static struct stat ac_aggr;
17308 if (sizeof ac_aggr.st_flags)
17309 return 0;
17311 return 0;
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_member_struct_stat_st_flags=yes
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_member_struct_stat_st_flags=no
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17348 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17349 if test $ac_cv_member_struct_stat_st_flags = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17353 _ACEOF
17358 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17359 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17360 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 $ac_includes_default
17371 main ()
17373 static struct stat ac_aggr;
17374 if (ac_aggr.st_gen)
17375 return 0;
17377 return 0;
17379 _ACEOF
17380 rm -f conftest.$ac_objext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17382 (eval $ac_compile) 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag"
17390 || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_member_struct_stat_st_gen=yes
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h. */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17415 main ()
17417 static struct stat ac_aggr;
17418 if (sizeof ac_aggr.st_gen)
17419 return 0;
17421 return 0;
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_member_struct_stat_st_gen=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_cv_member_struct_stat_st_gen=no
17453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17457 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17458 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17459 if test $ac_cv_member_struct_stat_st_gen = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_STRUCT_STAT_ST_GEN 1
17463 _ACEOF
17468 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17469 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17470 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17481 main ()
17483 static struct stat ac_aggr;
17484 if (ac_aggr.st_birthtime)
17485 return 0;
17487 return 0;
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag"
17500 || test ! -s conftest.err'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_cv_member_struct_stat_st_birthtime=yes
17513 else
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17525 main ()
17527 static struct stat ac_aggr;
17528 if (sizeof ac_aggr.st_birthtime)
17529 return 0;
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17536 (eval $ac_compile) 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_member_struct_stat_st_birthtime=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ac_cv_member_struct_stat_st_birthtime=no
17563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17568 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17569 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17571 cat >>confdefs.h <<_ACEOF
17572 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17573 _ACEOF
17578 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17579 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17580 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 $ac_includes_default
17591 main ()
17593 static struct stat ac_aggr;
17594 if (ac_aggr.st_blocks)
17595 return 0;
17597 return 0;
17599 _ACEOF
17600 rm -f conftest.$ac_objext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602 (eval $ac_compile) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_member_struct_stat_st_blocks=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17635 main ()
17637 static struct stat ac_aggr;
17638 if (sizeof ac_aggr.st_blocks)
17639 return 0;
17641 return 0;
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_member_struct_stat_st_blocks=yes
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_cv_member_struct_stat_st_blocks=no
17673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17679 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17683 _ACEOF
17686 cat >>confdefs.h <<\_ACEOF
17687 #define HAVE_ST_BLOCKS 1
17688 _ACEOF
17690 else
17691 case $LIBOBJS in
17692 "fileblocks.$ac_objext" | \
17693 *" fileblocks.$ac_objext" | \
17694 "fileblocks.$ac_objext "* | \
17695 *" fileblocks.$ac_objext "* ) ;;
17696 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17697 esac
17703 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17704 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17705 if test "${ac_cv_header_time_altzone+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <time.h>
17716 main ()
17718 return altzone;
17720 return 0;
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest.$ac_objext'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_header_time_altzone=yes
17746 else
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_header_time_altzone=no
17752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17755 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17756 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17757 if test $ac_cv_header_time_altzone = yes; then
17759 cat >>confdefs.h <<\_ACEOF
17760 #define HAVE_ALTZONE 1
17761 _ACEOF
17765 was_it_defined=no
17766 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17767 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 #include <sys/types.h>
17776 #include <sys/select.h>
17777 #include <sys/time.h>
17780 main ()
17784 return 0;
17786 _ACEOF
17787 rm -f conftest.$ac_objext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 (eval $ac_compile) 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag"
17797 || test ! -s conftest.err'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try='test -s conftest.$ac_objext'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17811 cat >>confdefs.h <<\_ACEOF
17812 #define SYS_SELECT_WITH_SYS_TIME 1
17813 _ACEOF
17815 was_it_defined=yes
17817 else
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17823 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17824 echo "${ECHO_T}$was_it_defined" >&6
17826 echo "$as_me:$LINENO: checking for addrinfo" >&5
17827 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17828 if test "${ac_cv_struct_addrinfo+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h. */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17838 # include <netdb.h>
17840 main ()
17842 struct addrinfo a
17844 return 0;
17846 _ACEOF
17847 rm -f conftest.$ac_objext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17849 (eval $ac_compile) 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag"
17857 || test ! -s conftest.err'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest.$ac_objext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_struct_addrinfo=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_cv_struct_addrinfo=no
17876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17880 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17881 if test $ac_cv_struct_addrinfo = yes; then
17883 cat >>confdefs.h <<\_ACEOF
17884 #define HAVE_ADDRINFO 1
17885 _ACEOF
17889 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17890 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17891 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17901 # include <sys/types.h>
17902 # include <sys/socket.h>
17904 main ()
17906 struct sockaddr_storage s
17908 return 0;
17910 _ACEOF
17911 rm -f conftest.$ac_objext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913 (eval $ac_compile) 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag"
17921 || test ! -s conftest.err'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest.$ac_objext'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933 ac_cv_struct_sockaddr_storage=yes
17934 else
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17938 ac_cv_struct_sockaddr_storage=no
17940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17944 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17945 if test $ac_cv_struct_sockaddr_storage = yes; then
17947 cat >>confdefs.h <<\_ACEOF
17948 #define HAVE_SOCKADDR_STORAGE 1
17949 _ACEOF
17953 # checks for compiler characteristics
17956 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17957 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17958 if test "${ac_cv_c_char_unsigned+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 $ac_includes_default
17969 main ()
17971 static int test_array [1 - 2 * !(((char) -1) < 0)];
17972 test_array [0] = 0
17975 return 0;
17977 _ACEOF
17978 rm -f conftest.$ac_objext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17980 (eval $ac_compile) 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_c_char_unsigned=no
18001 else
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_c_char_unsigned=yes
18007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18009 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18010 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18011 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18012 cat >>confdefs.h <<\_ACEOF
18013 #define __CHAR_UNSIGNED__ 1
18014 _ACEOF
18018 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18019 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18020 if test "${ac_cv_c_const+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18031 main ()
18033 /* FIXME: Include the comments suggested by Paul. */
18034 #ifndef __cplusplus
18035 /* Ultrix mips cc rejects this. */
18036 typedef int charset[2];
18037 const charset x;
18038 /* SunOS 4.1.1 cc rejects this. */
18039 char const *const *ccp;
18040 char **p;
18041 /* NEC SVR4.0.2 mips cc rejects this. */
18042 struct point {int x, y;};
18043 static struct point const zero = {0,0};
18044 /* AIX XL C 1.02.0.0 rejects this.
18045 It does not let you subtract one const X* pointer from another in
18046 an arm of an if-expression whose if-part is not a constant
18047 expression */
18048 const char *g = "string";
18049 ccp = &g + (g ? g-g : 0);
18050 /* HPUX 7.0 cc rejects these. */
18051 ++ccp;
18052 p = (char**) ccp;
18053 ccp = (char const *const *) p;
18054 { /* SCO 3.2v4 cc rejects this. */
18055 char *t;
18056 char const *s = 0 ? (char *) 0 : (char const *) 0;
18058 *t++ = 0;
18060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18061 int x[] = {25, 17};
18062 const int *foo = &x[0];
18063 ++foo;
18065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18066 typedef const int *iptr;
18067 iptr p = 0;
18068 ++p;
18070 { /* AIX XL C 1.02.0.0 rejects this saying
18071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18072 struct s { int j; const int *ap[3]; };
18073 struct s *b; b->j = 5;
18075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18076 const int foo = 10;
18078 #endif
18081 return 0;
18083 _ACEOF
18084 rm -f conftest.$ac_objext
18085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18086 (eval $ac_compile) 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag"
18094 || test ! -s conftest.err'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest.$ac_objext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_c_const=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_c_const=no
18113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18115 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18116 echo "${ECHO_T}$ac_cv_c_const" >&6
18117 if test $ac_cv_c_const = no; then
18119 cat >>confdefs.h <<\_ACEOF
18120 #define const
18121 _ACEOF
18126 works=no
18127 echo "$as_me:$LINENO: checking for working volatile" >&5
18128 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h. */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18137 main ()
18139 volatile int x; x = 0;
18141 return 0;
18143 _ACEOF
18144 rm -f conftest.$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 works=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18172 cat >>confdefs.h <<\_ACEOF
18173 #define volatile
18174 _ACEOF
18178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18179 echo "$as_me:$LINENO: result: $works" >&5
18180 echo "${ECHO_T}$works" >&6
18182 works=no
18183 echo "$as_me:$LINENO: checking for working signed char" >&5
18184 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18193 main ()
18195 signed char c;
18197 return 0;
18199 _ACEOF
18200 rm -f conftest.$ac_objext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>conftest.er1
18203 ac_status=$?
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_c_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest.$ac_objext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 works=yes
18223 else
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18228 cat >>confdefs.h <<\_ACEOF
18229 #define signed
18230 _ACEOF
18234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18235 echo "$as_me:$LINENO: result: $works" >&5
18236 echo "${ECHO_T}$works" >&6
18238 have_prototypes=no
18239 echo "$as_me:$LINENO: checking for prototypes" >&5
18240 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18241 cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h. */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247 int foo(int x) { return 0; }
18249 main ()
18251 return foo(10);
18253 return 0;
18255 _ACEOF
18256 rm -f conftest.$ac_objext
18257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258 (eval $ac_compile) 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag"
18266 || test ! -s conftest.err'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest.$ac_objext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18280 cat >>confdefs.h <<\_ACEOF
18281 #define HAVE_PROTOTYPES 1
18282 _ACEOF
18284 have_prototypes=yes
18286 else
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18292 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18293 echo "${ECHO_T}$have_prototypes" >&6
18295 works=no
18296 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18297 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 #include <stdarg.h>
18306 int foo(int x, ...) {
18307 va_list va;
18308 va_start(va, x);
18309 va_arg(va, int);
18310 va_arg(va, char *);
18311 va_arg(va, double);
18312 return 0;
18316 main ()
18318 return foo(10, "", 3.14);
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18347 cat >>confdefs.h <<\_ACEOF
18348 #define HAVE_STDARG_PROTOTYPES 1
18349 _ACEOF
18351 works=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 echo "$as_me:$LINENO: result: $works" >&5
18360 echo "${ECHO_T}$works" >&6
18362 # check for socketpair
18363 echo "$as_me:$LINENO: checking for socketpair" >&5
18364 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 #include <sys/types.h>
18373 #include <sys/socket.h>
18376 main ()
18378 void *x=socketpair
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_SOCKETPAIR 1
18408 _ACEOF
18410 echo "$as_me:$LINENO: result: yes" >&5
18411 echo "${ECHO_T}yes" >&6
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18422 # check if sockaddr has sa_len member
18423 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18424 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <sys/types.h>
18432 #include <sys/socket.h>
18434 main ()
18436 struct sockaddr x;
18437 x.sa_len = 0;
18439 return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18444 (eval $ac_compile) 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest.$ac_objext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 echo "$as_me:$LINENO: result: yes" >&5
18465 echo "${ECHO_T}yes" >&6
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE_SOCKADDR_SA_LEN 1
18469 _ACEOF
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6
18478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18480 va_list_is_array=no
18481 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18482 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 #ifdef HAVE_STDARG_PROTOTYPES
18491 #include <stdarg.h>
18492 #else
18493 #include <varargs.h>
18494 #endif
18497 main ()
18499 va_list list1, list2; list1 = list2;
18501 return 0;
18503 _ACEOF
18504 rm -f conftest.$ac_objext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18506 (eval $ac_compile) 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_c_werror_flag"
18514 || test ! -s conftest.err'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest.$ac_objext'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18527 else
18528 echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18533 cat >>confdefs.h <<\_ACEOF
18534 #define VA_LIST_IS_ARRAY 1
18535 _ACEOF
18537 va_list_is_array=yes
18540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18541 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18542 echo "${ECHO_T}$va_list_is_array" >&6
18544 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18548 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18549 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18550 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 else
18553 cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h. */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18561 #define gethostbyname_r innocuous_gethostbyname_r
18563 /* System header to define __stub macros and hopefully few prototypes,
18564 which can conflict with char gethostbyname_r (); below.
18565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18566 <limits.h> exists even on freestanding compilers. */
18568 #ifdef __STDC__
18569 # include <limits.h>
18570 #else
18571 # include <assert.h>
18572 #endif
18574 #undef gethostbyname_r
18576 /* Override any gcc2 internal prototype to avoid an error. */
18577 #ifdef __cplusplus
18578 extern "C"
18580 #endif
18581 /* We use char because int might match the return type of a gcc2
18582 builtin and then its argument prototype would still apply. */
18583 char gethostbyname_r ();
18584 /* The GNU C library defines this for functions which it implements
18585 to always fail with ENOSYS. Some functions are actually named
18586 something starting with __ and the normal name is an alias. */
18587 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18588 choke me
18589 #else
18590 char (*f) () = gethostbyname_r;
18591 #endif
18592 #ifdef __cplusplus
18594 #endif
18597 main ()
18599 return f != gethostbyname_r;
18601 return 0;
18603 _ACEOF
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -z "$ac_c_werror_flag"
18614 || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest$ac_exeext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_func_gethostbyname_r=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_func_gethostbyname_r=no
18633 rm -f conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18636 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18637 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18638 if test $ac_cv_func_gethostbyname_r = yes; then
18640 cat >>confdefs.h <<\_ACEOF
18641 #define HAVE_GETHOSTBYNAME_R 1
18642 _ACEOF
18644 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18645 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18646 OLD_CFLAGS=$CFLAGS
18647 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18648 cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h. */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18655 # include <netdb.h>
18658 main ()
18661 char *name;
18662 struct hostent *he, *res;
18663 char buffer[2048];
18664 int buflen = 2048;
18665 int h_errnop;
18667 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18670 return 0;
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18675 (eval $ac_compile) 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_c_werror_flag"
18683 || test ! -s conftest.err'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest.$ac_objext'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_GETHOSTBYNAME_R 1
18698 _ACEOF
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18703 _ACEOF
18705 echo "$as_me:$LINENO: result: yes" >&5
18706 echo "${ECHO_T}yes" >&6
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18713 echo "$as_me:$LINENO: result: no" >&5
18714 echo "${ECHO_T}no" >&6
18715 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18716 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18724 # include <netdb.h>
18727 main ()
18730 char *name;
18731 struct hostent *he;
18732 char buffer[2048];
18733 int buflen = 2048;
18734 int h_errnop;
18736 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18739 return 0;
18741 _ACEOF
18742 rm -f conftest.$ac_objext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18744 (eval $ac_compile) 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18765 cat >>confdefs.h <<\_ACEOF
18766 #define HAVE_GETHOSTBYNAME_R 1
18767 _ACEOF
18770 cat >>confdefs.h <<\_ACEOF
18771 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18772 _ACEOF
18774 echo "$as_me:$LINENO: result: yes" >&5
18775 echo "${ECHO_T}yes" >&6
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18782 echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6
18784 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18785 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18786 cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h. */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18793 # include <netdb.h>
18796 main ()
18799 char *name;
18800 struct hostent *he;
18801 struct hostent_data data;
18803 (void) gethostbyname_r(name, he, &data);
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_GETHOSTBYNAME_R 1
18834 _ACEOF
18837 cat >>confdefs.h <<\_ACEOF
18838 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18839 _ACEOF
18841 echo "$as_me:$LINENO: result: yes" >&5
18842 echo "${ECHO_T}yes" >&6
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18849 echo "$as_me:$LINENO: result: no" >&5
18850 echo "${ECHO_T}no" >&6
18853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18860 CFLAGS=$OLD_CFLAGS
18862 else
18865 for ac_func in gethostbyname
18867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18868 echo "$as_me:$LINENO: checking for $ac_func" >&5
18869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18870 if eval "test \"\${$as_ac_var+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 else
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h. */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18881 #define $ac_func innocuous_$ac_func
18883 /* System header to define __stub macros and hopefully few prototypes,
18884 which can conflict with char $ac_func (); below.
18885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18886 <limits.h> exists even on freestanding compilers. */
18888 #ifdef __STDC__
18889 # include <limits.h>
18890 #else
18891 # include <assert.h>
18892 #endif
18894 #undef $ac_func
18896 /* Override any gcc2 internal prototype to avoid an error. */
18897 #ifdef __cplusplus
18898 extern "C"
18900 #endif
18901 /* We use char because int might match the return type of a gcc2
18902 builtin and then its argument prototype would still apply. */
18903 char $ac_func ();
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18908 choke me
18909 #else
18910 char (*f) () = $ac_func;
18911 #endif
18912 #ifdef __cplusplus
18914 #endif
18917 main ()
18919 return f != $ac_func;
18921 return 0;
18923 _ACEOF
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 eval "$as_ac_var=yes"
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 eval "$as_ac_var=no"
18953 rm -f conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18958 if test `eval echo '${'$as_ac_var'}'` = yes; then
18959 cat >>confdefs.h <<_ACEOF
18960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18961 _ACEOF
18964 done
18975 # checks for system services
18976 # (none yet)
18978 # Linux requires this for correct f.p. operations
18979 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18980 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18981 if test "${ac_cv_func___fpu_control+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 else
18984 cat >conftest.$ac_ext <<_ACEOF
18985 /* confdefs.h. */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18992 #define __fpu_control innocuous___fpu_control
18994 /* System header to define __stub macros and hopefully few prototypes,
18995 which can conflict with char __fpu_control (); below.
18996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997 <limits.h> exists even on freestanding compilers. */
18999 #ifdef __STDC__
19000 # include <limits.h>
19001 #else
19002 # include <assert.h>
19003 #endif
19005 #undef __fpu_control
19007 /* Override any gcc2 internal prototype to avoid an error. */
19008 #ifdef __cplusplus
19009 extern "C"
19011 #endif
19012 /* We use char because int might match the return type of a gcc2
19013 builtin and then its argument prototype would still apply. */
19014 char __fpu_control ();
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19019 choke me
19020 #else
19021 char (*f) () = __fpu_control;
19022 #endif
19023 #ifdef __cplusplus
19025 #endif
19028 main ()
19030 return f != __fpu_control;
19032 return 0;
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag"
19045 || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_func___fpu_control=yes
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_func___fpu_control=no
19064 rm -f conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19068 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19069 if test $ac_cv_func___fpu_control = yes; then
19071 else
19073 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19074 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19075 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078 ac_check_lib_save_LIBS=$LIBS
19079 LIBS="-lieee $LIBS"
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19087 /* Override any gcc2 internal prototype to avoid an error. */
19088 #ifdef __cplusplus
19089 extern "C"
19090 #endif
19091 /* We use char because int might match the return type of a gcc2
19092 builtin and then its argument prototype would still apply. */
19093 char __fpu_control ();
19095 main ()
19097 __fpu_control ();
19099 return 0;
19101 _ACEOF
19102 rm -f conftest.$ac_objext conftest$ac_exeext
19103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19104 (eval $ac_link) 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } &&
19111 { ac_try='test -z "$ac_c_werror_flag"
19112 || test ! -s conftest.err'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_ieee___fpu_control=yes
19125 else
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ac_cv_lib_ieee___fpu_control=no
19131 rm -f conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19136 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19137 if test $ac_cv_lib_ieee___fpu_control = yes; then
19138 cat >>confdefs.h <<_ACEOF
19139 #define HAVE_LIBIEEE 1
19140 _ACEOF
19142 LIBS="-lieee $LIBS"
19150 # Check for --with-fpectl
19151 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19152 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19154 # Check whether --with-fpectl or --without-fpectl was given.
19155 if test "${with_fpectl+set}" = set; then
19156 withval="$with_fpectl"
19158 if test "$withval" != no
19159 then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define WANT_SIGFPE_HANDLER 1
19163 _ACEOF
19165 echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6
19167 else echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6
19170 else
19171 echo "$as_me:$LINENO: result: no" >&5
19172 echo "${ECHO_T}no" >&6
19175 # check for --with-libm=...
19177 case $ac_sys_system in
19178 Darwin) ;;
19179 BeOS) ;;
19180 *) LIBM=-lm
19181 esac
19182 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19183 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19185 # Check whether --with-libm or --without-libm was given.
19186 if test "${with_libm+set}" = set; then
19187 withval="$with_libm"
19189 if test "$withval" = no
19190 then LIBM=
19191 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19192 echo "${ECHO_T}force LIBM empty" >&6
19193 elif test "$withval" != yes
19194 then LIBM=$withval
19195 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19196 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19197 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19198 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19199 { (exit 1); exit 1; }; }
19201 else
19202 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19203 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19206 # check for --with-libc=...
19208 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19209 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19211 # Check whether --with-libc or --without-libc was given.
19212 if test "${with_libc+set}" = set; then
19213 withval="$with_libc"
19215 if test "$withval" = no
19216 then LIBC=
19217 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19218 echo "${ECHO_T}force LIBC empty" >&6
19219 elif test "$withval" != yes
19220 then LIBC=$withval
19221 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19222 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19223 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19224 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19225 { (exit 1); exit 1; }; }
19227 else
19228 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19229 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19232 # check for hypot() in math library
19233 LIBS_SAVE=$LIBS
19234 LIBS="$LIBS $LIBM"
19236 for ac_func in hypot
19238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19239 echo "$as_me:$LINENO: checking for $ac_func" >&5
19240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19241 if eval "test \"\${$as_ac_var+set}\" = set"; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define $ac_func innocuous_$ac_func
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char $ac_func (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19259 #ifdef __STDC__
19260 # include <limits.h>
19261 #else
19262 # include <assert.h>
19263 #endif
19265 #undef $ac_func
19267 /* Override any gcc2 internal prototype to avoid an error. */
19268 #ifdef __cplusplus
19269 extern "C"
19271 #endif
19272 /* We use char because int might match the return type of a gcc2
19273 builtin and then its argument prototype would still apply. */
19274 char $ac_func ();
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19279 choke me
19280 #else
19281 char (*f) () = $ac_func;
19282 #endif
19283 #ifdef __cplusplus
19285 #endif
19288 main ()
19290 return f != $ac_func;
19292 return 0;
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297 (eval $ac_link) 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try='test -z "$ac_c_werror_flag"
19305 || test ! -s conftest.err'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 eval "$as_ac_var=yes"
19318 else
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 eval "$as_ac_var=no"
19324 rm -f conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19329 if test `eval echo '${'$as_ac_var'}'` = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19332 _ACEOF
19334 else
19335 case $LIBOBJS in
19336 "$ac_func.$ac_objext" | \
19337 *" $ac_func.$ac_objext" | \
19338 "$ac_func.$ac_objext "* | \
19339 *" $ac_func.$ac_objext "* ) ;;
19340 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19341 esac
19344 done
19347 LIBS=$LIBS_SAVE
19349 # check for wchar.h
19350 if test "${ac_cv_header_wchar_h+set}" = set; then
19351 echo "$as_me:$LINENO: checking for wchar.h" >&5
19352 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19353 if test "${ac_cv_header_wchar_h+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19357 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19358 else
19359 # Is the header compilable?
19360 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19361 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19369 #include <wchar.h>
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_header_compiler=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_header_compiler=no
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19402 echo "${ECHO_T}$ac_header_compiler" >&6
19404 # Is the header present?
19405 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19406 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <wchar.h>
19414 _ACEOF
19415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } >/dev/null; then
19423 if test -s conftest.err; then
19424 ac_cpp_err=$ac_c_preproc_warn_flag
19425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19426 else
19427 ac_cpp_err=
19429 else
19430 ac_cpp_err=yes
19432 if test -z "$ac_cpp_err"; then
19433 ac_header_preproc=yes
19434 else
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_header_preproc=no
19440 rm -f conftest.err conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19442 echo "${ECHO_T}$ac_header_preproc" >&6
19444 # So? What about this header?
19445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19446 yes:no: )
19447 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19448 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19450 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19451 ac_header_preproc=yes
19453 no:yes:* )
19454 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19455 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19457 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19459 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19461 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19463 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19465 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19467 cat <<\_ASBOX
19468 ## ------------------------------------------------ ##
19469 ## Report this to http://www.python.org/python-bugs ##
19470 ## ------------------------------------------------ ##
19471 _ASBOX
19473 sed "s/^/$as_me: WARNING: /" >&2
19475 esac
19476 echo "$as_me:$LINENO: checking for wchar.h" >&5
19477 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19478 if test "${ac_cv_header_wchar_h+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 ac_cv_header_wchar_h=$ac_header_preproc
19483 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19484 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19487 if test $ac_cv_header_wchar_h = yes; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_WCHAR_H 1
19492 _ACEOF
19494 wchar_h="yes"
19496 else
19497 wchar_h="no"
19503 # determine wchar_t size
19504 if test "$wchar_h" = yes
19505 then
19506 echo "$as_me:$LINENO: checking for wchar_t" >&5
19507 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19508 if test "${ac_cv_type_wchar_t+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 #include <wchar.h>
19520 main ()
19522 if ((wchar_t *) 0)
19523 return 0;
19524 if (sizeof (wchar_t))
19525 return 0;
19527 return 0;
19529 _ACEOF
19530 rm -f conftest.$ac_objext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19532 (eval $ac_compile) 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try='test -z "$ac_c_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_type_wchar_t=yes
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_cv_type_wchar_t=no
19559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19562 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19564 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19565 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19566 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569 if test "$ac_cv_type_wchar_t" = yes; then
19570 # The cast to unsigned long works around a bug in the HP C Compiler
19571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19573 # This bug is HP SR number 8606223364.
19574 if test "$cross_compiling" = yes; then
19575 # Depending upon the size, compute the lo and hi bounds.
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <wchar.h>
19585 main ()
19587 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19588 test_array [0] = 0
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -z "$ac_c_werror_flag"
19604 || test ! -s conftest.err'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_lo=0 ac_mid=0
19617 while :; do
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h. */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19624 #include <wchar.h>
19627 main ()
19629 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19630 test_array [0] = 0
19633 return 0;
19635 _ACEOF
19636 rm -f conftest.$ac_objext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>conftest.er1
19639 ac_status=$?
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_hi=$ac_mid; break
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_lo=`expr $ac_mid + 1`
19664 if test $ac_lo -le $ac_mid; then
19665 ac_lo= ac_hi=
19666 break
19668 ac_mid=`expr 2 '*' $ac_mid + 1`
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 done
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <wchar.h>
19685 main ()
19687 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19688 test_array [0] = 0
19691 return 0;
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696 (eval $ac_compile) 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_hi=-1 ac_mid=-1
19717 while :; do
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <wchar.h>
19727 main ()
19729 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19730 test_array [0] = 0
19733 return 0;
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738 (eval $ac_compile) 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag"
19746 || test ! -s conftest.err'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_lo=$ac_mid; break
19759 else
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_hi=`expr '(' $ac_mid ')' - 1`
19764 if test $ac_mid -le $ac_hi; then
19765 ac_lo= ac_hi=
19766 break
19768 ac_mid=`expr 2 '*' $ac_mid`
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771 done
19772 else
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 ac_lo= ac_hi=
19778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19781 # Binary search between lo and hi bounds.
19782 while test "x$ac_lo" != "x$ac_hi"; do
19783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <wchar.h>
19793 main ()
19795 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19796 test_array [0] = 0
19799 return 0;
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_hi=$ac_mid
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_lo=`expr '(' $ac_mid ')' + 1`
19831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19832 done
19833 case $ac_lo in
19834 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19836 See \`config.log' for more details." >&5
19837 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19838 See \`config.log' for more details." >&2;}
19839 { (exit 1); exit 1; }; } ;;
19840 esac
19841 else
19842 if test "$cross_compiling" = yes; then
19843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19844 See \`config.log' for more details." >&5
19845 echo "$as_me: error: cannot run test program while cross compiling
19846 See \`config.log' for more details." >&2;}
19847 { (exit 1); exit 1; }; }
19848 else
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <wchar.h>
19857 long longval () { return (long) (sizeof (wchar_t)); }
19858 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19859 #include <stdio.h>
19860 #include <stdlib.h>
19862 main ()
19865 FILE *f = fopen ("conftest.val", "w");
19866 if (! f)
19867 exit (1);
19868 if (((long) (sizeof (wchar_t))) < 0)
19870 long i = longval ();
19871 if (i != ((long) (sizeof (wchar_t))))
19872 exit (1);
19873 fprintf (f, "%ld\n", i);
19875 else
19877 unsigned long i = ulongval ();
19878 if (i != ((long) (sizeof (wchar_t))))
19879 exit (1);
19880 fprintf (f, "%lu\n", i);
19882 exit (ferror (f) || fclose (f) != 0);
19885 return 0;
19887 _ACEOF
19888 rm -f conftest$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890 (eval $ac_link) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_cv_sizeof_wchar_t=`cat conftest.val`
19900 else
19901 echo "$as_me: program exited with status $ac_status" >&5
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ( exit $ac_status )
19906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19907 See \`config.log' for more details." >&5
19908 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19909 See \`config.log' for more details." >&2;}
19910 { (exit 1); exit 1; }; }
19912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19915 rm -f conftest.val
19916 else
19917 ac_cv_sizeof_wchar_t=0
19920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19921 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19922 cat >>confdefs.h <<_ACEOF
19923 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19924 _ACEOF
19929 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19930 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19931 have_ucs4_tcl=no
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h. */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19939 #include <tcl.h>
19940 #if TCL_UTF_MAX != 6
19941 # error "NOT UCS4_TCL"
19942 #endif
19944 main ()
19948 return 0;
19950 _ACEOF
19951 rm -f conftest.$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_c_werror_flag"
19961 || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19975 cat >>confdefs.h <<\_ACEOF
19976 #define HAVE_UCS4_TCL 1
19977 _ACEOF
19979 have_ucs4_tcl=yes
19981 else
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19987 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19988 echo "${ECHO_T}$have_ucs4_tcl" >&6
19990 # check whether wchar_t is signed or not
19991 if test "$wchar_h" = yes
19992 then
19993 # check whether wchar_t is signed or not
19994 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19995 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19996 if test "${ac_cv_wchar_t_signed+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
20000 if test "$cross_compiling" = yes; then
20001 ac_cv_wchar_t_signed=yes
20002 else
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h. */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20010 #include <wchar.h>
20011 int main()
20013 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20016 _ACEOF
20017 rm -f conftest$ac_exeext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20019 (eval $ac_link) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_wchar_t_signed=yes
20029 else
20030 echo "$as_me: program exited with status $ac_status" >&5
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ( exit $ac_status )
20035 ac_cv_wchar_t_signed=no
20037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20042 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20045 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20046 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20047 # Check whether --enable-unicode or --disable-unicode was given.
20048 if test "${enable_unicode+set}" = set; then
20049 enableval="$enable_unicode"
20051 else
20052 enable_unicode=yes
20055 if test $enable_unicode = yes
20056 then
20057 # Without any arguments, Py_UNICODE defaults to two-byte mode
20058 case "$have_ucs4_tcl" in
20059 yes) enable_unicode="ucs4"
20061 *) enable_unicode="ucs2"
20063 esac
20068 case "$enable_unicode" in
20069 ucs2) unicode_size="2"
20070 cat >>confdefs.h <<\_ACEOF
20071 #define Py_UNICODE_SIZE 2
20072 _ACEOF
20075 ucs4) unicode_size="4"
20076 cat >>confdefs.h <<\_ACEOF
20077 #define Py_UNICODE_SIZE 4
20078 _ACEOF
20081 esac
20087 if test "$enable_unicode" = "no"
20088 then
20089 UNICODE_OBJS=""
20090 echo "$as_me:$LINENO: result: not used" >&5
20091 echo "${ECHO_T}not used" >&6
20092 else
20093 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20095 cat >>confdefs.h <<\_ACEOF
20096 #define Py_USING_UNICODE 1
20097 _ACEOF
20100 # wchar_t is only usable if it maps to an unsigned type
20101 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20102 -a "$ac_cv_wchar_t_signed" = "no"
20103 then
20104 PY_UNICODE_TYPE="wchar_t"
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_USABLE_WCHAR_T 1
20108 _ACEOF
20110 cat >>confdefs.h <<\_ACEOF
20111 #define PY_UNICODE_TYPE wchar_t
20112 _ACEOF
20114 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20115 then
20116 PY_UNICODE_TYPE="unsigned short"
20117 cat >>confdefs.h <<\_ACEOF
20118 #define PY_UNICODE_TYPE unsigned short
20119 _ACEOF
20121 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20122 then
20123 PY_UNICODE_TYPE="unsigned long"
20124 cat >>confdefs.h <<\_ACEOF
20125 #define PY_UNICODE_TYPE unsigned long
20126 _ACEOF
20128 else
20129 PY_UNICODE_TYPE="no type found"
20131 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20132 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20135 # check for endianness
20136 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20137 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20138 if test "${ac_cv_c_bigendian+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141 # See if sys/param.h defines the BYTE_ORDER macro.
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <sys/types.h>
20149 #include <sys/param.h>
20152 main ()
20154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20155 bogus endian macros
20156 #endif
20159 return 0;
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_c_werror_flag"
20172 || test ! -s conftest.err'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try='test -s conftest.$ac_objext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 # It does; now see whether it defined to BIG_ENDIAN or not.
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <sys/types.h>
20192 #include <sys/param.h>
20195 main ()
20197 #if BYTE_ORDER != BIG_ENDIAN
20198 not big endian
20199 #endif
20202 return 0;
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>conftest.er1
20208 ac_status=$?
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -z "$ac_c_werror_flag"
20215 || test ! -s conftest.err'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_c_bigendian=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_c_bigendian=no
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 else
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 # It does not; compile a test program.
20240 if test "$cross_compiling" = yes; then
20241 # try to guess the endianness by grepping values into an object file
20242 ac_cv_c_bigendian=unknown
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20250 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20251 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20252 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20253 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20254 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20256 main ()
20258 _ascii (); _ebcdic ();
20260 return 0;
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20286 ac_cv_c_bigendian=yes
20288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20289 if test "$ac_cv_c_bigendian" = unknown; then
20290 ac_cv_c_bigendian=no
20291 else
20292 # finding both strings is unlikely to happen, but who knows?
20293 ac_cv_c_bigendian=unknown
20296 else
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 else
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 main ()
20312 /* Are we little or big endian? From Harbison&Steele. */
20313 union
20315 long l;
20316 char c[sizeof (long)];
20317 } u;
20318 u.l = 1;
20319 exit (u.c[sizeof (long) - 1] == 1);
20321 _ACEOF
20322 rm -f conftest$ac_exeext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324 (eval $ac_link) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_c_bigendian=no
20334 else
20335 echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ( exit $ac_status )
20340 ac_cv_c_bigendian=yes
20342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20347 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20349 case $ac_cv_c_bigendian in
20350 yes)
20352 cat >>confdefs.h <<\_ACEOF
20353 #define WORDS_BIGENDIAN 1
20354 _ACEOF
20359 { { echo "$as_me:$LINENO: error: unknown endianness
20360 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20361 echo "$as_me: error: unknown endianness
20362 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20363 { (exit 1); exit 1; }; } ;;
20364 esac
20367 # Check whether right shifting a negative integer extends the sign bit
20368 # or fills with zeros (like the Cray J90, according to Tim Peters).
20369 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20370 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20371 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20375 if test "$cross_compiling" = yes; then
20376 ac_cv_rshift_extends_sign=yes
20377 else
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20385 int main()
20387 exit(((-1)>>3 == -1) ? 0 : 1);
20390 _ACEOF
20391 rm -f conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_rshift_extends_sign=yes
20403 else
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ( exit $ac_status )
20409 ac_cv_rshift_extends_sign=no
20411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20415 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20416 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20417 if test "$ac_cv_rshift_extends_sign" = no
20418 then
20420 cat >>confdefs.h <<\_ACEOF
20421 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20422 _ACEOF
20426 # check for getc_unlocked and related locking functions
20427 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20428 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20429 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <stdio.h>
20441 main ()
20444 FILE *f = fopen("/dev/null", "r");
20445 flockfile(f);
20446 getc_unlocked(f);
20447 funlockfile(f);
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455 (eval $ac_link) 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest$ac_exeext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_have_getc_unlocked=yes
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_have_getc_unlocked=no
20482 rm -f conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20487 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20488 if test "$ac_cv_have_getc_unlocked" = yes
20489 then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_GETC_UNLOCKED 1
20493 _ACEOF
20497 # check where readline lives
20498 # save the value of LIBS so we don't actually link Python with readline
20499 LIBS_no_readline=$LIBS
20501 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20502 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20503 if test "${ac_cv_lib_readline_readline+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lreadline $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any gcc2 internal prototype to avoid an error. */
20516 #ifdef __cplusplus
20517 extern "C"
20518 #endif
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20521 char readline ();
20523 main ()
20525 readline ();
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_lib_readline_readline=yes
20553 else
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_cv_lib_readline_readline=no
20559 rm -f conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20563 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20564 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20565 if test $ac_cv_lib_readline_readline = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define HAVE_LIBREADLINE 1
20568 _ACEOF
20570 LIBS="-lreadline $LIBS"
20574 if test "$ac_cv_have_readline_readline" = no
20575 then
20577 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20578 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20579 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-ltermcap $LIBS"
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 /* Override any gcc2 internal prototype to avoid an error. */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 /* We use char because int might match the return type of a gcc2
20596 builtin and then its argument prototype would still apply. */
20597 char readline ();
20599 main ()
20601 readline ();
20603 return 0;
20605 _ACEOF
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608 (eval $ac_link) 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest$ac_exeext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_lib_termcap_readline=yes
20629 else
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 ac_cv_lib_termcap_readline=no
20635 rm -f conftest.err conftest.$ac_objext \
20636 conftest$ac_exeext conftest.$ac_ext
20637 LIBS=$ac_check_lib_save_LIBS
20639 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20640 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20641 if test $ac_cv_lib_termcap_readline = yes; then
20642 cat >>confdefs.h <<_ACEOF
20643 #define HAVE_LIBTERMCAP 1
20644 _ACEOF
20646 LIBS="-ltermcap $LIBS"
20652 # check for readline 2.1
20653 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20654 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20655 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658 ac_check_lib_save_LIBS=$LIBS
20659 LIBS="-lreadline $LIBS"
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h. */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20667 /* Override any gcc2 internal prototype to avoid an error. */
20668 #ifdef __cplusplus
20669 extern "C"
20670 #endif
20671 /* We use char because int might match the return type of a gcc2
20672 builtin and then its argument prototype would still apply. */
20673 char rl_callback_handler_install ();
20675 main ()
20677 rl_callback_handler_install ();
20679 return 0;
20681 _ACEOF
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20684 (eval $ac_link) 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
20691 { ac_try='test -z "$ac_c_werror_flag"
20692 || test ! -s conftest.err'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try='test -s conftest$ac_exeext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_lib_readline_rl_callback_handler_install=yes
20705 else
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_cv_lib_readline_rl_callback_handler_install=no
20711 rm -f conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20713 LIBS=$ac_check_lib_save_LIBS
20715 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20716 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20717 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_RL_CALLBACK 1
20721 _ACEOF
20726 # check for readline 2.2
20727 cat >conftest.$ac_ext <<_ACEOF
20728 /* confdefs.h. */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 #include <readline/readline.h>
20734 _ACEOF
20735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } >/dev/null; then
20743 if test -s conftest.err; then
20744 ac_cpp_err=$ac_c_preproc_warn_flag
20745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20746 else
20747 ac_cpp_err=
20749 else
20750 ac_cpp_err=yes
20752 if test -z "$ac_cpp_err"; then
20753 have_readline=yes
20754 else
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 have_readline=no
20760 rm -f conftest.err conftest.$ac_ext
20761 if test $have_readline = yes
20762 then
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <readline/readline.h>
20771 _ACEOF
20772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20773 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20777 _ACEOF
20780 rm -f conftest*
20784 # check for readline 4.0
20785 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20786 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20787 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 ac_check_lib_save_LIBS=$LIBS
20791 LIBS="-lreadline $LIBS"
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any gcc2 internal prototype to avoid an error. */
20800 #ifdef __cplusplus
20801 extern "C"
20802 #endif
20803 /* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805 char rl_pre_input_hook ();
20807 main ()
20809 rl_pre_input_hook ();
20811 return 0;
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_lib_readline_rl_pre_input_hook=yes
20837 else
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_lib_readline_rl_pre_input_hook=no
20843 rm -f conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20848 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20849 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_RL_PRE_INPUT_HOOK 1
20853 _ACEOF
20858 # check for readline 4.2
20859 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20860 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20861 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 ac_check_lib_save_LIBS=$LIBS
20865 LIBS="-lreadline $LIBS"
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h. */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20873 /* Override any gcc2 internal prototype to avoid an error. */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 /* We use char because int might match the return type of a gcc2
20878 builtin and then its argument prototype would still apply. */
20879 char rl_completion_matches ();
20881 main ()
20883 rl_completion_matches ();
20885 return 0;
20887 _ACEOF
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_lib_readline_rl_completion_matches=yes
20911 else
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_lib_readline_rl_completion_matches=no
20917 rm -f conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20922 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20923 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_RL_COMPLETION_MATCHES 1
20927 _ACEOF
20932 # also in readline 4.2
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <readline/readline.h>
20940 _ACEOF
20941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } >/dev/null; then
20949 if test -s conftest.err; then
20950 ac_cpp_err=$ac_c_preproc_warn_flag
20951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20952 else
20953 ac_cpp_err=
20955 else
20956 ac_cpp_err=yes
20958 if test -z "$ac_cpp_err"; then
20959 have_readline=yes
20960 else
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 have_readline=no
20966 rm -f conftest.err conftest.$ac_ext
20967 if test $have_readline = yes
20968 then
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <readline/readline.h>
20977 _ACEOF
20978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20979 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20981 cat >>confdefs.h <<\_ACEOF
20982 #define HAVE_RL_CATCH_SIGNAL 1
20983 _ACEOF
20986 rm -f conftest*
20990 # End of readline checks: restore LIBS
20991 LIBS=$LIBS_no_readline
20993 echo "$as_me:$LINENO: checking for broken nice()" >&5
20994 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20995 if test "${ac_cv_broken_nice+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20999 if test "$cross_compiling" = yes; then
21000 ac_cv_broken_nice=no
21001 else
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 int main()
21011 int val1 = nice(1);
21012 if (val1 != -1 && val1 == nice(2))
21013 exit(0);
21014 exit(1);
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_broken_nice=yes
21030 else
21031 echo "$as_me: program exited with status $ac_status" >&5
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ( exit $ac_status )
21036 ac_cv_broken_nice=no
21038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21043 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21044 if test "$ac_cv_broken_nice" = yes
21045 then
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_BROKEN_NICE 1
21049 _ACEOF
21053 echo "$as_me:$LINENO: checking for broken poll()" >&5
21054 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21055 if test "$cross_compiling" = yes; then
21056 ac_cv_broken_poll=no
21057 else
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21065 #include <poll.h>
21067 int main (void)
21069 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21071 close (42);
21073 int poll_test = poll (&poll_struct, 1, 0);
21075 if (poll_test < 0)
21077 exit(0);
21079 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21081 exit(0);
21083 else
21085 exit(1);
21089 _ACEOF
21090 rm -f conftest$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092 (eval $ac_link) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_broken_poll=yes
21102 else
21103 echo "$as_me: program exited with status $ac_status" >&5
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ( exit $ac_status )
21108 ac_cv_broken_poll=no
21110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21112 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21113 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21114 if test "$ac_cv_broken_poll" = yes
21115 then
21117 cat >>confdefs.h <<\_ACEOF
21118 #define HAVE_BROKEN_POLL 1
21119 _ACEOF
21123 # Before we can test tzset, we need to check if struct tm has a tm_zone
21124 # (which is not required by ISO C or UNIX spec) and/or if we support
21125 # tzname[]
21126 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21127 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21128 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <sys/types.h>
21138 #include <$ac_cv_struct_tm>
21142 main ()
21144 static struct tm ac_aggr;
21145 if (ac_aggr.tm_zone)
21146 return 0;
21148 return 0;
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153 (eval $ac_compile) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
21160 { ac_try='test -z "$ac_c_werror_flag"
21161 || test ! -s conftest.err'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 ac_cv_member_struct_tm_tm_zone=yes
21174 else
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <sys/types.h>
21185 #include <$ac_cv_struct_tm>
21189 main ()
21191 static struct tm ac_aggr;
21192 if (sizeof ac_aggr.tm_zone)
21193 return 0;
21195 return 0;
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_member_struct_tm_tm_zone=yes
21221 else
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_cv_member_struct_tm_tm_zone=no
21227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21232 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21233 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21235 cat >>confdefs.h <<_ACEOF
21236 #define HAVE_STRUCT_TM_TM_ZONE 1
21237 _ACEOF
21242 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21244 cat >>confdefs.h <<\_ACEOF
21245 #define HAVE_TM_ZONE 1
21246 _ACEOF
21248 else
21249 echo "$as_me:$LINENO: checking for tzname" >&5
21250 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21251 if test "${ac_cv_var_tzname+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 #include <time.h>
21261 #ifndef tzname /* For SGI. */
21262 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21263 #endif
21266 main ()
21268 atoi(*tzname);
21270 return 0;
21272 _ACEOF
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>conftest.er1
21276 ac_status=$?
21277 grep -v '^ *+' conftest.er1 >conftest.err
21278 rm -f conftest.er1
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag"
21283 || test ! -s conftest.err'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest$ac_exeext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_var_tzname=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_cv_var_tzname=no
21302 rm -f conftest.err conftest.$ac_objext \
21303 conftest$ac_exeext conftest.$ac_ext
21305 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21306 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21307 if test $ac_cv_var_tzname = yes; then
21309 cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_TZNAME 1
21311 _ACEOF
21317 # check tzset(3) exists and works like we expect it to
21318 echo "$as_me:$LINENO: checking for working tzset()" >&5
21319 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21320 if test "${ac_cv_working_tzset+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21324 if test "$cross_compiling" = yes; then
21325 ac_cv_working_tzset=no
21326 else
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21334 #include <stdlib.h>
21335 #include <time.h>
21336 #include <string.h>
21338 #if HAVE_TZNAME
21339 extern char *tzname[];
21340 #endif
21342 int main()
21344 /* Note that we need to ensure that not only does tzset(3)
21345 do 'something' with localtime, but it works as documented
21346 in the library reference and as expected by the test suite.
21347 This includes making sure that tzname is set properly if
21348 tm->tm_zone does not exist since it is the alternative way
21349 of getting timezone info.
21351 Red Hat 6.2 doesn't understand the southern hemisphere
21352 after New Year's Day.
21355 time_t groundhogday = 1044144000; /* GMT-based */
21356 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21358 putenv("TZ=UTC+0");
21359 tzset();
21360 if (localtime(&groundhogday)->tm_hour != 0)
21361 exit(1);
21362 #if HAVE_TZNAME
21363 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21364 if (strcmp(tzname[0], "UTC") ||
21365 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21366 exit(1);
21367 #endif
21369 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21370 tzset();
21371 if (localtime(&groundhogday)->tm_hour != 19)
21372 exit(1);
21373 #if HAVE_TZNAME
21374 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21375 exit(1);
21376 #endif
21378 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21379 tzset();
21380 if (localtime(&groundhogday)->tm_hour != 11)
21381 exit(1);
21382 #if HAVE_TZNAME
21383 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21384 exit(1);
21385 #endif
21387 #if HAVE_STRUCT_TM_TM_ZONE
21388 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21389 exit(1);
21390 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21391 exit(1);
21392 #endif
21394 exit(0);
21397 _ACEOF
21398 rm -f conftest$ac_exeext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_cv_working_tzset=yes
21410 else
21411 echo "$as_me: program exited with status $ac_status" >&5
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 ( exit $ac_status )
21416 ac_cv_working_tzset=no
21418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21423 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21424 if test "$ac_cv_working_tzset" = yes
21425 then
21427 cat >>confdefs.h <<\_ACEOF
21428 #define HAVE_WORKING_TZSET 1
21429 _ACEOF
21433 # Look for subsecond timestamps in struct stat
21434 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21435 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21436 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <sys/stat.h>
21447 main ()
21450 struct stat st;
21451 st.st_mtim.tv_nsec = 1;
21454 return 0;
21456 _ACEOF
21457 rm -f conftest.$ac_objext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459 (eval $ac_compile) 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } &&
21466 { ac_try='test -z "$ac_c_werror_flag"
21467 || test ! -s conftest.err'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; } &&
21473 { ac_try='test -s conftest.$ac_objext'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479 ac_cv_stat_tv_nsec=yes
21480 else
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_cv_stat_tv_nsec=no
21486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21490 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21491 if test "$ac_cv_stat_tv_nsec" = yes
21492 then
21494 cat >>confdefs.h <<\_ACEOF
21495 #define HAVE_STAT_TV_NSEC 1
21496 _ACEOF
21500 # Look for BSD style subsecond timestamps in struct stat
21501 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21502 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21503 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <sys/stat.h>
21514 main ()
21517 struct stat st;
21518 st.st_mtimespec.tv_nsec = 1;
21521 return 0;
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21527 ac_status=$?
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_stat_tv_nsec2=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_stat_tv_nsec2=no
21553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21557 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21558 if test "$ac_cv_stat_tv_nsec2" = yes
21559 then
21561 cat >>confdefs.h <<\_ACEOF
21562 #define HAVE_STAT_TV_NSEC2 1
21563 _ACEOF
21567 # On HP/UX 11.0, mvwdelch is a block with a return statement
21568 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21569 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21570 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 else
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <curses.h>
21581 main ()
21584 int rtn;
21585 rtn = mvwdelch(0,0,0);
21588 return 0;
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593 (eval $ac_compile) 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try='test -z "$ac_c_werror_flag"
21601 || test ! -s conftest.err'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest.$ac_objext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_mvwdelch_is_expression=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_cv_mvwdelch_is_expression=no
21620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21623 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21624 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21626 if test "$ac_cv_mvwdelch_is_expression" = yes
21627 then
21629 cat >>confdefs.h <<\_ACEOF
21630 #define MVWDELCH_IS_EXPRESSION 1
21631 _ACEOF
21635 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21636 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21637 if test "${ac_cv_window_has_flags+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <curses.h>
21648 main ()
21651 WINDOW *w;
21652 w->_flags = 0;
21655 return 0;
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag"
21668 || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_window_has_flags=yes
21681 else
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_window_has_flags=no
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21690 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21691 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21694 if test "$ac_cv_window_has_flags" = yes
21695 then
21697 cat >>confdefs.h <<\_ACEOF
21698 #define WINDOW_HAS_FLAGS 1
21699 _ACEOF
21703 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21704 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21706 if test -e /dev/ptmx
21707 then
21708 echo "$as_me:$LINENO: result: yes" >&5
21709 echo "${ECHO_T}yes" >&6
21711 cat >>confdefs.h <<\_ACEOF
21712 #define HAVE_DEV_PTMX 1
21713 _ACEOF
21715 else
21716 echo "$as_me:$LINENO: result: no" >&5
21717 echo "${ECHO_T}no" >&6
21720 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21721 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21723 if test -e /dev/ptc
21724 then
21725 echo "$as_me:$LINENO: result: yes" >&5
21726 echo "${ECHO_T}yes" >&6
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_DEV_PTC 1
21730 _ACEOF
21732 else
21733 echo "$as_me:$LINENO: result: no" >&5
21734 echo "${ECHO_T}no" >&6
21737 echo "$as_me:$LINENO: checking for socklen_t" >&5
21738 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21739 if test "${ac_cv_type_socklen_t+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21749 #ifdef HAVE_SYS_TYPES_H
21750 #include <sys/types.h>
21751 #endif
21752 #ifdef HAVE_SYS_SOCKET_H
21753 #include <sys/socket.h>
21754 #endif
21758 main ()
21760 if ((socklen_t *) 0)
21761 return 0;
21762 if (sizeof (socklen_t))
21763 return 0;
21765 return 0;
21767 _ACEOF
21768 rm -f conftest.$ac_objext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770 (eval $ac_compile) 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try='test -z "$ac_c_werror_flag"
21778 || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_cv_type_socklen_t=yes
21791 else
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_cv_type_socklen_t=no
21797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21800 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21801 if test $ac_cv_type_socklen_t = yes; then
21803 else
21805 cat >>confdefs.h <<\_ACEOF
21806 #define socklen_t int
21807 _ACEOF
21814 for h in `(cd $srcdir;echo Python/thread_*.h)`
21816 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21817 done
21820 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21821 echo "$as_me:$LINENO: checking for build directories" >&5
21822 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21823 for dir in $SRCDIRS; do
21824 if test ! -d $dir; then
21825 mkdir $dir
21827 done
21828 echo "$as_me:$LINENO: result: done" >&5
21829 echo "${ECHO_T}done" >&6
21831 # generate output files
21832 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21834 cat >confcache <<\_ACEOF
21835 # This file is a shell script that caches the results of configure
21836 # tests run on this system so they can be shared between configure
21837 # scripts and configure runs, see configure's option --config-cache.
21838 # It is not useful on other systems. If it contains results you don't
21839 # want to keep, you may remove or edit it.
21841 # config.status only pays attention to the cache file if you give it
21842 # the --recheck option to rerun configure.
21844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21846 # following values.
21848 _ACEOF
21850 # The following way of writing the cache mishandles newlines in values,
21851 # but we know of no workaround that is simple, portable, and efficient.
21852 # So, don't put newlines in cache variables' values.
21853 # Ultrix sh set writes to stderr and can't be redirected directly,
21854 # and sets the high bit in the cache file unless we assign to the vars.
21856 (set) 2>&1 |
21857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21858 *ac_space=\ *)
21859 # `set' does not quote correctly, so add quotes (double-quote
21860 # substitution turns \\\\ into \\, and sed turns \\ into \).
21861 sed -n \
21862 "s/'/'\\\\''/g;
21863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21866 # `set' quotes correctly as required by POSIX, so do not add quotes.
21867 sed -n \
21868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21870 esac;
21872 sed '
21873 t clear
21874 : clear
21875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21876 t end
21877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21878 : end' >>confcache
21879 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21880 if test -w $cache_file; then
21881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21882 cat confcache >$cache_file
21883 else
21884 echo "not updating unwritable cache $cache_file"
21887 rm -f confcache
21889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21890 # Let make expand exec_prefix.
21891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21895 # trailing colons and then remove the whole line if VPATH becomes empty
21896 # (actually we leave an empty line to preserve line numbers).
21897 if test "x$srcdir" = x.; then
21898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21899 s/:*\$(srcdir):*/:/;
21900 s/:*\${srcdir}:*/:/;
21901 s/:*@srcdir@:*/:/;
21902 s/^\([^=]*=[ ]*\):*/\1/;
21903 s/:*$//;
21904 s/^[^=]*=[ ]*$//;
21908 DEFS=-DHAVE_CONFIG_H
21910 ac_libobjs=
21911 ac_ltlibobjs=
21912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21913 # 1. Remove the extension, and $U if already installed.
21914 ac_i=`echo "$ac_i" |
21915 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21916 # 2. Add them.
21917 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21918 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21919 done
21920 LIBOBJS=$ac_libobjs
21922 LTLIBOBJS=$ac_ltlibobjs
21926 : ${CONFIG_STATUS=./config.status}
21927 ac_clean_files_save=$ac_clean_files
21928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21931 cat >$CONFIG_STATUS <<_ACEOF
21932 #! $SHELL
21933 # Generated by $as_me.
21934 # Run this file to recreate the current configuration.
21935 # Compiler output produced by configure, useful for debugging
21936 # configure, is in config.log if it exists.
21938 debug=false
21939 ac_cs_recheck=false
21940 ac_cs_silent=false
21941 SHELL=\${CONFIG_SHELL-$SHELL}
21942 _ACEOF
21944 cat >>$CONFIG_STATUS <<\_ACEOF
21945 ## --------------------- ##
21946 ## M4sh Initialization. ##
21947 ## --------------------- ##
21949 # Be Bourne compatible
21950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21951 emulate sh
21952 NULLCMD=:
21953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21954 # is contrary to our usage. Disable this feature.
21955 alias -g '${1+"$@"}'='"$@"'
21956 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21957 set -o posix
21959 DUALCASE=1; export DUALCASE # for MKS sh
21961 # Support unset when possible.
21962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21963 as_unset=unset
21964 else
21965 as_unset=false
21969 # Work around bugs in pre-3.0 UWIN ksh.
21970 $as_unset ENV MAIL MAILPATH
21971 PS1='$ '
21972 PS2='> '
21973 PS4='+ '
21975 # NLS nuisances.
21976 for as_var in \
21977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21979 LC_TELEPHONE LC_TIME
21981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21982 eval $as_var=C; export $as_var
21983 else
21984 $as_unset $as_var
21986 done
21988 # Required to use basename.
21989 if expr a : '\(a\)' >/dev/null 2>&1; then
21990 as_expr=expr
21991 else
21992 as_expr=false
21995 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21996 as_basename=basename
21997 else
21998 as_basename=false
22002 # Name of the executable.
22003 as_me=`$as_basename "$0" ||
22004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22005 X"$0" : 'X\(//\)$' \| \
22006 X"$0" : 'X\(/\)$' \| \
22007 . : '\(.\)' 2>/dev/null ||
22008 echo X/"$0" |
22009 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22010 /^X\/\(\/\/\)$/{ s//\1/; q; }
22011 /^X\/\(\/\).*/{ s//\1/; q; }
22012 s/.*/./; q'`
22015 # PATH needs CR, and LINENO needs CR and PATH.
22016 # Avoid depending upon Character Ranges.
22017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22020 as_cr_digits='0123456789'
22021 as_cr_alnum=$as_cr_Letters$as_cr_digits
22023 # The user is always right.
22024 if test "${PATH_SEPARATOR+set}" != set; then
22025 echo "#! /bin/sh" >conf$$.sh
22026 echo "exit 0" >>conf$$.sh
22027 chmod +x conf$$.sh
22028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22029 PATH_SEPARATOR=';'
22030 else
22031 PATH_SEPARATOR=:
22033 rm -f conf$$.sh
22037 as_lineno_1=$LINENO
22038 as_lineno_2=$LINENO
22039 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22040 test "x$as_lineno_1" != "x$as_lineno_2" &&
22041 test "x$as_lineno_3" = "x$as_lineno_2" || {
22042 # Find who we are. Look in the path if we contain no path at all
22043 # relative or not.
22044 case $0 in
22045 *[\\/]* ) as_myself=$0 ;;
22046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22047 for as_dir in $PATH
22049 IFS=$as_save_IFS
22050 test -z "$as_dir" && as_dir=.
22051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22052 done
22055 esac
22056 # We did not find ourselves, most probably we were run as `sh COMMAND'
22057 # in which case we are not to be found in the path.
22058 if test "x$as_myself" = x; then
22059 as_myself=$0
22061 if test ! -f "$as_myself"; then
22062 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22063 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22064 { (exit 1); exit 1; }; }
22066 case $CONFIG_SHELL in
22068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22069 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22071 IFS=$as_save_IFS
22072 test -z "$as_dir" && as_dir=.
22073 for as_base in sh bash ksh sh5; do
22074 case $as_dir in
22076 if ("$as_dir/$as_base" -c '
22077 as_lineno_1=$LINENO
22078 as_lineno_2=$LINENO
22079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22080 test "x$as_lineno_1" != "x$as_lineno_2" &&
22081 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22082 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22083 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22084 CONFIG_SHELL=$as_dir/$as_base
22085 export CONFIG_SHELL
22086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22087 fi;;
22088 esac
22089 done
22090 done
22092 esac
22094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22095 # uniformly replaced by the line number. The first 'sed' inserts a
22096 # line-number line before each line; the second 'sed' does the real
22097 # work. The second script uses 'N' to pair each line-number line
22098 # with the numbered line, and appends trailing '-' during
22099 # substitution so that $LINENO is not a special case at line end.
22100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22102 sed '=' <$as_myself |
22103 sed '
22105 s,$,-,
22106 : loop
22107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22108 t loop
22109 s,-$,,
22110 s,^['$as_cr_digits']*\n,,
22111 ' >$as_me.lineno &&
22112 chmod +x $as_me.lineno ||
22113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22115 { (exit 1); exit 1; }; }
22117 # Don't try to exec as it changes $[0], causing all sort of problems
22118 # (the dirname of $[0] is not the place where we might find the
22119 # original and so on. Autoconf is especially sensible to this).
22120 . ./$as_me.lineno
22121 # Exit status is that of the last command.
22122 exit
22126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22127 *c*,-n*) ECHO_N= ECHO_C='
22128 ' ECHO_T=' ' ;;
22129 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22130 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22131 esac
22133 if expr a : '\(a\)' >/dev/null 2>&1; then
22134 as_expr=expr
22135 else
22136 as_expr=false
22139 rm -f conf$$ conf$$.exe conf$$.file
22140 echo >conf$$.file
22141 if ln -s conf$$.file conf$$ 2>/dev/null; then
22142 # We could just check for DJGPP; but this test a) works b) is more generic
22143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22144 if test -f conf$$.exe; then
22145 # Don't use ln at all; we don't have any links
22146 as_ln_s='cp -p'
22147 else
22148 as_ln_s='ln -s'
22150 elif ln conf$$.file conf$$ 2>/dev/null; then
22151 as_ln_s=ln
22152 else
22153 as_ln_s='cp -p'
22155 rm -f conf$$ conf$$.exe conf$$.file
22157 if mkdir -p . 2>/dev/null; then
22158 as_mkdir_p=:
22159 else
22160 test -d ./-p && rmdir ./-p
22161 as_mkdir_p=false
22164 as_executable_p="test -f"
22166 # Sed expression to map a string onto a valid CPP name.
22167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22169 # Sed expression to map a string onto a valid variable name.
22170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22173 # IFS
22174 # We need space, tab and new line, in precisely that order.
22175 as_nl='
22177 IFS=" $as_nl"
22179 # CDPATH.
22180 $as_unset CDPATH
22182 exec 6>&1
22184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22185 # report actual input values of CONFIG_FILES etc. instead of their
22186 # values after options handling. Logging --version etc. is OK.
22187 exec 5>>config.log
22189 echo
22190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22191 ## Running $as_me. ##
22192 _ASBOX
22193 } >&5
22194 cat >&5 <<_CSEOF
22196 This file was extended by python $as_me 2.5, which was
22197 generated by GNU Autoconf 2.59. Invocation command line was
22199 CONFIG_FILES = $CONFIG_FILES
22200 CONFIG_HEADERS = $CONFIG_HEADERS
22201 CONFIG_LINKS = $CONFIG_LINKS
22202 CONFIG_COMMANDS = $CONFIG_COMMANDS
22203 $ $0 $@
22205 _CSEOF
22206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22207 echo >&5
22208 _ACEOF
22210 # Files that config.status was made for.
22211 if test -n "$ac_config_files"; then
22212 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22215 if test -n "$ac_config_headers"; then
22216 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22219 if test -n "$ac_config_links"; then
22220 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22223 if test -n "$ac_config_commands"; then
22224 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22227 cat >>$CONFIG_STATUS <<\_ACEOF
22229 ac_cs_usage="\
22230 \`$as_me' instantiates files from templates according to the
22231 current configuration.
22233 Usage: $0 [OPTIONS] [FILE]...
22235 -h, --help print this help, then exit
22236 -V, --version print version number, then exit
22237 -q, --quiet do not print progress messages
22238 -d, --debug don't remove temporary files
22239 --recheck update $as_me by reconfiguring in the same conditions
22240 --file=FILE[:TEMPLATE]
22241 instantiate the configuration file FILE
22242 --header=FILE[:TEMPLATE]
22243 instantiate the configuration header FILE
22245 Configuration files:
22246 $config_files
22248 Configuration headers:
22249 $config_headers
22251 Report bugs to <bug-autoconf@gnu.org>."
22252 _ACEOF
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255 ac_cs_version="\\
22256 python config.status 2.5
22257 configured by $0, generated by GNU Autoconf 2.59,
22258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22260 Copyright (C) 2003 Free Software Foundation, Inc.
22261 This config.status script is free software; the Free Software Foundation
22262 gives unlimited permission to copy, distribute and modify it."
22263 srcdir=$srcdir
22264 INSTALL="$INSTALL"
22265 _ACEOF
22267 cat >>$CONFIG_STATUS <<\_ACEOF
22268 # If no file are specified by the user, then we need to provide default
22269 # value. By we need to know if files were specified by the user.
22270 ac_need_defaults=:
22271 while test $# != 0
22273 case $1 in
22274 --*=*)
22275 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22276 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22277 ac_shift=:
22280 ac_option=$1
22281 ac_optarg=$2
22282 ac_shift=shift
22284 *) # This is not an option, so the user has probably given explicit
22285 # arguments.
22286 ac_option=$1
22287 ac_need_defaults=false;;
22288 esac
22290 case $ac_option in
22291 # Handling of the options.
22292 _ACEOF
22293 cat >>$CONFIG_STATUS <<\_ACEOF
22294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22295 ac_cs_recheck=: ;;
22296 --version | --vers* | -V )
22297 echo "$ac_cs_version"; exit 0 ;;
22298 --he | --h)
22299 # Conflict between --help and --header
22300 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22301 Try \`$0 --help' for more information." >&5
22302 echo "$as_me: error: ambiguous option: $1
22303 Try \`$0 --help' for more information." >&2;}
22304 { (exit 1); exit 1; }; };;
22305 --help | --hel | -h )
22306 echo "$ac_cs_usage"; exit 0 ;;
22307 --debug | --d* | -d )
22308 debug=: ;;
22309 --file | --fil | --fi | --f )
22310 $ac_shift
22311 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22312 ac_need_defaults=false;;
22313 --header | --heade | --head | --hea )
22314 $ac_shift
22315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22316 ac_need_defaults=false;;
22317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22319 ac_cs_silent=: ;;
22321 # This is an error.
22322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22323 Try \`$0 --help' for more information." >&5
22324 echo "$as_me: error: unrecognized option: $1
22325 Try \`$0 --help' for more information." >&2;}
22326 { (exit 1); exit 1; }; } ;;
22328 *) ac_config_targets="$ac_config_targets $1" ;;
22330 esac
22331 shift
22332 done
22334 ac_configure_extra_args=
22336 if $ac_cs_silent; then
22337 exec 6>/dev/null
22338 ac_configure_extra_args="$ac_configure_extra_args --silent"
22341 _ACEOF
22342 cat >>$CONFIG_STATUS <<_ACEOF
22343 if \$ac_cs_recheck; then
22344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22348 _ACEOF
22354 cat >>$CONFIG_STATUS <<\_ACEOF
22355 for ac_config_target in $ac_config_targets
22357 case "$ac_config_target" in
22358 # Handling of arguments.
22359 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22360 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22361 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22362 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22363 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22364 { (exit 1); exit 1; }; };;
22365 esac
22366 done
22368 # If the user did not use the arguments to specify the items to instantiate,
22369 # then the envvar interface is used. Set only those that are not.
22370 # We use the long form for the default assignment because of an extremely
22371 # bizarre bug on SunOS 4.1.3.
22372 if $ac_need_defaults; then
22373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22377 # Have a temporary directory for convenience. Make it in the build tree
22378 # simply because there is no reason to put it here, and in addition,
22379 # creating and moving files from /tmp can sometimes cause problems.
22380 # Create a temporary directory, and hook for its removal unless debugging.
22381 $debug ||
22383 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22384 trap '{ (exit 1); exit 1; }' 1 2 13 15
22387 # Create a (secure) tmp directory for tmp files.
22390 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22391 test -n "$tmp" && test -d "$tmp"
22392 } ||
22394 tmp=./confstat$$-$RANDOM
22395 (umask 077 && mkdir $tmp)
22396 } ||
22398 echo "$me: cannot create a temporary directory in ." >&2
22399 { (exit 1); exit 1; }
22402 _ACEOF
22404 cat >>$CONFIG_STATUS <<_ACEOF
22407 # CONFIG_FILES section.
22410 # No need to generate the scripts if there are no CONFIG_FILES.
22411 # This happens for instance when ./config.status config.h
22412 if test -n "\$CONFIG_FILES"; then
22413 # Protect against being on the right side of a sed subst in config.status.
22414 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22415 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22416 s,@SHELL@,$SHELL,;t t
22417 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22418 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22419 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22420 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22421 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22422 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22423 s,@exec_prefix@,$exec_prefix,;t t
22424 s,@prefix@,$prefix,;t t
22425 s,@program_transform_name@,$program_transform_name,;t t
22426 s,@bindir@,$bindir,;t t
22427 s,@sbindir@,$sbindir,;t t
22428 s,@libexecdir@,$libexecdir,;t t
22429 s,@datadir@,$datadir,;t t
22430 s,@sysconfdir@,$sysconfdir,;t t
22431 s,@sharedstatedir@,$sharedstatedir,;t t
22432 s,@localstatedir@,$localstatedir,;t t
22433 s,@libdir@,$libdir,;t t
22434 s,@includedir@,$includedir,;t t
22435 s,@oldincludedir@,$oldincludedir,;t t
22436 s,@infodir@,$infodir,;t t
22437 s,@mandir@,$mandir,;t t
22438 s,@build_alias@,$build_alias,;t t
22439 s,@host_alias@,$host_alias,;t t
22440 s,@target_alias@,$target_alias,;t t
22441 s,@DEFS@,$DEFS,;t t
22442 s,@ECHO_C@,$ECHO_C,;t t
22443 s,@ECHO_N@,$ECHO_N,;t t
22444 s,@ECHO_T@,$ECHO_T,;t t
22445 s,@LIBS@,$LIBS,;t t
22446 s,@VERSION@,$VERSION,;t t
22447 s,@SOVERSION@,$SOVERSION,;t t
22448 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22449 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22450 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22451 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22452 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22453 s,@MACHDEP@,$MACHDEP,;t t
22454 s,@SGI_ABI@,$SGI_ABI,;t t
22455 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22456 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22457 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22458 s,@CXX@,$CXX,;t t
22459 s,@MAINOBJ@,$MAINOBJ,;t t
22460 s,@EXEEXT@,$EXEEXT,;t t
22461 s,@CC@,$CC,;t t
22462 s,@CFLAGS@,$CFLAGS,;t t
22463 s,@LDFLAGS@,$LDFLAGS,;t t
22464 s,@CPPFLAGS@,$CPPFLAGS,;t t
22465 s,@ac_ct_CC@,$ac_ct_CC,;t t
22466 s,@OBJEXT@,$OBJEXT,;t t
22467 s,@CPP@,$CPP,;t t
22468 s,@EGREP@,$EGREP,;t t
22469 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22470 s,@LIBRARY@,$LIBRARY,;t t
22471 s,@LDLIBRARY@,$LDLIBRARY,;t t
22472 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22473 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22474 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22475 s,@INSTSONAME@,$INSTSONAME,;t t
22476 s,@RUNSHARED@,$RUNSHARED,;t t
22477 s,@LINKCC@,$LINKCC,;t t
22478 s,@RANLIB@,$RANLIB,;t t
22479 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22480 s,@AR@,$AR,;t t
22481 s,@SVNVERSION@,$SVNVERSION,;t t
22482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22485 s,@LN@,$LN,;t t
22486 s,@OPT@,$OPT,;t t
22487 s,@BASECFLAGS@,$BASECFLAGS,;t t
22488 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22489 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22490 s,@SO@,$SO,;t t
22491 s,@LDSHARED@,$LDSHARED,;t t
22492 s,@BLDSHARED@,$BLDSHARED,;t t
22493 s,@CCSHARED@,$CCSHARED,;t t
22494 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22495 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22496 s,@SHLIBS@,$SHLIBS,;t t
22497 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22498 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22499 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22500 s,@LDLAST@,$LDLAST,;t t
22501 s,@THREADOBJ@,$THREADOBJ,;t t
22502 s,@DLINCLDIR@,$DLINCLDIR,;t t
22503 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22504 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22505 s,@TRUE@,$TRUE,;t t
22506 s,@LIBOBJS@,$LIBOBJS,;t t
22507 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22508 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22509 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22510 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22511 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22512 s,@LIBM@,$LIBM,;t t
22513 s,@LIBC@,$LIBC,;t t
22514 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22515 s,@THREADHEADERS@,$THREADHEADERS,;t t
22516 s,@SRCDIRS@,$SRCDIRS,;t t
22517 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22518 CEOF
22520 _ACEOF
22522 cat >>$CONFIG_STATUS <<\_ACEOF
22523 # Split the substitutions into bite-sized pieces for seds with
22524 # small command number limits, like on Digital OSF/1 and HP-UX.
22525 ac_max_sed_lines=48
22526 ac_sed_frag=1 # Number of current file.
22527 ac_beg=1 # First line for current file.
22528 ac_end=$ac_max_sed_lines # Line after last line for current file.
22529 ac_more_lines=:
22530 ac_sed_cmds=
22531 while $ac_more_lines; do
22532 if test $ac_beg -gt 1; then
22533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22534 else
22535 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22537 if test ! -s $tmp/subs.frag; then
22538 ac_more_lines=false
22539 else
22540 # The purpose of the label and of the branching condition is to
22541 # speed up the sed processing (if there are no `@' at all, there
22542 # is no need to browse any of the substitutions).
22543 # These are the two extra sed commands mentioned above.
22544 (echo ':t
22545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22546 if test -z "$ac_sed_cmds"; then
22547 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22548 else
22549 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22551 ac_sed_frag=`expr $ac_sed_frag + 1`
22552 ac_beg=$ac_end
22553 ac_end=`expr $ac_end + $ac_max_sed_lines`
22555 done
22556 if test -z "$ac_sed_cmds"; then
22557 ac_sed_cmds=cat
22559 fi # test -n "$CONFIG_FILES"
22561 _ACEOF
22562 cat >>$CONFIG_STATUS <<\_ACEOF
22563 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22565 case $ac_file in
22566 - | *:- | *:-:* ) # input from stdin
22567 cat >$tmp/stdin
22568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22572 * ) ac_file_in=$ac_file.in ;;
22573 esac
22575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578 X"$ac_file" : 'X\(//\)[^/]' \| \
22579 X"$ac_file" : 'X\(//\)$' \| \
22580 X"$ac_file" : 'X\(/\)' \| \
22581 . : '\(.\)' 2>/dev/null ||
22582 echo X"$ac_file" |
22583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22585 /^X\(\/\/\)$/{ s//\1/; q; }
22586 /^X\(\/\).*/{ s//\1/; q; }
22587 s/.*/./; q'`
22588 { if $as_mkdir_p; then
22589 mkdir -p "$ac_dir"
22590 else
22591 as_dir="$ac_dir"
22592 as_dirs=
22593 while test ! -d "$as_dir"; do
22594 as_dirs="$as_dir $as_dirs"
22595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597 X"$as_dir" : 'X\(//\)[^/]' \| \
22598 X"$as_dir" : 'X\(//\)$' \| \
22599 X"$as_dir" : 'X\(/\)' \| \
22600 . : '\(.\)' 2>/dev/null ||
22601 echo X"$as_dir" |
22602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22604 /^X\(\/\/\)$/{ s//\1/; q; }
22605 /^X\(\/\).*/{ s//\1/; q; }
22606 s/.*/./; q'`
22607 done
22608 test ! -n "$as_dirs" || mkdir $as_dirs
22609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22611 { (exit 1); exit 1; }; }; }
22613 ac_builddir=.
22615 if test "$ac_dir" != .; then
22616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22617 # A "../" for each directory in $ac_dir_suffix.
22618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22619 else
22620 ac_dir_suffix= ac_top_builddir=
22623 case $srcdir in
22624 .) # No --srcdir option. We are building in place.
22625 ac_srcdir=.
22626 if test -z "$ac_top_builddir"; then
22627 ac_top_srcdir=.
22628 else
22629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22630 fi ;;
22631 [\\/]* | ?:[\\/]* ) # Absolute path.
22632 ac_srcdir=$srcdir$ac_dir_suffix;
22633 ac_top_srcdir=$srcdir ;;
22634 *) # Relative path.
22635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22637 esac
22639 # Do not use `cd foo && pwd` to compute absolute paths, because
22640 # the directories may not exist.
22641 case `pwd` in
22642 .) ac_abs_builddir="$ac_dir";;
22644 case "$ac_dir" in
22645 .) ac_abs_builddir=`pwd`;;
22646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22647 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22648 esac;;
22649 esac
22650 case $ac_abs_builddir in
22651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22653 case ${ac_top_builddir}. in
22654 .) ac_abs_top_builddir=$ac_abs_builddir;;
22655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22657 esac;;
22658 esac
22659 case $ac_abs_builddir in
22660 .) ac_abs_srcdir=$ac_srcdir;;
22662 case $ac_srcdir in
22663 .) ac_abs_srcdir=$ac_abs_builddir;;
22664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22666 esac;;
22667 esac
22668 case $ac_abs_builddir in
22669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22671 case $ac_top_srcdir in
22672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22675 esac;;
22676 esac
22679 case $INSTALL in
22680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22681 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22682 esac
22684 if test x"$ac_file" != x-; then
22685 { echo "$as_me:$LINENO: creating $ac_file" >&5
22686 echo "$as_me: creating $ac_file" >&6;}
22687 rm -f "$ac_file"
22689 # Let's still pretend it is `configure' which instantiates (i.e., don't
22690 # use $as_me), people would be surprised to read:
22691 # /* config.h. Generated by config.status. */
22692 if test x"$ac_file" = x-; then
22693 configure_input=
22694 else
22695 configure_input="$ac_file. "
22697 configure_input=$configure_input"Generated from `echo $ac_file_in |
22698 sed 's,.*/,,'` by configure."
22700 # First look for the input files in the build tree, otherwise in the
22701 # src tree.
22702 ac_file_inputs=`IFS=:
22703 for f in $ac_file_in; do
22704 case $f in
22705 -) echo $tmp/stdin ;;
22706 [\\/$]*)
22707 # Absolute (can't be DOS-style, as IFS=:)
22708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22709 echo "$as_me: error: cannot find input file: $f" >&2;}
22710 { (exit 1); exit 1; }; }
22711 echo "$f";;
22712 *) # Relative
22713 if test -f "$f"; then
22714 # Build tree
22715 echo "$f"
22716 elif test -f "$srcdir/$f"; then
22717 # Source tree
22718 echo "$srcdir/$f"
22719 else
22720 # /dev/null tree
22721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22722 echo "$as_me: error: cannot find input file: $f" >&2;}
22723 { (exit 1); exit 1; }; }
22724 fi;;
22725 esac
22726 done` || { (exit 1); exit 1; }
22727 _ACEOF
22728 cat >>$CONFIG_STATUS <<_ACEOF
22729 sed "$ac_vpsub
22730 $extrasub
22731 _ACEOF
22732 cat >>$CONFIG_STATUS <<\_ACEOF
22734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22735 s,@configure_input@,$configure_input,;t t
22736 s,@srcdir@,$ac_srcdir,;t t
22737 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22738 s,@top_srcdir@,$ac_top_srcdir,;t t
22739 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22740 s,@builddir@,$ac_builddir,;t t
22741 s,@abs_builddir@,$ac_abs_builddir,;t t
22742 s,@top_builddir@,$ac_top_builddir,;t t
22743 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22744 s,@INSTALL@,$ac_INSTALL,;t t
22745 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22746 rm -f $tmp/stdin
22747 if test x"$ac_file" != x-; then
22748 mv $tmp/out $ac_file
22749 else
22750 cat $tmp/out
22751 rm -f $tmp/out
22754 done
22755 _ACEOF
22756 cat >>$CONFIG_STATUS <<\_ACEOF
22759 # CONFIG_HEADER section.
22762 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22763 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22765 # ac_d sets the value in "#define NAME VALUE" lines.
22766 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22767 ac_dB='[ ].*$,\1#\2'
22768 ac_dC=' '
22769 ac_dD=',;t'
22770 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22771 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22772 ac_uB='$,\1#\2define\3'
22773 ac_uC=' '
22774 ac_uD=',;t'
22776 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22778 case $ac_file in
22779 - | *:- | *:-:* ) # input from stdin
22780 cat >$tmp/stdin
22781 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22783 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22785 * ) ac_file_in=$ac_file.in ;;
22786 esac
22788 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22789 echo "$as_me: creating $ac_file" >&6;}
22791 # First look for the input files in the build tree, otherwise in the
22792 # src tree.
22793 ac_file_inputs=`IFS=:
22794 for f in $ac_file_in; do
22795 case $f in
22796 -) echo $tmp/stdin ;;
22797 [\\/$]*)
22798 # Absolute (can't be DOS-style, as IFS=:)
22799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22800 echo "$as_me: error: cannot find input file: $f" >&2;}
22801 { (exit 1); exit 1; }; }
22802 # Do quote $f, to prevent DOS paths from being IFS'd.
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 # Remove the trailing spaces.
22820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22822 _ACEOF
22824 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22825 # `conftest.undefs', that substitutes the proper values into
22826 # config.h.in to produce config.h. The first handles `#define'
22827 # templates, and the second `#undef' templates.
22828 # And first: Protect against being on the right side of a sed subst in
22829 # config.status. Protect against being in an unquoted here document
22830 # in config.status.
22831 rm -f conftest.defines conftest.undefs
22832 # Using a here document instead of a string reduces the quoting nightmare.
22833 # Putting comments in sed scripts is not portable.
22835 # `end' is used to avoid that the second main sed command (meant for
22836 # 0-ary CPP macros) applies to n-ary macro definitions.
22837 # See the Autoconf documentation for `clear'.
22838 cat >confdef2sed.sed <<\_ACEOF
22839 s/[\\&,]/\\&/g
22840 s,[\\$`],\\&,g
22841 t clear
22842 : clear
22843 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22844 t end
22845 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22846 : end
22847 _ACEOF
22848 # If some macros were called several times there might be several times
22849 # the same #defines, which is useless. Nevertheless, we may not want to
22850 # sort them, since we want the *last* AC-DEFINE to be honored.
22851 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22852 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22853 rm -f confdef2sed.sed
22855 # This sed command replaces #undef with comments. This is necessary, for
22856 # example, in the case of _POSIX_SOURCE, which is predefined and required
22857 # on some systems where configure will not decide to define it.
22858 cat >>conftest.undefs <<\_ACEOF
22859 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22860 _ACEOF
22862 # Break up conftest.defines because some shells have a limit on the size
22863 # of here documents, and old seds have small limits too (100 cmds).
22864 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22865 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22866 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22867 echo ' :' >>$CONFIG_STATUS
22868 rm -f conftest.tail
22869 while grep . conftest.defines >/dev/null
22871 # Write a limited-size here document to $tmp/defines.sed.
22872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22873 # Speed up: don't consider the non `#define' lines.
22874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22875 # Work around the forget-to-reset-the-flag bug.
22876 echo 't clr' >>$CONFIG_STATUS
22877 echo ': clr' >>$CONFIG_STATUS
22878 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22879 echo 'CEOF
22880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22881 rm -f $tmp/in
22882 mv $tmp/out $tmp/in
22883 ' >>$CONFIG_STATUS
22884 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22885 rm -f conftest.defines
22886 mv conftest.tail conftest.defines
22887 done
22888 rm -f conftest.defines
22889 echo ' fi # grep' >>$CONFIG_STATUS
22890 echo >>$CONFIG_STATUS
22892 # Break up conftest.undefs because some shells have a limit on the size
22893 # of here documents, and old seds have small limits too (100 cmds).
22894 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22895 rm -f conftest.tail
22896 while grep . conftest.undefs >/dev/null
22898 # Write a limited-size here document to $tmp/undefs.sed.
22899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22900 # Speed up: don't consider the non `#undef'
22901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22902 # Work around the forget-to-reset-the-flag bug.
22903 echo 't clr' >>$CONFIG_STATUS
22904 echo ': clr' >>$CONFIG_STATUS
22905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22906 echo 'CEOF
22907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22908 rm -f $tmp/in
22909 mv $tmp/out $tmp/in
22910 ' >>$CONFIG_STATUS
22911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22912 rm -f conftest.undefs
22913 mv conftest.tail conftest.undefs
22914 done
22915 rm -f conftest.undefs
22917 cat >>$CONFIG_STATUS <<\_ACEOF
22918 # Let's still pretend it is `configure' which instantiates (i.e., don't
22919 # use $as_me), people would be surprised to read:
22920 # /* config.h. Generated by config.status. */
22921 if test x"$ac_file" = x-; then
22922 echo "/* Generated by configure. */" >$tmp/config.h
22923 else
22924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22926 cat $tmp/in >>$tmp/config.h
22927 rm -f $tmp/in
22928 if test x"$ac_file" != x-; then
22929 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22931 echo "$as_me: $ac_file is unchanged" >&6;}
22932 else
22933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22935 X"$ac_file" : 'X\(//\)[^/]' \| \
22936 X"$ac_file" : 'X\(//\)$' \| \
22937 X"$ac_file" : 'X\(/\)' \| \
22938 . : '\(.\)' 2>/dev/null ||
22939 echo X"$ac_file" |
22940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22942 /^X\(\/\/\)$/{ s//\1/; q; }
22943 /^X\(\/\).*/{ s//\1/; q; }
22944 s/.*/./; q'`
22945 { if $as_mkdir_p; then
22946 mkdir -p "$ac_dir"
22947 else
22948 as_dir="$ac_dir"
22949 as_dirs=
22950 while test ! -d "$as_dir"; do
22951 as_dirs="$as_dir $as_dirs"
22952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$as_dir" : 'X\(//\)[^/]' \| \
22955 X"$as_dir" : 'X\(//\)$' \| \
22956 X"$as_dir" : 'X\(/\)' \| \
22957 . : '\(.\)' 2>/dev/null ||
22958 echo X"$as_dir" |
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22961 /^X\(\/\/\)$/{ s//\1/; q; }
22962 /^X\(\/\).*/{ s//\1/; q; }
22963 s/.*/./; q'`
22964 done
22965 test ! -n "$as_dirs" || mkdir $as_dirs
22966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22968 { (exit 1); exit 1; }; }; }
22970 rm -f $ac_file
22971 mv $tmp/config.h $ac_file
22973 else
22974 cat $tmp/config.h
22975 rm -f $tmp/config.h
22977 done
22978 _ACEOF
22980 cat >>$CONFIG_STATUS <<\_ACEOF
22982 { (exit 0); exit 0; }
22983 _ACEOF
22984 chmod +x $CONFIG_STATUS
22985 ac_clean_files=$ac_clean_files_save
22988 # configure is writing to config.log, and then calls config.status.
22989 # config.status does its own redirection, appending to config.log.
22990 # Unfortunately, on DOS this fails, as config.log is still kept open
22991 # by configure, so config.status won't be able to write to it; its
22992 # output is simply discarded. So we exec the FD to /dev/null,
22993 # effectively closing config.log, so it can be properly (re)opened and
22994 # appended to by config.status. When coming back to configure, we
22995 # need to make the FD available again.
22996 if test "$no_create" != yes; then
22997 ac_cs_success=:
22998 ac_config_status_args=
22999 test "$silent" = yes &&
23000 ac_config_status_args="$ac_config_status_args --quiet"
23001 exec 5>/dev/null
23002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23003 exec 5>>config.log
23004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23005 # would make configure fail if this is the last instruction.
23006 $ac_cs_success || { (exit 1); exit 1; }
23010 echo "creating Setup"
23011 if test ! -f Modules/Setup
23012 then
23013 cp $srcdir/Modules/Setup.dist Modules/Setup
23016 echo "creating Setup.local"
23017 if test ! -f Modules/Setup.local
23018 then
23019 echo "# Edit this file for local setup changes" >Modules/Setup.local
23022 echo "creating Makefile"
23023 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23024 -s Modules Modules/Setup.config \
23025 Modules/Setup.local Modules/Setup
23026 mv config.c Modules