subclasspropagation(): Squash two more bogus hash(x) == id(x)
[python.git] / configure
blobf8183f2c6c487d5e71bcfcb01fb6b0875bff9072
1 #! /bin/sh
2 # From configure.in Revision: 43615 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1517 # has no effect, don't bother defineing them
1518 Darwin/[78].*)
1519 define_xopen_source=no
1522 esac
1524 if test $define_xopen_source = yes
1525 then
1526 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1527 # defined precisely as g++ defines it
1528 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1529 # compiler
1530 case $ac_sys_system/$ac_sys_release in
1531 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1533 cat >>confdefs.h <<\_ACEOF
1534 #define _XOPEN_SOURCE 500
1535 _ACEOF
1540 cat >>confdefs.h <<\_ACEOF
1541 #define _XOPEN_SOURCE 600
1542 _ACEOF
1545 esac
1547 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1548 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1549 # several APIs are not declared. Since this is also needed in some
1550 # cases for HP-UX, we define it globally.
1551 # except for Solaris 10, where it must not be defined,
1552 # as it implies XPG4.2
1553 case $ac_sys_system/$ac_sys_release in
1554 SunOS/5.10)
1558 cat >>confdefs.h <<\_ACEOF
1559 #define _XOPEN_SOURCE_EXTENDED 1
1560 _ACEOF
1563 esac
1566 cat >>confdefs.h <<\_ACEOF
1567 #define _POSIX_C_SOURCE 200112L
1568 _ACEOF
1574 # SGI compilers allow the specification of the both the ABI and the
1575 # ISA on the command line. Depending on the values of these switches,
1576 # different and often incompatable code will be generated.
1578 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1579 # thus supply support for various ABI/ISA combinations. The MACHDEP
1580 # variable is also adjusted.
1583 if test ! -z "$SGI_ABI"
1584 then
1585 CC="cc $SGI_ABI"
1586 LDFLAGS="$SGI_ABI $LDFLAGS"
1587 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1589 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1590 echo "${ECHO_T}$MACHDEP" >&6
1592 # And add extra plat-mac for darwin
1595 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1596 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1597 if test -z "$EXTRAPLATDIR"
1598 then
1599 case $MACHDEP in
1600 darwin)
1601 EXTRAPLATDIR="\$(PLATMACDIRS)"
1602 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1605 EXTRAPLATDIR=""
1606 EXTRAMACHDEPPATH=""
1608 esac
1610 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1611 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1613 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1614 # it may influence the way we can build extensions, so distutils
1615 # needs to check it
1617 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1619 # checks for alternative programs
1621 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1622 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1623 # just to get things to compile and link. Users are free to override OPT
1624 # when running configure or make. The build should not break if they do.
1625 # BASECFLAGS should generally not be messed with, however.
1627 # XXX shouldn't some/most/all of this code be merged with the stuff later
1628 # on that fiddles with OPT and BASECFLAGS?
1629 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1630 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1632 # Check whether --with-gcc or --without-gcc was given.
1633 if test "${with_gcc+set}" = set; then
1634 withval="$with_gcc"
1636 case $withval in
1637 no) CC=cc
1638 without_gcc=yes;;
1639 yes) CC=gcc
1640 without_gcc=no;;
1641 *) CC=$withval
1642 without_gcc=$withval;;
1643 esac
1644 else
1646 case $ac_sys_system in
1647 AIX*) CC=cc_r
1648 without_gcc=;;
1649 BeOS*)
1650 case $BE_HOST_CPU in
1651 ppc)
1652 CC=mwcc
1653 without_gcc=yes
1654 BASECFLAGS="$BASECFLAGS -export pragma"
1655 OPT="$OPT -O"
1656 LDFLAGS="$LDFLAGS -nodup"
1658 x86)
1659 CC=gcc
1660 without_gcc=no
1661 OPT="$OPT -O"
1664 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1665 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1666 { (exit 1); exit 1; }; }
1668 esac
1669 AR="\$(srcdir)/Modules/ar_beos"
1670 RANLIB=:
1672 Monterey*)
1673 RANLIB=:
1674 without_gcc=;;
1675 *) without_gcc=no;;
1676 esac
1678 echo "$as_me:$LINENO: result: $without_gcc" >&5
1679 echo "${ECHO_T}$without_gcc" >&6
1683 MAINOBJ=python.o
1684 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1685 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1687 # Check whether --with-cxx or --without-cxx was given.
1688 if test "${with_cxx+set}" = set; then
1689 withval="$with_cxx"
1691 check_cxx=no
1692 case $withval in
1693 no) CXX=
1694 with_cxx=no;;
1695 *) CXX=$withval
1696 MAINOBJ=ccpython.o
1697 with_cxx=$withval;;
1698 esac
1699 else
1701 with_cxx=no
1702 check_cxx=yes
1705 echo "$as_me:$LINENO: result: $with_cxx" >&5
1706 echo "${ECHO_T}$with_cxx" >&6
1708 if test "$with_cxx" = "yes"
1709 then
1710 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1711 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1712 { (exit 1); exit 1; }; }
1718 if test "$check_cxx" = "yes"
1719 then
1720 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CXX+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$CXX"; then
1730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CXX="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 CXX=$ac_cv_prog_CXX
1749 if test -n "$CXX"; then
1750 echo "$as_me:$LINENO: result: $CXX" >&5
1751 echo "${ECHO_T}$CXX" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$CXX" && break
1758 done
1759 test -n "$CXX" || CXX="notfound"
1761 if test "$CXX" = "notfound"
1762 then
1763 CXX=
1764 else
1765 ac_ext=cc
1766 ac_cpp='$CXXCPP $CPPFLAGS'
1767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1791 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C++ compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1848 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C++ compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 # If the user switches compilers, we can't believe the cache
1934 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1935 then
1936 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&5
1938 echo "$as_me: error: cached CC is different -- throw away $cache_file
1939 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1940 { (exit 1); exit 1; }; }
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1970 done
1971 done
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1986 ac_ct_CC=$CC
1987 # Extract the first word of "gcc", so it can be a program name with args.
1988 set dummy gcc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC="gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 CC=$ac_ct_CC
2023 else
2024 CC="$ac_cv_prog_CC"
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="${ac_tool_prefix}cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_CC"; then
2066 ac_ct_CC=$CC
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC="cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2097 else
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 CC=$ac_ct_CC
2103 else
2104 CC="$ac_cv_prog_CC"
2108 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 ac_prog_rejected=no
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128 ac_prog_rejected=yes
2129 continue
2131 ac_cv_prog_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy $ac_cv_prog_CC
2141 shift
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2146 shift
2147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154 echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2156 else
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 for ac_prog in cl
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2187 done
2188 done
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$CC" && break
2202 done
2204 if test -z "$CC"; then
2205 ac_ct_CC=$CC
2206 for ac_prog in cl
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_ac_ct_CC="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237 echo "${ECHO_T}$ac_ct_CC" >&6
2238 else
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$ac_ct_CC" && break
2244 done
2246 CC=$ac_ct_CC
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO:" \
2260 "checking for C compiler version" >&5
2261 ac_compiler=`set X $ac_compile; echo $2`
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263 (eval $ac_compiler --version </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268 (eval $ac_compiler -v </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273 (eval $ac_compiler -V </dev/null >&5) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2290 return 0;
2292 _ACEOF
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2297 # of exeext.
2298 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302 (eval $ac_link_default) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Find the output, starting from the most likely. This scheme is
2307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # resort.
2310 # Be careful to initialize this variable, since it used to be cached.
2311 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2312 ac_cv_exeext=
2313 # b.out is created by i960 compilers.
2314 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316 test -f "$ac_file" || continue
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2320 conftest.$ac_ext )
2321 # This is the source file.
2323 [ab].out )
2324 # We found the default executable, but exeext='' is most
2325 # certainly right.
2326 break;;
2327 *.* )
2328 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 # FIXME: I believe we export ac_cv_exeext for Libtool,
2330 # but it would be cool to find out if it's true. Does anybody
2331 # maintain Libtool? --akim.
2332 export ac_cv_exeext
2333 break;;
2335 break;;
2336 esac
2337 done
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }
2349 ac_exeext=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 cross_compiling=no
2367 else
2368 if test "$cross_compiling" = maybe; then
2369 cross_compiling=yes
2370 else
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385 ac_clean_files=$ac_clean_files_save
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6
2393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2403 # `rm'.
2404 for ac_file in conftest.exe conftest conftest.*; do
2405 test -f "$ac_file" || continue
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409 export ac_cv_exeext
2410 break;;
2411 * ) break;;
2412 esac
2413 done
2414 else
2415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2422 rm -f conftest$ac_cv_exeext
2423 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424 echo "${ECHO_T}$ac_cv_exeext" >&6
2426 rm -f conftest.$ac_ext
2427 EXEEXT=$ac_cv_exeext
2428 ac_exeext=$EXEEXT
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2459 break;;
2460 esac
2461 done
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT=$ac_cv_objext
2478 ac_objext=$OBJEXT
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2494 #ifndef __GNUC__
2495 choke me
2496 #endif
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 ac_compiler_gnu=yes
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 ac_compiler_gnu=no
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS=${CFLAGS+set}
2539 ac_save_CFLAGS=$CFLAGS
2540 CFLAGS="-g"
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_prog_cc_g=yes
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 ac_cv_prog_cc_g=no
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2598 CFLAGS="-g -O2"
2599 else
2600 CFLAGS="-g"
2602 else
2603 if test "$GCC" = yes; then
2604 CFLAGS="-O2"
2605 else
2606 CFLAGS=
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #include <stdarg.h>
2623 #include <stdio.h>
2624 #include <sys/types.h>
2625 #include <sys/stat.h>
2626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2627 struct buf { int x; };
2628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2629 static char *e (p, i)
2630 char **p;
2631 int i;
2633 return p[i];
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2637 char *s;
2638 va_list v;
2639 va_start (v,p);
2640 s = g (p, va_arg (v,int));
2641 va_end (v);
2642 return s;
2645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2646 function prototypes and stuff, but not '\xHH' hex character constants.
2647 These don't provoke an error unfortunately, instead are silently treated
2648 as 'x'. The following induces an error, until -std1 is added to get
2649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2650 array size at least. It's necessary to write '\x00'==0 to get something
2651 that's true only with -std1. */
2652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654 int test (int i, double x);
2655 struct s1 {int (*f) (int a);};
2656 struct s2 {int (*f) (double a);};
2657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2658 int argc;
2659 char **argv;
2661 main ()
2663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2665 return 0;
2667 _ACEOF
2668 # Don't try gcc -ansi; that turns off useful extensions and
2669 # breaks some systems' header files.
2670 # AIX -qlanglvl=ansi
2671 # Ultrix and OSF/1 -std1
2672 # HP-UX 10.20 and later -Ae
2673 # HP-UX older versions -Aa -D_HPUX_SOURCE
2674 # SVR4 -Xc -D__EXTENSIONS__
2675 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677 CC="$ac_save_CC $ac_arg"
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_stdc=$ac_arg
2701 break
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2707 rm -f conftest.err conftest.$ac_objext
2708 done
2709 rm -f conftest.$ac_ext conftest.$ac_objext
2710 CC=$ac_save_CC
2714 case "x$ac_cv_prog_cc_stdc" in
2715 x|xno)
2716 echo "$as_me:$LINENO: result: none needed" >&5
2717 echo "${ECHO_T}none needed" >&6 ;;
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2721 CC="$CC $ac_cv_prog_cc_stdc" ;;
2722 esac
2724 # Some people use a C++ compiler to compile C. Since we use `exit',
2725 # in C++ we need to declare it. In case someone uses the same compiler
2726 # for both compiling C and C++ we need to have the C++ compiler decide
2727 # the declaration of exit, since it's the most demanding environment.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #ifndef __cplusplus
2730 choke me
2731 #endif
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration in \
2756 '' \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2761 'void exit (int);'
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769 $ac_declaration
2770 #include <stdlib.h>
2772 main ()
2774 exit (42);
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 continue
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2817 main ()
2819 exit (42);
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 break
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 done
2854 rm -f conftest*
2855 if test -n "$ac_declaration"; then
2856 echo '#ifdef __cplusplus' >>confdefs.h
2857 echo $ac_declaration >>confdefs.h
2858 echo '#endif' >>confdefs.h
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 # checks for UNIX variants that set C preprocessor variables
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885 CPP=
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914 Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927 else
2928 ac_cpp_err=
2930 else
2931 ac_cpp_err=yes
2933 if test -z "$ac_cpp_err"; then
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2940 continue
2942 rm -f conftest.err conftest.$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 else
2966 ac_cpp_err=
2968 else
2969 ac_cpp_err=yes
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2973 continue
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2982 rm -f conftest.err conftest.$ac_ext
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988 break
2991 done
2992 ac_cv_prog_CPP=$CPP
2995 CPP=$ac_cv_prog_CPP
2996 else
2997 ac_cv_prog_CPP=$CPP
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 else
3035 ac_cpp_err=
3037 else
3038 ac_cpp_err=yes
3040 if test -z "$ac_cpp_err"; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3047 continue
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 else
3073 ac_cpp_err=
3075 else
3076 ac_cpp_err=yes
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3080 continue
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3089 rm -f conftest.err conftest.$ac_ext
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3096 else
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3117 then ac_cv_prog_egrep='grep -E'
3118 else ac_cv_prog_egrep='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for AIX" >&5
3128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #ifdef _AIX
3137 #endif
3139 _ACEOF
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 $EGREP "yes" >/dev/null 2>&1; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144 cat >>confdefs.h <<\_ACEOF
3145 #define _ALL_SOURCE 1
3146 _ACEOF
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3152 rm -f conftest*
3156 # Check for unsupported systems
3157 case $ac_sys_system/$ac_sys_release in
3158 Linux*/1*)
3159 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3160 echo See README for details.
3161 exit 1;;
3162 esac
3165 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3166 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3168 # Check whether --with-suffix or --without-suffix was given.
3169 if test "${with_suffix+set}" = set; then
3170 withval="$with_suffix"
3172 case $withval in
3173 no) EXEEXT=;;
3174 yes) EXEEXT=.exe;;
3175 *) EXEEXT=$withval;;
3176 esac
3178 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3179 echo "${ECHO_T}$EXEEXT" >&6
3181 # Test whether we're running on a non-case-sensitive system, in which
3182 # case we give a warning if no ext is given
3184 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3185 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3186 if test ! -d CaseSensitiveTestDir; then
3187 mkdir CaseSensitiveTestDir
3190 if test -d casesensitivetestdir
3191 then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193 echo "${ECHO_T}yes" >&6
3194 BUILDEXEEXT=.exe
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 BUILDEXEEXT=$EXEEXT
3200 rmdir CaseSensitiveTestDir
3202 case $MACHDEP in
3203 bsdos*)
3204 case $CC in
3205 gcc) CC="$CC -D_HAVE_BSDI";;
3206 esac;;
3207 esac
3209 case $ac_sys_system in
3210 hp*|HP*)
3211 case $CC in
3212 cc|*/cc) CC="$CC -Ae";;
3213 esac;;
3214 Monterey*)
3215 case $CC in
3216 cc) CC="$CC -Wl,-Bexport";;
3217 esac;;
3218 SunOS*)
3219 # Some functions have a prototype only with that define, e.g. confstr
3221 cat >>confdefs.h <<\_ACEOF
3222 #define __EXTENSIONS__ 1
3223 _ACEOF
3226 esac
3230 echo "$as_me:$LINENO: checking LIBRARY" >&5
3231 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3232 if test -z "$LIBRARY"
3233 then
3234 LIBRARY='libpython$(VERSION).a'
3236 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3237 echo "${ECHO_T}$LIBRARY" >&6
3239 # LDLIBRARY is the name of the library to link against (as opposed to the
3240 # name of the library into which to insert object files). BLDLIBRARY is also
3241 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3242 # is blank as the main program is not linked directly against LDLIBRARY.
3243 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3244 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3245 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3246 # DLLLIBRARY is the shared (i.e., DLL) library.
3248 # RUNSHARED is used to run shared python without installed libraries
3250 # INSTSONAME is the name of the shared library that will be use to install
3251 # on the system - some systems like version suffix, others don't
3258 LDLIBRARY="$LIBRARY"
3259 BLDLIBRARY='$(LDLIBRARY)'
3260 INSTSONAME='$(LDLIBRARY)'
3261 DLLLIBRARY=''
3262 LDLIBRARYDIR=''
3263 RUNSHARED=''
3265 # LINKCC is the command that links the python executable -- default is $(CC).
3266 # If CXX is set, and if it is needed to link a main function that was
3267 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3268 # python might then depend on the C++ runtime
3269 # This is altered for AIX in order to build the export list before
3270 # linking.
3272 echo "$as_me:$LINENO: checking LINKCC" >&5
3273 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3274 if test -z "$LINKCC"
3275 then
3276 if test -z "$CXX"; then
3277 LINKCC="\$(PURIFY) \$(CC)"
3278 else
3279 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3280 $CXX -c conftest_a.cc # 2>&5
3281 echo 'void foo(){}' > conftest_b.$ac_ext
3282 $CC -c conftest_b.$ac_ext # 2>&5
3283 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3284 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3285 then
3286 LINKCC="\$(PURIFY) \$(CC)"
3287 else
3288 LINKCC="\$(PURIFY) \$(CXX)"
3290 rm -fr conftest*
3292 case $ac_sys_system in
3293 AIX*)
3294 exp_extra="\"\""
3295 if test $ac_sys_release -ge 5 -o \
3296 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 exp_extra="."
3299 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3300 Monterey64*)
3301 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3302 esac
3304 echo "$as_me:$LINENO: result: $LINKCC" >&5
3305 echo "${ECHO_T}$LINKCC" >&6
3307 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3308 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311 enableval="$enable_shared"
3315 if test -z "$enable_shared"
3316 then
3317 case $ac_sys_system in
3318 CYGWIN* | atheos*)
3319 enable_shared="yes";;
3321 enable_shared="no";;
3322 esac
3324 echo "$as_me:$LINENO: result: $enable_shared" >&5
3325 echo "${ECHO_T}$enable_shared" >&6
3327 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3328 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3329 # Check whether --enable-profiling or --disable-profiling was given.
3330 if test "${enable_profiling+set}" = set; then
3331 enableval="$enable_profiling"
3332 ac_save_cc="$CC"
3333 CC="$CC -pg"
3334 if test "$cross_compiling" = yes; then
3335 ac_enable_profiling="no"
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 int main() { return 0; }
3344 _ACEOF
3345 rm -f conftest$ac_exeext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347 (eval $ac_link) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_enable_profiling="yes"
3357 else
3358 echo "$as_me: program exited with status $ac_status" >&5
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ( exit $ac_status )
3363 ac_enable_profiling="no"
3365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3367 CC="$ac_save_cc"
3369 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3370 echo "${ECHO_T}$ac_enable_profiling" >&6
3372 case "$ac_enable_profiling" in
3373 "yes")
3374 BASECFLAGS="-pg $BASECFLAGS"
3375 LDFLAGS="-pg $LDFLAGS"
3377 esac
3379 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3380 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3382 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3383 # library that we build, but we do not want to link against it (we
3384 # will find it with a -framework option). For this reason there is an
3385 # extra variable BLDLIBRARY against which Python and the extension
3386 # modules are linked, BLDLIBRARY. This is normally the same as
3387 # LDLIBRARY, but empty for MacOSX framework builds.
3388 if test "$enable_framework"
3389 then
3390 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3391 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY=''
3393 else
3394 BLDLIBRARY='$(LDLIBRARY)'
3397 # Other platforms follow
3398 if test $enable_shared = "yes"; then
3400 cat >>confdefs.h <<\_ACEOF
3401 #define Py_ENABLE_SHARED 1
3402 _ACEOF
3404 case $ac_sys_system in
3405 BeOS*)
3406 LDLIBRARY='libpython$(VERSION).so'
3408 CYGWIN*)
3409 LDLIBRARY='libpython$(VERSION).dll.a'
3410 DLLLIBRARY='libpython$(VERSION).dll'
3412 SunOS*)
3413 LDLIBRARY='libpython$(VERSION).so'
3414 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3415 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3416 INSTSONAME="$LDLIBRARY".$SOVERSION
3418 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3419 LDLIBRARY='libpython$(VERSION).so'
3420 BLDLIBRARY='-L. -lpython$(VERSION)'
3421 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3422 case $ac_sys_system in
3423 FreeBSD*)
3424 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3426 esac
3427 INSTSONAME="$LDLIBRARY".$SOVERSION
3429 hp*|HP*)
3430 LDLIBRARY='libpython$(VERSION).sl'
3431 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3432 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3434 OSF*)
3435 LDLIBRARY='libpython$(VERSION).so'
3436 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3437 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3439 atheos*)
3440 LDLIBRARY='libpython$(VERSION).so'
3441 BLDLIBRARY='-L. -lpython$(VERSION)'
3442 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 esac
3445 else # shared is disabled
3446 case $ac_sys_system in
3447 CYGWIN*)
3448 BLDLIBRARY='$(LIBRARY)'
3449 LDLIBRARY='libpython$(VERSION).dll.a'
3451 esac
3454 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3455 echo "${ECHO_T}$LDLIBRARY" >&6
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_RANLIB+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test -n "$RANLIB"; then
3466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3484 RANLIB=$ac_cv_prog_RANLIB
3485 if test -n "$RANLIB"; then
3486 echo "$as_me:$LINENO: result: $RANLIB" >&5
3487 echo "${ECHO_T}$RANLIB" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_RANLIB"; then
3495 ac_ct_RANLIB=$RANLIB
3496 # Extract the first word of "ranlib", so it can be a program name with args.
3497 set dummy ranlib; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_RANLIB"; then
3504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_RANLIB="ranlib"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3520 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3524 if test -n "$ac_ct_RANLIB"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3526 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 else
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 RANLIB=$ac_ct_RANLIB
3533 else
3534 RANLIB="$ac_cv_prog_RANLIB"
3538 for ac_prog in ar aal
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_AR+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test -n "$AR"; then
3548 ac_cv_prog_AR="$AR" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AR="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3566 AR=$ac_cv_prog_AR
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$AR" && break
3576 done
3577 test -n "$AR" || AR="ar"
3581 # Extract the first word of "svnversion", so it can be a program name with args.
3582 set dummy svnversion; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$SVNVERSION"; then
3589 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_SVNVERSION="found"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3605 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3608 SVNVERSION=$ac_cv_prog_SVNVERSION
3609 if test -n "$SVNVERSION"; then
3610 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3611 echo "${ECHO_T}$SVNVERSION" >&6
3612 else
3613 echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3617 if test $SVNVERSION = found
3618 then
3619 SVNVERSION="svnversion \$(srcdir)"
3620 else
3621 SVNVERSION="echo exported"
3624 case $MACHDEP in
3625 bsdos*|hp*|HP*)
3626 # install -d does not work on BSDI or HP-UX
3627 if test -z "$INSTALL"
3628 then
3629 INSTALL="${srcdir}/install-sh -c"
3631 esac
3632 ac_aux_dir=
3633 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3634 if test -f $ac_dir/install-sh; then
3635 ac_aux_dir=$ac_dir
3636 ac_install_sh="$ac_aux_dir/install-sh -c"
3637 break
3638 elif test -f $ac_dir/install.sh; then
3639 ac_aux_dir=$ac_dir
3640 ac_install_sh="$ac_aux_dir/install.sh -c"
3641 break
3642 elif test -f $ac_dir/shtool; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/shtool install -c"
3645 break
3647 done
3648 if test -z "$ac_aux_dir"; then
3649 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3650 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3651 { (exit 1); exit 1; }; }
3653 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3654 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3655 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3663 # AIX /bin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3682 case $as_dir/ in
3683 ./ | .// | /cC/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3686 /usr/ucb/* ) ;;
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3690 # by default.
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3702 else
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3707 done
3708 done
3710 esac
3711 done
3715 if test "${ac_cv_path_install+set}" = set; then
3716 INSTALL=$ac_cv_path_install
3717 else
3718 # As a last resort, use the slow shell script. We don't cache a
3719 # path for INSTALL within a source directory, because that will
3720 # break other packages using the cache if that directory is
3721 # removed, or if the path is relative.
3722 INSTALL=$ac_install_sh
3725 echo "$as_me:$LINENO: result: $INSTALL" >&5
3726 echo "${ECHO_T}$INSTALL" >&6
3728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3729 # It thinks the first close brace ends the variable substitution.
3730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3737 # Not every filesystem supports hard links
3739 if test -z "$LN" ; then
3740 case $ac_sys_system in
3741 BeOS*) LN="ln -s";;
3742 CYGWIN*) LN="ln -s";;
3743 atheos*) LN="ln -s";;
3744 *) LN=ln;;
3745 esac
3748 # Check for --with-pydebug
3749 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3750 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3752 # Check whether --with-pydebug or --without-pydebug was given.
3753 if test "${with_pydebug+set}" = set; then
3754 withval="$with_pydebug"
3756 if test "$withval" != no
3757 then
3759 cat >>confdefs.h <<\_ACEOF
3760 #define Py_DEBUG 1
3761 _ACEOF
3763 echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6;
3765 Py_DEBUG='true'
3766 else echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3775 # merged with this chunk of code?
3777 # Optimizer/debugger flags
3778 # ------------------------
3779 # (The following bit of code is complicated enough - please keep things
3780 # indented properly. Just pretend you're editing Python code. ;-)
3782 # There are two parallel sets of case statements below, one that checks to
3783 # see if OPT was set and one that does BASECFLAGS setting based upon
3784 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3785 # user set OPT.
3787 # tweak OPT based on compiler and platform, only if the user didn't set
3788 # it on the command line
3790 if test -z "$OPT"
3791 then
3792 case $GCC in
3793 yes)
3794 case $ac_cv_prog_cc_g in
3795 yes)
3796 if test "$Py_DEBUG" = 'true' ; then
3797 # Optimization messes up debuggers, so turn it off for
3798 # debug builds.
3799 OPT="-g -Wall -Wstrict-prototypes"
3800 else
3801 OPT="-g -O3 -Wall -Wstrict-prototypes"
3805 OPT="-O3 -Wall -Wstrict-prototypes"
3807 esac
3808 case $ac_sys_system in
3809 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3811 esac
3815 OPT="-O"
3817 esac
3819 # The current (beta) Monterey compiler dies with optimizations
3820 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3821 case $ac_sys_system in
3822 Monterey*)
3823 OPT=""
3825 esac
3830 # tweak BASECFLAGS based on compiler and platform
3831 case $GCC in
3832 yes)
3833 # Python violates C99 rules, by casting between incompatible
3834 # pointer types. GCC may generate bad code as a result of that,
3835 # so use -fno-strict-aliasing if supported.
3836 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3837 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3838 ac_save_cc="$CC"
3839 CC="$CC -fno-strict-aliasing"
3840 if test "$cross_compiling" = yes; then
3841 ac_cv_no_strict_aliasing_ok=no
3842 else
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 int main() { return 0; }
3850 _ACEOF
3851 rm -f conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_no_strict_aliasing_ok=yes
3863 else
3864 echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ( exit $ac_status )
3869 ac_cv_no_strict_aliasing_ok=no
3871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3873 CC="$ac_save_cc"
3874 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3875 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3876 if test $ac_cv_no_strict_aliasing_ok = yes
3877 then
3878 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3880 case $ac_sys_system in
3881 SCO_SV*)
3882 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3884 # is there any other compiler on Darwin besides gcc?
3885 Darwin*)
3886 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3888 OSF*)
3889 BASECFLAGS="$BASECFLAGS -mieee"
3891 esac
3895 case $ac_sys_system in
3896 OpenUNIX*|UnixWare*)
3897 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -ieee -std"
3902 SCO_SV*)
3903 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3905 esac
3907 esac
3909 if test "$Py_DEBUG" = 'true'; then
3911 else
3912 OPT="-DNDEBUG $OPT"
3915 if test "$ac_arch_flags"
3916 then
3917 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3920 # disable check for icc since it seems to pass, but generates a warning
3921 if test "$CC" = icc
3922 then
3923 ac_cv_opt_olimit_ok=no
3926 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3927 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3928 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 ac_save_cc="$CC"
3932 CC="$CC -OPT:Olimit=0"
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_opt_olimit_ok=no
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 int main() { return 0; }
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_opt_olimit_ok=yes
3956 else
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ( exit $ac_status )
3962 ac_cv_opt_olimit_ok=no
3964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 CC="$ac_save_cc"
3969 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3970 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3971 if test $ac_cv_opt_olimit_ok = yes; then
3972 case $ac_sys_system in
3973 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3974 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3975 # environment?
3976 Darwin*)
3979 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3981 esac
3982 else
3983 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3984 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3985 if test "${ac_cv_olimit_ok+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 ac_save_cc="$CC"
3989 CC="$CC -Olimit 1500"
3990 if test "$cross_compiling" = yes; then
3991 ac_cv_olimit_ok=no
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 int main() { return 0; }
4000 _ACEOF
4001 rm -f conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_olimit_ok=yes
4013 else
4014 echo "$as_me: program exited with status $ac_status" >&5
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ( exit $ac_status )
4019 ac_cv_olimit_ok=no
4021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 CC="$ac_save_cc"
4026 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4027 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4028 if test $ac_cv_olimit_ok = yes; then
4029 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4033 # On some compilers, pthreads are available without further options
4034 # (e.g. MacOS X). On some of these systems, the compiler will not
4035 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4036 # So we have to see first whether pthreads are available without
4037 # options before we can check whether -Kpthread improves anything.
4038 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4039 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4040 if test "${ac_cv_pthread_is_default+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 if test "$cross_compiling" = yes; then
4044 ac_cv_pthread_is_default=no
4045 else
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 #include <pthread.h>
4055 void* routine(void* p){return NULL;}
4057 int main(){
4058 pthread_t p;
4059 if(pthread_create(&p,NULL,routine,NULL)!=0)
4060 return 1;
4061 (void)pthread_detach(p);
4062 return 0;
4065 _ACEOF
4066 rm -f conftest$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4078 ac_cv_pthread_is_default=yes
4079 ac_cv_kthread=no
4080 ac_cv_pthread=no
4082 else
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ( exit $ac_status )
4088 ac_cv_pthread_is_default=no
4090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4096 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4099 if test $ac_cv_pthread_is_default = yes
4100 then
4101 ac_cv_kpthread=no
4102 else
4103 # -Kpthread, if available, provides the right #defines
4104 # and linker options to make pthread_create available
4105 # Some compilers won't report that they do not support -Kpthread,
4106 # so we need to run a program to see whether it really made the
4107 # function available.
4108 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4109 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4110 if test "${ac_cv_kpthread+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 ac_save_cc="$CC"
4114 CC="$CC -Kpthread"
4115 if test "$cross_compiling" = yes; then
4116 ac_cv_kpthread=no
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 #include <pthread.h>
4127 void* routine(void* p){return NULL;}
4129 int main(){
4130 pthread_t p;
4131 if(pthread_create(&p,NULL,routine,NULL)!=0)
4132 return 1;
4133 (void)pthread_detach(p);
4134 return 0;
4137 _ACEOF
4138 rm -f conftest$ac_exeext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_kpthread=yes
4150 else
4151 echo "$as_me: program exited with status $ac_status" >&5
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ( exit $ac_status )
4156 ac_cv_kpthread=no
4158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4160 CC="$ac_save_cc"
4163 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4164 echo "${ECHO_T}$ac_cv_kpthread" >&6
4167 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4168 then
4169 # -Kthread, if available, provides the right #defines
4170 # and linker options to make pthread_create available
4171 # Some compilers won't report that they do not support -Kthread,
4172 # so we need to run a program to see whether it really made the
4173 # function available.
4174 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4175 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4176 if test "${ac_cv_kthread+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 ac_save_cc="$CC"
4180 CC="$CC -Kthread"
4181 if test "$cross_compiling" = yes; then
4182 ac_cv_kthread=no
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 #include <pthread.h>
4193 void* routine(void* p){return NULL;}
4195 int main(){
4196 pthread_t p;
4197 if(pthread_create(&p,NULL,routine,NULL)!=0)
4198 return 1;
4199 (void)pthread_detach(p);
4200 return 0;
4203 _ACEOF
4204 rm -f conftest$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_kthread=yes
4216 else
4217 echo "$as_me: program exited with status $ac_status" >&5
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ( exit $ac_status )
4222 ac_cv_kthread=no
4224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4226 CC="$ac_save_cc"
4229 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4230 echo "${ECHO_T}$ac_cv_kthread" >&6
4233 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4234 then
4235 # -pthread, if available, provides the right #defines
4236 # and linker options to make pthread_create available
4237 # Some compilers won't report that they do not support -pthread,
4238 # so we need to run a program to see whether it really made the
4239 # function available.
4240 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4241 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4242 if test "${ac_cv_thread+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 ac_save_cc="$CC"
4246 CC="$CC -pthread"
4247 if test "$cross_compiling" = yes; then
4248 ac_cv_pthread=no
4249 else
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 #include <pthread.h>
4259 void* routine(void* p){return NULL;}
4261 int main(){
4262 pthread_t p;
4263 if(pthread_create(&p,NULL,routine,NULL)!=0)
4264 return 1;
4265 (void)pthread_detach(p);
4266 return 0;
4269 _ACEOF
4270 rm -f conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_pthread=yes
4282 else
4283 echo "$as_me: program exited with status $ac_status" >&5
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 ( exit $ac_status )
4288 ac_cv_pthread=no
4290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292 CC="$ac_save_cc"
4295 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4296 echo "${ECHO_T}$ac_cv_pthread" >&6
4299 # If we have set a CC compiler flag for thread support then
4300 # check if it works for CXX, too.
4301 ac_cv_cxx_thread=no
4302 if test ! -z "$CXX"
4303 then
4304 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4305 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4306 ac_save_cxx="$CXX"
4308 if test "$ac_cv_kpthread" = "yes"
4309 then
4310 CXX="$CXX -Kpthread"
4311 ac_cv_cxx_thread=yes
4312 elif test "$ac_cv_kthread" = "yes"
4313 then
4314 CXX="$CXX -Kthread"
4315 ac_cv_cxx_thread=yes
4316 elif test "$ac_cv_pthread" = "yes"
4317 then
4318 CXX="$CXX -pthread"
4319 ac_cv_cxx_thread=yes
4322 if test $ac_cv_cxx_thread = yes
4323 then
4324 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4325 $CXX -c conftest.$ac_ext 2>&5
4326 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4327 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4328 then
4329 ac_cv_cxx_thread=yes
4330 else
4331 ac_cv_cxx_thread=no
4333 rm -fr conftest*
4335 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4336 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4338 CXX="$ac_save_cxx"
4341 # checks for header files
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4359 main ()
4363 return 0;
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_header_stdc=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <string.h>
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4411 else
4412 ac_cv_header_stdc=no
4414 rm -f conftest*
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <stdlib.h>
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev/null 2>&1; then
4432 else
4433 ac_cv_header_stdc=no
4435 rm -f conftest*
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ctype.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464 main ()
4466 int i;
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4470 exit(2);
4471 exit (0);
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4486 else
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4504 _ACEOF
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519 inttypes.h stdint.h unistd.h
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4535 #include <$ac_header>
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 eval "$as_ac_Header=no"
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4577 done
4619 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4620 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4621 stropts.h termios.h thread.h \
4622 unistd.h utime.h \
4623 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4624 sys/modem.h \
4625 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4626 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4627 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4628 bluetooth/bluetooth.h
4630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632 echo "$as_me:$LINENO: checking for $ac_header" >&5
4633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4639 else
4640 # Is the header compilable?
4641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_header_compiler=yes
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_header_compiler=no
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4683 echo "${ECHO_T}$ac_header_compiler" >&6
4685 # Is the header present?
4686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #include <$ac_header>
4695 _ACEOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_c_preproc_warn_flag
4706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4707 else
4708 ac_cpp_err=
4710 else
4711 ac_cpp_err=yes
4713 if test -z "$ac_cpp_err"; then
4714 ac_header_preproc=yes
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 ac_header_preproc=no
4721 rm -f conftest.err conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4723 echo "${ECHO_T}$ac_header_preproc" >&6
4725 # So? What about this header?
4726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4727 yes:no: )
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4732 ac_header_preproc=yes
4734 no:yes:* )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 cat <<\_ASBOX
4749 ## ------------------------------------------------ ##
4750 ## Report this to http://www.python.org/python-bugs ##
4751 ## ------------------------------------------------ ##
4752 _ASBOX
4754 sed "s/^/$as_me: WARNING: /" >&2
4756 esac
4757 echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 eval "$as_ac_Header=\$ac_header_preproc"
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4775 done
4782 ac_header_dirent=no
4783 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4784 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4785 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4786 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 #include <$ac_hdr>
4800 main ()
4802 if ((DIR *) 0)
4803 return 0;
4805 return 0;
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 eval "$as_ac_Header=yes"
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 eval "$as_ac_Header=no"
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4844 _ACEOF
4846 ac_header_dirent=$ac_hdr; break
4849 done
4850 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4851 if test $ac_header_dirent = dirent.h; then
4852 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4853 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4854 if test "${ac_cv_search_opendir+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 ac_func_search_save_LIBS=$LIBS
4858 ac_cv_search_opendir=no
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char opendir ();
4874 main ()
4876 opendir ();
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_search_opendir="none required"
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911 if test "$ac_cv_search_opendir" = no; then
4912 for ac_lib in dir; do
4913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 #ifdef __cplusplus
4923 extern "C"
4924 #endif
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char opendir ();
4929 main ()
4931 opendir ();
4933 return 0;
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_search_opendir="-l$ac_lib"
4959 break
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 done
4969 LIBS=$ac_func_search_save_LIBS
4971 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4972 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4973 if test "$ac_cv_search_opendir" != no; then
4974 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4978 else
4979 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4981 if test "${ac_cv_search_opendir+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 ac_func_search_save_LIBS=$LIBS
4985 ac_cv_search_opendir=no
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
4999 char opendir ();
5001 main ()
5003 opendir ();
5005 return 0;
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_search_opendir="none required"
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext \
5037 conftest$ac_exeext conftest.$ac_ext
5038 if test "$ac_cv_search_opendir" = no; then
5039 for ac_lib in x; do
5040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char opendir ();
5056 main ()
5058 opendir ();
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_search_opendir="-l$ac_lib"
5086 break
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094 done
5096 LIBS=$ac_func_search_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5099 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5100 if test "$ac_cv_search_opendir" != no; then
5101 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5107 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5108 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5109 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <sys/types.h>
5120 main ()
5122 return makedev(0, 0);
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_header_sys_types_h_makedev=yes
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_header_sys_types_h_makedev=no
5156 rm -f conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5161 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5163 if test $ac_cv_header_sys_types_h_makedev = no; then
5164 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5165 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5166 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5167 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5171 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5172 else
5173 # Is the header compilable?
5174 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5175 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5183 #include <sys/mkdev.h>
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_header_compiler=yes
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 ac_header_compiler=no
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5216 echo "${ECHO_T}$ac_header_compiler" >&6
5218 # Is the header present?
5219 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5220 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <sys/mkdev.h>
5228 _ACEOF
5229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null; then
5237 if test -s conftest.err; then
5238 ac_cpp_err=$ac_c_preproc_warn_flag
5239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5240 else
5241 ac_cpp_err=
5243 else
5244 ac_cpp_err=yes
5246 if test -z "$ac_cpp_err"; then
5247 ac_header_preproc=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_header_preproc=no
5254 rm -f conftest.err conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5256 echo "${ECHO_T}$ac_header_preproc" >&6
5258 # So? What about this header?
5259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5260 yes:no: )
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5264 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5265 ac_header_preproc=yes
5267 no:yes:* )
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5275 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5277 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5281 cat <<\_ASBOX
5282 ## ------------------------------------------------ ##
5283 ## Report this to http://www.python.org/python-bugs ##
5284 ## ------------------------------------------------ ##
5285 _ASBOX
5287 sed "s/^/$as_me: WARNING: /" >&2
5289 esac
5290 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5291 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5292 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5298 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5301 if test $ac_cv_header_sys_mkdev_h = yes; then
5303 cat >>confdefs.h <<\_ACEOF
5304 #define MAJOR_IN_MKDEV 1
5305 _ACEOF
5311 if test $ac_cv_header_sys_mkdev_h = no; then
5312 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5313 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5314 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5319 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5320 else
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5323 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 $ac_includes_default
5331 #include <sys/sysmacros.h>
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_header_compiler=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_header_compiler=no
5362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 echo "${ECHO_T}$ac_header_compiler" >&6
5366 # Is the header present?
5367 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5368 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <sys/sysmacros.h>
5376 _ACEOF
5377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388 else
5389 ac_cpp_err=
5391 else
5392 ac_cpp_err=yes
5394 if test -z "$ac_cpp_err"; then
5395 ac_header_preproc=yes
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_header_preproc=no
5402 rm -f conftest.err conftest.$ac_ext
5403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404 echo "${ECHO_T}$ac_header_preproc" >&6
5406 # So? What about this header?
5407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408 yes:no: )
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5412 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5413 ac_header_preproc=yes
5415 no:yes:* )
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5423 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5429 cat <<\_ASBOX
5430 ## ------------------------------------------------ ##
5431 ## Report this to http://www.python.org/python-bugs ##
5432 ## ------------------------------------------------ ##
5433 _ASBOX
5435 sed "s/^/$as_me: WARNING: /" >&2
5437 esac
5438 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5439 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5440 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5445 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5446 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5449 if test $ac_cv_header_sys_sysmacros_h = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define MAJOR_IN_SYSMACROS 1
5453 _ACEOF
5462 # On Solaris, term.h requires curses.h
5464 for ac_header in term.h
5466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5479 #ifdef HAVE_CURSES_H
5480 #include <curses.h>
5481 #endif
5484 #include <$ac_header>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5529 # On Linux, netlink.h requires asm/types.h
5531 for ac_header in linux/netlink.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5546 #ifdef HAVE_ASM_TYPES_H
5547 #include <asm/types.h>
5548 #endif
5549 #ifdef HAVE_SYS_SOCKET_H
5550 #include <sys/socket.h>
5551 #endif
5554 #include <$ac_header>
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 eval "$as_ac_Header=yes"
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 eval "$as_ac_Header=no"
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5590 cat >>confdefs.h <<_ACEOF
5591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5592 _ACEOF
5596 done
5599 # checks for typedefs
5600 was_it_defined=no
5601 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5602 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <time.h>
5611 _ACEOF
5612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613 $EGREP "clock_t" >/dev/null 2>&1; then
5614 was_it_defined=yes
5615 else
5618 cat >>confdefs.h <<\_ACEOF
5619 #define clock_t long
5620 _ACEOF
5624 rm -f conftest*
5626 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5627 echo "${ECHO_T}$was_it_defined" >&6
5629 # Check whether using makedev requires defining _OSF_SOURCE
5630 echo "$as_me:$LINENO: checking for makedev" >&5
5631 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5640 main ()
5642 makedev(0, 0)
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_has_makedev=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_cv_has_makedev=no
5676 rm -f conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5678 if test "$ac_cv_has_makedev" = "no"; then
5679 # we didn't link, try if _OSF_SOURCE will allow us to link
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 #define _OSF_SOURCE 1
5688 #include <sys/types.h>
5691 main ()
5693 makedev(0, 0)
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_has_makedev=yes
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_has_makedev=no
5727 rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 if test "$ac_cv_has_makedev" = "yes"; then
5731 cat >>confdefs.h <<\_ACEOF
5732 #define _OSF_SOURCE 1
5733 _ACEOF
5737 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5738 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5739 if test "$ac_cv_has_makedev" = "yes"; then
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_MAKEDEV 1
5743 _ACEOF
5747 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5748 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5749 # defined, but the compiler does not support pragma redefine_extname,
5750 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5751 # structures (such as rlimit64) without declaring them. As a
5752 # work-around, disable LFS on such configurations
5754 use_lfs=yes
5755 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5756 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 #define _LARGEFILE_SOURCE 1
5765 #define _FILE_OFFSET_BITS 64
5766 #include <sys/resource.h>
5769 main ()
5771 struct rlimit foo;
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 sol_lfs_bug=no
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 sol_lfs_bug=yes
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5807 echo "${ECHO_T}$sol_lfs_bug" >&6
5808 if test "$sol_lfs_bug" = "yes"; then
5809 use_lfs=no
5812 if test "$use_lfs" = "yes"; then
5813 # Two defines needed to enable largefile support on various platforms
5814 # These may affect some typedefs
5816 cat >>confdefs.h <<\_ACEOF
5817 #define _LARGEFILE_SOURCE 1
5818 _ACEOF
5821 cat >>confdefs.h <<\_ACEOF
5822 #define _FILE_OFFSET_BITS 64
5823 _ACEOF
5827 # Add some code to confdefs.h so that the test for off_t works on SCO
5828 cat >> confdefs.h <<\EOF
5829 #if defined(SCO_DS)
5830 #undef _OFF_T
5831 #endif
5834 # Type availability checks
5835 echo "$as_me:$LINENO: checking for mode_t" >&5
5836 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5837 if test "${ac_cv_type_mode_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 $ac_includes_default
5848 main ()
5850 if ((mode_t *) 0)
5851 return 0;
5852 if (sizeof (mode_t))
5853 return 0;
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_type_mode_t=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_type_mode_t=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5890 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5891 if test $ac_cv_type_mode_t = yes; then
5893 else
5895 cat >>confdefs.h <<_ACEOF
5896 #define mode_t int
5897 _ACEOF
5901 echo "$as_me:$LINENO: checking for off_t" >&5
5902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5903 if test "${ac_cv_type_off_t+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5914 main ()
5916 if ((off_t *) 0)
5917 return 0;
5918 if (sizeof (off_t))
5919 return 0;
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_type_off_t=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 ac_cv_type_off_t=no
5953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5956 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5957 if test $ac_cv_type_off_t = yes; then
5959 else
5961 cat >>confdefs.h <<_ACEOF
5962 #define off_t long
5963 _ACEOF
5967 echo "$as_me:$LINENO: checking for pid_t" >&5
5968 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_pid_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5980 main ()
5982 if ((pid_t *) 0)
5983 return 0;
5984 if (sizeof (pid_t))
5985 return 0;
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_pid_t=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_type_pid_t=no
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6023 if test $ac_cv_type_pid_t = yes; then
6025 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define pid_t int
6029 _ACEOF
6033 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6035 if test "${ac_cv_type_signal+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6045 #include <signal.h>
6046 #ifdef signal
6047 # undef signal
6048 #endif
6049 #ifdef __cplusplus
6050 extern "C" void (*signal (int, void (*)(int)))(int);
6051 #else
6052 void (*signal ()) ();
6053 #endif
6056 main ()
6058 int i;
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_type_signal=void
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_type_signal=int
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6095 echo "${ECHO_T}$ac_cv_type_signal" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define RETSIGTYPE $ac_cv_type_signal
6099 _ACEOF
6102 echo "$as_me:$LINENO: checking for size_t" >&5
6103 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6104 if test "${ac_cv_type_size_t+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 $ac_includes_default
6115 main ()
6117 if ((size_t *) 0)
6118 return 0;
6119 if (sizeof (size_t))
6120 return 0;
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_type_size_t=yes
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_type_size_t=no
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6158 if test $ac_cv_type_size_t = yes; then
6160 else
6162 cat >>confdefs.h <<_ACEOF
6163 #define size_t unsigned
6164 _ACEOF
6168 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6169 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6170 if test "${ac_cv_type_uid_t+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6181 _ACEOF
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "uid_t" >/dev/null 2>&1; then
6184 ac_cv_type_uid_t=yes
6185 else
6186 ac_cv_type_uid_t=no
6188 rm -f conftest*
6191 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6192 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6193 if test $ac_cv_type_uid_t = no; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define uid_t int
6197 _ACEOF
6200 cat >>confdefs.h <<\_ACEOF
6201 #define gid_t int
6202 _ACEOF
6206 echo "$as_me:$LINENO: checking for ssize_t" >&5
6207 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6208 if test "${ac_cv_type_ssize_t+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6219 main ()
6221 if ((ssize_t *) 0)
6222 return 0;
6223 if (sizeof (ssize_t))
6224 return 0;
6226 return 0;
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_type_ssize_t=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_type_ssize_t=no
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6261 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6262 if test $ac_cv_type_ssize_t = yes; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define HAVE_SSIZE_T 1
6266 _ACEOF
6271 # Sizes of various common basic types
6272 # ANSI C requires sizeof(char) == 1, so no need to check it
6273 echo "$as_me:$LINENO: checking for int" >&5
6274 echo $ECHO_N "checking for int... $ECHO_C" >&6
6275 if test "${ac_cv_type_int+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6286 main ()
6288 if ((int *) 0)
6289 return 0;
6290 if (sizeof (int))
6291 return 0;
6293 return 0;
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_type_int=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_cv_type_int=no
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6328 echo "${ECHO_T}$ac_cv_type_int" >&6
6330 echo "$as_me:$LINENO: checking size of int" >&5
6331 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6332 if test "${ac_cv_sizeof_int+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test "$ac_cv_type_int" = yes; then
6336 # The cast to unsigned long works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 if test "$cross_compiling" = yes; then
6341 # Depending upon the size, compute the lo and hi bounds.
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6350 main ()
6352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6353 test_array [0] = 0
6356 return 0;
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_c_werror_flag"
6369 || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_lo=0 ac_mid=0
6382 while :; do
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6391 main ()
6393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6394 test_array [0] = 0
6397 return 0;
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_hi=$ac_mid; break
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_lo=`expr $ac_mid + 1`
6428 if test $ac_lo -le $ac_mid; then
6429 ac_lo= ac_hi=
6430 break
6432 ac_mid=`expr 2 '*' $ac_mid + 1`
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 done
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 main ()
6450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6451 test_array [0] = 0
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_hi=-1 ac_mid=-1
6480 while :; do
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6489 main ()
6491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6492 test_array [0] = 0
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_lo=$ac_mid; break
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_hi=`expr '(' $ac_mid ')' - 1`
6526 if test $ac_mid -le $ac_hi; then
6527 ac_lo= ac_hi=
6528 break
6530 ac_mid=`expr 2 '*' $ac_mid`
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 done
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_lo= ac_hi=
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543 # Binary search between lo and hi bounds.
6544 while test "x$ac_lo" != "x$ac_hi"; do
6545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6554 main ()
6556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6557 test_array [0] = 0
6560 return 0;
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_hi=$ac_mid
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_lo=`expr '(' $ac_mid ')' + 1`
6592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6593 done
6594 case $ac_lo in
6595 ?*) ac_cv_sizeof_int=$ac_lo;;
6596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; } ;;
6601 esac
6602 else
6603 if test "$cross_compiling" = yes; then
6604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6605 See \`config.log' for more details." >&5
6606 echo "$as_me: error: cannot run test program while cross compiling
6607 See \`config.log' for more details." >&2;}
6608 { (exit 1); exit 1; }; }
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 long longval () { return (long) (sizeof (int)); }
6618 unsigned long ulongval () { return (long) (sizeof (int)); }
6619 #include <stdio.h>
6620 #include <stdlib.h>
6622 main ()
6625 FILE *f = fopen ("conftest.val", "w");
6626 if (! f)
6627 exit (1);
6628 if (((long) (sizeof (int))) < 0)
6630 long i = longval ();
6631 if (i != ((long) (sizeof (int))))
6632 exit (1);
6633 fprintf (f, "%ld\n", i);
6635 else
6637 unsigned long i = ulongval ();
6638 if (i != ((long) (sizeof (int))))
6639 exit (1);
6640 fprintf (f, "%lu\n", i);
6642 exit (ferror (f) || fclose (f) != 0);
6645 return 0;
6647 _ACEOF
6648 rm -f conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_sizeof_int=`cat conftest.val`
6660 else
6661 echo "$as_me: program exited with status $ac_status" >&5
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 ( exit $ac_status )
6666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6667 See \`config.log' for more details." >&5
6668 echo "$as_me: error: cannot compute sizeof (int), 77
6669 See \`config.log' for more details." >&2;}
6670 { (exit 1); exit 1; }; }
6672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675 rm -f conftest.val
6676 else
6677 ac_cv_sizeof_int=0
6680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6681 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6682 cat >>confdefs.h <<_ACEOF
6683 #define SIZEOF_INT $ac_cv_sizeof_int
6684 _ACEOF
6687 echo "$as_me:$LINENO: checking for long" >&5
6688 echo $ECHO_N "checking for long... $ECHO_C" >&6
6689 if test "${ac_cv_type_long+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6700 main ()
6702 if ((long *) 0)
6703 return 0;
6704 if (sizeof (long))
6705 return 0;
6707 return 0;
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_type_long=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_cv_type_long=no
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6742 echo "${ECHO_T}$ac_cv_type_long" >&6
6744 echo "$as_me:$LINENO: checking size of long" >&5
6745 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6746 if test "${ac_cv_sizeof_long+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test "$ac_cv_type_long" = yes; then
6750 # The cast to unsigned long works around a bug in the HP C Compiler
6751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6753 # This bug is HP SR number 8606223364.
6754 if test "$cross_compiling" = yes; then
6755 # Depending upon the size, compute the lo and hi bounds.
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6764 main ()
6766 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6767 test_array [0] = 0
6770 return 0;
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_lo=0 ac_mid=0
6796 while :; do
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6805 main ()
6807 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6808 test_array [0] = 0
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_hi=$ac_mid; break
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 ac_lo=`expr $ac_mid + 1`
6842 if test $ac_lo -le $ac_mid; then
6843 ac_lo= ac_hi=
6844 break
6846 ac_mid=`expr 2 '*' $ac_mid + 1`
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 done
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6862 main ()
6864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6865 test_array [0] = 0
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_hi=-1 ac_mid=-1
6894 while :; do
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6903 main ()
6905 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6906 test_array [0] = 0
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_lo=$ac_mid; break
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_hi=`expr '(' $ac_mid ')' - 1`
6940 if test $ac_mid -le $ac_hi; then
6941 ac_lo= ac_hi=
6942 break
6944 ac_mid=`expr 2 '*' $ac_mid`
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 done
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_lo= ac_hi=
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957 # Binary search between lo and hi bounds.
6958 while test "x$ac_lo" != "x$ac_hi"; do
6959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6968 main ()
6970 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6971 test_array [0] = 0
6974 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_hi=$ac_mid
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_lo=`expr '(' $ac_mid ')' + 1`
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 done
7008 case $ac_lo in
7009 ?*) ac_cv_sizeof_long=$ac_lo;;
7010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; } ;;
7015 esac
7016 else
7017 if test "$cross_compiling" = yes; then
7018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: cannot run test program while cross compiling
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 $ac_includes_default
7031 long longval () { return (long) (sizeof (long)); }
7032 unsigned long ulongval () { return (long) (sizeof (long)); }
7033 #include <stdio.h>
7034 #include <stdlib.h>
7036 main ()
7039 FILE *f = fopen ("conftest.val", "w");
7040 if (! f)
7041 exit (1);
7042 if (((long) (sizeof (long))) < 0)
7044 long i = longval ();
7045 if (i != ((long) (sizeof (long))))
7046 exit (1);
7047 fprintf (f, "%ld\n", i);
7049 else
7051 unsigned long i = ulongval ();
7052 if (i != ((long) (sizeof (long))))
7053 exit (1);
7054 fprintf (f, "%lu\n", i);
7056 exit (ferror (f) || fclose (f) != 0);
7059 return 0;
7061 _ACEOF
7062 rm -f conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_sizeof_long=`cat conftest.val`
7074 else
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ( exit $ac_status )
7080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7081 See \`config.log' for more details." >&5
7082 echo "$as_me: error: cannot compute sizeof (long), 77
7083 See \`config.log' for more details." >&2;}
7084 { (exit 1); exit 1; }; }
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7089 rm -f conftest.val
7090 else
7091 ac_cv_sizeof_long=0
7094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7095 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7096 cat >>confdefs.h <<_ACEOF
7097 #define SIZEOF_LONG $ac_cv_sizeof_long
7098 _ACEOF
7101 echo "$as_me:$LINENO: checking for void *" >&5
7102 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7103 if test "${ac_cv_type_void_p+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7114 main ()
7116 if ((void * *) 0)
7117 return 0;
7118 if (sizeof (void *))
7119 return 0;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_type_void_p=yes
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_type_void_p=no
7153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7156 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7158 echo "$as_me:$LINENO: checking size of void *" >&5
7159 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7160 if test "${ac_cv_sizeof_void_p+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test "$ac_cv_type_void_p" = yes; then
7164 # The cast to unsigned long works around a bug in the HP C Compiler
7165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7167 # This bug is HP SR number 8606223364.
7168 if test "$cross_compiling" = yes; then
7169 # Depending upon the size, compute the lo and hi bounds.
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7178 main ()
7180 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7181 test_array [0] = 0
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_lo=0 ac_mid=0
7210 while :; do
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7219 main ()
7221 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7222 test_array [0] = 0
7225 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_hi=$ac_mid; break
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_lo=`expr $ac_mid + 1`
7256 if test $ac_lo -le $ac_mid; then
7257 ac_lo= ac_hi=
7258 break
7260 ac_mid=`expr 2 '*' $ac_mid + 1`
7262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 done
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 $ac_includes_default
7276 main ()
7278 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7279 test_array [0] = 0
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -z "$ac_c_werror_flag"
7295 || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 (eval $ac_try) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 ac_hi=-1 ac_mid=-1
7308 while :; do
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7317 main ()
7319 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7320 test_array [0] = 0
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_lo=$ac_mid; break
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_hi=`expr '(' $ac_mid ')' - 1`
7354 if test $ac_mid -le $ac_hi; then
7355 ac_lo= ac_hi=
7356 break
7358 ac_mid=`expr 2 '*' $ac_mid`
7360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361 done
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_lo= ac_hi=
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 # Binary search between lo and hi bounds.
7372 while test "x$ac_lo" != "x$ac_hi"; do
7373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7382 main ()
7384 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7385 test_array [0] = 0
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_hi=$ac_mid
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ac_lo=`expr '(' $ac_mid ')' + 1`
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 done
7422 case $ac_lo in
7423 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7424 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; } ;;
7429 esac
7430 else
7431 if test "$cross_compiling" = yes; then
7432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7433 See \`config.log' for more details." >&5
7434 echo "$as_me: error: cannot run test program while cross compiling
7435 See \`config.log' for more details." >&2;}
7436 { (exit 1); exit 1; }; }
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 long longval () { return (long) (sizeof (void *)); }
7446 unsigned long ulongval () { return (long) (sizeof (void *)); }
7447 #include <stdio.h>
7448 #include <stdlib.h>
7450 main ()
7453 FILE *f = fopen ("conftest.val", "w");
7454 if (! f)
7455 exit (1);
7456 if (((long) (sizeof (void *))) < 0)
7458 long i = longval ();
7459 if (i != ((long) (sizeof (void *))))
7460 exit (1);
7461 fprintf (f, "%ld\n", i);
7463 else
7465 unsigned long i = ulongval ();
7466 if (i != ((long) (sizeof (void *))))
7467 exit (1);
7468 fprintf (f, "%lu\n", i);
7470 exit (ferror (f) || fclose (f) != 0);
7473 return 0;
7475 _ACEOF
7476 rm -f conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 ac_cv_sizeof_void_p=`cat conftest.val`
7488 else
7489 echo "$as_me: program exited with status $ac_status" >&5
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ( exit $ac_status )
7494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7495 See \`config.log' for more details." >&5
7496 echo "$as_me: error: cannot compute sizeof (void *), 77
7497 See \`config.log' for more details." >&2;}
7498 { (exit 1); exit 1; }; }
7500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7503 rm -f conftest.val
7504 else
7505 ac_cv_sizeof_void_p=0
7508 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7510 cat >>confdefs.h <<_ACEOF
7511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7512 _ACEOF
7515 echo "$as_me:$LINENO: checking for short" >&5
7516 echo $ECHO_N "checking for short... $ECHO_C" >&6
7517 if test "${ac_cv_type_short+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7528 main ()
7530 if ((short *) 0)
7531 return 0;
7532 if (sizeof (short))
7533 return 0;
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_type_short=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_cv_type_short=no
7567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7570 echo "${ECHO_T}$ac_cv_type_short" >&6
7572 echo "$as_me:$LINENO: checking size of short" >&5
7573 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7574 if test "${ac_cv_sizeof_short+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 if test "$ac_cv_type_short" = yes; then
7578 # The cast to unsigned long works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 if test "$cross_compiling" = yes; then
7583 # Depending upon the size, compute the lo and hi bounds.
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7592 main ()
7594 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7595 test_array [0] = 0
7598 return 0;
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_lo=0 ac_mid=0
7624 while :; do
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7633 main ()
7635 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7636 test_array [0] = 0
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_hi=$ac_mid; break
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_lo=`expr $ac_mid + 1`
7670 if test $ac_lo -le $ac_mid; then
7671 ac_lo= ac_hi=
7672 break
7674 ac_mid=`expr 2 '*' $ac_mid + 1`
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 done
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7690 main ()
7692 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7693 test_array [0] = 0
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_c_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest.$ac_objext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_hi=-1 ac_mid=-1
7722 while :; do
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7731 main ()
7733 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7734 test_array [0] = 0
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_lo=$ac_mid; break
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_hi=`expr '(' $ac_mid ')' - 1`
7768 if test $ac_mid -le $ac_hi; then
7769 ac_lo= ac_hi=
7770 break
7772 ac_mid=`expr 2 '*' $ac_mid`
7774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775 done
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_lo= ac_hi=
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 # Binary search between lo and hi bounds.
7786 while test "x$ac_lo" != "x$ac_hi"; do
7787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7796 main ()
7798 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7799 test_array [0] = 0
7802 return 0;
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_hi=$ac_mid
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_lo=`expr '(' $ac_mid ')' + 1`
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 done
7836 case $ac_lo in
7837 ?*) ac_cv_sizeof_short=$ac_lo;;
7838 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; } ;;
7843 esac
7844 else
7845 if test "$cross_compiling" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot run test program while cross compiling
7849 See \`config.log' for more details." >&2;}
7850 { (exit 1); exit 1; }; }
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 long longval () { return (long) (sizeof (short)); }
7860 unsigned long ulongval () { return (long) (sizeof (short)); }
7861 #include <stdio.h>
7862 #include <stdlib.h>
7864 main ()
7867 FILE *f = fopen ("conftest.val", "w");
7868 if (! f)
7869 exit (1);
7870 if (((long) (sizeof (short))) < 0)
7872 long i = longval ();
7873 if (i != ((long) (sizeof (short))))
7874 exit (1);
7875 fprintf (f, "%ld\n", i);
7877 else
7879 unsigned long i = ulongval ();
7880 if (i != ((long) (sizeof (short))))
7881 exit (1);
7882 fprintf (f, "%lu\n", i);
7884 exit (ferror (f) || fclose (f) != 0);
7887 return 0;
7889 _ACEOF
7890 rm -f conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_sizeof_short=`cat conftest.val`
7902 else
7903 echo "$as_me: program exited with status $ac_status" >&5
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ( exit $ac_status )
7908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7909 See \`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (short), 77
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 rm -f conftest.val
7918 else
7919 ac_cv_sizeof_short=0
7922 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7923 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7924 cat >>confdefs.h <<_ACEOF
7925 #define SIZEOF_SHORT $ac_cv_sizeof_short
7926 _ACEOF
7929 echo "$as_me:$LINENO: checking for float" >&5
7930 echo $ECHO_N "checking for float... $ECHO_C" >&6
7931 if test "${ac_cv_type_float+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7942 main ()
7944 if ((float *) 0)
7945 return 0;
7946 if (sizeof (float))
7947 return 0;
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_type_float=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_type_float=no
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7984 echo "${ECHO_T}$ac_cv_type_float" >&6
7986 echo "$as_me:$LINENO: checking size of float" >&5
7987 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7988 if test "${ac_cv_sizeof_float+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 if test "$ac_cv_type_float" = yes; then
7992 # The cast to unsigned long works around a bug in the HP C Compiler
7993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7995 # This bug is HP SR number 8606223364.
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8006 main ()
8008 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8009 test_array [0] = 0
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_lo=0 ac_mid=0
8038 while :; do
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8047 main ()
8049 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8050 test_array [0] = 0
8053 return 0;
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_hi=$ac_mid; break
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr $ac_mid + 1`
8084 if test $ac_lo -le $ac_mid; then
8085 ac_lo= ac_hi=
8086 break
8088 ac_mid=`expr 2 '*' $ac_mid + 1`
8090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091 done
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 $ac_includes_default
8104 main ()
8106 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8107 test_array [0] = 0
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_hi=-1 ac_mid=-1
8136 while :; do
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8145 main ()
8147 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8148 test_array [0] = 0
8151 return 0;
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156 (eval $ac_compile) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_c_werror_flag"
8164 || test ! -s conftest.err'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try='test -s conftest.$ac_objext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_lo=$ac_mid; break
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_hi=`expr '(' $ac_mid ')' - 1`
8182 if test $ac_mid -le $ac_hi; then
8183 ac_lo= ac_hi=
8184 break
8186 ac_mid=`expr 2 '*' $ac_mid`
8188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189 done
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_lo= ac_hi=
8196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8199 # Binary search between lo and hi bounds.
8200 while test "x$ac_lo" != "x$ac_hi"; do
8201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 $ac_includes_default
8210 main ()
8212 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8213 test_array [0] = 0
8216 return 0;
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221 (eval $ac_compile) 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest.$ac_objext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_hi=$ac_mid
8242 else
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8246 ac_lo=`expr '(' $ac_mid ')' + 1`
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249 done
8250 case $ac_lo in
8251 ?*) ac_cv_sizeof_float=$ac_lo;;
8252 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; } ;;
8257 esac
8258 else
8259 if test "$cross_compiling" = yes; then
8260 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8261 See \`config.log' for more details." >&5
8262 echo "$as_me: error: cannot run test program while cross compiling
8263 See \`config.log' for more details." >&2;}
8264 { (exit 1); exit 1; }; }
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 long longval () { return (long) (sizeof (float)); }
8274 unsigned long ulongval () { return (long) (sizeof (float)); }
8275 #include <stdio.h>
8276 #include <stdlib.h>
8278 main ()
8281 FILE *f = fopen ("conftest.val", "w");
8282 if (! f)
8283 exit (1);
8284 if (((long) (sizeof (float))) < 0)
8286 long i = longval ();
8287 if (i != ((long) (sizeof (float))))
8288 exit (1);
8289 fprintf (f, "%ld\n", i);
8291 else
8293 unsigned long i = ulongval ();
8294 if (i != ((long) (sizeof (float))))
8295 exit (1);
8296 fprintf (f, "%lu\n", i);
8298 exit (ferror (f) || fclose (f) != 0);
8301 return 0;
8303 _ACEOF
8304 rm -f conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_sizeof_float=`cat conftest.val`
8316 else
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ( exit $ac_status )
8322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8323 See \`config.log' for more details." >&5
8324 echo "$as_me: error: cannot compute sizeof (float), 77
8325 See \`config.log' for more details." >&2;}
8326 { (exit 1); exit 1; }; }
8328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331 rm -f conftest.val
8332 else
8333 ac_cv_sizeof_float=0
8336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8337 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8338 cat >>confdefs.h <<_ACEOF
8339 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8340 _ACEOF
8343 echo "$as_me:$LINENO: checking for double" >&5
8344 echo $ECHO_N "checking for double... $ECHO_C" >&6
8345 if test "${ac_cv_type_double+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8356 main ()
8358 if ((double *) 0)
8359 return 0;
8360 if (sizeof (double))
8361 return 0;
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_type_double=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_type_double=no
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8398 echo "${ECHO_T}$ac_cv_type_double" >&6
8400 echo "$as_me:$LINENO: checking size of double" >&5
8401 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8402 if test "${ac_cv_sizeof_double+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 if test "$ac_cv_type_double" = yes; then
8406 # The cast to unsigned long works around a bug in the HP C Compiler
8407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409 # This bug is HP SR number 8606223364.
8410 if test "$cross_compiling" = yes; then
8411 # Depending upon the size, compute the lo and hi bounds.
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8420 main ()
8422 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8423 test_array [0] = 0
8426 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_lo=0 ac_mid=0
8452 while :; do
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8461 main ()
8463 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8464 test_array [0] = 0
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_hi=$ac_mid; break
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_lo=`expr $ac_mid + 1`
8498 if test $ac_lo -le $ac_mid; then
8499 ac_lo= ac_hi=
8500 break
8502 ac_mid=`expr 2 '*' $ac_mid + 1`
8504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8505 done
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8518 main ()
8520 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8521 test_array [0] = 0
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_hi=-1 ac_mid=-1
8550 while :; do
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8559 main ()
8561 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8562 test_array [0] = 0
8565 return 0;
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_lo=$ac_mid; break
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_hi=`expr '(' $ac_mid ')' - 1`
8596 if test $ac_mid -le $ac_hi; then
8597 ac_lo= ac_hi=
8598 break
8600 ac_mid=`expr 2 '*' $ac_mid`
8602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8603 done
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_lo= ac_hi=
8610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613 # Binary search between lo and hi bounds.
8614 while test "x$ac_lo" != "x$ac_hi"; do
8615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8624 main ()
8626 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8627 test_array [0] = 0
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_hi=$ac_mid
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_lo=`expr '(' $ac_mid ')' + 1`
8662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8663 done
8664 case $ac_lo in
8665 ?*) ac_cv_sizeof_double=$ac_lo;;
8666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; } ;;
8671 esac
8672 else
8673 if test "$cross_compiling" = yes; then
8674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8675 See \`config.log' for more details." >&5
8676 echo "$as_me: error: cannot run test program while cross compiling
8677 See \`config.log' for more details." >&2;}
8678 { (exit 1); exit 1; }; }
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 long longval () { return (long) (sizeof (double)); }
8688 unsigned long ulongval () { return (long) (sizeof (double)); }
8689 #include <stdio.h>
8690 #include <stdlib.h>
8692 main ()
8695 FILE *f = fopen ("conftest.val", "w");
8696 if (! f)
8697 exit (1);
8698 if (((long) (sizeof (double))) < 0)
8700 long i = longval ();
8701 if (i != ((long) (sizeof (double))))
8702 exit (1);
8703 fprintf (f, "%ld\n", i);
8705 else
8707 unsigned long i = ulongval ();
8708 if (i != ((long) (sizeof (double))))
8709 exit (1);
8710 fprintf (f, "%lu\n", i);
8712 exit (ferror (f) || fclose (f) != 0);
8715 return 0;
8717 _ACEOF
8718 rm -f conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_sizeof_double=`cat conftest.val`
8730 else
8731 echo "$as_me: program exited with status $ac_status" >&5
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ( exit $ac_status )
8736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8737 See \`config.log' for more details." >&5
8738 echo "$as_me: error: cannot compute sizeof (double), 77
8739 See \`config.log' for more details." >&2;}
8740 { (exit 1); exit 1; }; }
8742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8745 rm -f conftest.val
8746 else
8747 ac_cv_sizeof_double=0
8750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8751 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8752 cat >>confdefs.h <<_ACEOF
8753 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8754 _ACEOF
8757 echo "$as_me:$LINENO: checking for fpos_t" >&5
8758 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8759 if test "${ac_cv_type_fpos_t+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8770 main ()
8772 if ((fpos_t *) 0)
8773 return 0;
8774 if (sizeof (fpos_t))
8775 return 0;
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_c_werror_flag"
8790 || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_cv_type_fpos_t=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_cv_type_fpos_t=no
8809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8812 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8814 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8815 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8816 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 if test "$ac_cv_type_fpos_t" = yes; then
8820 # The cast to unsigned long works around a bug in the HP C Compiler
8821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8823 # This bug is HP SR number 8606223364.
8824 if test "$cross_compiling" = yes; then
8825 # Depending upon the size, compute the lo and hi bounds.
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8834 main ()
8836 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8837 test_array [0] = 0
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_lo=0 ac_mid=0
8866 while :; do
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8875 main ()
8877 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8878 test_array [0] = 0
8881 return 0;
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_hi=$ac_mid; break
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_lo=`expr $ac_mid + 1`
8912 if test $ac_lo -le $ac_mid; then
8913 ac_lo= ac_hi=
8914 break
8916 ac_mid=`expr 2 '*' $ac_mid + 1`
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8919 done
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8932 main ()
8934 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8935 test_array [0] = 0
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_hi=-1 ac_mid=-1
8964 while :; do
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8973 main ()
8975 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8976 test_array [0] = 0
8979 return 0;
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_lo=$ac_mid; break
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_hi=`expr '(' $ac_mid ')' - 1`
9010 if test $ac_mid -le $ac_hi; then
9011 ac_lo= ac_hi=
9012 break
9014 ac_mid=`expr 2 '*' $ac_mid`
9016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017 done
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_lo= ac_hi=
9024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 # Binary search between lo and hi bounds.
9028 while test "x$ac_lo" != "x$ac_hi"; do
9029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9038 main ()
9040 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9041 test_array [0] = 0
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9049 (eval $ac_compile) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_hi=$ac_mid
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_lo=`expr '(' $ac_mid ')' + 1`
9076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9077 done
9078 case $ac_lo in
9079 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; } ;;
9085 esac
9086 else
9087 if test "$cross_compiling" = yes; then
9088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9089 See \`config.log' for more details." >&5
9090 echo "$as_me: error: cannot run test program while cross compiling
9091 See \`config.log' for more details." >&2;}
9092 { (exit 1); exit 1; }; }
9093 else
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 long longval () { return (long) (sizeof (fpos_t)); }
9102 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9103 #include <stdio.h>
9104 #include <stdlib.h>
9106 main ()
9109 FILE *f = fopen ("conftest.val", "w");
9110 if (! f)
9111 exit (1);
9112 if (((long) (sizeof (fpos_t))) < 0)
9114 long i = longval ();
9115 if (i != ((long) (sizeof (fpos_t))))
9116 exit (1);
9117 fprintf (f, "%ld\n", i);
9119 else
9121 unsigned long i = ulongval ();
9122 if (i != ((long) (sizeof (fpos_t))))
9123 exit (1);
9124 fprintf (f, "%lu\n", i);
9126 exit (ferror (f) || fclose (f) != 0);
9129 return 0;
9131 _ACEOF
9132 rm -f conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_sizeof_fpos_t=`cat conftest.val`
9144 else
9145 echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ( exit $ac_status )
9150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9151 See \`config.log' for more details." >&5
9152 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9153 See \`config.log' for more details." >&2;}
9154 { (exit 1); exit 1; }; }
9156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9159 rm -f conftest.val
9160 else
9161 ac_cv_sizeof_fpos_t=0
9164 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9165 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9166 cat >>confdefs.h <<_ACEOF
9167 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9168 _ACEOF
9171 echo "$as_me:$LINENO: checking for size_t" >&5
9172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9173 if test "${ac_cv_type_size_t+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9184 main ()
9186 if ((size_t *) 0)
9187 return 0;
9188 if (sizeof (size_t))
9189 return 0;
9191 return 0;
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_size_t=yes
9217 else
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_cv_type_size_t=no
9223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9226 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9228 echo "$as_me:$LINENO: checking size of size_t" >&5
9229 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9230 if test "${ac_cv_sizeof_size_t+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 if test "$ac_cv_type_size_t" = yes; then
9234 # The cast to unsigned long works around a bug in the HP C Compiler
9235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9237 # This bug is HP SR number 8606223364.
9238 if test "$cross_compiling" = yes; then
9239 # Depending upon the size, compute the lo and hi bounds.
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9248 main ()
9250 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9251 test_array [0] = 0
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_lo=0 ac_mid=0
9280 while :; do
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 $ac_includes_default
9289 main ()
9291 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9292 test_array [0] = 0
9295 return 0;
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_hi=$ac_mid; break
9321 else
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9325 ac_lo=`expr $ac_mid + 1`
9326 if test $ac_lo -le $ac_mid; then
9327 ac_lo= ac_hi=
9328 break
9330 ac_mid=`expr 2 '*' $ac_mid + 1`
9332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333 done
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9346 main ()
9348 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9349 test_array [0] = 0
9352 return 0;
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_hi=-1 ac_mid=-1
9378 while :; do
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 $ac_includes_default
9387 main ()
9389 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9390 test_array [0] = 0
9393 return 0;
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_lo=$ac_mid; break
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 ac_hi=`expr '(' $ac_mid ')' - 1`
9424 if test $ac_mid -le $ac_hi; then
9425 ac_lo= ac_hi=
9426 break
9428 ac_mid=`expr 2 '*' $ac_mid`
9430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9431 done
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_lo= ac_hi=
9438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9441 # Binary search between lo and hi bounds.
9442 while test "x$ac_lo" != "x$ac_hi"; do
9443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9452 main ()
9454 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9455 test_array [0] = 0
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -z "$ac_c_werror_flag"
9471 || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 ac_hi=$ac_mid
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_lo=`expr '(' $ac_mid ')' + 1`
9490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9491 done
9492 case $ac_lo in
9493 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9495 See \`config.log' for more details." >&5
9496 echo "$as_me: error: cannot compute sizeof (size_t), 77
9497 See \`config.log' for more details." >&2;}
9498 { (exit 1); exit 1; }; } ;;
9499 esac
9500 else
9501 if test "$cross_compiling" = yes; then
9502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9503 See \`config.log' for more details." >&5
9504 echo "$as_me: error: cannot run test program while cross compiling
9505 See \`config.log' for more details." >&2;}
9506 { (exit 1); exit 1; }; }
9507 else
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 long longval () { return (long) (sizeof (size_t)); }
9516 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9517 #include <stdio.h>
9518 #include <stdlib.h>
9520 main ()
9523 FILE *f = fopen ("conftest.val", "w");
9524 if (! f)
9525 exit (1);
9526 if (((long) (sizeof (size_t))) < 0)
9528 long i = longval ();
9529 if (i != ((long) (sizeof (size_t))))
9530 exit (1);
9531 fprintf (f, "%ld\n", i);
9533 else
9535 unsigned long i = ulongval ();
9536 if (i != ((long) (sizeof (size_t))))
9537 exit (1);
9538 fprintf (f, "%lu\n", i);
9540 exit (ferror (f) || fclose (f) != 0);
9543 return 0;
9545 _ACEOF
9546 rm -f conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_sizeof_size_t=`cat conftest.val`
9558 else
9559 echo "$as_me: program exited with status $ac_status" >&5
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ( exit $ac_status )
9564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9565 See \`config.log' for more details." >&5
9566 echo "$as_me: error: cannot compute sizeof (size_t), 77
9567 See \`config.log' for more details." >&2;}
9568 { (exit 1); exit 1; }; }
9570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9573 rm -f conftest.val
9574 else
9575 ac_cv_sizeof_size_t=0
9578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9579 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9580 cat >>confdefs.h <<_ACEOF
9581 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9582 _ACEOF
9586 echo "$as_me:$LINENO: checking for long long support" >&5
9587 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9588 have_long_long=no
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9597 main ()
9599 long long x; x = (long long)0;
9601 return 0;
9603 _ACEOF
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_LONG_LONG 1
9630 _ACEOF
9632 have_long_long=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $have_long_long" >&5
9641 echo "${ECHO_T}$have_long_long" >&6
9642 if test "$have_long_long" = yes ; then
9643 echo "$as_me:$LINENO: checking for long long" >&5
9644 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9645 if test "${ac_cv_type_long_long+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9656 main ()
9658 if ((long long *) 0)
9659 return 0;
9660 if (sizeof (long long))
9661 return 0;
9663 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668 (eval $ac_compile) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_type_long_long=yes
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_type_long_long=no
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9698 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9700 echo "$as_me:$LINENO: checking size of long long" >&5
9701 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9702 if test "${ac_cv_sizeof_long_long+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 if test "$ac_cv_type_long_long" = yes; then
9706 # The cast to unsigned long works around a bug in the HP C Compiler
9707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9709 # This bug is HP SR number 8606223364.
9710 if test "$cross_compiling" = yes; then
9711 # Depending upon the size, compute the lo and hi bounds.
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9720 main ()
9722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9723 test_array [0] = 0
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_lo=0 ac_mid=0
9752 while :; do
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9761 main ()
9763 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9764 test_array [0] = 0
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_hi=$ac_mid; break
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_lo=`expr $ac_mid + 1`
9798 if test $ac_lo -le $ac_mid; then
9799 ac_lo= ac_hi=
9800 break
9802 ac_mid=`expr 2 '*' $ac_mid + 1`
9804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9805 done
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9818 main ()
9820 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9821 test_array [0] = 0
9824 return 0;
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag"
9837 || test ! -s conftest.err'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest.$ac_objext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_hi=-1 ac_mid=-1
9850 while :; do
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9859 main ()
9861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9862 test_array [0] = 0
9865 return 0;
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870 (eval $ac_compile) 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag"
9878 || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest.$ac_objext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_lo=$ac_mid; break
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_hi=`expr '(' $ac_mid ')' - 1`
9896 if test $ac_mid -le $ac_hi; then
9897 ac_lo= ac_hi=
9898 break
9900 ac_mid=`expr 2 '*' $ac_mid`
9902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9903 done
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_lo= ac_hi=
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913 # Binary search between lo and hi bounds.
9914 while test "x$ac_lo" != "x$ac_hi"; do
9915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9924 main ()
9926 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9927 test_array [0] = 0
9930 return 0;
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag"
9943 || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest.$ac_objext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_hi=$ac_mid
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_lo=`expr '(' $ac_mid ')' + 1`
9962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9963 done
9964 case $ac_lo in
9965 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9967 See \`config.log' for more details." >&5
9968 echo "$as_me: error: cannot compute sizeof (long long), 77
9969 See \`config.log' for more details." >&2;}
9970 { (exit 1); exit 1; }; } ;;
9971 esac
9972 else
9973 if test "$cross_compiling" = yes; then
9974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9975 See \`config.log' for more details." >&5
9976 echo "$as_me: error: cannot run test program while cross compiling
9977 See \`config.log' for more details." >&2;}
9978 { (exit 1); exit 1; }; }
9979 else
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 long longval () { return (long) (sizeof (long long)); }
9988 unsigned long ulongval () { return (long) (sizeof (long long)); }
9989 #include <stdio.h>
9990 #include <stdlib.h>
9992 main ()
9995 FILE *f = fopen ("conftest.val", "w");
9996 if (! f)
9997 exit (1);
9998 if (((long) (sizeof (long long))) < 0)
10000 long i = longval ();
10001 if (i != ((long) (sizeof (long long))))
10002 exit (1);
10003 fprintf (f, "%ld\n", i);
10005 else
10007 unsigned long i = ulongval ();
10008 if (i != ((long) (sizeof (long long))))
10009 exit (1);
10010 fprintf (f, "%lu\n", i);
10012 exit (ferror (f) || fclose (f) != 0);
10015 return 0;
10017 _ACEOF
10018 rm -f conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_sizeof_long_long=`cat conftest.val`
10030 else
10031 echo "$as_me: program exited with status $ac_status" >&5
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ( exit $ac_status )
10036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10037 See \`config.log' for more details." >&5
10038 echo "$as_me: error: cannot compute sizeof (long long), 77
10039 See \`config.log' for more details." >&2;}
10040 { (exit 1); exit 1; }; }
10042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10045 rm -f conftest.val
10046 else
10047 ac_cv_sizeof_long_long=0
10050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10051 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10052 cat >>confdefs.h <<_ACEOF
10053 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10054 _ACEOF
10059 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10060 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10061 have_uintptr_t=no
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10070 main ()
10072 uintptr_t x; x = (uintptr_t)0;
10074 return 0;
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_UINTPTR_T 1
10103 _ACEOF
10105 have_uintptr_t=yes
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10113 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10114 echo "${ECHO_T}$have_uintptr_t" >&6
10115 if test "$have_uintptr_t" = yes ; then
10116 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10117 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10118 if test "${ac_cv_type_uintptr_t+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10129 main ()
10131 if ((uintptr_t *) 0)
10132 return 0;
10133 if (sizeof (uintptr_t))
10134 return 0;
10136 return 0;
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_type_uintptr_t=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_type_uintptr_t=no
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10171 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10173 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10174 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10175 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 if test "$ac_cv_type_uintptr_t" = yes; then
10179 # The cast to unsigned long works around a bug in the HP C Compiler
10180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10182 # This bug is HP SR number 8606223364.
10183 if test "$cross_compiling" = yes; then
10184 # Depending upon the size, compute the lo and hi bounds.
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 $ac_includes_default
10193 main ()
10195 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10196 test_array [0] = 0
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_lo=0 ac_mid=0
10225 while :; do
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10234 main ()
10236 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10237 test_array [0] = 0
10240 return 0;
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_hi=$ac_mid; break
10266 else
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ac_lo=`expr $ac_mid + 1`
10271 if test $ac_lo -le $ac_mid; then
10272 ac_lo= ac_hi=
10273 break
10275 ac_mid=`expr 2 '*' $ac_mid + 1`
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 done
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10291 main ()
10293 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10294 test_array [0] = 0
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_hi=-1 ac_mid=-1
10323 while :; do
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10332 main ()
10334 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10335 test_array [0] = 0
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_lo=$ac_mid; break
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_hi=`expr '(' $ac_mid ')' - 1`
10369 if test $ac_mid -le $ac_hi; then
10370 ac_lo= ac_hi=
10371 break
10373 ac_mid=`expr 2 '*' $ac_mid`
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10376 done
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_lo= ac_hi=
10383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386 # Binary search between lo and hi bounds.
10387 while test "x$ac_lo" != "x$ac_hi"; do
10388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 $ac_includes_default
10397 main ()
10399 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10400 test_array [0] = 0
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_hi=$ac_mid
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_lo=`expr '(' $ac_mid ')' + 1`
10435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10436 done
10437 case $ac_lo in
10438 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10439 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10440 See \`config.log' for more details." >&5
10441 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10442 See \`config.log' for more details." >&2;}
10443 { (exit 1); exit 1; }; } ;;
10444 esac
10445 else
10446 if test "$cross_compiling" = yes; then
10447 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10448 See \`config.log' for more details." >&5
10449 echo "$as_me: error: cannot run test program while cross compiling
10450 See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 else
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 $ac_includes_default
10460 long longval () { return (long) (sizeof (uintptr_t)); }
10461 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10462 #include <stdio.h>
10463 #include <stdlib.h>
10465 main ()
10468 FILE *f = fopen ("conftest.val", "w");
10469 if (! f)
10470 exit (1);
10471 if (((long) (sizeof (uintptr_t))) < 0)
10473 long i = longval ();
10474 if (i != ((long) (sizeof (uintptr_t))))
10475 exit (1);
10476 fprintf (f, "%ld\n", i);
10478 else
10480 unsigned long i = ulongval ();
10481 if (i != ((long) (sizeof (uintptr_t))))
10482 exit (1);
10483 fprintf (f, "%lu\n", i);
10485 exit (ferror (f) || fclose (f) != 0);
10488 return 0;
10490 _ACEOF
10491 rm -f conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10503 else
10504 echo "$as_me: program exited with status $ac_status" >&5
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ( exit $ac_status )
10509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10510 See \`config.log' for more details." >&5
10511 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10512 See \`config.log' for more details." >&2;}
10513 { (exit 1); exit 1; }; }
10515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10518 rm -f conftest.val
10519 else
10520 ac_cv_sizeof_uintptr_t=0
10523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10524 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10525 cat >>confdefs.h <<_ACEOF
10526 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10527 _ACEOF
10532 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10533 echo "$as_me:$LINENO: checking size of off_t" >&5
10534 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10535 if test "${ac_cv_sizeof_off_t+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 if test "$cross_compiling" = yes; then
10539 ac_cv_sizeof_off_t=4
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 #include <stdio.h>
10548 #include <sys/types.h>
10549 main()
10551 FILE *f=fopen("conftestval", "w");
10552 if (!f) exit(1);
10553 fprintf(f, "%d\n", sizeof(off_t));
10554 exit(0);
10556 _ACEOF
10557 rm -f conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_sizeof_off_t=`cat conftestval`
10569 else
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ( exit $ac_status )
10575 ac_cv_sizeof_off_t=0
10577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10583 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10585 cat >>confdefs.h <<_ACEOF
10586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10587 _ACEOF
10590 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10591 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10592 if test "$have_long_long" = yes -a \
10593 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10594 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define HAVE_LARGEFILE_SUPPORT 1
10598 _ACEOF
10600 echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6
10602 else
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10607 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10608 echo "$as_me:$LINENO: checking size of time_t" >&5
10609 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10610 if test "${ac_cv_sizeof_time_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 if test "$cross_compiling" = yes; then
10614 ac_cv_sizeof_time_t=4
10615 else
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <stdio.h>
10623 #include <time.h>
10624 main()
10626 FILE *f=fopen("conftestval", "w");
10627 if (!f) exit(1);
10628 fprintf(f, "%d\n", sizeof(time_t));
10629 exit(0);
10631 _ACEOF
10632 rm -f conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_sizeof_time_t=`cat conftestval`
10644 else
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ( exit $ac_status )
10650 ac_cv_sizeof_time_t=0
10652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10658 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10660 cat >>confdefs.h <<_ACEOF
10661 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10662 _ACEOF
10666 # if have pthread_t then define SIZEOF_PTHREAD_T
10667 ac_save_cc="$CC"
10668 if test "$ac_cv_kpthread" = "yes"
10669 then CC="$CC -Kpthread"
10670 elif test "$ac_cv_kthread" = "yes"
10671 then CC="$CC -Kthread"
10672 elif test "$ac_cv_pthread" = "yes"
10673 then CC="$CC -pthread"
10675 echo "$as_me:$LINENO: checking for pthread_t" >&5
10676 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10677 have_pthread_t=no
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <pthread.h>
10686 main ()
10688 pthread_t x; x = *(pthread_t*)0;
10690 return 0;
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 have_pthread_t=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10723 echo "${ECHO_T}$have_pthread_t" >&6
10724 if test "$have_pthread_t" = yes ; then
10725 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10726 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10727 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10728 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_sizeof_pthread_t=4
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <stdio.h>
10741 #include <pthread.h>
10742 main()
10744 FILE *f=fopen("conftestval", "w");
10745 if (!f) exit(1);
10746 fprintf(f, "%d\n", sizeof(pthread_t));
10747 exit(0);
10749 _ACEOF
10750 rm -f conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_sizeof_pthread_t=`cat conftestval`
10762 else
10763 echo "$as_me: program exited with status $ac_status" >&5
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ( exit $ac_status )
10768 ac_cv_sizeof_pthread_t=0
10770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10776 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10778 cat >>confdefs.h <<_ACEOF
10779 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10780 _ACEOF
10783 CC="$ac_save_cc"
10785 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10786 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10787 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10788 if test "${enable_toolbox_glue+set}" = set; then
10789 enableval="$enable_toolbox_glue"
10793 if test -z "$enable_toolbox_glue"
10794 then
10795 case $ac_sys_system/$ac_sys_release in
10796 Darwin/*)
10797 enable_toolbox_glue="yes";;
10799 enable_toolbox_glue="no";;
10800 esac
10802 case "$enable_toolbox_glue" in
10803 yes)
10804 extra_machdep_objs="Python/mactoolboxglue.o"
10805 extra_undefs="-u _PyMac_Error"
10807 cat >>confdefs.h <<\_ACEOF
10808 #define USE_TOOLBOX_OBJECT_GLUE 1
10809 _ACEOF
10813 extra_machdep_objs=""
10814 extra_undefs=""
10816 esac
10817 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10818 echo "${ECHO_T}$enable_toolbox_glue" >&6
10821 case $ac_sys_system/$ac_sys_release in
10822 Darwin/[01567]\..*)
10823 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10825 Darwin/*)
10826 OTHER_LIBTOOL_OPT=""
10828 esac
10831 case $ac_sys_system/$ac_sys_release in
10832 Darwin/[01567]\..*)
10833 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`"
10834 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10835 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10836 Darwin/*)
10837 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10838 if test ${gcc_version} '<' 4.0
10839 then
10840 LIBTOOL_CRUFT="-lcc_dynamic"
10841 else
10842 LIBTOOL_CRUFT=""
10844 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10845 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10846 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10847 esac
10849 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10850 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10851 if test "$enable_framework"
10852 then
10853 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10854 # -F. is needed to allow linking to the framework while
10855 # in the build location.
10857 cat >>confdefs.h <<\_ACEOF
10858 #define WITH_NEXT_FRAMEWORK 1
10859 _ACEOF
10861 echo "$as_me:$LINENO: result: yes" >&5
10862 echo "${ECHO_T}yes" >&6
10863 else
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 echo "$as_me:$LINENO: checking for dyld" >&5
10869 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10870 case $ac_sys_system/$ac_sys_release in
10871 Darwin/*)
10873 cat >>confdefs.h <<\_ACEOF
10874 #define WITH_DYLD 1
10875 _ACEOF
10877 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10878 echo "${ECHO_T}always on for Darwin" >&6
10881 echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10884 esac
10886 # Set info about shared libraries.
10892 # SO is the extension of shared libraries `(including the dot!)
10893 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10894 echo "$as_me:$LINENO: checking SO" >&5
10895 echo $ECHO_N "checking SO... $ECHO_C" >&6
10896 if test -z "$SO"
10897 then
10898 case $ac_sys_system in
10899 hp*|HP*) SO=.sl;;
10900 CYGWIN*) SO=.dll;;
10901 *) SO=.so;;
10902 esac
10903 else
10904 # this might also be a termcap variable, see #610332
10905 echo
10906 echo '====================================================================='
10907 echo '+ +'
10908 echo '+ WARNING: You have set SO in your environment. +'
10909 echo '+ Do you really mean to change the extension for shared libraries? +'
10910 echo '+ Continuing in 10 seconds to let you to ponder. +'
10911 echo '+ +'
10912 echo '====================================================================='
10913 sleep 10
10915 echo "$as_me:$LINENO: result: $SO" >&5
10916 echo "${ECHO_T}$SO" >&6
10917 # LDSHARED is the ld *command* used to create shared library
10918 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10919 # (Shared libraries in this instance are shared modules to be loaded into
10920 # Python, as opposed to building Python itself as a shared library.)
10921 echo "$as_me:$LINENO: checking LDSHARED" >&5
10922 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10923 if test -z "$LDSHARED"
10924 then
10925 case $ac_sys_system/$ac_sys_release in
10926 AIX*)
10927 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10928 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10930 BeOS*)
10931 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10932 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10934 IRIX/5*) LDSHARED="ld -shared";;
10935 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10936 SunOS/5*)
10937 if test "$GCC" = "yes"
10938 then LDSHARED='$(CC) -shared'
10939 else LDSHARED='$(CC) -G';
10940 fi ;;
10941 hp*|HP*) LDSHARED="ld -b";;
10942 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10943 Darwin/1.3*)
10944 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10945 if test "$enable_framework" ; then
10946 # Link against the framework. All externals should be defined.
10947 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10949 else
10950 # No framework. Ignore undefined symbols, assuming they come from Python
10951 LDSHARED="$LDSHARED -undefined suppress"
10952 fi ;;
10953 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10954 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10955 if test "$enable_framework" ; then
10956 # Link against the framework. All externals should be defined.
10957 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10959 else
10960 # No framework, use the Python app as bundle-loader
10961 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10962 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10963 fi ;;
10964 Darwin/*)
10965 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10966 # This allows an extension to be used in any Python
10967 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10968 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10969 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10970 then
10971 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10972 BLDSHARED="$LDSHARED"
10973 else
10974 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10975 if test "$enable_framework" ; then
10976 # Link against the framework. All externals should be defined.
10977 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10978 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10979 else
10980 # No framework, use the Python app as bundle-loader
10981 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10982 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10986 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10987 BSD/OS*/4*) LDSHARED="gcc -shared";;
10988 OpenBSD*|FreeBSD*)
10989 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10990 then
10991 LDSHARED="$CC -shared ${LDFLAGS}"
10992 else
10993 LDSHARED="ld -Bshareable ${LDFLAGS}"
10994 fi;;
10995 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
10996 OpenUNIX*|UnixWare*)
10997 if test "$GCC" = "yes"
10998 then LDSHARED='$(CC) -shared'
10999 else LDSHARED='$(CC) -G'
11000 fi;;
11001 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11002 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11003 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11004 atheos*) LDSHARED="gcc -shared";;
11005 *) LDSHARED="ld";;
11006 esac
11008 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11009 echo "${ECHO_T}$LDSHARED" >&6
11010 BLDSHARED=${BLDSHARED-$LDSHARED}
11011 # CCSHARED are the C *flags* used to create objects to go into a shared
11012 # library (module) -- this is only needed for a few systems
11013 echo "$as_me:$LINENO: checking CCSHARED" >&5
11014 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11015 if test -z "$CCSHARED"
11016 then
11017 case $ac_sys_system/$ac_sys_release in
11018 SunOS*) if test "$GCC" = yes;
11019 then CCSHARED="-fPIC";
11020 else CCSHARED="-xcode=pic32";
11021 fi;;
11022 hp*|HP*) if test "$GCC" = yes;
11023 then CCSHARED="-fPIC";
11024 else CCSHARED="+z";
11025 fi;;
11026 Linux*|GNU*) CCSHARED="-fPIC";;
11027 BSD/OS*/4*) CCSHARED="-fpic";;
11028 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11029 OpenUNIX*|UnixWare*)
11030 if test "$GCC" = "yes"
11031 then CCSHARED="-fPIC"
11032 else CCSHARED="-KPIC"
11033 fi;;
11034 SCO_SV*)
11035 if test "$GCC" = "yes"
11036 then CCSHARED="-fPIC"
11037 else CCSHARED="-Kpic -belf"
11038 fi;;
11039 Monterey*) CCSHARED="-G";;
11040 IRIX*/6*) case $CC in
11041 *gcc*) CCSHARED="-shared";;
11042 *) CCSHARED="";;
11043 esac;;
11044 atheos*) CCSHARED="-fPIC";;
11045 esac
11047 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11048 echo "${ECHO_T}$CCSHARED" >&6
11049 # LINKFORSHARED are the flags passed to the $(CC) command that links
11050 # the python executable -- this is only needed for a few systems
11051 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11052 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11053 if test -z "$LINKFORSHARED"
11054 then
11055 case $ac_sys_system/$ac_sys_release in
11056 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11057 hp*|HP*)
11058 LINKFORSHARED="-Wl,-E -Wl,+s";;
11059 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11060 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11061 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11062 # -u libsys_s pulls in all symbols in libsys
11063 Darwin/*)
11064 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11065 # which is
11066 # not used by the core itself but which needs to be in the core so
11067 # that dynamically loaded extension modules have access to it.
11068 # -prebind is no longer used, because it actually seems to give a
11069 # slowdown in stead of a speedup, maybe due to the large number of
11070 # dynamic loads Python does.
11072 LINKFORSHARED="$extra_undefs"
11073 if test "$enable_framework"
11074 then
11075 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11077 LINKFORSHARED="$LINKFORSHARED";;
11078 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11079 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11080 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11081 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11082 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11083 then
11084 LINKFORSHARED="-Wl,--export-dynamic"
11085 fi;;
11086 SunOS/5*) case $CC in
11087 *gcc*)
11088 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11089 then
11090 LINKFORSHARED="-Xlinker --export-dynamic"
11091 fi;;
11092 esac;;
11093 CYGWIN*)
11094 if test $enable_shared = "no"
11095 then
11096 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11097 fi;;
11098 esac
11100 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11101 echo "${ECHO_T}$LINKFORSHARED" >&6
11104 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11105 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11106 if test ! "$LIBRARY" = "$LDLIBRARY"
11107 then
11108 case $ac_sys_system in
11109 CYGWIN*)
11110 # Cygwin needs CCSHARED when building extension DLLs
11111 # but not when building the interpreter DLL.
11112 CFLAGSFORSHARED='';;
11114 CFLAGSFORSHARED='$(CCSHARED)'
11115 esac
11117 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11118 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11120 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11121 # library (with --enable-shared).
11122 # For platforms on which shared libraries are not allowed to have unresolved
11123 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11124 # if it is not required, since it creates a dependency of the shared library
11125 # to LIBS. This, in turn, means that applications linking the shared libpython
11126 # don't need to link LIBS explicitly. The default should be only changed
11127 # on systems where this approach causes problems.
11129 echo "$as_me:$LINENO: checking SHLIBS" >&5
11130 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11131 case "$ac_sys_system" in
11133 SHLIBS='$(LIBS)';;
11134 esac
11135 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11136 echo "${ECHO_T}$SHLIBS" >&6
11139 # checks for libraries
11141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldl $LIBS"
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char dlopen ();
11163 main ()
11165 dlopen ();
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_dl_dlopen=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_lib_dl_dlopen=no
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11205 if test $ac_cv_lib_dl_dlopen = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_LIBDL 1
11208 _ACEOF
11210 LIBS="-ldl $LIBS"
11213 # Dynamic linking for SunOS/Solaris and SYSV
11215 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220 ac_check_lib_save_LIBS=$LIBS
11221 LIBS="-ldld $LIBS"
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11229 /* Override any gcc2 internal prototype to avoid an error. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char shl_load ();
11237 main ()
11239 shl_load ();
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_lib_dld_shl_load=yes
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_cv_lib_dld_shl_load=no
11273 rm -f conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275 LIBS=$ac_check_lib_save_LIBS
11277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11279 if test $ac_cv_lib_dld_shl_load = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define HAVE_LIBDLD 1
11282 _ACEOF
11284 LIBS="-ldld $LIBS"
11287 # Dynamic linking for HP-UX
11289 # only check for sem_ini if thread support is requested
11290 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11291 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11292 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11293 if test "${ac_cv_search_sem_init+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 ac_func_search_save_LIBS=$LIBS
11297 ac_cv_search_sem_init=no
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11311 char sem_init ();
11313 main ()
11315 sem_init ();
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_search_sem_init="none required"
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11348 rm -f conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 if test "$ac_cv_search_sem_init" = no; then
11351 for ac_lib in pthread rt posix4; do
11352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11360 /* Override any gcc2 internal prototype to avoid an error. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
11366 char sem_init ();
11368 main ()
11370 sem_init ();
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377 (eval $ac_link) 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest$ac_exeext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_cv_search_sem_init="-l$ac_lib"
11398 break
11399 else
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11404 rm -f conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 done
11408 LIBS=$ac_func_search_save_LIBS
11410 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11411 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11412 if test "$ac_cv_search_sem_init" != no; then
11413 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11416 # 'Real Time' functions on Solaris
11417 # posix4 on Solaris 2.6
11418 # pthread (first!) on Linux
11421 # check if we need libintl for locale functions
11422 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11423 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11424 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lintl $LIBS"
11429 cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h. */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11436 /* Override any gcc2 internal prototype to avoid an error. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 /* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442 char textdomain ();
11444 main ()
11446 textdomain ();
11448 return 0;
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_cv_lib_intl_textdomain=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_cv_lib_intl_textdomain=no
11480 rm -f conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11484 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11485 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11486 if test $ac_cv_lib_intl_textdomain = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define WITH_LIBINTL 1
11490 _ACEOF
11495 # checks for system dependent C++ extensions support
11496 case "$ac_sys_system" in
11497 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11498 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include "/usr/lpp/xlC/include/load.h"
11507 main ()
11509 loadAndInit("", 0, "")
11511 return 0;
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest$ac_exeext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define AIX_GENUINE_CPLUSPLUS 1
11539 _ACEOF
11541 echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6
11550 rm -f conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext;;
11552 *) ;;
11553 esac
11555 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11556 # BeOS' sockets are stashed in libnet.
11557 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11558 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11559 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 ac_check_lib_save_LIBS=$LIBS
11563 LIBS="-lnsl $LIBS"
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11571 /* Override any gcc2 internal prototype to avoid an error. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char t_open ();
11579 main ()
11581 t_open ();
11583 return 0;
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588 (eval $ac_link) 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_lib_nsl_t_open=yes
11609 else
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_lib_nsl_t_open=no
11615 rm -f conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11620 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11621 if test $ac_cv_lib_nsl_t_open = yes; then
11622 LIBS="-lnsl $LIBS"
11624 # SVR4
11625 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11626 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11627 if test "${ac_cv_lib_socket_socket+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 ac_check_lib_save_LIBS=$LIBS
11631 LIBS="-lsocket $LIBS $LIBS"
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char socket ();
11647 main ()
11649 socket ();
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest$ac_exeext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_lib_socket_socket=yes
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_lib_socket_socket=no
11683 rm -f conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11687 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11688 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11689 if test $ac_cv_lib_socket_socket = yes; then
11690 LIBS="-lsocket $LIBS"
11692 # SVR4 sockets
11694 case "$ac_sys_system" in
11695 BeOS*)
11696 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11697 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11698 if test "${ac_cv_lib_net_socket+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-lnet $LIBS $LIBS"
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h. */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 /* Override any gcc2 internal prototype to avoid an error. */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11716 char socket ();
11718 main ()
11720 socket ();
11722 return 0;
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_lib_net_socket=yes
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_lib_net_socket=no
11754 rm -f conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11759 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11760 if test $ac_cv_lib_net_socket = yes; then
11761 LIBS="-lnet $LIBS"
11763 # BeOS
11765 esac
11767 echo "$as_me:$LINENO: checking for --with-libs" >&5
11768 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11770 # Check whether --with-libs or --without-libs was given.
11771 if test "${with_libs+set}" = set; then
11772 withval="$with_libs"
11774 echo "$as_me:$LINENO: result: $withval" >&5
11775 echo "${ECHO_T}$withval" >&6
11776 LIBS="$withval $LIBS"
11778 else
11779 echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6
11783 # Determine if signalmodule should be used.
11786 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11787 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11789 # Check whether --with-signal-module or --without-signal-module was given.
11790 if test "${with_signal_module+set}" = set; then
11791 withval="$with_signal_module"
11795 if test -z "$with_signal_module"
11796 then with_signal_module="yes"
11798 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11799 echo "${ECHO_T}$with_signal_module" >&6
11801 if test "${with_signal_module}" = "yes"; then
11802 USE_SIGNAL_MODULE=""
11803 SIGNAL_OBJS=""
11804 else
11805 USE_SIGNAL_MODULE="#"
11806 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11809 # This is used to generate Setup.config
11811 USE_THREAD_MODULE=""
11813 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11814 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11817 # Check whether --with-dec-threads or --without-dec-threads was given.
11818 if test "${with_dec_threads+set}" = set; then
11819 withval="$with_dec_threads"
11821 echo "$as_me:$LINENO: result: $withval" >&5
11822 echo "${ECHO_T}$withval" >&6
11823 LDLAST=-threads
11824 if test "${with_thread+set}" != set; then
11825 with_thread="$withval";
11827 else
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6
11832 # Templates for things AC_DEFINEd more than once.
11833 # For a single AC_DEFINE, no template is needed.
11841 echo "$as_me:$LINENO: checking for --with-threads" >&5
11842 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11844 # Check whether --with-threads or --without-threads was given.
11845 if test "${with_threads+set}" = set; then
11846 withval="$with_threads"
11850 # --with-thread is deprecated, but check for it anyway
11852 # Check whether --with-thread or --without-thread was given.
11853 if test "${with_thread+set}" = set; then
11854 withval="$with_thread"
11855 with_threads=$with_thread
11858 if test -z "$with_threads"
11859 then with_threads="yes"
11861 echo "$as_me:$LINENO: result: $with_threads" >&5
11862 echo "${ECHO_T}$with_threads" >&6
11865 if test "$with_threads" = "no"
11866 then
11867 USE_THREAD_MODULE="#"
11868 elif test "$ac_cv_pthread_is_default" = yes
11869 then
11870 cat >>confdefs.h <<\_ACEOF
11871 #define WITH_THREAD 1
11872 _ACEOF
11874 # Defining _REENTRANT on system with POSIX threads should not hurt.
11875 cat >>confdefs.h <<\_ACEOF
11876 #define _REENTRANT 1
11877 _ACEOF
11879 posix_threads=yes
11880 THREADOBJ="Python/thread.o"
11881 elif test "$ac_cv_kpthread" = "yes"
11882 then
11883 CC="$CC -Kpthread"
11884 if test "$ac_cv_cxx_thread" = "yes"; then
11885 CXX="$CXX -Kpthread"
11887 cat >>confdefs.h <<\_ACEOF
11888 #define WITH_THREAD 1
11889 _ACEOF
11891 posix_threads=yes
11892 THREADOBJ="Python/thread.o"
11893 elif test "$ac_cv_kthread" = "yes"
11894 then
11895 CC="$CC -Kthread"
11896 if test "$ac_cv_cxx_thread" = "yes"; then
11897 CXX="$CXX -Kthread"
11899 cat >>confdefs.h <<\_ACEOF
11900 #define WITH_THREAD 1
11901 _ACEOF
11903 posix_threads=yes
11904 THREADOBJ="Python/thread.o"
11905 elif test "$ac_cv_pthread" = "yes"
11906 then
11907 CC="$CC -pthread"
11908 if test "$ac_cv_cxx_thread" = "yes"; then
11909 CXX="$CXX -pthread"
11911 cat >>confdefs.h <<\_ACEOF
11912 #define WITH_THREAD 1
11913 _ACEOF
11915 posix_threads=yes
11916 THREADOBJ="Python/thread.o"
11917 else
11918 if test ! -z "$with_threads" -a -d "$with_threads"
11919 then LDFLAGS="$LDFLAGS -L$with_threads"
11921 if test ! -z "$withval" -a -d "$withval"
11922 then LDFLAGS="$LDFLAGS -L$withval"
11925 # According to the POSIX spec, a pthreads implementation must
11926 # define _POSIX_THREADS in unistd.h. Some apparently don't
11927 # (e.g. gnu pth with pthread emulation)
11928 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11929 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 #include <unistd.h>
11938 #ifdef _POSIX_THREADS
11940 #endif
11942 _ACEOF
11943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11944 $EGREP "yes" >/dev/null 2>&1; then
11945 unistd_defines_pthreads=yes
11946 else
11947 unistd_defines_pthreads=no
11949 rm -f conftest*
11951 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11952 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11954 cat >>confdefs.h <<\_ACEOF
11955 #define _REENTRANT 1
11956 _ACEOF
11958 if test "${ac_cv_header_cthreads_h+set}" = set; then
11959 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11960 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11961 if test "${ac_cv_header_cthreads_h+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11966 else
11967 # Is the header compilable?
11968 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11969 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 $ac_includes_default
11977 #include <cthreads.h>
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_header_compiler=no
12008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12010 echo "${ECHO_T}$ac_header_compiler" >&6
12012 # Is the header present?
12013 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12014 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 #include <cthreads.h>
12022 _ACEOF
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 else
12035 ac_cpp_err=
12037 else
12038 ac_cpp_err=yes
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12042 else
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_header_preproc=no
12048 rm -f conftest.err conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12050 echo "${ECHO_T}$ac_header_preproc" >&6
12052 # So? What about this header?
12053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12054 yes:no: )
12055 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12056 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12058 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12059 ac_header_preproc=yes
12061 no:yes:* )
12062 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12063 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12065 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12067 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12069 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12071 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12073 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12075 cat <<\_ASBOX
12076 ## ------------------------------------------------ ##
12077 ## Report this to http://www.python.org/python-bugs ##
12078 ## ------------------------------------------------ ##
12079 _ASBOX
12081 sed "s/^/$as_me: WARNING: /" >&2
12083 esac
12084 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12085 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12086 if test "${ac_cv_header_cthreads_h+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 ac_cv_header_cthreads_h=$ac_header_preproc
12091 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12092 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12095 if test $ac_cv_header_cthreads_h = yes; then
12096 cat >>confdefs.h <<\_ACEOF
12097 #define WITH_THREAD 1
12098 _ACEOF
12100 cat >>confdefs.h <<\_ACEOF
12101 #define C_THREADS 1
12102 _ACEOF
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HURD_C_THREADS 1
12107 _ACEOF
12109 LIBS="$LIBS -lthreads"
12110 THREADOBJ="Python/thread.o"
12111 else
12113 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12114 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12115 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12116 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12120 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12121 else
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12124 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <mach/cthreads.h>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_header_compiler=no
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165 echo "${ECHO_T}$ac_header_compiler" >&6
12167 # Is the header present?
12168 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12169 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <mach/cthreads.h>
12177 _ACEOF
12178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12189 else
12190 ac_cpp_err=
12192 else
12193 ac_cpp_err=yes
12195 if test -z "$ac_cpp_err"; then
12196 ac_header_preproc=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_header_preproc=no
12203 rm -f conftest.err conftest.$ac_ext
12204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12209 yes:no: )
12210 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12216 no:yes:* )
12217 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12230 cat <<\_ASBOX
12231 ## ------------------------------------------------ ##
12232 ## Report this to http://www.python.org/python-bugs ##
12233 ## ------------------------------------------------ ##
12234 _ASBOX
12236 sed "s/^/$as_me: WARNING: /" >&2
12238 esac
12239 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12240 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12241 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12246 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12247 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12250 if test $ac_cv_header_mach_cthreads_h = yes; then
12251 cat >>confdefs.h <<\_ACEOF
12252 #define WITH_THREAD 1
12253 _ACEOF
12255 cat >>confdefs.h <<\_ACEOF
12256 #define C_THREADS 1
12257 _ACEOF
12260 cat >>confdefs.h <<\_ACEOF
12261 #define MACH_C_THREADS 1
12262 _ACEOF
12264 THREADOBJ="Python/thread.o"
12265 else
12267 echo "$as_me:$LINENO: checking for --with-pth" >&5
12268 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12270 # Check whether --with-pth or --without-pth was given.
12271 if test "${with_pth+set}" = set; then
12272 withval="$with_pth"
12273 echo "$as_me:$LINENO: result: $withval" >&5
12274 echo "${ECHO_T}$withval" >&6
12275 cat >>confdefs.h <<\_ACEOF
12276 #define WITH_THREAD 1
12277 _ACEOF
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_PTH 1
12282 _ACEOF
12284 LIBS="-lpth $LIBS"
12285 THREADOBJ="Python/thread.o"
12286 else
12287 echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6
12290 # Just looking for pthread_create in libpthread is not enough:
12291 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12292 # So we really have to include pthread.h, and then link.
12293 _libs=$LIBS
12294 LIBS="$LIBS -lpthread"
12295 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12296 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <pthread.h>
12305 void * start_routine (void *arg) { exit (0); }
12307 main ()
12310 pthread_create (NULL, NULL, start_routine, NULL)
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12338 echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12340 cat >>confdefs.h <<\_ACEOF
12341 #define WITH_THREAD 1
12342 _ACEOF
12344 posix_threads=yes
12345 THREADOBJ="Python/thread.o"
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12351 LIBS=$_libs
12352 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12353 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12354 if test "${ac_cv_func_pthread_detach+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12365 #define pthread_detach innocuous_pthread_detach
12367 /* System header to define __stub macros and hopefully few prototypes,
12368 which can conflict with char pthread_detach (); below.
12369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12370 <limits.h> exists even on freestanding compilers. */
12372 #ifdef __STDC__
12373 # include <limits.h>
12374 #else
12375 # include <assert.h>
12376 #endif
12378 #undef pthread_detach
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 #ifdef __cplusplus
12382 extern "C"
12384 #endif
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char pthread_detach ();
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12392 choke me
12393 #else
12394 char (*f) () = pthread_detach;
12395 #endif
12396 #ifdef __cplusplus
12398 #endif
12401 main ()
12403 return f != pthread_detach;
12405 return 0;
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_func_pthread_detach=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_func_pthread_detach=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12440 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12441 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12442 if test $ac_cv_func_pthread_detach = yes; then
12443 cat >>confdefs.h <<\_ACEOF
12444 #define WITH_THREAD 1
12445 _ACEOF
12447 posix_threads=yes
12448 THREADOBJ="Python/thread.o"
12449 else
12451 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12452 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12453 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12454 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12458 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12459 else
12460 # Is the header compilable?
12461 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12462 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12470 #include <atheos/threads.h>
12471 _ACEOF
12472 rm -f conftest.$ac_objext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_header_compiler=yes
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_header_compiler=no
12501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 echo "${ECHO_T}$ac_header_compiler" >&6
12505 # Is the header present?
12506 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12507 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <atheos/threads.h>
12515 _ACEOF
12516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } >/dev/null; then
12524 if test -s conftest.err; then
12525 ac_cpp_err=$ac_c_preproc_warn_flag
12526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12527 else
12528 ac_cpp_err=
12530 else
12531 ac_cpp_err=yes
12533 if test -z "$ac_cpp_err"; then
12534 ac_header_preproc=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_header_preproc=no
12541 rm -f conftest.err conftest.$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 echo "${ECHO_T}$ac_header_preproc" >&6
12545 # So? What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12547 yes:no: )
12548 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12549 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12551 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12552 ac_header_preproc=yes
12554 no:yes:* )
12555 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12556 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12558 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12560 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12562 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12564 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12566 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12568 cat <<\_ASBOX
12569 ## ------------------------------------------------ ##
12570 ## Report this to http://www.python.org/python-bugs ##
12571 ## ------------------------------------------------ ##
12572 _ASBOX
12574 sed "s/^/$as_me: WARNING: /" >&2
12576 esac
12577 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12578 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12579 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582 ac_cv_header_atheos_threads_h=$ac_header_preproc
12584 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12588 if test $ac_cv_header_atheos_threads_h = yes; then
12589 cat >>confdefs.h <<\_ACEOF
12590 #define WITH_THREAD 1
12591 _ACEOF
12594 cat >>confdefs.h <<\_ACEOF
12595 #define ATHEOS_THREADS 1
12596 _ACEOF
12598 THREADOBJ="Python/thread.o"
12599 else
12601 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12602 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12603 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12604 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12608 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12609 else
12610 # Is the header compilable?
12611 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12612 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 #include <kernel/OS.h>
12621 _ACEOF
12622 rm -f conftest.$ac_objext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_header_compiler=no
12651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653 echo "${ECHO_T}$ac_header_compiler" >&6
12655 # Is the header present?
12656 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12657 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 #include <kernel/OS.h>
12665 _ACEOF
12666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } >/dev/null; then
12674 if test -s conftest.err; then
12675 ac_cpp_err=$ac_c_preproc_warn_flag
12676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12677 else
12678 ac_cpp_err=
12680 else
12681 ac_cpp_err=yes
12683 if test -z "$ac_cpp_err"; then
12684 ac_header_preproc=yes
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12689 ac_header_preproc=no
12691 rm -f conftest.err conftest.$ac_ext
12692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693 echo "${ECHO_T}$ac_header_preproc" >&6
12695 # So? What about this header?
12696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12697 yes:no: )
12698 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12699 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12701 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12702 ac_header_preproc=yes
12704 no:yes:* )
12705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12706 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12708 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12710 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12712 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12714 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12716 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12718 cat <<\_ASBOX
12719 ## ------------------------------------------------ ##
12720 ## Report this to http://www.python.org/python-bugs ##
12721 ## ------------------------------------------------ ##
12722 _ASBOX
12724 sed "s/^/$as_me: WARNING: /" >&2
12726 esac
12727 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12728 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 ac_cv_header_kernel_OS_h=$ac_header_preproc
12734 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12735 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12738 if test $ac_cv_header_kernel_OS_h = yes; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define WITH_THREAD 1
12741 _ACEOF
12744 cat >>confdefs.h <<\_ACEOF
12745 #define BEOS_THREADS 1
12746 _ACEOF
12748 THREADOBJ="Python/thread.o"
12749 else
12751 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12752 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12753 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lpthreads $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char pthread_create ();
12773 main ()
12775 pthread_create ();
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_lib_pthreads_pthread_create=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_pthreads_pthread_create=no
12809 rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12814 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12815 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12816 cat >>confdefs.h <<\_ACEOF
12817 #define WITH_THREAD 1
12818 _ACEOF
12820 posix_threads=yes
12821 LIBS="$LIBS -lpthreads"
12822 THREADOBJ="Python/thread.o"
12823 else
12825 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12826 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12827 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 ac_check_lib_save_LIBS=$LIBS
12831 LIBS="-lc_r $LIBS"
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 /* Override any gcc2 internal prototype to avoid an error. */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char pthread_create ();
12847 main ()
12849 pthread_create ();
12851 return 0;
12853 _ACEOF
12854 rm -f conftest.$ac_objext conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_c_r_pthread_create=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_cv_lib_c_r_pthread_create=no
12883 rm -f conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12888 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12889 if test $ac_cv_lib_c_r_pthread_create = yes; then
12890 cat >>confdefs.h <<\_ACEOF
12891 #define WITH_THREAD 1
12892 _ACEOF
12894 posix_threads=yes
12895 LIBS="$LIBS -lc_r"
12896 THREADOBJ="Python/thread.o"
12897 else
12899 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12900 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12901 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lpthread $LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char __pthread_create_system ();
12921 main ()
12923 __pthread_create_system ();
12925 return 0;
12927 _ACEOF
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_lib_pthread___pthread_create_system=yes
12951 else
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_cv_lib_pthread___pthread_create_system=no
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12962 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12963 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define WITH_THREAD 1
12966 _ACEOF
12968 posix_threads=yes
12969 LIBS="$LIBS -lpthread"
12970 THREADOBJ="Python/thread.o"
12971 else
12973 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12974 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12975 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978 ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-lcma $LIBS"
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h. */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 /* Override any gcc2 internal prototype to avoid an error. */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 /* We use char because int might match the return type of a gcc2
12992 builtin and then its argument prototype would still apply. */
12993 char pthread_create ();
12995 main ()
12997 pthread_create ();
12999 return 0;
13001 _ACEOF
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_lib_cma_pthread_create=yes
13025 else
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_cv_lib_cma_pthread_create=no
13031 rm -f conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13036 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13037 if test $ac_cv_lib_cma_pthread_create = yes; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define WITH_THREAD 1
13040 _ACEOF
13042 posix_threads=yes
13043 LIBS="$LIBS -lcma"
13044 THREADOBJ="Python/thread.o"
13045 else
13047 USE_THREAD_MODULE="#"
13066 rm -f conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13076 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13077 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13078 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lmpc $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 /* Override any gcc2 internal prototype to avoid an error. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13096 char usconfig ();
13098 main ()
13100 usconfig ();
13102 return 0;
13104 _ACEOF
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13107 (eval $ac_link) 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_mpc_usconfig=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_cv_lib_mpc_usconfig=no
13134 rm -f conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13139 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13140 if test $ac_cv_lib_mpc_usconfig = yes; then
13141 cat >>confdefs.h <<\_ACEOF
13142 #define WITH_THREAD 1
13143 _ACEOF
13145 LIBS="$LIBS -lmpc"
13146 THREADOBJ="Python/thread.o"
13147 USE_THREAD_MODULE=""
13151 if test "$posix_threads" != "yes"; then
13152 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13153 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13154 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-lthread $LIBS"
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 /* Override any gcc2 internal prototype to avoid an error. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13172 char thr_create ();
13174 main ()
13176 thr_create ();
13178 return 0;
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13183 (eval $ac_link) 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try='test -z "$ac_c_werror_flag"
13191 || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_lib_thread_thr_create=yes
13204 else
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_cv_lib_thread_thr_create=no
13210 rm -f conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13215 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13216 if test $ac_cv_lib_thread_thr_create = yes; then
13217 cat >>confdefs.h <<\_ACEOF
13218 #define WITH_THREAD 1
13219 _ACEOF
13221 LIBS="$LIBS -lthread"
13222 THREADOBJ="Python/thread.o"
13223 USE_THREAD_MODULE=""
13228 if test "$USE_THREAD_MODULE" != "#"
13229 then
13230 # If the above checks didn't disable threads, (at least) OSF1
13231 # needs this '-threads' argument during linking.
13232 case $ac_sys_system in
13233 OSF1) LDLAST=-threads;;
13234 esac
13238 if test "$posix_threads" = "yes"; then
13239 if test "$unistd_defines_pthreads" = "no"; then
13241 cat >>confdefs.h <<\_ACEOF
13242 #define _POSIX_THREADS 1
13243 _ACEOF
13247 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13248 case $ac_sys_system/$ac_sys_release in
13249 SunOS/5.6)
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_PTHREAD_DESTRUCTOR 1
13252 _ACEOF
13255 SunOS/5.8)
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13258 _ACEOF
13261 esac
13263 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13264 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13265 if test "${ac_cv_pthread_system_supported+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 if test "$cross_compiling" = yes; then
13269 ac_cv_pthread_system_supported=no
13270 else
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <pthread.h>
13278 void *foo(void *parm) {
13279 return NULL;
13281 main() {
13282 pthread_attr_t attr;
13283 pthread_t id;
13284 if (pthread_attr_init(&attr)) exit(-1);
13285 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13286 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13287 exit(0);
13289 _ACEOF
13290 rm -f conftest$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_pthread_system_supported=yes
13302 else
13303 echo "$as_me: program exited with status $ac_status" >&5
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ( exit $ac_status )
13308 ac_cv_pthread_system_supported=no
13310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13316 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13317 if test "$ac_cv_pthread_system_supported" = "yes"; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13321 _ACEOF
13325 for ac_func in pthread_sigmask
13327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13328 echo "$as_me:$LINENO: checking for $ac_func" >&5
13329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13330 if eval "test \"\${$as_ac_var+set}\" = set"; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13341 #define $ac_func innocuous_$ac_func
13343 /* System header to define __stub macros and hopefully few prototypes,
13344 which can conflict with char $ac_func (); below.
13345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13346 <limits.h> exists even on freestanding compilers. */
13348 #ifdef __STDC__
13349 # include <limits.h>
13350 #else
13351 # include <assert.h>
13352 #endif
13354 #undef $ac_func
13356 /* Override any gcc2 internal prototype to avoid an error. */
13357 #ifdef __cplusplus
13358 extern "C"
13360 #endif
13361 /* We use char because int might match the return type of a gcc2
13362 builtin and then its argument prototype would still apply. */
13363 char $ac_func ();
13364 /* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368 choke me
13369 #else
13370 char (*f) () = $ac_func;
13371 #endif
13372 #ifdef __cplusplus
13374 #endif
13377 main ()
13379 return f != $ac_func;
13381 return 0;
13383 _ACEOF
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 eval "$as_ac_var=yes"
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 eval "$as_ac_var=no"
13413 rm -f conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13418 if test `eval echo '${'$as_ac_var'}'` = yes; then
13419 cat >>confdefs.h <<_ACEOF
13420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13421 _ACEOF
13422 case $ac_sys_system in
13423 CYGWIN*)
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13427 _ACEOF
13430 esac
13432 done
13437 # Check for enable-ipv6
13440 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13441 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13442 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13443 if test "${enable_ipv6+set}" = set; then
13444 enableval="$enable_ipv6"
13445 case "$enableval" in
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13449 ipv6=no
13451 *) echo "$as_me:$LINENO: result: yes" >&5
13452 echo "${ECHO_T}yes" >&6
13453 cat >>confdefs.h <<\_ACEOF
13454 #define ENABLE_IPV6 1
13455 _ACEOF
13457 ipv6=yes
13459 esac
13460 else
13462 if test "$cross_compiling" = yes; then
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13465 ipv6=no
13467 else
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 /* AF_INET6 available check */
13475 #include <sys/types.h>
13476 #include <sys/socket.h>
13477 main()
13479 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13480 exit(1);
13481 else
13482 exit(0);
13485 _ACEOF
13486 rm -f conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13499 ipv6=yes
13500 else
13501 echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ( exit $ac_status )
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13508 ipv6=no
13510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13513 if test "$ipv6" = "yes"; then
13514 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13515 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h. */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 #include <sys/types.h>
13523 #include <netinet/in.h>
13525 main ()
13527 struct sockaddr_in6 x;
13528 x.sin6_scope_id;
13530 return 0;
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13557 ipv6=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6
13564 ipv6=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 if test "$ipv6" = "yes"; then
13570 cat >>confdefs.h <<\_ACEOF
13571 #define ENABLE_IPV6 1
13572 _ACEOF
13578 ipv6type=unknown
13579 ipv6lib=none
13580 ipv6trylibc=no
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13584 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13585 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13587 case $i in
13588 inria)
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 #include <netinet/in.h>
13597 #ifdef IPV6_INRIA_VERSION
13599 #endif
13600 _ACEOF
13601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13602 $EGREP "yes" >/dev/null 2>&1; then
13603 ipv6type=$i
13605 rm -f conftest*
13608 kame)
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 #include <netinet/in.h>
13617 #ifdef __KAME__
13619 #endif
13620 _ACEOF
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "yes" >/dev/null 2>&1; then
13623 ipv6type=$i;
13624 ipv6lib=inet6
13625 ipv6libdir=/usr/local/v6/lib
13626 ipv6trylibc=yes
13628 rm -f conftest*
13631 linux-glibc)
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13639 #include <features.h>
13640 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13642 #endif
13643 _ACEOF
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "yes" >/dev/null 2>&1; then
13646 ipv6type=$i;
13647 ipv6trylibc=yes
13649 rm -f conftest*
13652 linux-inet6)
13653 if test -d /usr/inet6; then
13654 ipv6type=$i
13655 ipv6lib=inet6
13656 ipv6libdir=/usr/inet6/lib
13657 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13660 solaris)
13661 if test -f /etc/netconfig; then
13662 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13663 ipv6type=$i
13664 ipv6trylibc=yes
13668 toshiba)
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 #include <sys/param.h>
13677 #ifdef _TOSHIBA_INET6
13679 #endif
13680 _ACEOF
13681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 $EGREP "yes" >/dev/null 2>&1; then
13683 ipv6type=$i;
13684 ipv6lib=inet6;
13685 ipv6libdir=/usr/local/v6/lib
13687 rm -f conftest*
13690 v6d)
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 #include </usr/local/v6/include/sys/v6config.h>
13699 #ifdef __V6D__
13701 #endif
13702 _ACEOF
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "yes" >/dev/null 2>&1; then
13705 ipv6type=$i;
13706 ipv6lib=v6;
13707 ipv6libdir=/usr/local/v6/lib;
13708 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13710 rm -f conftest*
13713 zeta)
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13721 #include <sys/param.h>
13722 #ifdef _ZETA_MINAMI_INET6
13724 #endif
13725 _ACEOF
13726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13727 $EGREP "yes" >/dev/null 2>&1; then
13728 ipv6type=$i;
13729 ipv6lib=inet6;
13730 ipv6libdir=/usr/local/v6/lib
13732 rm -f conftest*
13735 esac
13736 if test "$ipv6type" != "unknown"; then
13737 break
13739 done
13740 echo "$as_me:$LINENO: result: $ipv6type" >&5
13741 echo "${ECHO_T}$ipv6type" >&6
13744 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13745 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13746 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13747 echo "using lib$ipv6lib"
13748 else
13749 if test $ipv6trylibc = "yes"; then
13750 echo "using libc"
13751 else
13752 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13753 echo "You need to fetch lib$ipv6lib.a from appropriate"
13754 echo 'ipv6 kit and compile beforehand.'
13755 exit 1
13760 # Check for --with-doc-strings
13761 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13762 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13764 # Check whether --with-doc-strings or --without-doc-strings was given.
13765 if test "${with_doc_strings+set}" = set; then
13766 withval="$with_doc_strings"
13770 if test -z "$with_doc_strings"
13771 then with_doc_strings="yes"
13773 if test "$with_doc_strings" != "no"
13774 then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define WITH_DOC_STRINGS 1
13778 _ACEOF
13781 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13782 echo "${ECHO_T}$with_doc_strings" >&6
13784 # Check for Python-specific malloc support
13785 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13786 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13788 # Check whether --with-tsc or --without-tsc was given.
13789 if test "${with_tsc+set}" = set; then
13790 withval="$with_tsc"
13792 if test "$withval" != no
13793 then
13795 cat >>confdefs.h <<\_ACEOF
13796 #define WITH_TSC 1
13797 _ACEOF
13799 echo "$as_me:$LINENO: result: yes" >&5
13800 echo "${ECHO_T}yes" >&6
13801 else echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6
13804 else
13805 echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6
13809 # Check for Python-specific malloc support
13810 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13811 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13813 # Check whether --with-pymalloc or --without-pymalloc was given.
13814 if test "${with_pymalloc+set}" = set; then
13815 withval="$with_pymalloc"
13819 if test -z "$with_pymalloc"
13820 then with_pymalloc="yes"
13822 if test "$with_pymalloc" != "no"
13823 then
13825 cat >>confdefs.h <<\_ACEOF
13826 #define WITH_PYMALLOC 1
13827 _ACEOF
13830 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13831 echo "${ECHO_T}$with_pymalloc" >&6
13833 # Check for --with-wctype-functions
13834 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13835 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13837 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13838 if test "${with_wctype_functions+set}" = set; then
13839 withval="$with_wctype_functions"
13841 if test "$withval" != no
13842 then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define WANT_WCTYPE_FUNCTIONS 1
13846 _ACEOF
13848 echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6
13850 else echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6
13853 else
13854 echo "$as_me:$LINENO: result: no" >&5
13855 echo "${ECHO_T}no" >&6
13858 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13860 DLINCLDIR=.
13862 # the dlopen() function means we might want to use dynload_shlib.o. some
13863 # platforms, such as AIX, have dlopen(), but don't want to use it.
13865 for ac_func in dlopen
13867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13868 echo "$as_me:$LINENO: checking for $ac_func" >&5
13869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_var+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13881 #define $ac_func innocuous_$ac_func
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func (); below.
13885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 <limits.h> exists even on freestanding compilers. */
13888 #ifdef __STDC__
13889 # include <limits.h>
13890 #else
13891 # include <assert.h>
13892 #endif
13894 #undef $ac_func
13896 /* Override any gcc2 internal prototype to avoid an error. */
13897 #ifdef __cplusplus
13898 extern "C"
13900 #endif
13901 /* We use char because int might match the return type of a gcc2
13902 builtin and then its argument prototype would still apply. */
13903 char $ac_func ();
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13908 choke me
13909 #else
13910 char (*f) () = $ac_func;
13911 #endif
13912 #ifdef __cplusplus
13914 #endif
13917 main ()
13919 return f != $ac_func;
13921 return 0;
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 eval "$as_ac_var=yes"
13947 else
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 eval "$as_ac_var=no"
13953 rm -f conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13958 if test `eval echo '${'$as_ac_var'}'` = yes; then
13959 cat >>confdefs.h <<_ACEOF
13960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13961 _ACEOF
13964 done
13967 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13968 # loading of modules.
13970 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13971 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13972 if test -z "$DYNLOADFILE"
13973 then
13974 case $ac_sys_system/$ac_sys_release in
13975 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13976 if test "$ac_cv_func_dlopen" = yes
13977 then DYNLOADFILE="dynload_shlib.o"
13978 else DYNLOADFILE="dynload_aix.o"
13981 BeOS*) DYNLOADFILE="dynload_beos.o";;
13982 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13983 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
13984 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
13985 atheos*) DYNLOADFILE="dynload_atheos.o";;
13987 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13988 # out any dynamic loading
13989 if test "$ac_cv_func_dlopen" = yes
13990 then DYNLOADFILE="dynload_shlib.o"
13991 else DYNLOADFILE="dynload_stub.o"
13994 esac
13996 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13997 echo "${ECHO_T}$DYNLOADFILE" >&6
13998 if test "$DYNLOADFILE" != "dynload_stub.o"
13999 then
14001 cat >>confdefs.h <<\_ACEOF
14002 #define HAVE_DYNAMIC_LOADING 1
14003 _ACEOF
14007 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14010 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14011 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14012 if test -z "$MACHDEP_OBJS"
14013 then
14014 MACHDEP_OBJS=$extra_machdep_objs
14015 else
14016 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14018 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14019 echo "${ECHO_T}MACHDEP_OBJS" >&6
14021 # checks for library functions
14098 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14099 execv fork fpathconf ftime ftruncate \
14100 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14101 getpriority getpwent getspnam getspent getsid getwd \
14102 kill killpg lchown lstat mkfifo mknod mktime \
14103 mremap nice pathconf pause plock poll pthread_init \
14104 putenv readlink realpath \
14105 select setegid seteuid setgid \
14106 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14107 sigaction siginterrupt sigrelse strftime \
14108 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14109 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_var+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14132 #ifdef __STDC__
14133 # include <limits.h>
14134 #else
14135 # include <assert.h>
14136 #endif
14138 #undef $ac_func
14140 /* Override any gcc2 internal prototype to avoid an error. */
14141 #ifdef __cplusplus
14142 extern "C"
14144 #endif
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func ();
14148 /* The GNU C library defines this for functions which it implements
14149 to always fail with ENOSYS. Some functions are actually named
14150 something starting with __ and the normal name is an alias. */
14151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14152 choke me
14153 #else
14154 char (*f) () = $ac_func;
14155 #endif
14156 #ifdef __cplusplus
14158 #endif
14161 main ()
14163 return f != $ac_func;
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 eval "$as_ac_var=no"
14197 rm -f conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14205 _ACEOF
14208 done
14211 # For some functions, having a definition is not sufficient, since
14212 # we want to take their address.
14213 echo "$as_me:$LINENO: checking for chroot" >&5
14214 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <unistd.h>
14223 main ()
14225 void *x=chroot
14227 return 0;
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14253 cat >>confdefs.h <<\_ACEOF
14254 #define HAVE_CHROOT 1
14255 _ACEOF
14257 echo "$as_me:$LINENO: result: yes" >&5
14258 echo "${ECHO_T}yes" >&6
14259 else
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 echo "$as_me:$LINENO: result: no" >&5
14264 echo "${ECHO_T}no" >&6
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268 echo "$as_me:$LINENO: checking for link" >&5
14269 echo $ECHO_N "checking for link... $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <unistd.h>
14278 main ()
14280 void *x=link
14282 return 0;
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_c_werror_flag"
14295 || test ! -s conftest.err'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14308 cat >>confdefs.h <<\_ACEOF
14309 #define HAVE_LINK 1
14310 _ACEOF
14312 echo "$as_me:$LINENO: result: yes" >&5
14313 echo "${ECHO_T}yes" >&6
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 echo "$as_me:$LINENO: result: no" >&5
14319 echo "${ECHO_T}no" >&6
14322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14323 echo "$as_me:$LINENO: checking for symlink" >&5
14324 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h. */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <unistd.h>
14333 main ()
14335 void *x=symlink
14337 return 0;
14339 _ACEOF
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag"
14350 || test ! -s conftest.err'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_SYMLINK 1
14365 _ACEOF
14367 echo "$as_me:$LINENO: result: yes" >&5
14368 echo "${ECHO_T}yes" >&6
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6
14377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14378 echo "$as_me:$LINENO: checking for fchdir" >&5
14379 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #include <unistd.h>
14388 main ()
14390 void *x=fchdir
14392 return 0;
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397 (eval $ac_compile) 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -z "$ac_c_werror_flag"
14405 || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_FCHDIR 1
14420 _ACEOF
14422 echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: checking for fsync" >&5
14434 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <unistd.h>
14443 main ()
14445 void *x=fsync
14447 return 0;
14449 _ACEOF
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_FSYNC 1
14475 _ACEOF
14477 echo "$as_me:$LINENO: result: yes" >&5
14478 echo "${ECHO_T}yes" >&6
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 echo "$as_me:$LINENO: result: no" >&5
14484 echo "${ECHO_T}no" >&6
14487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14488 echo "$as_me:$LINENO: checking for fdatasync" >&5
14489 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <unistd.h>
14498 main ()
14500 void *x=fdatasync
14502 return 0;
14504 _ACEOF
14505 rm -f conftest.$ac_objext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507 (eval $ac_compile) 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14528 cat >>confdefs.h <<\_ACEOF
14529 #define HAVE_FDATASYNC 1
14530 _ACEOF
14532 echo "$as_me:$LINENO: result: yes" >&5
14533 echo "${ECHO_T}yes" >&6
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 echo "$as_me:$LINENO: result: no" >&5
14539 echo "${ECHO_T}no" >&6
14542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14544 # On some systems (eg. FreeBSD 5), we would find a definition of the
14545 # functions ctermid_r, setgroups in the library, but no prototype
14546 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14547 # address to avoid compiler warnings and potential miscompilations
14548 # because of the missing prototypes.
14550 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14551 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14552 cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h. */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14559 #include "confdefs.h"
14560 #include <stdio.h>
14563 main ()
14565 void* p = ctermid_r
14567 return 0;
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572 (eval $ac_compile) 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag"
14580 || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_CTERMID_R 1
14595 _ACEOF
14597 echo "$as_me:$LINENO: result: yes" >&5
14598 echo "${ECHO_T}yes" >&6
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 echo "$as_me:$LINENO: result: no" >&5
14604 echo "${ECHO_T}no" >&6
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609 echo "$as_me:$LINENO: checking for flock" >&5
14610 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h. */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 #include "confdefs.h"
14619 #include <sys/file.h>
14622 main ()
14624 void* p = flock
14626 return 0;
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_FLOCK 1
14654 _ACEOF
14656 echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14668 echo "$as_me:$LINENO: checking for getpagesize" >&5
14669 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14677 #include "confdefs.h"
14678 #include <unistd.h>
14681 main ()
14683 void* p = getpagesize
14685 return 0;
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_GETPAGESIZE 1
14713 _ACEOF
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 echo "$as_me:$LINENO: result: no" >&5
14722 echo "${ECHO_T}no" >&6
14725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14727 for ac_prog in true
14729 # Extract the first word of "$ac_prog", so it can be a program name with args.
14730 set dummy $ac_prog; ac_word=$2
14731 echo "$as_me:$LINENO: checking for $ac_word" >&5
14732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14733 if test "${ac_cv_prog_TRUE+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 if test -n "$TRUE"; then
14737 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14738 else
14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 for ac_exec_ext in '' $ac_executable_extensions; do
14745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14746 ac_cv_prog_TRUE="$ac_prog"
14747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14748 break 2
14750 done
14751 done
14755 TRUE=$ac_cv_prog_TRUE
14756 if test -n "$TRUE"; then
14757 echo "$as_me:$LINENO: result: $TRUE" >&5
14758 echo "${ECHO_T}$TRUE" >&6
14759 else
14760 echo "$as_me:$LINENO: result: no" >&5
14761 echo "${ECHO_T}no" >&6
14764 test -n "$TRUE" && break
14765 done
14766 test -n "$TRUE" || TRUE="/bin/true"
14769 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14770 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14771 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lc $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14783 /* Override any gcc2 internal prototype to avoid an error. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14789 char inet_aton ();
14791 main ()
14793 inet_aton ();
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_cv_lib_c_inet_aton=yes
14821 else
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 ac_cv_lib_c_inet_aton=no
14827 rm -f conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14832 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14833 if test $ac_cv_lib_c_inet_aton = yes; then
14834 $ac_cv_prog_TRUE
14835 else
14837 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14838 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14839 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lresolv $LIBS"
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14851 /* Override any gcc2 internal prototype to avoid an error. */
14852 #ifdef __cplusplus
14853 extern "C"
14854 #endif
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14857 char inet_aton ();
14859 main ()
14861 inet_aton ();
14863 return 0;
14865 _ACEOF
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14868 (eval $ac_link) 2>conftest.er1
14869 ac_status=$?
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
14875 { ac_try='test -z "$ac_c_werror_flag"
14876 || test ! -s conftest.err'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try='test -s conftest$ac_exeext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_resolv_inet_aton=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_resolv_inet_aton=no
14895 rm -f conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14900 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14901 if test $ac_cv_lib_resolv_inet_aton = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_LIBRESOLV 1
14904 _ACEOF
14906 LIBS="-lresolv $LIBS"
14914 echo "$as_me:$LINENO: checking for hstrerror" >&5
14915 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14923 #include "confdefs.h"
14924 #include <netdb.h>
14927 main ()
14929 void* p = hstrerror; hstrerror(0)
14931 return 0;
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14957 cat >>confdefs.h <<\_ACEOF
14958 #define HAVE_HSTRERROR 1
14959 _ACEOF
14961 echo "$as_me:$LINENO: result: yes" >&5
14962 echo "${ECHO_T}yes" >&6
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 echo "$as_me:$LINENO: result: no" >&5
14968 echo "${ECHO_T}no" >&6
14971 rm -f conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14974 echo "$as_me:$LINENO: checking for inet_aton" >&5
14975 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 #include "confdefs.h"
14984 #include <sys/types.h>
14985 #include <sys/socket.h>
14986 #include <netinet/in.h>
14987 #include <arpa/inet.h>
14990 main ()
14992 void* p = inet_aton;inet_aton(0,0)
14994 return 0;
14996 _ACEOF
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_INET_ATON 1
15022 _ACEOF
15024 echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15034 rm -f conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15037 echo "$as_me:$LINENO: checking for inet_pton" >&5
15038 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15046 #include "confdefs.h"
15047 #include <sys/types.h>
15048 #include <sys/socket.h>
15049 #include <netinet/in.h>
15050 #include <arpa/inet.h>
15053 main ()
15055 void* p = inet_pton
15057 return 0;
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15062 (eval $ac_compile) 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag"
15070 || test ! -s conftest.err'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_INET_PTON 1
15085 _ACEOF
15087 echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6
15089 else
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 echo "$as_me:$LINENO: result: no" >&5
15094 echo "${ECHO_T}no" >&6
15097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15099 # On some systems, setgroups is in unistd.h, on others, in grp.h
15100 echo "$as_me:$LINENO: checking for setgroups" >&5
15101 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 #include "confdefs.h"
15110 #include <unistd.h>
15111 #ifdef HAVE_GRP_H
15112 #include <grp.h>
15113 #endif
15116 main ()
15118 void* p = setgroups
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest.$ac_objext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_SETGROUPS 1
15148 _ACEOF
15150 echo "$as_me:$LINENO: result: yes" >&5
15151 echo "${ECHO_T}yes" >&6
15152 else
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 echo "$as_me:$LINENO: result: no" >&5
15157 echo "${ECHO_T}no" >&6
15160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15162 # check for openpty and forkpty
15165 for ac_func in openpty
15167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15168 echo "$as_me:$LINENO: checking for $ac_func" >&5
15169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15170 if eval "test \"\${$as_ac_var+set}\" = set"; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173 cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h. */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15181 #define $ac_func innocuous_$ac_func
15183 /* System header to define __stub macros and hopefully few prototypes,
15184 which can conflict with char $ac_func (); below.
15185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15186 <limits.h> exists even on freestanding compilers. */
15188 #ifdef __STDC__
15189 # include <limits.h>
15190 #else
15191 # include <assert.h>
15192 #endif
15194 #undef $ac_func
15196 /* Override any gcc2 internal prototype to avoid an error. */
15197 #ifdef __cplusplus
15198 extern "C"
15200 #endif
15201 /* We use char because int might match the return type of a gcc2
15202 builtin and then its argument prototype would still apply. */
15203 char $ac_func ();
15204 /* The GNU C library defines this for functions which it implements
15205 to always fail with ENOSYS. Some functions are actually named
15206 something starting with __ and the normal name is an alias. */
15207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15208 choke me
15209 #else
15210 char (*f) () = $ac_func;
15211 #endif
15212 #ifdef __cplusplus
15214 #endif
15217 main ()
15219 return f != $ac_func;
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15226 (eval $ac_link) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 eval "$as_ac_var=yes"
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 eval "$as_ac_var=no"
15253 rm -f conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15258 if test `eval echo '${'$as_ac_var'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15261 _ACEOF
15263 else
15264 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15265 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15266 if test "${ac_cv_lib_util_openpty+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269 ac_check_lib_save_LIBS=$LIBS
15270 LIBS="-lutil $LIBS"
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h. */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15278 /* Override any gcc2 internal prototype to avoid an error. */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 /* We use char because int might match the return type of a gcc2
15283 builtin and then its argument prototype would still apply. */
15284 char openpty ();
15286 main ()
15288 openpty ();
15290 return 0;
15292 _ACEOF
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15295 (eval $ac_link) 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -z "$ac_c_werror_flag"
15303 || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_util_openpty=yes
15316 else
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_cv_lib_util_openpty=no
15322 rm -f conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15326 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15327 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15328 if test $ac_cv_lib_util_openpty = yes; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_OPENPTY 1
15331 _ACEOF
15332 LIBS="$LIBS -lutil"
15333 else
15334 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15335 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15336 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 ac_check_lib_save_LIBS=$LIBS
15340 LIBS="-lbsd $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15354 char openpty ();
15356 main ()
15358 openpty ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_lib_bsd_openpty=yes
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_cv_lib_bsd_openpty=no
15392 rm -f conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 LIBS=$ac_check_lib_save_LIBS
15396 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15397 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15398 if test $ac_cv_lib_bsd_openpty = yes; then
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_OPENPTY 1
15401 _ACEOF
15402 LIBS="$LIBS -lbsd"
15410 done
15413 for ac_func in forkpty
15415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15416 echo "$as_me:$LINENO: checking for $ac_func" >&5
15417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15418 if eval "test \"\${$as_ac_var+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15429 #define $ac_func innocuous_$ac_func
15431 /* System header to define __stub macros and hopefully few prototypes,
15432 which can conflict with char $ac_func (); below.
15433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15434 <limits.h> exists even on freestanding compilers. */
15436 #ifdef __STDC__
15437 # include <limits.h>
15438 #else
15439 # include <assert.h>
15440 #endif
15442 #undef $ac_func
15444 /* Override any gcc2 internal prototype to avoid an error. */
15445 #ifdef __cplusplus
15446 extern "C"
15448 #endif
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15451 char $ac_func ();
15452 /* The GNU C library defines this for functions which it implements
15453 to always fail with ENOSYS. Some functions are actually named
15454 something starting with __ and the normal name is an alias. */
15455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15456 choke me
15457 #else
15458 char (*f) () = $ac_func;
15459 #endif
15460 #ifdef __cplusplus
15462 #endif
15465 main ()
15467 return f != $ac_func;
15469 return 0;
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest$ac_exeext'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 eval "$as_ac_var=yes"
15495 else
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 eval "$as_ac_var=no"
15501 rm -f conftest.err conftest.$ac_objext \
15502 conftest$ac_exeext conftest.$ac_ext
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15506 if test `eval echo '${'$as_ac_var'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15509 _ACEOF
15511 else
15512 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15513 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15514 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517 ac_check_lib_save_LIBS=$LIBS
15518 LIBS="-lutil $LIBS"
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h. */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15526 /* Override any gcc2 internal prototype to avoid an error. */
15527 #ifdef __cplusplus
15528 extern "C"
15529 #endif
15530 /* We use char because int might match the return type of a gcc2
15531 builtin and then its argument prototype would still apply. */
15532 char forkpty ();
15534 main ()
15536 forkpty ();
15538 return 0;
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543 (eval $ac_link) 2>conftest.er1
15544 ac_status=$?
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag"
15551 || test ! -s conftest.err'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest$ac_exeext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_cv_lib_util_forkpty=yes
15564 else
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 ac_cv_lib_util_forkpty=no
15570 rm -f conftest.err conftest.$ac_objext \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_check_lib_save_LIBS
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15575 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15576 if test $ac_cv_lib_util_forkpty = yes; then
15577 cat >>confdefs.h <<\_ACEOF
15578 #define HAVE_FORKPTY 1
15579 _ACEOF
15580 LIBS="$LIBS -lutil"
15581 else
15582 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15583 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15584 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587 ac_check_lib_save_LIBS=$LIBS
15588 LIBS="-lbsd $LIBS"
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15596 /* Override any gcc2 internal prototype to avoid an error. */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 /* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15602 char forkpty ();
15604 main ()
15606 forkpty ();
15608 return 0;
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15613 (eval $ac_link) 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_cv_lib_bsd_forkpty=yes
15634 else
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 ac_cv_lib_bsd_forkpty=no
15640 rm -f conftest.err conftest.$ac_objext \
15641 conftest$ac_exeext conftest.$ac_ext
15642 LIBS=$ac_check_lib_save_LIBS
15644 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15645 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15646 if test $ac_cv_lib_bsd_forkpty = yes; then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define HAVE_FORKPTY 1
15649 _ACEOF
15650 LIBS="$LIBS -lbsd"
15658 done
15661 # check for long file support functions
15668 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15671 echo "$as_me:$LINENO: checking for $ac_func" >&5
15672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15673 if eval "test \"\${$as_ac_var+set}\" = set"; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676 cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h. */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15684 #define $ac_func innocuous_$ac_func
15686 /* System header to define __stub macros and hopefully few prototypes,
15687 which can conflict with char $ac_func (); below.
15688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15689 <limits.h> exists even on freestanding compilers. */
15691 #ifdef __STDC__
15692 # include <limits.h>
15693 #else
15694 # include <assert.h>
15695 #endif
15697 #undef $ac_func
15699 /* Override any gcc2 internal prototype to avoid an error. */
15700 #ifdef __cplusplus
15701 extern "C"
15703 #endif
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15706 char $ac_func ();
15707 /* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711 choke me
15712 #else
15713 char (*f) () = $ac_func;
15714 #endif
15715 #ifdef __cplusplus
15717 #endif
15720 main ()
15722 return f != $ac_func;
15724 return 0;
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 eval "$as_ac_var=yes"
15750 else
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 eval "$as_ac_var=no"
15756 rm -f conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15761 if test `eval echo '${'$as_ac_var'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15764 _ACEOF
15767 done
15775 for ac_func in dup2 getcwd strdup strerror memmove
15777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15778 echo "$as_me:$LINENO: checking for $ac_func" >&5
15779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15780 if eval "test \"\${$as_ac_var+set}\" = set"; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15791 #define $ac_func innocuous_$ac_func
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func (); below.
15795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 <limits.h> exists even on freestanding compilers. */
15798 #ifdef __STDC__
15799 # include <limits.h>
15800 #else
15801 # include <assert.h>
15802 #endif
15804 #undef $ac_func
15806 /* Override any gcc2 internal prototype to avoid an error. */
15807 #ifdef __cplusplus
15808 extern "C"
15810 #endif
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813 char $ac_func ();
15814 /* The GNU C library defines this for functions which it implements
15815 to always fail with ENOSYS. Some functions are actually named
15816 something starting with __ and the normal name is an alias. */
15817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15818 choke me
15819 #else
15820 char (*f) () = $ac_func;
15821 #endif
15822 #ifdef __cplusplus
15824 #endif
15827 main ()
15829 return f != $ac_func;
15831 return 0;
15833 _ACEOF
15834 rm -f conftest.$ac_objext conftest$ac_exeext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -z "$ac_c_werror_flag"
15844 || test ! -s conftest.err'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest$ac_exeext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 eval "$as_ac_var=yes"
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 eval "$as_ac_var=no"
15863 rm -f conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15868 if test `eval echo '${'$as_ac_var'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15871 _ACEOF
15873 else
15874 case $LIBOBJS in
15875 "$ac_func.$ac_objext" | \
15876 *" $ac_func.$ac_objext" | \
15877 "$ac_func.$ac_objext "* | \
15878 *" $ac_func.$ac_objext "* ) ;;
15879 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15880 esac
15883 done
15887 for ac_func in getpgrp
15889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_var+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15910 #ifdef __STDC__
15911 # include <limits.h>
15912 #else
15913 # include <assert.h>
15914 #endif
15916 #undef $ac_func
15918 /* Override any gcc2 internal prototype to avoid an error. */
15919 #ifdef __cplusplus
15920 extern "C"
15922 #endif
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15925 char $ac_func ();
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15930 choke me
15931 #else
15932 char (*f) () = $ac_func;
15933 #endif
15934 #ifdef __cplusplus
15936 #endif
15939 main ()
15941 return f != $ac_func;
15943 return 0;
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 eval "$as_ac_var=yes"
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 eval "$as_ac_var=no"
15975 rm -f conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15980 if test `eval echo '${'$as_ac_var'}'` = yes; then
15981 cat >>confdefs.h <<_ACEOF
15982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 _ACEOF
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <unistd.h>
15992 main ()
15994 getpgrp(0);
15996 return 0;
15998 _ACEOF
15999 rm -f conftest.$ac_objext
16000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag"
16009 || test ! -s conftest.err'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16022 cat >>confdefs.h <<\_ACEOF
16023 #define GETPGRP_HAVE_ARG 1
16024 _ACEOF
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16035 done
16038 for ac_func in setpgrp
16040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16041 echo "$as_me:$LINENO: checking for $ac_func" >&5
16042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16043 if eval "test \"\${$as_ac_var+set}\" = set"; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16054 #define $ac_func innocuous_$ac_func
16056 /* System header to define __stub macros and hopefully few prototypes,
16057 which can conflict with char $ac_func (); below.
16058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16059 <limits.h> exists even on freestanding compilers. */
16061 #ifdef __STDC__
16062 # include <limits.h>
16063 #else
16064 # include <assert.h>
16065 #endif
16067 #undef $ac_func
16069 /* Override any gcc2 internal prototype to avoid an error. */
16070 #ifdef __cplusplus
16071 extern "C"
16073 #endif
16074 /* We use char because int might match the return type of a gcc2
16075 builtin and then its argument prototype would still apply. */
16076 char $ac_func ();
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 choke me
16082 #else
16083 char (*f) () = $ac_func;
16084 #endif
16085 #ifdef __cplusplus
16087 #endif
16090 main ()
16092 return f != $ac_func;
16094 return 0;
16096 _ACEOF
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>conftest.er1
16100 ac_status=$?
16101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag"
16107 || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 eval "$as_ac_var=yes"
16120 else
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 eval "$as_ac_var=no"
16126 rm -f conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16131 if test `eval echo '${'$as_ac_var'}'` = yes; then
16132 cat >>confdefs.h <<_ACEOF
16133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16134 _ACEOF
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <unistd.h>
16143 main ()
16145 setpgrp(0,0);
16147 return 0;
16149 _ACEOF
16150 rm -f conftest.$ac_objext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16152 (eval $ac_compile) 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag"
16160 || test ! -s conftest.err'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest.$ac_objext'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16173 cat >>confdefs.h <<\_ACEOF
16174 #define SETPGRP_HAVE_ARG 1
16175 _ACEOF
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16186 done
16189 for ac_func in gettimeofday
16191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16192 echo "$as_me:$LINENO: checking for $ac_func" >&5
16193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_var+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16205 #define $ac_func innocuous_$ac_func
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char $ac_func (); below.
16209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16210 <limits.h> exists even on freestanding compilers. */
16212 #ifdef __STDC__
16213 # include <limits.h>
16214 #else
16215 # include <assert.h>
16216 #endif
16218 #undef $ac_func
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 #ifdef __cplusplus
16222 extern "C"
16224 #endif
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16227 char $ac_func ();
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 choke me
16233 #else
16234 char (*f) () = $ac_func;
16235 #endif
16236 #ifdef __cplusplus
16238 #endif
16241 main ()
16243 return f != $ac_func;
16245 return 0;
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 eval "$as_ac_var=yes"
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 eval "$as_ac_var=no"
16277 rm -f conftest.err conftest.$ac_objext \
16278 conftest$ac_exeext conftest.$ac_ext
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16282 if test `eval echo '${'$as_ac_var'}'` = yes; then
16283 cat >>confdefs.h <<_ACEOF
16284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285 _ACEOF
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <sys/time.h>
16294 main ()
16296 gettimeofday((struct timeval*)0,(struct timezone*)0);
16298 return 0;
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16329 cat >>confdefs.h <<\_ACEOF
16330 #define GETTIMEOFDAY_NO_TZ 1
16331 _ACEOF
16335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16338 done
16341 echo "$as_me:$LINENO: checking for major" >&5
16342 echo $ECHO_N "checking for major... $ECHO_C" >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16350 #if defined(MAJOR_IN_MKDEV)
16351 #include <sys/mkdev.h>
16352 #elif defined(MAJOR_IN_SYSMACROS)
16353 #include <sys/sysmacros.h>
16354 #else
16355 #include <sys/types.h>
16356 #endif
16359 main ()
16362 makedev(major(0),minor(0));
16365 return 0;
16367 _ACEOF
16368 rm -f conftest.$ac_objext conftest$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -z "$ac_c_werror_flag"
16378 || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16392 cat >>confdefs.h <<\_ACEOF
16393 #define HAVE_DEVICE_MACROS 1
16394 _ACEOF
16396 echo "$as_me:$LINENO: result: yes" >&5
16397 echo "${ECHO_T}yes" >&6
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16404 echo "$as_me:$LINENO: result: no" >&5
16405 echo "${ECHO_T}no" >&6
16408 rm -f conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16411 # On OSF/1 V5.1, getaddrinfo is available, but a define
16412 # for [no]getaddrinfo in netdb.h.
16413 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16414 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 #include <sys/types.h>
16423 #include <sys/socket.h>
16424 #include <netdb.h>
16425 #include <stdio.h>
16428 main ()
16431 getaddrinfo(NULL, NULL, NULL, NULL);
16434 return 0;
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439 (eval $ac_link) 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16460 echo "$as_me:$LINENO: result: yes" >&5
16461 echo "${ECHO_T}yes" >&6
16462 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16463 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16464 if test "$cross_compiling" = yes; then
16465 echo "$as_me:$LINENO: result: buggy" >&5
16466 echo "${ECHO_T}buggy" >&6
16467 buggygetaddrinfo=yes
16468 else
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16476 #include <sys/types.h>
16477 #include <netdb.h>
16478 #include <string.h>
16479 #include <sys/socket.h>
16480 #include <netinet/in.h>
16482 main()
16484 int passive, gaierr, inet4 = 0, inet6 = 0;
16485 struct addrinfo hints, *ai, *aitop;
16486 char straddr[INET6_ADDRSTRLEN], strport[16];
16488 for (passive = 0; passive <= 1; passive++) {
16489 memset(&hints, 0, sizeof(hints));
16490 hints.ai_family = AF_UNSPEC;
16491 hints.ai_flags = passive ? AI_PASSIVE : 0;
16492 hints.ai_socktype = SOCK_STREAM;
16493 hints.ai_protocol = IPPROTO_TCP;
16494 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16495 (void)gai_strerror(gaierr);
16496 goto bad;
16498 for (ai = aitop; ai; ai = ai->ai_next) {
16499 if (ai->ai_addr == NULL ||
16500 ai->ai_addrlen == 0 ||
16501 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16502 straddr, sizeof(straddr), strport, sizeof(strport),
16503 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16504 goto bad;
16506 switch (ai->ai_family) {
16507 case AF_INET:
16508 if (strcmp(strport, "54321") != 0) {
16509 goto bad;
16511 if (passive) {
16512 if (strcmp(straddr, "0.0.0.0") != 0) {
16513 goto bad;
16515 } else {
16516 if (strcmp(straddr, "127.0.0.1") != 0) {
16517 goto bad;
16520 inet4++;
16521 break;
16522 case AF_INET6:
16523 if (strcmp(strport, "54321") != 0) {
16524 goto bad;
16526 if (passive) {
16527 if (strcmp(straddr, "::") != 0) {
16528 goto bad;
16530 } else {
16531 if (strcmp(straddr, "::1") != 0) {
16532 goto bad;
16535 inet6++;
16536 break;
16537 case AF_UNSPEC:
16538 goto bad;
16539 break;
16540 default:
16541 /* another family support? */
16542 break;
16547 if (!(inet4 == 0 || inet4 == 2))
16548 goto bad;
16549 if (!(inet6 == 0 || inet6 == 2))
16550 goto bad;
16552 if (aitop)
16553 freeaddrinfo(aitop);
16554 exit(0);
16556 bad:
16557 if (aitop)
16558 freeaddrinfo(aitop);
16559 exit(1);
16562 _ACEOF
16563 rm -f conftest$ac_exeext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565 (eval $ac_link) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 echo "$as_me:$LINENO: result: good" >&5
16575 echo "${ECHO_T}good" >&6
16576 buggygetaddrinfo=no
16577 else
16578 echo "$as_me: program exited with status $ac_status" >&5
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ( exit $ac_status )
16583 echo "$as_me:$LINENO: result: buggy" >&5
16584 echo "${ECHO_T}buggy" >&6
16585 buggygetaddrinfo=yes
16587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16589 else
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16594 echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6
16596 buggygetaddrinfo=yes
16599 rm -f conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext conftest.$ac_ext
16602 if test "$buggygetaddrinfo" = "yes"; then
16603 if test "$ipv6" = "yes"; then
16604 echo 'Fatal: You must get working getaddrinfo() function.'
16605 echo ' or you can specify "--disable-ipv6"'.
16606 exit 1
16608 else
16610 cat >>confdefs.h <<\_ACEOF
16611 #define HAVE_GETADDRINFO 1
16612 _ACEOF
16616 for ac_func in getnameinfo
16618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16619 echo "$as_me:$LINENO: checking for $ac_func" >&5
16620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16621 if eval "test \"\${$as_ac_var+set}\" = set"; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16632 #define $ac_func innocuous_$ac_func
16634 /* System header to define __stub macros and hopefully few prototypes,
16635 which can conflict with char $ac_func (); below.
16636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16637 <limits.h> exists even on freestanding compilers. */
16639 #ifdef __STDC__
16640 # include <limits.h>
16641 #else
16642 # include <assert.h>
16643 #endif
16645 #undef $ac_func
16647 /* Override any gcc2 internal prototype to avoid an error. */
16648 #ifdef __cplusplus
16649 extern "C"
16651 #endif
16652 /* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16654 char $ac_func ();
16655 /* The GNU C library defines this for functions which it implements
16656 to always fail with ENOSYS. Some functions are actually named
16657 something starting with __ and the normal name is an alias. */
16658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16659 choke me
16660 #else
16661 char (*f) () = $ac_func;
16662 #endif
16663 #ifdef __cplusplus
16665 #endif
16668 main ()
16670 return f != $ac_func;
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 eval "$as_ac_var=yes"
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 eval "$as_ac_var=no"
16704 rm -f conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710 cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16712 _ACEOF
16715 done
16718 # checks for structures
16719 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16721 if test "${ac_cv_header_time+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <sys/types.h>
16731 #include <sys/time.h>
16732 #include <time.h>
16735 main ()
16737 if ((struct tm *) 0)
16738 return 0;
16740 return 0;
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_cv_header_time=yes
16766 else
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 ac_cv_header_time=no
16772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16774 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16775 echo "${ECHO_T}$ac_cv_header_time" >&6
16776 if test $ac_cv_header_time = yes; then
16778 cat >>confdefs.h <<\_ACEOF
16779 #define TIME_WITH_SYS_TIME 1
16780 _ACEOF
16784 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16786 if test "${ac_cv_struct_tm+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <sys/types.h>
16796 #include <time.h>
16799 main ()
16801 struct tm *tp; tp->tm_sec;
16803 return 0;
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag"
16816 || test ! -s conftest.err'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_cv_struct_tm=time.h
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_cv_struct_tm=sys/time.h
16835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16838 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16839 if test $ac_cv_struct_tm = sys/time.h; then
16841 cat >>confdefs.h <<\_ACEOF
16842 #define TM_IN_SYS_TIME 1
16843 _ACEOF
16847 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16848 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16849 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 #include <sys/types.h>
16859 #include <$ac_cv_struct_tm>
16863 main ()
16865 static struct tm ac_aggr;
16866 if (ac_aggr.tm_zone)
16867 return 0;
16869 return 0;
16871 _ACEOF
16872 rm -f conftest.$ac_objext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16874 (eval $ac_compile) 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -z "$ac_c_werror_flag"
16882 || test ! -s conftest.err'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try='test -s conftest.$ac_objext'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_member_struct_tm_tm_zone=yes
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h. */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 #include <sys/types.h>
16906 #include <$ac_cv_struct_tm>
16910 main ()
16912 static struct tm ac_aggr;
16913 if (sizeof ac_aggr.tm_zone)
16914 return 0;
16916 return 0;
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_member_struct_tm_tm_zone=yes
16942 else
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_member_struct_tm_tm_zone=no
16948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16953 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16954 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16956 cat >>confdefs.h <<_ACEOF
16957 #define HAVE_STRUCT_TM_TM_ZONE 1
16958 _ACEOF
16963 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_TM_ZONE 1
16967 _ACEOF
16969 else
16970 echo "$as_me:$LINENO: checking for tzname" >&5
16971 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16972 if test "${ac_cv_var_tzname+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h. */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <time.h>
16982 #ifndef tzname /* For SGI. */
16983 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16984 #endif
16987 main ()
16989 atoi(*tzname);
16991 return 0;
16993 _ACEOF
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest$ac_exeext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_cv_var_tzname=yes
17017 else
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ac_cv_var_tzname=no
17023 rm -f conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17026 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17027 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17028 if test $ac_cv_var_tzname = yes; then
17030 cat >>confdefs.h <<\_ACEOF
17031 #define HAVE_TZNAME 1
17032 _ACEOF
17037 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17038 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17039 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17050 main ()
17052 static struct stat ac_aggr;
17053 if (ac_aggr.st_rdev)
17054 return 0;
17056 return 0;
17058 _ACEOF
17059 rm -f conftest.$ac_objext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest.$ac_objext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_member_struct_stat_st_rdev=yes
17082 else
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h. */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h. */
17092 $ac_includes_default
17094 main ()
17096 static struct stat ac_aggr;
17097 if (sizeof ac_aggr.st_rdev)
17098 return 0;
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17105 (eval $ac_compile) 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -z "$ac_c_werror_flag"
17113 || test ! -s conftest.err'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest.$ac_objext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_member_struct_stat_st_rdev=yes
17126 else
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_cv_member_struct_stat_st_rdev=no
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17137 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17138 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_STRUCT_STAT_ST_RDEV 1
17142 _ACEOF
17147 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17148 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17149 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 $ac_includes_default
17160 main ()
17162 static struct stat ac_aggr;
17163 if (ac_aggr.st_blksize)
17164 return 0;
17166 return 0;
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17171 (eval $ac_compile) 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -z "$ac_c_werror_flag"
17179 || test ! -s conftest.err'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest.$ac_objext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_cv_member_struct_stat_st_blksize=yes
17192 else
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 $ac_includes_default
17204 main ()
17206 static struct stat ac_aggr;
17207 if (sizeof ac_aggr.st_blksize)
17208 return 0;
17210 return 0;
17212 _ACEOF
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag"
17223 || test ! -s conftest.err'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; } &&
17229 { ac_try='test -s conftest.$ac_objext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_member_struct_stat_st_blksize=yes
17236 else
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ac_cv_member_struct_stat_st_blksize=no
17242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17248 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17252 _ACEOF
17257 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17258 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17259 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17270 main ()
17272 static struct stat ac_aggr;
17273 if (ac_aggr.st_flags)
17274 return 0;
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_member_struct_stat_st_flags=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 $ac_includes_default
17314 main ()
17316 static struct stat ac_aggr;
17317 if (sizeof ac_aggr.st_flags)
17318 return 0;
17320 return 0;
17322 _ACEOF
17323 rm -f conftest.$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -z "$ac_c_werror_flag"
17333 || test ! -s conftest.err'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try='test -s conftest.$ac_objext'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17345 ac_cv_member_struct_stat_st_flags=yes
17346 else
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 ac_cv_member_struct_stat_st_flags=no
17352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17357 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17358 if test $ac_cv_member_struct_stat_st_flags = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17362 _ACEOF
17367 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17368 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17369 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17380 main ()
17382 static struct stat ac_aggr;
17383 if (ac_aggr.st_gen)
17384 return 0;
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest.$ac_objext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_member_struct_stat_st_gen=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h. */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 $ac_includes_default
17424 main ()
17426 static struct stat ac_aggr;
17427 if (sizeof ac_aggr.st_gen)
17428 return 0;
17430 return 0;
17432 _ACEOF
17433 rm -f conftest.$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435 (eval $ac_compile) 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -z "$ac_c_werror_flag"
17443 || test ! -s conftest.err'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest.$ac_objext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_cv_member_struct_stat_st_gen=yes
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_cv_member_struct_stat_st_gen=no
17462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17467 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17468 if test $ac_cv_member_struct_stat_st_gen = yes; then
17470 cat >>confdefs.h <<_ACEOF
17471 #define HAVE_STRUCT_STAT_ST_GEN 1
17472 _ACEOF
17477 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17478 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17479 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17490 main ()
17492 static struct stat ac_aggr;
17493 if (ac_aggr.st_birthtime)
17494 return 0;
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_member_struct_stat_st_birthtime=yes
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17534 main ()
17536 static struct stat ac_aggr;
17537 if (sizeof ac_aggr.st_birthtime)
17538 return 0;
17540 return 0;
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_member_struct_stat_st_birthtime=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_member_struct_stat_st_birthtime=no
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17578 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17582 _ACEOF
17587 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17588 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17589 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17600 main ()
17602 static struct stat ac_aggr;
17603 if (ac_aggr.st_blocks)
17604 return 0;
17606 return 0;
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest.$ac_objext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_member_struct_stat_st_blocks=yes
17632 else
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17644 main ()
17646 static struct stat ac_aggr;
17647 if (sizeof ac_aggr.st_blocks)
17648 return 0;
17650 return 0;
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_member_struct_stat_st_blocks=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_member_struct_stat_st_blocks=no
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17688 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17692 _ACEOF
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ST_BLOCKS 1
17697 _ACEOF
17699 else
17700 case $LIBOBJS in
17701 "fileblocks.$ac_objext" | \
17702 *" fileblocks.$ac_objext" | \
17703 "fileblocks.$ac_objext "* | \
17704 *" fileblocks.$ac_objext "* ) ;;
17705 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17706 esac
17712 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17713 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17714 if test "${ac_cv_header_time_altzone+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <time.h>
17725 main ()
17727 return altzone;
17729 return 0;
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_header_time_altzone=yes
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 ac_cv_header_time_altzone=no
17761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17765 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17766 if test $ac_cv_header_time_altzone = yes; then
17768 cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_ALTZONE 1
17770 _ACEOF
17774 was_it_defined=no
17775 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17776 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 #include <sys/types.h>
17785 #include <sys/select.h>
17786 #include <sys/time.h>
17789 main ()
17793 return 0;
17795 _ACEOF
17796 rm -f conftest.$ac_objext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17798 (eval $ac_compile) 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17820 cat >>confdefs.h <<\_ACEOF
17821 #define SYS_SELECT_WITH_SYS_TIME 1
17822 _ACEOF
17824 was_it_defined=yes
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17832 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17833 echo "${ECHO_T}$was_it_defined" >&6
17835 echo "$as_me:$LINENO: checking for addrinfo" >&5
17836 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17837 if test "${ac_cv_struct_addrinfo+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17847 # include <netdb.h>
17849 main ()
17851 struct addrinfo a
17853 return 0;
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_struct_addrinfo=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 ac_cv_struct_addrinfo=no
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17889 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17890 if test $ac_cv_struct_addrinfo = yes; then
17892 cat >>confdefs.h <<\_ACEOF
17893 #define HAVE_ADDRINFO 1
17894 _ACEOF
17898 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17899 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17900 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h. */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17910 # include <sys/types.h>
17911 # include <sys/socket.h>
17913 main ()
17915 struct sockaddr_storage s
17917 return 0;
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -z "$ac_c_werror_flag"
17930 || test ! -s conftest.err'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_struct_sockaddr_storage=yes
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 ac_cv_struct_sockaddr_storage=no
17949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17952 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17953 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17954 if test $ac_cv_struct_sockaddr_storage = yes; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_SOCKADDR_STORAGE 1
17958 _ACEOF
17962 # checks for compiler characteristics
17965 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17966 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17967 if test "${ac_cv_c_char_unsigned+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17978 main ()
17980 static int test_array [1 - 2 * !(((char) -1) < 0)];
17981 test_array [0] = 0
17984 return 0;
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989 (eval $ac_compile) 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag"
17997 || test ! -s conftest.err'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_c_char_unsigned=no
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_c_char_unsigned=yes
18016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18019 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18020 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define __CHAR_UNSIGNED__ 1
18023 _ACEOF
18027 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18028 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18029 if test "${ac_cv_c_const+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h. */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18040 main ()
18042 /* FIXME: Include the comments suggested by Paul. */
18043 #ifndef __cplusplus
18044 /* Ultrix mips cc rejects this. */
18045 typedef int charset[2];
18046 const charset x;
18047 /* SunOS 4.1.1 cc rejects this. */
18048 char const *const *ccp;
18049 char **p;
18050 /* NEC SVR4.0.2 mips cc rejects this. */
18051 struct point {int x, y;};
18052 static struct point const zero = {0,0};
18053 /* AIX XL C 1.02.0.0 rejects this.
18054 It does not let you subtract one const X* pointer from another in
18055 an arm of an if-expression whose if-part is not a constant
18056 expression */
18057 const char *g = "string";
18058 ccp = &g + (g ? g-g : 0);
18059 /* HPUX 7.0 cc rejects these. */
18060 ++ccp;
18061 p = (char**) ccp;
18062 ccp = (char const *const *) p;
18063 { /* SCO 3.2v4 cc rejects this. */
18064 char *t;
18065 char const *s = 0 ? (char *) 0 : (char const *) 0;
18067 *t++ = 0;
18069 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18070 int x[] = {25, 17};
18071 const int *foo = &x[0];
18072 ++foo;
18074 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18075 typedef const int *iptr;
18076 iptr p = 0;
18077 ++p;
18079 { /* AIX XL C 1.02.0.0 rejects this saying
18080 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18081 struct s { int j; const int *ap[3]; };
18082 struct s *b; b->j = 5;
18084 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18085 const int foo = 10;
18087 #endif
18090 return 0;
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_cv_c_const=yes
18116 else
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ac_cv_c_const=no
18122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18125 echo "${ECHO_T}$ac_cv_c_const" >&6
18126 if test $ac_cv_c_const = no; then
18128 cat >>confdefs.h <<\_ACEOF
18129 #define const
18130 _ACEOF
18135 works=no
18136 echo "$as_me:$LINENO: checking for working volatile" >&5
18137 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18138 cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18146 main ()
18148 volatile int x; x = 0;
18150 return 0;
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>conftest.er1
18156 ac_status=$?
18157 grep -v '^ *+' conftest.er1 >conftest.err
18158 rm -f conftest.er1
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 works=yes
18176 else
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18181 cat >>confdefs.h <<\_ACEOF
18182 #define volatile
18183 _ACEOF
18187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188 echo "$as_me:$LINENO: result: $works" >&5
18189 echo "${ECHO_T}$works" >&6
18191 works=no
18192 echo "$as_me:$LINENO: checking for working signed char" >&5
18193 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18202 main ()
18204 signed char c;
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211 (eval $ac_compile) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 works=yes
18232 else
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18237 cat >>confdefs.h <<\_ACEOF
18238 #define signed
18239 _ACEOF
18243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18244 echo "$as_me:$LINENO: result: $works" >&5
18245 echo "${ECHO_T}$works" >&6
18247 have_prototypes=no
18248 echo "$as_me:$LINENO: checking for prototypes" >&5
18249 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 int foo(int x) { return 0; }
18258 main ()
18260 return foo(10);
18262 return 0;
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18267 (eval $ac_compile) 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag"
18275 || test ! -s conftest.err'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest.$ac_objext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18289 cat >>confdefs.h <<\_ACEOF
18290 #define HAVE_PROTOTYPES 1
18291 _ACEOF
18293 have_prototypes=yes
18295 else
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18302 echo "${ECHO_T}$have_prototypes" >&6
18304 works=no
18305 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18306 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h. */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 #include <stdarg.h>
18315 int foo(int x, ...) {
18316 va_list va;
18317 va_start(va, x);
18318 va_arg(va, int);
18319 va_arg(va, char *);
18320 va_arg(va, double);
18321 return 0;
18325 main ()
18327 return foo(10, "", 3.14);
18329 return 0;
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334 (eval $ac_compile) 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag"
18342 || test ! -s conftest.err'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18356 cat >>confdefs.h <<\_ACEOF
18357 #define HAVE_STDARG_PROTOTYPES 1
18358 _ACEOF
18360 works=yes
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: $works" >&5
18369 echo "${ECHO_T}$works" >&6
18371 # check for socketpair
18372 echo "$as_me:$LINENO: checking for socketpair" >&5
18373 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 #include <sys/types.h>
18382 #include <sys/socket.h>
18385 main ()
18387 void *x=socketpair
18389 return 0;
18391 _ACEOF
18392 rm -f conftest.$ac_objext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18394 (eval $ac_compile) 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest.$ac_objext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18415 cat >>confdefs.h <<\_ACEOF
18416 #define HAVE_SOCKETPAIR 1
18417 _ACEOF
18419 echo "$as_me:$LINENO: result: yes" >&5
18420 echo "${ECHO_T}yes" >&6
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 echo "$as_me:$LINENO: result: no" >&5
18426 echo "${ECHO_T}no" >&6
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 # check if sockaddr has sa_len member
18432 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18433 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <sys/types.h>
18441 #include <sys/socket.h>
18443 main ()
18445 struct sockaddr x;
18446 x.sa_len = 0;
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 echo "$as_me:$LINENO: result: yes" >&5
18474 echo "${ECHO_T}yes" >&6
18476 cat >>confdefs.h <<\_ACEOF
18477 #define HAVE_SOCKADDR_SA_LEN 1
18478 _ACEOF
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18489 va_list_is_array=no
18490 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18491 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h. */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18499 #ifdef HAVE_STDARG_PROTOTYPES
18500 #include <stdarg.h>
18501 #else
18502 #include <varargs.h>
18503 #endif
18506 main ()
18508 va_list list1, list2; list1 = list2;
18510 return 0;
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18542 cat >>confdefs.h <<\_ACEOF
18543 #define VA_LIST_IS_ARRAY 1
18544 _ACEOF
18546 va_list_is_array=yes
18549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18551 echo "${ECHO_T}$va_list_is_array" >&6
18553 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18557 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18558 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18559 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define gethostbyname_r innocuous_gethostbyname_r
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char gethostbyname_r (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18577 #ifdef __STDC__
18578 # include <limits.h>
18579 #else
18580 # include <assert.h>
18581 #endif
18583 #undef gethostbyname_r
18585 /* Override any gcc2 internal prototype to avoid an error. */
18586 #ifdef __cplusplus
18587 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char gethostbyname_r ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18597 choke me
18598 #else
18599 char (*f) () = gethostbyname_r;
18600 #endif
18601 #ifdef __cplusplus
18603 #endif
18606 main ()
18608 return f != gethostbyname_r;
18610 return 0;
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_func_gethostbyname_r=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_cv_func_gethostbyname_r=no
18642 rm -f conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18645 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18646 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18647 if test $ac_cv_func_gethostbyname_r = yes; then
18649 cat >>confdefs.h <<\_ACEOF
18650 #define HAVE_GETHOSTBYNAME_R 1
18651 _ACEOF
18653 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18654 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18655 OLD_CFLAGS=$CFLAGS
18656 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 # include <netdb.h>
18667 main ()
18670 char *name;
18671 struct hostent *he, *res;
18672 char buffer[2048];
18673 int buflen = 2048;
18674 int h_errnop;
18676 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18679 return 0;
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18684 (eval $ac_compile) 2>conftest.er1
18685 ac_status=$?
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag"
18692 || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18705 cat >>confdefs.h <<\_ACEOF
18706 #define HAVE_GETHOSTBYNAME_R 1
18707 _ACEOF
18710 cat >>confdefs.h <<\_ACEOF
18711 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18712 _ACEOF
18714 echo "$as_me:$LINENO: result: yes" >&5
18715 echo "${ECHO_T}yes" >&6
18717 else
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18722 echo "$as_me:$LINENO: result: no" >&5
18723 echo "${ECHO_T}no" >&6
18724 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18725 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h. */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18733 # include <netdb.h>
18736 main ()
18739 char *name;
18740 struct hostent *he;
18741 char buffer[2048];
18742 int buflen = 2048;
18743 int h_errnop;
18745 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753 (eval $ac_compile) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag"
18761 || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18774 cat >>confdefs.h <<\_ACEOF
18775 #define HAVE_GETHOSTBYNAME_R 1
18776 _ACEOF
18779 cat >>confdefs.h <<\_ACEOF
18780 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18781 _ACEOF
18783 echo "$as_me:$LINENO: result: yes" >&5
18784 echo "${ECHO_T}yes" >&6
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18791 echo "$as_me:$LINENO: result: no" >&5
18792 echo "${ECHO_T}no" >&6
18793 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18794 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h. */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 # include <netdb.h>
18805 main ()
18808 char *name;
18809 struct hostent *he;
18810 struct hostent_data data;
18812 (void) gethostbyname_r(name, he, &data);
18815 return 0;
18817 _ACEOF
18818 rm -f conftest.$ac_objext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820 (eval $ac_compile) 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -z "$ac_c_werror_flag"
18828 || test ! -s conftest.err'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18841 cat >>confdefs.h <<\_ACEOF
18842 #define HAVE_GETHOSTBYNAME_R 1
18843 _ACEOF
18846 cat >>confdefs.h <<\_ACEOF
18847 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18848 _ACEOF
18850 echo "$as_me:$LINENO: result: yes" >&5
18851 echo "${ECHO_T}yes" >&6
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18858 echo "$as_me:$LINENO: result: no" >&5
18859 echo "${ECHO_T}no" >&6
18862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18869 CFLAGS=$OLD_CFLAGS
18871 else
18874 for ac_func in gethostbyname
18876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18877 echo "$as_me:$LINENO: checking for $ac_func" >&5
18878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18879 if eval "test \"\${$as_ac_var+set}\" = set"; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 else
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18890 #define $ac_func innocuous_$ac_func
18892 /* System header to define __stub macros and hopefully few prototypes,
18893 which can conflict with char $ac_func (); below.
18894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18895 <limits.h> exists even on freestanding compilers. */
18897 #ifdef __STDC__
18898 # include <limits.h>
18899 #else
18900 # include <assert.h>
18901 #endif
18903 #undef $ac_func
18905 /* Override any gcc2 internal prototype to avoid an error. */
18906 #ifdef __cplusplus
18907 extern "C"
18909 #endif
18910 /* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912 char $ac_func ();
18913 /* The GNU C library defines this for functions which it implements
18914 to always fail with ENOSYS. Some functions are actually named
18915 something starting with __ and the normal name is an alias. */
18916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18917 choke me
18918 #else
18919 char (*f) () = $ac_func;
18920 #endif
18921 #ifdef __cplusplus
18923 #endif
18926 main ()
18928 return f != $ac_func;
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935 (eval $ac_link) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try='test -s conftest$ac_exeext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 eval "$as_ac_var=yes"
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 eval "$as_ac_var=no"
18962 rm -f conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18967 if test `eval echo '${'$as_ac_var'}'` = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18970 _ACEOF
18973 done
18984 # checks for system services
18985 # (none yet)
18987 # Linux requires this for correct f.p. operations
18988 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18989 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18990 if test "${ac_cv_func___fpu_control+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19001 #define __fpu_control innocuous___fpu_control
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char __fpu_control (); below.
19005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006 <limits.h> exists even on freestanding compilers. */
19008 #ifdef __STDC__
19009 # include <limits.h>
19010 #else
19011 # include <assert.h>
19012 #endif
19014 #undef __fpu_control
19016 /* Override any gcc2 internal prototype to avoid an error. */
19017 #ifdef __cplusplus
19018 extern "C"
19020 #endif
19021 /* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19023 char __fpu_control ();
19024 /* The GNU C library defines this for functions which it implements
19025 to always fail with ENOSYS. Some functions are actually named
19026 something starting with __ and the normal name is an alias. */
19027 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19028 choke me
19029 #else
19030 char (*f) () = __fpu_control;
19031 #endif
19032 #ifdef __cplusplus
19034 #endif
19037 main ()
19039 return f != __fpu_control;
19041 return 0;
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19046 (eval $ac_link) 2>conftest.er1
19047 ac_status=$?
19048 grep -v '^ *+' conftest.er1 >conftest.err
19049 rm -f conftest.er1
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try='test -z "$ac_c_werror_flag"
19054 || test ! -s conftest.err'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try='test -s conftest$ac_exeext'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_cv_func___fpu_control=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_cv_func___fpu_control=no
19073 rm -f conftest.err conftest.$ac_objext \
19074 conftest$ac_exeext conftest.$ac_ext
19076 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19077 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19078 if test $ac_cv_func___fpu_control = yes; then
19080 else
19082 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19083 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19084 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087 ac_check_lib_save_LIBS=$LIBS
19088 LIBS="-lieee $LIBS"
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19096 /* Override any gcc2 internal prototype to avoid an error. */
19097 #ifdef __cplusplus
19098 extern "C"
19099 #endif
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19102 char __fpu_control ();
19104 main ()
19106 __fpu_control ();
19108 return 0;
19110 _ACEOF
19111 rm -f conftest.$ac_objext conftest$ac_exeext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19113 (eval $ac_link) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest$ac_exeext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_lib_ieee___fpu_control=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 ac_cv_lib_ieee___fpu_control=no
19140 rm -f conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19144 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19145 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19146 if test $ac_cv_lib_ieee___fpu_control = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148 #define HAVE_LIBIEEE 1
19149 _ACEOF
19151 LIBS="-lieee $LIBS"
19159 # Check for --with-fpectl
19160 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19161 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19163 # Check whether --with-fpectl or --without-fpectl was given.
19164 if test "${with_fpectl+set}" = set; then
19165 withval="$with_fpectl"
19167 if test "$withval" != no
19168 then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define WANT_SIGFPE_HANDLER 1
19172 _ACEOF
19174 echo "$as_me:$LINENO: result: yes" >&5
19175 echo "${ECHO_T}yes" >&6
19176 else echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19179 else
19180 echo "$as_me:$LINENO: result: no" >&5
19181 echo "${ECHO_T}no" >&6
19184 # check for --with-libm=...
19186 case $ac_sys_system in
19187 Darwin) ;;
19188 BeOS) ;;
19189 *) LIBM=-lm
19190 esac
19191 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19192 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19194 # Check whether --with-libm or --without-libm was given.
19195 if test "${with_libm+set}" = set; then
19196 withval="$with_libm"
19198 if test "$withval" = no
19199 then LIBM=
19200 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19201 echo "${ECHO_T}force LIBM empty" >&6
19202 elif test "$withval" != yes
19203 then LIBM=$withval
19204 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19205 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19206 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19207 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19208 { (exit 1); exit 1; }; }
19210 else
19211 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19212 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19215 # check for --with-libc=...
19217 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19218 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19220 # Check whether --with-libc or --without-libc was given.
19221 if test "${with_libc+set}" = set; then
19222 withval="$with_libc"
19224 if test "$withval" = no
19225 then LIBC=
19226 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19227 echo "${ECHO_T}force LIBC empty" >&6
19228 elif test "$withval" != yes
19229 then LIBC=$withval
19230 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19231 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19232 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19233 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19234 { (exit 1); exit 1; }; }
19236 else
19237 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19238 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19241 # check for hypot() in math library
19242 LIBS_SAVE=$LIBS
19243 LIBS="$LIBS $LIBM"
19245 for ac_func in hypot
19247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19248 echo "$as_me:$LINENO: checking for $ac_func" >&5
19249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19250 if eval "test \"\${$as_ac_var+set}\" = set"; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define $ac_func innocuous_$ac_func
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19268 #ifdef __STDC__
19269 # include <limits.h>
19270 #else
19271 # include <assert.h>
19272 #endif
19274 #undef $ac_func
19276 /* Override any gcc2 internal prototype to avoid an error. */
19277 #ifdef __cplusplus
19278 extern "C"
19280 #endif
19281 /* We use char because int might match the return type of a gcc2
19282 builtin and then its argument prototype would still apply. */
19283 char $ac_func ();
19284 /* The GNU C library defines this for functions which it implements
19285 to always fail with ENOSYS. Some functions are actually named
19286 something starting with __ and the normal name is an alias. */
19287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19288 choke me
19289 #else
19290 char (*f) () = $ac_func;
19291 #endif
19292 #ifdef __cplusplus
19294 #endif
19297 main ()
19299 return f != $ac_func;
19301 return 0;
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 eval "$as_ac_var=yes"
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 eval "$as_ac_var=no"
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19338 if test `eval echo '${'$as_ac_var'}'` = yes; then
19339 cat >>confdefs.h <<_ACEOF
19340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19341 _ACEOF
19343 else
19344 case $LIBOBJS in
19345 "$ac_func.$ac_objext" | \
19346 *" $ac_func.$ac_objext" | \
19347 "$ac_func.$ac_objext "* | \
19348 *" $ac_func.$ac_objext "* ) ;;
19349 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19350 esac
19353 done
19356 LIBS=$LIBS_SAVE
19358 # check for wchar.h
19359 if test "${ac_cv_header_wchar_h+set}" = set; then
19360 echo "$as_me:$LINENO: checking for wchar.h" >&5
19361 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19362 if test "${ac_cv_header_wchar_h+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19366 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19367 else
19368 # Is the header compilable?
19369 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19370 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 $ac_includes_default
19378 #include <wchar.h>
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_header_compiler=yes
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_header_compiler=no
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19411 echo "${ECHO_T}$ac_header_compiler" >&6
19413 # Is the header present?
19414 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19415 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h. */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 #include <wchar.h>
19423 _ACEOF
19424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } >/dev/null; then
19432 if test -s conftest.err; then
19433 ac_cpp_err=$ac_c_preproc_warn_flag
19434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19435 else
19436 ac_cpp_err=
19438 else
19439 ac_cpp_err=yes
19441 if test -z "$ac_cpp_err"; then
19442 ac_header_preproc=yes
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_header_preproc=no
19449 rm -f conftest.err conftest.$ac_ext
19450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451 echo "${ECHO_T}$ac_header_preproc" >&6
19453 # So? What about this header?
19454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455 yes:no: )
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19457 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19459 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19460 ac_header_preproc=yes
19462 no:yes:* )
19463 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19464 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19466 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19468 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19470 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19472 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19474 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19476 cat <<\_ASBOX
19477 ## ------------------------------------------------ ##
19478 ## Report this to http://www.python.org/python-bugs ##
19479 ## ------------------------------------------------ ##
19480 _ASBOX
19482 sed "s/^/$as_me: WARNING: /" >&2
19484 esac
19485 echo "$as_me:$LINENO: checking for wchar.h" >&5
19486 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19487 if test "${ac_cv_header_wchar_h+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 ac_cv_header_wchar_h=$ac_header_preproc
19492 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19493 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19496 if test $ac_cv_header_wchar_h = yes; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_WCHAR_H 1
19501 _ACEOF
19503 wchar_h="yes"
19505 else
19506 wchar_h="no"
19512 # determine wchar_t size
19513 if test "$wchar_h" = yes
19514 then
19515 echo "$as_me:$LINENO: checking for wchar_t" >&5
19516 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19517 if test "${ac_cv_type_wchar_t+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h. */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526 #include <wchar.h>
19529 main ()
19531 if ((wchar_t *) 0)
19532 return 0;
19533 if (sizeof (wchar_t))
19534 return 0;
19536 return 0;
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19541 (eval $ac_compile) 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_type_wchar_t=yes
19562 else
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_cv_type_wchar_t=no
19568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19571 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19573 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19574 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19575 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 if test "$ac_cv_type_wchar_t" = yes; then
19579 # The cast to unsigned long works around a bug in the HP C Compiler
19580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19582 # This bug is HP SR number 8606223364.
19583 if test "$cross_compiling" = yes; then
19584 # Depending upon the size, compute the lo and hi bounds.
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <wchar.h>
19594 main ()
19596 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19597 test_array [0] = 0
19600 return 0;
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605 (eval $ac_compile) 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest.$ac_objext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_lo=0 ac_mid=0
19626 while :; do
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h. */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <wchar.h>
19636 main ()
19638 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19639 test_array [0] = 0
19642 return 0;
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag"
19655 || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_hi=$ac_mid; break
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_lo=`expr $ac_mid + 1`
19673 if test $ac_lo -le $ac_mid; then
19674 ac_lo= ac_hi=
19675 break
19677 ac_mid=`expr 2 '*' $ac_mid + 1`
19679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680 done
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #include <wchar.h>
19694 main ()
19696 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19697 test_array [0] = 0
19700 return 0;
19702 _ACEOF
19703 rm -f conftest.$ac_objext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_hi=-1 ac_mid=-1
19726 while :; do
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <wchar.h>
19736 main ()
19738 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19739 test_array [0] = 0
19742 return 0;
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_lo=$ac_mid; break
19768 else
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_hi=`expr '(' $ac_mid ')' - 1`
19773 if test $ac_mid -le $ac_hi; then
19774 ac_lo= ac_hi=
19775 break
19777 ac_mid=`expr 2 '*' $ac_mid`
19779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19780 done
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_lo= ac_hi=
19787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19790 # Binary search between lo and hi bounds.
19791 while test "x$ac_lo" != "x$ac_hi"; do
19792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 #include <wchar.h>
19802 main ()
19804 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19805 test_array [0] = 0
19808 return 0;
19810 _ACEOF
19811 rm -f conftest.$ac_objext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19813 (eval $ac_compile) 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -z "$ac_c_werror_flag"
19821 || test ! -s conftest.err'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; } &&
19827 { ac_try='test -s conftest.$ac_objext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_hi=$ac_mid
19834 else
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_lo=`expr '(' $ac_mid ')' + 1`
19840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19841 done
19842 case $ac_lo in
19843 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19844 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19845 See \`config.log' for more details." >&5
19846 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19847 See \`config.log' for more details." >&2;}
19848 { (exit 1); exit 1; }; } ;;
19849 esac
19850 else
19851 if test "$cross_compiling" = yes; then
19852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19853 See \`config.log' for more details." >&5
19854 echo "$as_me: error: cannot run test program while cross compiling
19855 See \`config.log' for more details." >&2;}
19856 { (exit 1); exit 1; }; }
19857 else
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 #include <wchar.h>
19866 long longval () { return (long) (sizeof (wchar_t)); }
19867 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19868 #include <stdio.h>
19869 #include <stdlib.h>
19871 main ()
19874 FILE *f = fopen ("conftest.val", "w");
19875 if (! f)
19876 exit (1);
19877 if (((long) (sizeof (wchar_t))) < 0)
19879 long i = longval ();
19880 if (i != ((long) (sizeof (wchar_t))))
19881 exit (1);
19882 fprintf (f, "%ld\n", i);
19884 else
19886 unsigned long i = ulongval ();
19887 if (i != ((long) (sizeof (wchar_t))))
19888 exit (1);
19889 fprintf (f, "%lu\n", i);
19891 exit (ferror (f) || fclose (f) != 0);
19894 return 0;
19896 _ACEOF
19897 rm -f conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_sizeof_wchar_t=`cat conftest.val`
19909 else
19910 echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ( exit $ac_status )
19915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19916 See \`config.log' for more details." >&5
19917 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19918 See \`config.log' for more details." >&2;}
19919 { (exit 1); exit 1; }; }
19921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19924 rm -f conftest.val
19925 else
19926 ac_cv_sizeof_wchar_t=0
19929 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19930 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19931 cat >>confdefs.h <<_ACEOF
19932 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19933 _ACEOF
19938 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19939 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19940 have_ucs4_tcl=no
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 #include <tcl.h>
19949 #if TCL_UTF_MAX != 6
19950 # error "NOT UCS4_TCL"
19951 #endif
19953 main ()
19957 return 0;
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19973 ac_status=$?
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try='test -s conftest.$ac_objext'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19984 cat >>confdefs.h <<\_ACEOF
19985 #define HAVE_UCS4_TCL 1
19986 _ACEOF
19988 have_ucs4_tcl=yes
19990 else
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19996 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19997 echo "${ECHO_T}$have_ucs4_tcl" >&6
19999 # check whether wchar_t is signed or not
20000 if test "$wchar_h" = yes
20001 then
20002 # check whether wchar_t is signed or not
20003 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20004 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20005 if test "${ac_cv_wchar_t_signed+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20009 if test "$cross_compiling" = yes; then
20010 ac_cv_wchar_t_signed=yes
20011 else
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 #include <wchar.h>
20020 int main()
20022 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20025 _ACEOF
20026 rm -f conftest$ac_exeext
20027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028 (eval $ac_link) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_wchar_t_signed=yes
20038 else
20039 echo "$as_me: program exited with status $ac_status" >&5
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20043 ( exit $ac_status )
20044 ac_cv_wchar_t_signed=no
20046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20051 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20054 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20055 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20056 # Check whether --enable-unicode or --disable-unicode was given.
20057 if test "${enable_unicode+set}" = set; then
20058 enableval="$enable_unicode"
20060 else
20061 enable_unicode=yes
20064 if test $enable_unicode = yes
20065 then
20066 # Without any arguments, Py_UNICODE defaults to two-byte mode
20067 case "$have_ucs4_tcl" in
20068 yes) enable_unicode="ucs4"
20070 *) enable_unicode="ucs2"
20072 esac
20077 case "$enable_unicode" in
20078 ucs2) unicode_size="2"
20079 cat >>confdefs.h <<\_ACEOF
20080 #define Py_UNICODE_SIZE 2
20081 _ACEOF
20084 ucs4) unicode_size="4"
20085 cat >>confdefs.h <<\_ACEOF
20086 #define Py_UNICODE_SIZE 4
20087 _ACEOF
20090 esac
20096 if test "$enable_unicode" = "no"
20097 then
20098 UNICODE_OBJS=""
20099 echo "$as_me:$LINENO: result: not used" >&5
20100 echo "${ECHO_T}not used" >&6
20101 else
20102 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20104 cat >>confdefs.h <<\_ACEOF
20105 #define Py_USING_UNICODE 1
20106 _ACEOF
20109 # wchar_t is only usable if it maps to an unsigned type
20110 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20111 -a "$ac_cv_wchar_t_signed" = "no"
20112 then
20113 PY_UNICODE_TYPE="wchar_t"
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_USABLE_WCHAR_T 1
20117 _ACEOF
20119 cat >>confdefs.h <<\_ACEOF
20120 #define PY_UNICODE_TYPE wchar_t
20121 _ACEOF
20123 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20124 then
20125 PY_UNICODE_TYPE="unsigned short"
20126 cat >>confdefs.h <<\_ACEOF
20127 #define PY_UNICODE_TYPE unsigned short
20128 _ACEOF
20130 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20131 then
20132 PY_UNICODE_TYPE="unsigned long"
20133 cat >>confdefs.h <<\_ACEOF
20134 #define PY_UNICODE_TYPE unsigned long
20135 _ACEOF
20137 else
20138 PY_UNICODE_TYPE="no type found"
20140 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20141 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20144 # check for endianness
20145 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20146 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20147 if test "${ac_cv_c_bigendian+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 # See if sys/param.h defines the BYTE_ORDER macro.
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 #include <sys/types.h>
20158 #include <sys/param.h>
20161 main ()
20163 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20164 bogus endian macros
20165 #endif
20168 return 0;
20170 _ACEOF
20171 rm -f conftest.$ac_objext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20173 (eval $ac_compile) 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
20180 { ac_try='test -z "$ac_c_werror_flag"
20181 || test ! -s conftest.err'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try='test -s conftest.$ac_objext'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 # It does; now see whether it defined to BIG_ENDIAN or not.
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 #include <sys/types.h>
20201 #include <sys/param.h>
20204 main ()
20206 #if BYTE_ORDER != BIG_ENDIAN
20207 not big endian
20208 #endif
20211 return 0;
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -z "$ac_c_werror_flag"
20224 || test ! -s conftest.err'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_c_bigendian=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_c_bigendian=no
20243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 # It does not; compile a test program.
20249 if test "$cross_compiling" = yes; then
20250 # try to guess the endianness by grepping values into an object file
20251 ac_cv_c_bigendian=unknown
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20259 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20260 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20261 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20262 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20263 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20265 main ()
20267 _ascii (); _ebcdic ();
20269 return 0;
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try='test -z "$ac_c_werror_flag"
20282 || test ! -s conftest.err'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20295 ac_cv_c_bigendian=yes
20297 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20298 if test "$ac_cv_c_bigendian" = unknown; then
20299 ac_cv_c_bigendian=no
20300 else
20301 # finding both strings is unlikely to happen, but who knows?
20302 ac_cv_c_bigendian=unknown
20305 else
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20311 else
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 main ()
20321 /* Are we little or big endian? From Harbison&Steele. */
20322 union
20324 long l;
20325 char c[sizeof (long)];
20326 } u;
20327 u.l = 1;
20328 exit (u.c[sizeof (long) - 1] == 1);
20330 _ACEOF
20331 rm -f conftest$ac_exeext
20332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20333 (eval $ac_link) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 ac_cv_c_bigendian=no
20343 else
20344 echo "$as_me: program exited with status $ac_status" >&5
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ( exit $ac_status )
20349 ac_cv_c_bigendian=yes
20351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20357 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20358 case $ac_cv_c_bigendian in
20359 yes)
20361 cat >>confdefs.h <<\_ACEOF
20362 #define WORDS_BIGENDIAN 1
20363 _ACEOF
20368 { { echo "$as_me:$LINENO: error: unknown endianness
20369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20370 echo "$as_me: error: unknown endianness
20371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20372 { (exit 1); exit 1; }; } ;;
20373 esac
20376 # Check whether right shifting a negative integer extends the sign bit
20377 # or fills with zeros (like the Cray J90, according to Tim Peters).
20378 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20379 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20380 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20384 if test "$cross_compiling" = yes; then
20385 ac_cv_rshift_extends_sign=yes
20386 else
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20394 int main()
20396 exit(((-1)>>3 == -1) ? 0 : 1);
20399 _ACEOF
20400 rm -f conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_rshift_extends_sign=yes
20412 else
20413 echo "$as_me: program exited with status $ac_status" >&5
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ( exit $ac_status )
20418 ac_cv_rshift_extends_sign=no
20420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20424 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20425 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20426 if test "$ac_cv_rshift_extends_sign" = no
20427 then
20429 cat >>confdefs.h <<\_ACEOF
20430 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20431 _ACEOF
20435 # check for getc_unlocked and related locking functions
20436 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20437 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20438 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 #include <stdio.h>
20450 main ()
20453 FILE *f = fopen("/dev/null", "r");
20454 flockfile(f);
20455 getc_unlocked(f);
20456 funlockfile(f);
20459 return 0;
20461 _ACEOF
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest$ac_exeext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_have_getc_unlocked=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_have_getc_unlocked=no
20491 rm -f conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20495 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20496 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20497 if test "$ac_cv_have_getc_unlocked" = yes
20498 then
20500 cat >>confdefs.h <<\_ACEOF
20501 #define HAVE_GETC_UNLOCKED 1
20502 _ACEOF
20506 # check where readline lives
20507 # save the value of LIBS so we don't actually link Python with readline
20508 LIBS_no_readline=$LIBS
20510 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20511 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20512 if test "${ac_cv_lib_readline_readline+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 ac_check_lib_save_LIBS=$LIBS
20516 LIBS="-lreadline $LIBS"
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 /* Override any gcc2 internal prototype to avoid an error. */
20525 #ifdef __cplusplus
20526 extern "C"
20527 #endif
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20530 char readline ();
20532 main ()
20534 readline ();
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag"
20549 || test ! -s conftest.err'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest$ac_exeext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_lib_readline_readline=yes
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 ac_cv_lib_readline_readline=no
20568 rm -f conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20570 LIBS=$ac_check_lib_save_LIBS
20572 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20573 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20574 if test $ac_cv_lib_readline_readline = yes; then
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_LIBREADLINE 1
20577 _ACEOF
20579 LIBS="-lreadline $LIBS"
20583 if test "$ac_cv_have_readline_readline" = no
20584 then
20586 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20587 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20588 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591 ac_check_lib_save_LIBS=$LIBS
20592 LIBS="-ltermcap $LIBS"
20593 cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h. */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20600 /* Override any gcc2 internal prototype to avoid an error. */
20601 #ifdef __cplusplus
20602 extern "C"
20603 #endif
20604 /* We use char because int might match the return type of a gcc2
20605 builtin and then its argument prototype would still apply. */
20606 char readline ();
20608 main ()
20610 readline ();
20612 return 0;
20614 _ACEOF
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20617 (eval $ac_link) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest$ac_exeext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 ac_cv_lib_termcap_readline=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ac_cv_lib_termcap_readline=no
20644 rm -f conftest.err conftest.$ac_objext \
20645 conftest$ac_exeext conftest.$ac_ext
20646 LIBS=$ac_check_lib_save_LIBS
20648 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20649 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20650 if test $ac_cv_lib_termcap_readline = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652 #define HAVE_LIBTERMCAP 1
20653 _ACEOF
20655 LIBS="-ltermcap $LIBS"
20661 # check for readline 2.1
20662 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20663 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20664 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 ac_check_lib_save_LIBS=$LIBS
20668 LIBS="-lreadline $LIBS"
20669 cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h. */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 /* Override any gcc2 internal prototype to avoid an error. */
20677 #ifdef __cplusplus
20678 extern "C"
20679 #endif
20680 /* We use char because int might match the return type of a gcc2
20681 builtin and then its argument prototype would still apply. */
20682 char rl_callback_handler_install ();
20684 main ()
20686 rl_callback_handler_install ();
20688 return 0;
20690 _ACEOF
20691 rm -f conftest.$ac_objext conftest$ac_exeext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20693 (eval $ac_link) 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_c_werror_flag"
20701 || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest$ac_exeext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_lib_readline_rl_callback_handler_install=yes
20714 else
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ac_cv_lib_readline_rl_callback_handler_install=no
20720 rm -f conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 LIBS=$ac_check_lib_save_LIBS
20724 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20725 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20726 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20728 cat >>confdefs.h <<\_ACEOF
20729 #define HAVE_RL_CALLBACK 1
20730 _ACEOF
20735 # check for readline 2.2
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h. */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <readline/readline.h>
20743 _ACEOF
20744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } >/dev/null; then
20752 if test -s conftest.err; then
20753 ac_cpp_err=$ac_c_preproc_warn_flag
20754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20755 else
20756 ac_cpp_err=
20758 else
20759 ac_cpp_err=yes
20761 if test -z "$ac_cpp_err"; then
20762 have_readline=yes
20763 else
20764 echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20767 have_readline=no
20769 rm -f conftest.err conftest.$ac_ext
20770 if test $have_readline = yes
20771 then
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h. */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 #include <readline/readline.h>
20780 _ACEOF
20781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20782 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20786 _ACEOF
20789 rm -f conftest*
20793 # check for readline 4.0
20794 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20795 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20796 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lreadline $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 /* Override any gcc2 internal prototype to avoid an error. */
20809 #ifdef __cplusplus
20810 extern "C"
20811 #endif
20812 /* We use char because int might match the return type of a gcc2
20813 builtin and then its argument prototype would still apply. */
20814 char rl_pre_input_hook ();
20816 main ()
20818 rl_pre_input_hook ();
20820 return 0;
20822 _ACEOF
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20825 (eval $ac_link) 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try='test -s conftest$ac_exeext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 ac_cv_lib_readline_rl_pre_input_hook=yes
20846 else
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_cv_lib_readline_rl_pre_input_hook=no
20852 rm -f conftest.err conftest.$ac_objext \
20853 conftest$ac_exeext conftest.$ac_ext
20854 LIBS=$ac_check_lib_save_LIBS
20856 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20857 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20858 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_RL_PRE_INPUT_HOOK 1
20862 _ACEOF
20867 # check for readline 4.2
20868 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20869 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20870 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873 ac_check_lib_save_LIBS=$LIBS
20874 LIBS="-lreadline $LIBS"
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20882 /* Override any gcc2 internal prototype to avoid an error. */
20883 #ifdef __cplusplus
20884 extern "C"
20885 #endif
20886 /* We use char because int might match the return type of a gcc2
20887 builtin and then its argument prototype would still apply. */
20888 char rl_completion_matches ();
20890 main ()
20892 rl_completion_matches ();
20894 return 0;
20896 _ACEOF
20897 rm -f conftest.$ac_objext conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try='test -z "$ac_c_werror_flag"
20907 || test ! -s conftest.err'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; } &&
20913 { ac_try='test -s conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 ac_cv_lib_readline_rl_completion_matches=yes
20920 else
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_cv_lib_readline_rl_completion_matches=no
20926 rm -f conftest.err conftest.$ac_objext \
20927 conftest$ac_exeext conftest.$ac_ext
20928 LIBS=$ac_check_lib_save_LIBS
20930 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20931 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20932 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_RL_COMPLETION_MATCHES 1
20936 _ACEOF
20941 # also in readline 4.2
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 #include <readline/readline.h>
20949 _ACEOF
20950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev/null; then
20958 if test -s conftest.err; then
20959 ac_cpp_err=$ac_c_preproc_warn_flag
20960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20961 else
20962 ac_cpp_err=
20964 else
20965 ac_cpp_err=yes
20967 if test -z "$ac_cpp_err"; then
20968 have_readline=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 have_readline=no
20975 rm -f conftest.err conftest.$ac_ext
20976 if test $have_readline = yes
20977 then
20978 cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h. */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 #include <readline/readline.h>
20986 _ACEOF
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20990 cat >>confdefs.h <<\_ACEOF
20991 #define HAVE_RL_CATCH_SIGNAL 1
20992 _ACEOF
20995 rm -f conftest*
20999 # End of readline checks: restore LIBS
21000 LIBS=$LIBS_no_readline
21002 echo "$as_me:$LINENO: checking for broken nice()" >&5
21003 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21004 if test "${ac_cv_broken_nice+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21008 if test "$cross_compiling" = yes; then
21009 ac_cv_broken_nice=no
21010 else
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 int main()
21020 int val1 = nice(1);
21021 if (val1 != -1 && val1 == nice(2))
21022 exit(0);
21023 exit(1);
21026 _ACEOF
21027 rm -f conftest$ac_exeext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21029 (eval $ac_link) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 ac_cv_broken_nice=yes
21039 else
21040 echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ( exit $ac_status )
21045 ac_cv_broken_nice=no
21047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21051 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21052 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21053 if test "$ac_cv_broken_nice" = yes
21054 then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_BROKEN_NICE 1
21058 _ACEOF
21062 echo "$as_me:$LINENO: checking for broken poll()" >&5
21063 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21064 if test "$cross_compiling" = yes; then
21065 ac_cv_broken_poll=no
21066 else
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21074 #include <poll.h>
21076 int main (void)
21078 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21080 close (42);
21082 int poll_test = poll (&poll_struct, 1, 0);
21084 if (poll_test < 0)
21086 exit(0);
21088 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21090 exit(0);
21092 else
21094 exit(1);
21098 _ACEOF
21099 rm -f conftest$ac_exeext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21101 (eval $ac_link) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_broken_poll=yes
21111 else
21112 echo "$as_me: program exited with status $ac_status" >&5
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ( exit $ac_status )
21117 ac_cv_broken_poll=no
21119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21121 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21122 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21123 if test "$ac_cv_broken_poll" = yes
21124 then
21126 cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_BROKEN_POLL 1
21128 _ACEOF
21132 # Before we can test tzset, we need to check if struct tm has a tm_zone
21133 # (which is not required by ISO C or UNIX spec) and/or if we support
21134 # tzname[]
21135 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21136 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21137 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <sys/types.h>
21147 #include <$ac_cv_struct_tm>
21151 main ()
21153 static struct tm ac_aggr;
21154 if (ac_aggr.tm_zone)
21155 return 0;
21157 return 0;
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_member_struct_tm_tm_zone=yes
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h. */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 #include <sys/types.h>
21194 #include <$ac_cv_struct_tm>
21198 main ()
21200 static struct tm ac_aggr;
21201 if (sizeof ac_aggr.tm_zone)
21202 return 0;
21204 return 0;
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_member_struct_tm_tm_zone=yes
21230 else
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_cv_member_struct_tm_tm_zone=no
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21242 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define HAVE_STRUCT_TM_TM_ZONE 1
21246 _ACEOF
21251 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_TM_ZONE 1
21255 _ACEOF
21257 else
21258 echo "$as_me:$LINENO: checking for tzname" >&5
21259 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21260 if test "${ac_cv_var_tzname+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 #include <time.h>
21270 #ifndef tzname /* For SGI. */
21271 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21272 #endif
21275 main ()
21277 atoi(*tzname);
21279 return 0;
21281 _ACEOF
21282 rm -f conftest.$ac_objext conftest$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284 (eval $ac_link) 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_c_werror_flag"
21292 || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_var_tzname=yes
21305 else
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_var_tzname=no
21311 rm -f conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21314 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21315 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21316 if test $ac_cv_var_tzname = yes; then
21318 cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_TZNAME 1
21320 _ACEOF
21326 # check tzset(3) exists and works like we expect it to
21327 echo "$as_me:$LINENO: checking for working tzset()" >&5
21328 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21329 if test "${ac_cv_working_tzset+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21333 if test "$cross_compiling" = yes; then
21334 ac_cv_working_tzset=no
21335 else
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21343 #include <stdlib.h>
21344 #include <time.h>
21345 #include <string.h>
21347 #if HAVE_TZNAME
21348 extern char *tzname[];
21349 #endif
21351 int main()
21353 /* Note that we need to ensure that not only does tzset(3)
21354 do 'something' with localtime, but it works as documented
21355 in the library reference and as expected by the test suite.
21356 This includes making sure that tzname is set properly if
21357 tm->tm_zone does not exist since it is the alternative way
21358 of getting timezone info.
21360 Red Hat 6.2 doesn't understand the southern hemisphere
21361 after New Year's Day.
21364 time_t groundhogday = 1044144000; /* GMT-based */
21365 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21367 putenv("TZ=UTC+0");
21368 tzset();
21369 if (localtime(&groundhogday)->tm_hour != 0)
21370 exit(1);
21371 #if HAVE_TZNAME
21372 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21373 if (strcmp(tzname[0], "UTC") ||
21374 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21375 exit(1);
21376 #endif
21378 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21379 tzset();
21380 if (localtime(&groundhogday)->tm_hour != 19)
21381 exit(1);
21382 #if HAVE_TZNAME
21383 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21384 exit(1);
21385 #endif
21387 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21388 tzset();
21389 if (localtime(&groundhogday)->tm_hour != 11)
21390 exit(1);
21391 #if HAVE_TZNAME
21392 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21393 exit(1);
21394 #endif
21396 #if HAVE_STRUCT_TM_TM_ZONE
21397 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21398 exit(1);
21399 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21400 exit(1);
21401 #endif
21403 exit(0);
21406 _ACEOF
21407 rm -f conftest$ac_exeext
21408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21409 (eval $ac_link) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_working_tzset=yes
21419 else
21420 echo "$as_me: program exited with status $ac_status" >&5
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 ( exit $ac_status )
21425 ac_cv_working_tzset=no
21427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21432 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21433 if test "$ac_cv_working_tzset" = yes
21434 then
21436 cat >>confdefs.h <<\_ACEOF
21437 #define HAVE_WORKING_TZSET 1
21438 _ACEOF
21442 # Look for subsecond timestamps in struct stat
21443 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21444 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21445 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include <sys/stat.h>
21456 main ()
21459 struct stat st;
21460 st.st_mtim.tv_nsec = 1;
21463 return 0;
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468 (eval $ac_compile) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_c_werror_flag"
21476 || test ! -s conftest.err'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 ac_cv_stat_tv_nsec=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ac_cv_stat_tv_nsec=no
21495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21498 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21499 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21500 if test "$ac_cv_stat_tv_nsec" = yes
21501 then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_STAT_TV_NSEC 1
21505 _ACEOF
21509 # Look for BSD style subsecond timestamps in struct stat
21510 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21511 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21512 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 #include <sys/stat.h>
21523 main ()
21526 struct stat st;
21527 st.st_mtimespec.tv_nsec = 1;
21530 return 0;
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try='test -z "$ac_c_werror_flag"
21543 || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_stat_tv_nsec2=yes
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_cv_stat_tv_nsec2=no
21562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21565 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21566 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21567 if test "$ac_cv_stat_tv_nsec2" = yes
21568 then
21570 cat >>confdefs.h <<\_ACEOF
21571 #define HAVE_STAT_TV_NSEC2 1
21572 _ACEOF
21576 # On HP/UX 11.0, mvwdelch is a block with a return statement
21577 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21578 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21579 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <curses.h>
21590 main ()
21593 int rtn;
21594 rtn = mvwdelch(0,0,0);
21597 return 0;
21599 _ACEOF
21600 rm -f conftest.$ac_objext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -z "$ac_c_werror_flag"
21610 || test ! -s conftest.err'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_mvwdelch_is_expression=yes
21623 else
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_cv_mvwdelch_is_expression=no
21629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21632 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21633 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21635 if test "$ac_cv_mvwdelch_is_expression" = yes
21636 then
21638 cat >>confdefs.h <<\_ACEOF
21639 #define MVWDELCH_IS_EXPRESSION 1
21640 _ACEOF
21644 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21645 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21646 if test "${ac_cv_window_has_flags+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 #include <curses.h>
21657 main ()
21660 WINDOW *w;
21661 w->_flags = 0;
21664 return 0;
21666 _ACEOF
21667 rm -f conftest.$ac_objext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
21676 { ac_try='test -z "$ac_c_werror_flag"
21677 || test ! -s conftest.err'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } &&
21683 { ac_try='test -s conftest.$ac_objext'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }; then
21689 ac_cv_window_has_flags=yes
21690 else
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_cv_window_has_flags=no
21696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21700 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21703 if test "$ac_cv_window_has_flags" = yes
21704 then
21706 cat >>confdefs.h <<\_ACEOF
21707 #define WINDOW_HAS_FLAGS 1
21708 _ACEOF
21712 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21713 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21715 if test -e /dev/ptmx
21716 then
21717 echo "$as_me:$LINENO: result: yes" >&5
21718 echo "${ECHO_T}yes" >&6
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_DEV_PTMX 1
21722 _ACEOF
21724 else
21725 echo "$as_me:$LINENO: result: no" >&5
21726 echo "${ECHO_T}no" >&6
21729 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21730 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21732 if test -e /dev/ptc
21733 then
21734 echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_DEV_PTC 1
21739 _ACEOF
21741 else
21742 echo "$as_me:$LINENO: result: no" >&5
21743 echo "${ECHO_T}no" >&6
21746 echo "$as_me:$LINENO: checking for socklen_t" >&5
21747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21748 if test "${ac_cv_type_socklen_t+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21758 #ifdef HAVE_SYS_TYPES_H
21759 #include <sys/types.h>
21760 #endif
21761 #ifdef HAVE_SYS_SOCKET_H
21762 #include <sys/socket.h>
21763 #endif
21767 main ()
21769 if ((socklen_t *) 0)
21770 return 0;
21771 if (sizeof (socklen_t))
21772 return 0;
21774 return 0;
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779 (eval $ac_compile) 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_type_socklen_t=yes
21800 else
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_type_socklen_t=no
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21809 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21810 if test $ac_cv_type_socklen_t = yes; then
21812 else
21814 cat >>confdefs.h <<\_ACEOF
21815 #define socklen_t int
21816 _ACEOF
21823 for h in `(cd $srcdir;echo Python/thread_*.h)`
21825 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21826 done
21829 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21830 echo "$as_me:$LINENO: checking for build directories" >&5
21831 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21832 for dir in $SRCDIRS; do
21833 if test ! -d $dir; then
21834 mkdir $dir
21836 done
21837 echo "$as_me:$LINENO: result: done" >&5
21838 echo "${ECHO_T}done" >&6
21840 # generate output files
21841 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21843 cat >confcache <<\_ACEOF
21844 # This file is a shell script that caches the results of configure
21845 # tests run on this system so they can be shared between configure
21846 # scripts and configure runs, see configure's option --config-cache.
21847 # It is not useful on other systems. If it contains results you don't
21848 # want to keep, you may remove or edit it.
21850 # config.status only pays attention to the cache file if you give it
21851 # the --recheck option to rerun configure.
21853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21855 # following values.
21857 _ACEOF
21859 # The following way of writing the cache mishandles newlines in values,
21860 # but we know of no workaround that is simple, portable, and efficient.
21861 # So, don't put newlines in cache variables' values.
21862 # Ultrix sh set writes to stderr and can't be redirected directly,
21863 # and sets the high bit in the cache file unless we assign to the vars.
21865 (set) 2>&1 |
21866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21867 *ac_space=\ *)
21868 # `set' does not quote correctly, so add quotes (double-quote
21869 # substitution turns \\\\ into \\, and sed turns \\ into \).
21870 sed -n \
21871 "s/'/'\\\\''/g;
21872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21875 # `set' quotes correctly as required by POSIX, so do not add quotes.
21876 sed -n \
21877 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21879 esac;
21881 sed '
21882 t clear
21883 : clear
21884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21885 t end
21886 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21887 : end' >>confcache
21888 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21889 if test -w $cache_file; then
21890 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21891 cat confcache >$cache_file
21892 else
21893 echo "not updating unwritable cache $cache_file"
21896 rm -f confcache
21898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21899 # Let make expand exec_prefix.
21900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21904 # trailing colons and then remove the whole line if VPATH becomes empty
21905 # (actually we leave an empty line to preserve line numbers).
21906 if test "x$srcdir" = x.; then
21907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21908 s/:*\$(srcdir):*/:/;
21909 s/:*\${srcdir}:*/:/;
21910 s/:*@srcdir@:*/:/;
21911 s/^\([^=]*=[ ]*\):*/\1/;
21912 s/:*$//;
21913 s/^[^=]*=[ ]*$//;
21917 DEFS=-DHAVE_CONFIG_H
21919 ac_libobjs=
21920 ac_ltlibobjs=
21921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21922 # 1. Remove the extension, and $U if already installed.
21923 ac_i=`echo "$ac_i" |
21924 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21925 # 2. Add them.
21926 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21927 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21928 done
21929 LIBOBJS=$ac_libobjs
21931 LTLIBOBJS=$ac_ltlibobjs
21935 : ${CONFIG_STATUS=./config.status}
21936 ac_clean_files_save=$ac_clean_files
21937 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21938 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21939 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21940 cat >$CONFIG_STATUS <<_ACEOF
21941 #! $SHELL
21942 # Generated by $as_me.
21943 # Run this file to recreate the current configuration.
21944 # Compiler output produced by configure, useful for debugging
21945 # configure, is in config.log if it exists.
21947 debug=false
21948 ac_cs_recheck=false
21949 ac_cs_silent=false
21950 SHELL=\${CONFIG_SHELL-$SHELL}
21951 _ACEOF
21953 cat >>$CONFIG_STATUS <<\_ACEOF
21954 ## --------------------- ##
21955 ## M4sh Initialization. ##
21956 ## --------------------- ##
21958 # Be Bourne compatible
21959 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21960 emulate sh
21961 NULLCMD=:
21962 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21963 # is contrary to our usage. Disable this feature.
21964 alias -g '${1+"$@"}'='"$@"'
21965 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21966 set -o posix
21968 DUALCASE=1; export DUALCASE # for MKS sh
21970 # Support unset when possible.
21971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21972 as_unset=unset
21973 else
21974 as_unset=false
21978 # Work around bugs in pre-3.0 UWIN ksh.
21979 $as_unset ENV MAIL MAILPATH
21980 PS1='$ '
21981 PS2='> '
21982 PS4='+ '
21984 # NLS nuisances.
21985 for as_var in \
21986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21988 LC_TELEPHONE LC_TIME
21990 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21991 eval $as_var=C; export $as_var
21992 else
21993 $as_unset $as_var
21995 done
21997 # Required to use basename.
21998 if expr a : '\(a\)' >/dev/null 2>&1; then
21999 as_expr=expr
22000 else
22001 as_expr=false
22004 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22005 as_basename=basename
22006 else
22007 as_basename=false
22011 # Name of the executable.
22012 as_me=`$as_basename "$0" ||
22013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22014 X"$0" : 'X\(//\)$' \| \
22015 X"$0" : 'X\(/\)$' \| \
22016 . : '\(.\)' 2>/dev/null ||
22017 echo X/"$0" |
22018 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22019 /^X\/\(\/\/\)$/{ s//\1/; q; }
22020 /^X\/\(\/\).*/{ s//\1/; q; }
22021 s/.*/./; q'`
22024 # PATH needs CR, and LINENO needs CR and PATH.
22025 # Avoid depending upon Character Ranges.
22026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22029 as_cr_digits='0123456789'
22030 as_cr_alnum=$as_cr_Letters$as_cr_digits
22032 # The user is always right.
22033 if test "${PATH_SEPARATOR+set}" != set; then
22034 echo "#! /bin/sh" >conf$$.sh
22035 echo "exit 0" >>conf$$.sh
22036 chmod +x conf$$.sh
22037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22038 PATH_SEPARATOR=';'
22039 else
22040 PATH_SEPARATOR=:
22042 rm -f conf$$.sh
22046 as_lineno_1=$LINENO
22047 as_lineno_2=$LINENO
22048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22049 test "x$as_lineno_1" != "x$as_lineno_2" &&
22050 test "x$as_lineno_3" = "x$as_lineno_2" || {
22051 # Find who we are. Look in the path if we contain no path at all
22052 # relative or not.
22053 case $0 in
22054 *[\\/]* ) as_myself=$0 ;;
22055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22056 for as_dir in $PATH
22058 IFS=$as_save_IFS
22059 test -z "$as_dir" && as_dir=.
22060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22061 done
22064 esac
22065 # We did not find ourselves, most probably we were run as `sh COMMAND'
22066 # in which case we are not to be found in the path.
22067 if test "x$as_myself" = x; then
22068 as_myself=$0
22070 if test ! -f "$as_myself"; then
22071 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22072 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22073 { (exit 1); exit 1; }; }
22075 case $CONFIG_SHELL in
22077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22078 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22080 IFS=$as_save_IFS
22081 test -z "$as_dir" && as_dir=.
22082 for as_base in sh bash ksh sh5; do
22083 case $as_dir in
22085 if ("$as_dir/$as_base" -c '
22086 as_lineno_1=$LINENO
22087 as_lineno_2=$LINENO
22088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22089 test "x$as_lineno_1" != "x$as_lineno_2" &&
22090 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22091 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22092 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22093 CONFIG_SHELL=$as_dir/$as_base
22094 export CONFIG_SHELL
22095 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22096 fi;;
22097 esac
22098 done
22099 done
22101 esac
22103 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22104 # uniformly replaced by the line number. The first 'sed' inserts a
22105 # line-number line before each line; the second 'sed' does the real
22106 # work. The second script uses 'N' to pair each line-number line
22107 # with the numbered line, and appends trailing '-' during
22108 # substitution so that $LINENO is not a special case at line end.
22109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22110 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22111 sed '=' <$as_myself |
22112 sed '
22114 s,$,-,
22115 : loop
22116 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22117 t loop
22118 s,-$,,
22119 s,^['$as_cr_digits']*\n,,
22120 ' >$as_me.lineno &&
22121 chmod +x $as_me.lineno ||
22122 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22123 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22124 { (exit 1); exit 1; }; }
22126 # Don't try to exec as it changes $[0], causing all sort of problems
22127 # (the dirname of $[0] is not the place where we might find the
22128 # original and so on. Autoconf is especially sensible to this).
22129 . ./$as_me.lineno
22130 # Exit status is that of the last command.
22131 exit
22135 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22136 *c*,-n*) ECHO_N= ECHO_C='
22137 ' ECHO_T=' ' ;;
22138 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22139 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22140 esac
22142 if expr a : '\(a\)' >/dev/null 2>&1; then
22143 as_expr=expr
22144 else
22145 as_expr=false
22148 rm -f conf$$ conf$$.exe conf$$.file
22149 echo >conf$$.file
22150 if ln -s conf$$.file conf$$ 2>/dev/null; then
22151 # We could just check for DJGPP; but this test a) works b) is more generic
22152 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22153 if test -f conf$$.exe; then
22154 # Don't use ln at all; we don't have any links
22155 as_ln_s='cp -p'
22156 else
22157 as_ln_s='ln -s'
22159 elif ln conf$$.file conf$$ 2>/dev/null; then
22160 as_ln_s=ln
22161 else
22162 as_ln_s='cp -p'
22164 rm -f conf$$ conf$$.exe conf$$.file
22166 if mkdir -p . 2>/dev/null; then
22167 as_mkdir_p=:
22168 else
22169 test -d ./-p && rmdir ./-p
22170 as_mkdir_p=false
22173 as_executable_p="test -f"
22175 # Sed expression to map a string onto a valid CPP name.
22176 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22178 # Sed expression to map a string onto a valid variable name.
22179 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22182 # IFS
22183 # We need space, tab and new line, in precisely that order.
22184 as_nl='
22186 IFS=" $as_nl"
22188 # CDPATH.
22189 $as_unset CDPATH
22191 exec 6>&1
22193 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22194 # report actual input values of CONFIG_FILES etc. instead of their
22195 # values after options handling. Logging --version etc. is OK.
22196 exec 5>>config.log
22198 echo
22199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200 ## Running $as_me. ##
22201 _ASBOX
22202 } >&5
22203 cat >&5 <<_CSEOF
22205 This file was extended by python $as_me 2.5, which was
22206 generated by GNU Autoconf 2.59. Invocation command line was
22208 CONFIG_FILES = $CONFIG_FILES
22209 CONFIG_HEADERS = $CONFIG_HEADERS
22210 CONFIG_LINKS = $CONFIG_LINKS
22211 CONFIG_COMMANDS = $CONFIG_COMMANDS
22212 $ $0 $@
22214 _CSEOF
22215 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22216 echo >&5
22217 _ACEOF
22219 # Files that config.status was made for.
22220 if test -n "$ac_config_files"; then
22221 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22224 if test -n "$ac_config_headers"; then
22225 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22228 if test -n "$ac_config_links"; then
22229 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22232 if test -n "$ac_config_commands"; then
22233 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22236 cat >>$CONFIG_STATUS <<\_ACEOF
22238 ac_cs_usage="\
22239 \`$as_me' instantiates files from templates according to the
22240 current configuration.
22242 Usage: $0 [OPTIONS] [FILE]...
22244 -h, --help print this help, then exit
22245 -V, --version print version number, then exit
22246 -q, --quiet do not print progress messages
22247 -d, --debug don't remove temporary files
22248 --recheck update $as_me by reconfiguring in the same conditions
22249 --file=FILE[:TEMPLATE]
22250 instantiate the configuration file FILE
22251 --header=FILE[:TEMPLATE]
22252 instantiate the configuration header FILE
22254 Configuration files:
22255 $config_files
22257 Configuration headers:
22258 $config_headers
22260 Report bugs to <bug-autoconf@gnu.org>."
22261 _ACEOF
22263 cat >>$CONFIG_STATUS <<_ACEOF
22264 ac_cs_version="\\
22265 python config.status 2.5
22266 configured by $0, generated by GNU Autoconf 2.59,
22267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22269 Copyright (C) 2003 Free Software Foundation, Inc.
22270 This config.status script is free software; the Free Software Foundation
22271 gives unlimited permission to copy, distribute and modify it."
22272 srcdir=$srcdir
22273 INSTALL="$INSTALL"
22274 _ACEOF
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 # If no file are specified by the user, then we need to provide default
22278 # value. By we need to know if files were specified by the user.
22279 ac_need_defaults=:
22280 while test $# != 0
22282 case $1 in
22283 --*=*)
22284 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22285 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22286 ac_shift=:
22289 ac_option=$1
22290 ac_optarg=$2
22291 ac_shift=shift
22293 *) # This is not an option, so the user has probably given explicit
22294 # arguments.
22295 ac_option=$1
22296 ac_need_defaults=false;;
22297 esac
22299 case $ac_option in
22300 # Handling of the options.
22301 _ACEOF
22302 cat >>$CONFIG_STATUS <<\_ACEOF
22303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22304 ac_cs_recheck=: ;;
22305 --version | --vers* | -V )
22306 echo "$ac_cs_version"; exit 0 ;;
22307 --he | --h)
22308 # Conflict between --help and --header
22309 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22310 Try \`$0 --help' for more information." >&5
22311 echo "$as_me: error: ambiguous option: $1
22312 Try \`$0 --help' for more information." >&2;}
22313 { (exit 1); exit 1; }; };;
22314 --help | --hel | -h )
22315 echo "$ac_cs_usage"; exit 0 ;;
22316 --debug | --d* | -d )
22317 debug=: ;;
22318 --file | --fil | --fi | --f )
22319 $ac_shift
22320 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22321 ac_need_defaults=false;;
22322 --header | --heade | --head | --hea )
22323 $ac_shift
22324 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22325 ac_need_defaults=false;;
22326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22327 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22328 ac_cs_silent=: ;;
22330 # This is an error.
22331 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22332 Try \`$0 --help' for more information." >&5
22333 echo "$as_me: error: unrecognized option: $1
22334 Try \`$0 --help' for more information." >&2;}
22335 { (exit 1); exit 1; }; } ;;
22337 *) ac_config_targets="$ac_config_targets $1" ;;
22339 esac
22340 shift
22341 done
22343 ac_configure_extra_args=
22345 if $ac_cs_silent; then
22346 exec 6>/dev/null
22347 ac_configure_extra_args="$ac_configure_extra_args --silent"
22350 _ACEOF
22351 cat >>$CONFIG_STATUS <<_ACEOF
22352 if \$ac_cs_recheck; then
22353 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22354 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22357 _ACEOF
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 for ac_config_target in $ac_config_targets
22366 case "$ac_config_target" in
22367 # Handling of arguments.
22368 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22369 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22370 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22373 { (exit 1); exit 1; }; };;
22374 esac
22375 done
22377 # If the user did not use the arguments to specify the items to instantiate,
22378 # then the envvar interface is used. Set only those that are not.
22379 # We use the long form for the default assignment because of an extremely
22380 # bizarre bug on SunOS 4.1.3.
22381 if $ac_need_defaults; then
22382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22386 # Have a temporary directory for convenience. Make it in the build tree
22387 # simply because there is no reason to put it here, and in addition,
22388 # creating and moving files from /tmp can sometimes cause problems.
22389 # Create a temporary directory, and hook for its removal unless debugging.
22390 $debug ||
22392 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22393 trap '{ (exit 1); exit 1; }' 1 2 13 15
22396 # Create a (secure) tmp directory for tmp files.
22399 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22400 test -n "$tmp" && test -d "$tmp"
22401 } ||
22403 tmp=./confstat$$-$RANDOM
22404 (umask 077 && mkdir $tmp)
22405 } ||
22407 echo "$me: cannot create a temporary directory in ." >&2
22408 { (exit 1); exit 1; }
22411 _ACEOF
22413 cat >>$CONFIG_STATUS <<_ACEOF
22416 # CONFIG_FILES section.
22419 # No need to generate the scripts if there are no CONFIG_FILES.
22420 # This happens for instance when ./config.status config.h
22421 if test -n "\$CONFIG_FILES"; then
22422 # Protect against being on the right side of a sed subst in config.status.
22423 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22424 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22425 s,@SHELL@,$SHELL,;t t
22426 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22427 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22428 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22429 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22430 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22431 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22432 s,@exec_prefix@,$exec_prefix,;t t
22433 s,@prefix@,$prefix,;t t
22434 s,@program_transform_name@,$program_transform_name,;t t
22435 s,@bindir@,$bindir,;t t
22436 s,@sbindir@,$sbindir,;t t
22437 s,@libexecdir@,$libexecdir,;t t
22438 s,@datadir@,$datadir,;t t
22439 s,@sysconfdir@,$sysconfdir,;t t
22440 s,@sharedstatedir@,$sharedstatedir,;t t
22441 s,@localstatedir@,$localstatedir,;t t
22442 s,@libdir@,$libdir,;t t
22443 s,@includedir@,$includedir,;t t
22444 s,@oldincludedir@,$oldincludedir,;t t
22445 s,@infodir@,$infodir,;t t
22446 s,@mandir@,$mandir,;t t
22447 s,@build_alias@,$build_alias,;t t
22448 s,@host_alias@,$host_alias,;t t
22449 s,@target_alias@,$target_alias,;t t
22450 s,@DEFS@,$DEFS,;t t
22451 s,@ECHO_C@,$ECHO_C,;t t
22452 s,@ECHO_N@,$ECHO_N,;t t
22453 s,@ECHO_T@,$ECHO_T,;t t
22454 s,@LIBS@,$LIBS,;t t
22455 s,@VERSION@,$VERSION,;t t
22456 s,@SOVERSION@,$SOVERSION,;t t
22457 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22458 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22459 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22460 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22461 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22462 s,@MACHDEP@,$MACHDEP,;t t
22463 s,@SGI_ABI@,$SGI_ABI,;t t
22464 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22465 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22466 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22467 s,@CXX@,$CXX,;t t
22468 s,@MAINOBJ@,$MAINOBJ,;t t
22469 s,@EXEEXT@,$EXEEXT,;t t
22470 s,@CC@,$CC,;t t
22471 s,@CFLAGS@,$CFLAGS,;t t
22472 s,@LDFLAGS@,$LDFLAGS,;t t
22473 s,@CPPFLAGS@,$CPPFLAGS,;t t
22474 s,@ac_ct_CC@,$ac_ct_CC,;t t
22475 s,@OBJEXT@,$OBJEXT,;t t
22476 s,@CPP@,$CPP,;t t
22477 s,@EGREP@,$EGREP,;t t
22478 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22479 s,@LIBRARY@,$LIBRARY,;t t
22480 s,@LDLIBRARY@,$LDLIBRARY,;t t
22481 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22482 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22483 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22484 s,@INSTSONAME@,$INSTSONAME,;t t
22485 s,@RUNSHARED@,$RUNSHARED,;t t
22486 s,@LINKCC@,$LINKCC,;t t
22487 s,@RANLIB@,$RANLIB,;t t
22488 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22489 s,@AR@,$AR,;t t
22490 s,@SVNVERSION@,$SVNVERSION,;t t
22491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22494 s,@LN@,$LN,;t t
22495 s,@OPT@,$OPT,;t t
22496 s,@BASECFLAGS@,$BASECFLAGS,;t t
22497 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22498 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22499 s,@SO@,$SO,;t t
22500 s,@LDSHARED@,$LDSHARED,;t t
22501 s,@BLDSHARED@,$BLDSHARED,;t t
22502 s,@CCSHARED@,$CCSHARED,;t t
22503 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22504 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22505 s,@SHLIBS@,$SHLIBS,;t t
22506 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22507 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22508 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22509 s,@LDLAST@,$LDLAST,;t t
22510 s,@THREADOBJ@,$THREADOBJ,;t t
22511 s,@DLINCLDIR@,$DLINCLDIR,;t t
22512 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22513 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22514 s,@TRUE@,$TRUE,;t t
22515 s,@LIBOBJS@,$LIBOBJS,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22518 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22519 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22520 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22521 s,@LIBM@,$LIBM,;t t
22522 s,@LIBC@,$LIBC,;t t
22523 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22524 s,@THREADHEADERS@,$THREADHEADERS,;t t
22525 s,@SRCDIRS@,$SRCDIRS,;t t
22526 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22527 CEOF
22529 _ACEOF
22531 cat >>$CONFIG_STATUS <<\_ACEOF
22532 # Split the substitutions into bite-sized pieces for seds with
22533 # small command number limits, like on Digital OSF/1 and HP-UX.
22534 ac_max_sed_lines=48
22535 ac_sed_frag=1 # Number of current file.
22536 ac_beg=1 # First line for current file.
22537 ac_end=$ac_max_sed_lines # Line after last line for current file.
22538 ac_more_lines=:
22539 ac_sed_cmds=
22540 while $ac_more_lines; do
22541 if test $ac_beg -gt 1; then
22542 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22543 else
22544 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22546 if test ! -s $tmp/subs.frag; then
22547 ac_more_lines=false
22548 else
22549 # The purpose of the label and of the branching condition is to
22550 # speed up the sed processing (if there are no `@' at all, there
22551 # is no need to browse any of the substitutions).
22552 # These are the two extra sed commands mentioned above.
22553 (echo ':t
22554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22555 if test -z "$ac_sed_cmds"; then
22556 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22557 else
22558 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22560 ac_sed_frag=`expr $ac_sed_frag + 1`
22561 ac_beg=$ac_end
22562 ac_end=`expr $ac_end + $ac_max_sed_lines`
22564 done
22565 if test -z "$ac_sed_cmds"; then
22566 ac_sed_cmds=cat
22568 fi # test -n "$CONFIG_FILES"
22570 _ACEOF
22571 cat >>$CONFIG_STATUS <<\_ACEOF
22572 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22574 case $ac_file in
22575 - | *:- | *:-:* ) # input from stdin
22576 cat >$tmp/stdin
22577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22581 * ) ac_file_in=$ac_file.in ;;
22582 esac
22584 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587 X"$ac_file" : 'X\(//\)[^/]' \| \
22588 X"$ac_file" : 'X\(//\)$' \| \
22589 X"$ac_file" : 'X\(/\)' \| \
22590 . : '\(.\)' 2>/dev/null ||
22591 echo X"$ac_file" |
22592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22594 /^X\(\/\/\)$/{ s//\1/; q; }
22595 /^X\(\/\).*/{ s//\1/; q; }
22596 s/.*/./; q'`
22597 { if $as_mkdir_p; then
22598 mkdir -p "$ac_dir"
22599 else
22600 as_dir="$ac_dir"
22601 as_dirs=
22602 while test ! -d "$as_dir"; do
22603 as_dirs="$as_dir $as_dirs"
22604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$as_dir" : 'X\(//\)[^/]' \| \
22607 X"$as_dir" : 'X\(//\)$' \| \
22608 X"$as_dir" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22610 echo X"$as_dir" |
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22615 s/.*/./; q'`
22616 done
22617 test ! -n "$as_dirs" || mkdir $as_dirs
22618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620 { (exit 1); exit 1; }; }; }
22622 ac_builddir=.
22624 if test "$ac_dir" != .; then
22625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22626 # A "../" for each directory in $ac_dir_suffix.
22627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22628 else
22629 ac_dir_suffix= ac_top_builddir=
22632 case $srcdir in
22633 .) # No --srcdir option. We are building in place.
22634 ac_srcdir=.
22635 if test -z "$ac_top_builddir"; then
22636 ac_top_srcdir=.
22637 else
22638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22639 fi ;;
22640 [\\/]* | ?:[\\/]* ) # Absolute path.
22641 ac_srcdir=$srcdir$ac_dir_suffix;
22642 ac_top_srcdir=$srcdir ;;
22643 *) # Relative path.
22644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22646 esac
22648 # Do not use `cd foo && pwd` to compute absolute paths, because
22649 # the directories may not exist.
22650 case `pwd` in
22651 .) ac_abs_builddir="$ac_dir";;
22653 case "$ac_dir" in
22654 .) ac_abs_builddir=`pwd`;;
22655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22657 esac;;
22658 esac
22659 case $ac_abs_builddir in
22660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22662 case ${ac_top_builddir}. in
22663 .) ac_abs_top_builddir=$ac_abs_builddir;;
22664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22666 esac;;
22667 esac
22668 case $ac_abs_builddir in
22669 .) ac_abs_srcdir=$ac_srcdir;;
22671 case $ac_srcdir in
22672 .) ac_abs_srcdir=$ac_abs_builddir;;
22673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22675 esac;;
22676 esac
22677 case $ac_abs_builddir in
22678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22680 case $ac_top_srcdir in
22681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22684 esac;;
22685 esac
22688 case $INSTALL in
22689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22690 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22691 esac
22693 if test x"$ac_file" != x-; then
22694 { echo "$as_me:$LINENO: creating $ac_file" >&5
22695 echo "$as_me: creating $ac_file" >&6;}
22696 rm -f "$ac_file"
22698 # Let's still pretend it is `configure' which instantiates (i.e., don't
22699 # use $as_me), people would be surprised to read:
22700 # /* config.h. Generated by config.status. */
22701 if test x"$ac_file" = x-; then
22702 configure_input=
22703 else
22704 configure_input="$ac_file. "
22706 configure_input=$configure_input"Generated from `echo $ac_file_in |
22707 sed 's,.*/,,'` by configure."
22709 # First look for the input files in the build tree, otherwise in the
22710 # src tree.
22711 ac_file_inputs=`IFS=:
22712 for f in $ac_file_in; do
22713 case $f in
22714 -) echo $tmp/stdin ;;
22715 [\\/$]*)
22716 # Absolute (can't be DOS-style, as IFS=:)
22717 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22718 echo "$as_me: error: cannot find input file: $f" >&2;}
22719 { (exit 1); exit 1; }; }
22720 echo "$f";;
22721 *) # Relative
22722 if test -f "$f"; then
22723 # Build tree
22724 echo "$f"
22725 elif test -f "$srcdir/$f"; then
22726 # Source tree
22727 echo "$srcdir/$f"
22728 else
22729 # /dev/null tree
22730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22731 echo "$as_me: error: cannot find input file: $f" >&2;}
22732 { (exit 1); exit 1; }; }
22733 fi;;
22734 esac
22735 done` || { (exit 1); exit 1; }
22736 _ACEOF
22737 cat >>$CONFIG_STATUS <<_ACEOF
22738 sed "$ac_vpsub
22739 $extrasub
22740 _ACEOF
22741 cat >>$CONFIG_STATUS <<\_ACEOF
22743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22744 s,@configure_input@,$configure_input,;t t
22745 s,@srcdir@,$ac_srcdir,;t t
22746 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22747 s,@top_srcdir@,$ac_top_srcdir,;t t
22748 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22749 s,@builddir@,$ac_builddir,;t t
22750 s,@abs_builddir@,$ac_abs_builddir,;t t
22751 s,@top_builddir@,$ac_top_builddir,;t t
22752 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22753 s,@INSTALL@,$ac_INSTALL,;t t
22754 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22755 rm -f $tmp/stdin
22756 if test x"$ac_file" != x-; then
22757 mv $tmp/out $ac_file
22758 else
22759 cat $tmp/out
22760 rm -f $tmp/out
22763 done
22764 _ACEOF
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22768 # CONFIG_HEADER section.
22771 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22772 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22774 # ac_d sets the value in "#define NAME VALUE" lines.
22775 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22776 ac_dB='[ ].*$,\1#\2'
22777 ac_dC=' '
22778 ac_dD=',;t'
22779 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22780 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22781 ac_uB='$,\1#\2define\3'
22782 ac_uC=' '
22783 ac_uD=',;t'
22785 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22787 case $ac_file in
22788 - | *:- | *:-:* ) # input from stdin
22789 cat >$tmp/stdin
22790 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22792 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22793 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22794 * ) ac_file_in=$ac_file.in ;;
22795 esac
22797 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22798 echo "$as_me: creating $ac_file" >&6;}
22800 # First look for the input files in the build tree, otherwise in the
22801 # src tree.
22802 ac_file_inputs=`IFS=:
22803 for f in $ac_file_in; do
22804 case $f in
22805 -) echo $tmp/stdin ;;
22806 [\\/$]*)
22807 # Absolute (can't be DOS-style, as IFS=:)
22808 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22809 echo "$as_me: error: cannot find input file: $f" >&2;}
22810 { (exit 1); exit 1; }; }
22811 # Do quote $f, to prevent DOS paths from being IFS'd.
22812 echo "$f";;
22813 *) # Relative
22814 if test -f "$f"; then
22815 # Build tree
22816 echo "$f"
22817 elif test -f "$srcdir/$f"; then
22818 # Source tree
22819 echo "$srcdir/$f"
22820 else
22821 # /dev/null tree
22822 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22823 echo "$as_me: error: cannot find input file: $f" >&2;}
22824 { (exit 1); exit 1; }; }
22825 fi;;
22826 esac
22827 done` || { (exit 1); exit 1; }
22828 # Remove the trailing spaces.
22829 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22831 _ACEOF
22833 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22834 # `conftest.undefs', that substitutes the proper values into
22835 # config.h.in to produce config.h. The first handles `#define'
22836 # templates, and the second `#undef' templates.
22837 # And first: Protect against being on the right side of a sed subst in
22838 # config.status. Protect against being in an unquoted here document
22839 # in config.status.
22840 rm -f conftest.defines conftest.undefs
22841 # Using a here document instead of a string reduces the quoting nightmare.
22842 # Putting comments in sed scripts is not portable.
22844 # `end' is used to avoid that the second main sed command (meant for
22845 # 0-ary CPP macros) applies to n-ary macro definitions.
22846 # See the Autoconf documentation for `clear'.
22847 cat >confdef2sed.sed <<\_ACEOF
22848 s/[\\&,]/\\&/g
22849 s,[\\$`],\\&,g
22850 t clear
22851 : clear
22852 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22853 t end
22854 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22855 : end
22856 _ACEOF
22857 # If some macros were called several times there might be several times
22858 # the same #defines, which is useless. Nevertheless, we may not want to
22859 # sort them, since we want the *last* AC-DEFINE to be honored.
22860 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22861 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22862 rm -f confdef2sed.sed
22864 # This sed command replaces #undef with comments. This is necessary, for
22865 # example, in the case of _POSIX_SOURCE, which is predefined and required
22866 # on some systems where configure will not decide to define it.
22867 cat >>conftest.undefs <<\_ACEOF
22868 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22869 _ACEOF
22871 # Break up conftest.defines because some shells have a limit on the size
22872 # of here documents, and old seds have small limits too (100 cmds).
22873 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22874 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22875 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22876 echo ' :' >>$CONFIG_STATUS
22877 rm -f conftest.tail
22878 while grep . conftest.defines >/dev/null
22880 # Write a limited-size here document to $tmp/defines.sed.
22881 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22882 # Speed up: don't consider the non `#define' lines.
22883 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22884 # Work around the forget-to-reset-the-flag bug.
22885 echo 't clr' >>$CONFIG_STATUS
22886 echo ': clr' >>$CONFIG_STATUS
22887 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22888 echo 'CEOF
22889 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22890 rm -f $tmp/in
22891 mv $tmp/out $tmp/in
22892 ' >>$CONFIG_STATUS
22893 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22894 rm -f conftest.defines
22895 mv conftest.tail conftest.defines
22896 done
22897 rm -f conftest.defines
22898 echo ' fi # grep' >>$CONFIG_STATUS
22899 echo >>$CONFIG_STATUS
22901 # Break up conftest.undefs because some shells have a limit on the size
22902 # of here documents, and old seds have small limits too (100 cmds).
22903 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22904 rm -f conftest.tail
22905 while grep . conftest.undefs >/dev/null
22907 # Write a limited-size here document to $tmp/undefs.sed.
22908 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22909 # Speed up: don't consider the non `#undef'
22910 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22911 # Work around the forget-to-reset-the-flag bug.
22912 echo 't clr' >>$CONFIG_STATUS
22913 echo ': clr' >>$CONFIG_STATUS
22914 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22915 echo 'CEOF
22916 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22917 rm -f $tmp/in
22918 mv $tmp/out $tmp/in
22919 ' >>$CONFIG_STATUS
22920 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22921 rm -f conftest.undefs
22922 mv conftest.tail conftest.undefs
22923 done
22924 rm -f conftest.undefs
22926 cat >>$CONFIG_STATUS <<\_ACEOF
22927 # Let's still pretend it is `configure' which instantiates (i.e., don't
22928 # use $as_me), people would be surprised to read:
22929 # /* config.h. Generated by config.status. */
22930 if test x"$ac_file" = x-; then
22931 echo "/* Generated by configure. */" >$tmp/config.h
22932 else
22933 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22935 cat $tmp/in >>$tmp/config.h
22936 rm -f $tmp/in
22937 if test x"$ac_file" != x-; then
22938 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22939 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22940 echo "$as_me: $ac_file is unchanged" >&6;}
22941 else
22942 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$ac_file" : 'X\(//\)[^/]' \| \
22945 X"$ac_file" : 'X\(//\)$' \| \
22946 X"$ac_file" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22948 echo X"$ac_file" |
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22953 s/.*/./; q'`
22954 { if $as_mkdir_p; then
22955 mkdir -p "$ac_dir"
22956 else
22957 as_dir="$ac_dir"
22958 as_dirs=
22959 while test ! -d "$as_dir"; do
22960 as_dirs="$as_dir $as_dirs"
22961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963 X"$as_dir" : 'X\(//\)[^/]' \| \
22964 X"$as_dir" : 'X\(//\)$' \| \
22965 X"$as_dir" : 'X\(/\)' \| \
22966 . : '\(.\)' 2>/dev/null ||
22967 echo X"$as_dir" |
22968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970 /^X\(\/\/\)$/{ s//\1/; q; }
22971 /^X\(\/\).*/{ s//\1/; q; }
22972 s/.*/./; q'`
22973 done
22974 test ! -n "$as_dirs" || mkdir $as_dirs
22975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22977 { (exit 1); exit 1; }; }; }
22979 rm -f $ac_file
22980 mv $tmp/config.h $ac_file
22982 else
22983 cat $tmp/config.h
22984 rm -f $tmp/config.h
22986 done
22987 _ACEOF
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22991 { (exit 0); exit 0; }
22992 _ACEOF
22993 chmod +x $CONFIG_STATUS
22994 ac_clean_files=$ac_clean_files_save
22997 # configure is writing to config.log, and then calls config.status.
22998 # config.status does its own redirection, appending to config.log.
22999 # Unfortunately, on DOS this fails, as config.log is still kept open
23000 # by configure, so config.status won't be able to write to it; its
23001 # output is simply discarded. So we exec the FD to /dev/null,
23002 # effectively closing config.log, so it can be properly (re)opened and
23003 # appended to by config.status. When coming back to configure, we
23004 # need to make the FD available again.
23005 if test "$no_create" != yes; then
23006 ac_cs_success=:
23007 ac_config_status_args=
23008 test "$silent" = yes &&
23009 ac_config_status_args="$ac_config_status_args --quiet"
23010 exec 5>/dev/null
23011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23012 exec 5>>config.log
23013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23014 # would make configure fail if this is the last instruction.
23015 $ac_cs_success || { (exit 1); exit 1; }
23019 echo "creating Setup"
23020 if test ! -f Modules/Setup
23021 then
23022 cp $srcdir/Modules/Setup.dist Modules/Setup
23025 echo "creating Setup.local"
23026 if test ! -f Modules/Setup.local
23027 then
23028 echo "# Edit this file for local setup changes" >Modules/Setup.local
23031 echo "creating Makefile"
23032 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23033 -s Modules Modules/Setup.config \
23034 Modules/Setup.local Modules/Setup
23035 mv config.c Modules