tty isn't supported on all boxes.
[python.git] / configure
blob5ff9d0e828b284d95039f9a0f2013ba3643516b2
1 #! /bin/sh
2 # From configure.in Revision: 45278 .
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-system-ffi build _ctypes module using an installed ffi library
867 --with-signal-module disable/enable signal module
868 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
869 --with(out)-threads[=DIRECTORY]
870 disable/enable thread support
871 --with(out)-thread[=DIRECTORY]
872 deprecated; use --with(out)-threads
873 --with-pth use GNU pth threading libraries
874 --with(out)-doc-strings disable/enable documentation strings
875 --with(out)-tsc enable/disable timestamp counter profile
876 --with(out)-pymalloc disable/enable specialized mallocs
877 --with-wctype-functions use wctype.h functions
878 --with-fpectl enable SIGFPE catching
879 --with-libm=STRING math library
880 --with-libc=STRING C library
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 CPP C preprocessor
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 Report bugs to <http://www.python.org/python-bugs>.
895 _ACEOF
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910 ac_dir_suffix= ac_top_builddir=
913 case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966 esac
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 cd $ac_popdir
984 done
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989 cat <<\_ACEOF
990 python configure 2.5
991 generated by GNU Autoconf 2.59
993 Copyright (C) 2003 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997 exit 0
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by python $as_me 2.5, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1007 $ $0 $@
1009 _ACEOF
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 _ASUNAME
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041 done
1043 } >&5
1045 cat >&5 <<_ACEOF
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1052 _ACEOF
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1067 for ac_arg
1069 case $ac_arg in
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 continue ;;
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 esac
1077 case $ac_pass in
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1083 else
1084 case $ac_arg in
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 esac
1093 -* ) ac_must_keep_next=true ;;
1094 esac
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1098 ac_sep=" "
1100 esac
1101 done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1114 echo
1116 cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121 echo
1122 # The following way of writing the cache mishandles newlines in values,
1124 (set) 2>&1 |
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 *ac_space=\ *)
1127 sed -n \
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 sed -n \
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135 esac;
1137 echo
1139 cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1152 if test -n "$ac_subst_files"; then
1153 cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158 echo
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1167 if test -s confdefs.h; then
1168 cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173 echo
1174 sed "/^$/d" confdefs.h | sort
1175 echo
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1180 } >&5
1181 rm -f core *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 exit $exit_status
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 else
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1236 . "$ac_site_file"
1238 done
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1251 else
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1267 set,)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,set)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,);;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1285 fi;;
1286 esac
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1289 case $ac_new_val in
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1293 esac
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 esac
1299 done
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers pyconfig.h"
1349 # We don't use PACKAGE_ variables, and they cause conflicts
1350 # with other autoconf-based packages that include Python.h
1351 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1352 rm confdefs.h
1353 mv confdefs.h.new confdefs.h
1356 VERSION=2.5
1359 SOVERSION=1.0
1361 # The later defininition of _XOPEN_SOURCE disables certain features
1362 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1364 cat >>confdefs.h <<\_ACEOF
1365 #define _GNU_SOURCE 1
1366 _ACEOF
1369 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1370 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1371 # them.
1373 cat >>confdefs.h <<\_ACEOF
1374 #define _NETBSD_SOURCE 1
1375 _ACEOF
1378 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1379 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1380 # them.
1382 cat >>confdefs.h <<\_ACEOF
1383 #define __BSD_VISIBLE 1
1384 _ACEOF
1387 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1388 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1390 cat >>confdefs.h <<\_ACEOF
1391 #define _BSD_TYPES 1
1392 _ACEOF
1395 define_xopen_source=yes
1397 # Arguments passed to configure.
1399 CONFIG_ARGS="$ac_configure_args"
1401 # Check whether --enable-framework or --disable-framework was given.
1402 if test "${enable_framework+set}" = set; then
1403 enableval="$enable_framework"
1405 case $enableval in
1406 yes)
1407 enableval=/Library/Frameworks
1408 esac
1409 case $enableval in
1411 PYTHONFRAMEWORK=
1412 PYTHONFRAMEWORKDIR=no-framework
1413 PYTHONFRAMEWORKPREFIX=
1414 PYTHONFRAMEWORKINSTALLDIR=
1415 enable_framework=
1418 PYTHONFRAMEWORK=Python
1419 PYTHONFRAMEWORKDIR=Python.framework
1420 PYTHONFRAMEWORKPREFIX=$enableval
1421 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1422 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1423 esac
1425 else
1427 PYTHONFRAMEWORK=
1428 PYTHONFRAMEWORKDIR=no-framework
1429 PYTHONFRAMEWORKPREFIX=
1430 PYTHONFRAMEWORKINSTALLDIR=
1431 enable_framework=
1439 ##AC_ARG_WITH(dyld,
1440 ## AC_HELP_STRING(--with-dyld,
1441 ## Use (OpenStep|Rhapsody) dynamic linker))
1443 # Set name for machine-dependent library files
1445 echo "$as_me:$LINENO: checking MACHDEP" >&5
1446 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1447 if test -z "$MACHDEP"
1448 then
1449 ac_sys_system=`uname -s`
1450 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1451 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1452 ac_sys_release=`uname -v`
1453 else
1454 ac_sys_release=`uname -r`
1456 ac_md_system=`echo $ac_sys_system |
1457 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1458 ac_md_release=`echo $ac_sys_release |
1459 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1460 MACHDEP="$ac_md_system$ac_md_release"
1462 case $MACHDEP in
1463 cygwin*) MACHDEP="cygwin";;
1464 darwin*) MACHDEP="darwin";;
1465 atheos*) MACHDEP="atheos";;
1466 irix646) MACHDEP="irix6";;
1467 '') MACHDEP="unknown";;
1468 esac
1471 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1472 # disable features if it is defined, without any means to access these
1473 # features as extensions. For these systems, we skip the definition of
1474 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1475 # some feature, make sure there is no alternative way to access this
1476 # feature. Also, when using wildcards, make sure you have verified the
1477 # need for not defining _XOPEN_SOURCE on all systems matching the
1478 # wildcard, and that the wildcard does not include future systems
1479 # (which may remove their limitations).
1480 case $ac_sys_system/$ac_sys_release in
1481 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1482 # even though select is a POSIX function. Reported by J. Ribbens.
1483 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1484 OpenBSD/2.* | OpenBSD/3.[012345678])
1485 define_xopen_source=no;;
1486 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1487 # of union __?sigval. Reported by Stuart Bishop.
1488 SunOS/5.6)
1489 define_xopen_source=no;;
1490 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1491 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1492 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1493 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1494 define_xopen_source=no;;
1495 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1496 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 SCO_SV/3.2)
1498 define_xopen_source=no;;
1499 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1500 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1501 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1502 # This should hopefully be fixed in FreeBSD 4.9
1503 FreeBSD/4.8* | Darwin/6* )
1504 define_xopen_source=no;;
1505 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1506 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1507 # or has another value. By not (re)defining it, the defaults come in place.
1508 AIX/4)
1509 define_xopen_source=no;;
1510 AIX/5)
1511 if test `uname -r` -eq 1; then
1512 define_xopen_source=no
1515 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1516 # disables platform specific features beyond repair.
1517 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1518 # has no effect, don't bother defineing them
1519 Darwin/[78].*)
1520 define_xopen_source=no
1523 esac
1525 if test $define_xopen_source = yes
1526 then
1527 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1528 # defined precisely as g++ defines it
1529 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1530 # compiler
1531 case $ac_sys_system/$ac_sys_release in
1532 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1534 cat >>confdefs.h <<\_ACEOF
1535 #define _XOPEN_SOURCE 500
1536 _ACEOF
1541 cat >>confdefs.h <<\_ACEOF
1542 #define _XOPEN_SOURCE 600
1543 _ACEOF
1546 esac
1548 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1549 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1550 # several APIs are not declared. Since this is also needed in some
1551 # cases for HP-UX, we define it globally.
1552 # except for Solaris 10, where it must not be defined,
1553 # as it implies XPG4.2
1554 case $ac_sys_system/$ac_sys_release in
1555 SunOS/5.10)
1559 cat >>confdefs.h <<\_ACEOF
1560 #define _XOPEN_SOURCE_EXTENDED 1
1561 _ACEOF
1564 esac
1567 cat >>confdefs.h <<\_ACEOF
1568 #define _POSIX_C_SOURCE 200112L
1569 _ACEOF
1575 # SGI compilers allow the specification of the both the ABI and the
1576 # ISA on the command line. Depending on the values of these switches,
1577 # different and often incompatable code will be generated.
1579 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1580 # thus supply support for various ABI/ISA combinations. The MACHDEP
1581 # variable is also adjusted.
1584 if test ! -z "$SGI_ABI"
1585 then
1586 CC="cc $SGI_ABI"
1587 LDFLAGS="$SGI_ABI $LDFLAGS"
1588 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1590 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1591 echo "${ECHO_T}$MACHDEP" >&6
1593 # And add extra plat-mac for darwin
1596 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1597 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1598 if test -z "$EXTRAPLATDIR"
1599 then
1600 case $MACHDEP in
1601 darwin)
1602 EXTRAPLATDIR="\$(PLATMACDIRS)"
1603 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1606 EXTRAPLATDIR=""
1607 EXTRAMACHDEPPATH=""
1609 esac
1611 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1612 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1614 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1615 # it may influence the way we can build extensions, so distutils
1616 # needs to check it
1618 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1620 # checks for alternative programs
1622 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1623 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1624 # just to get things to compile and link. Users are free to override OPT
1625 # when running configure or make. The build should not break if they do.
1626 # BASECFLAGS should generally not be messed with, however.
1628 # XXX shouldn't some/most/all of this code be merged with the stuff later
1629 # on that fiddles with OPT and BASECFLAGS?
1630 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1631 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1633 # Check whether --with-gcc or --without-gcc was given.
1634 if test "${with_gcc+set}" = set; then
1635 withval="$with_gcc"
1637 case $withval in
1638 no) CC=cc
1639 without_gcc=yes;;
1640 yes) CC=gcc
1641 without_gcc=no;;
1642 *) CC=$withval
1643 without_gcc=$withval;;
1644 esac
1645 else
1647 case $ac_sys_system in
1648 AIX*) CC=cc_r
1649 without_gcc=;;
1650 BeOS*)
1651 case $BE_HOST_CPU in
1652 ppc)
1653 CC=mwcc
1654 without_gcc=yes
1655 BASECFLAGS="$BASECFLAGS -export pragma"
1656 OPT="$OPT -O"
1657 LDFLAGS="$LDFLAGS -nodup"
1659 x86)
1660 CC=gcc
1661 without_gcc=no
1662 OPT="$OPT -O"
1665 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1666 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1667 { (exit 1); exit 1; }; }
1669 esac
1670 AR="\$(srcdir)/Modules/ar_beos"
1671 RANLIB=:
1673 Monterey*)
1674 RANLIB=:
1675 without_gcc=;;
1676 *) without_gcc=no;;
1677 esac
1679 echo "$as_me:$LINENO: result: $without_gcc" >&5
1680 echo "${ECHO_T}$without_gcc" >&6
1684 MAINOBJ=python.o
1685 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1686 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1688 # Check whether --with-cxx or --without-cxx was given.
1689 if test "${with_cxx+set}" = set; then
1690 withval="$with_cxx"
1692 check_cxx=no
1693 case $withval in
1694 no) CXX=
1695 with_cxx=no;;
1696 *) CXX=$withval
1697 MAINOBJ=ccpython.o
1698 with_cxx=$withval;;
1699 esac
1700 else
1702 with_cxx=no
1703 check_cxx=yes
1706 echo "$as_me:$LINENO: result: $with_cxx" >&5
1707 echo "${ECHO_T}$with_cxx" >&6
1709 if test "$with_cxx" = "yes"
1710 then
1711 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1712 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1713 { (exit 1); exit 1; }; }
1719 if test "$check_cxx" = "yes"
1720 then
1721 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_CXX+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$CXX"; then
1731 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_CXX="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 CXX=$ac_cv_prog_CXX
1750 if test -n "$CXX"; then
1751 echo "$as_me:$LINENO: result: $CXX" >&5
1752 echo "${ECHO_T}$CXX" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$CXX" && break
1759 done
1760 test -n "$CXX" || CXX="notfound"
1762 if test "$CXX" = "notfound"
1763 then
1764 CXX=
1765 else
1766 ac_ext=cc
1767 ac_cpp='$CXXCPP $CPPFLAGS'
1768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1779 main ()
1783 return 0;
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1792 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1813 conftest.$ac_ext )
1814 # This is the source file.
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C++ compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1849 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C++ compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 # If the user switches compilers, we can't believe the cache
1935 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1936 then
1937 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1938 (it is also a good idea to do 'make clean' before compiling)" >&5
1939 echo "$as_me: error: cached CC is different -- throw away $cache_file
1940 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1941 { (exit 1); exit 1; }; }
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1971 done
1972 done
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1980 else
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1986 if test -z "$ac_cv_prog_CC"; then
1987 ac_ct_CC=$CC
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989 set dummy gcc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_ac_ct_CC="gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2009 done
2010 done
2014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015 if test -n "$ac_ct_CC"; then
2016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017 echo "${ECHO_T}$ac_ct_CC" >&6
2018 else
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2023 CC=$ac_ct_CC
2024 else
2025 CC="$ac_cv_prog_CC"
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "cc", so it can be a program name with args.
2069 set dummy cc; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 CC=$ac_ct_CC
2104 else
2105 CC="$ac_cv_prog_CC"
2109 if test -z "$CC"; then
2110 # Extract the first word of "cc", so it can be a program name with args.
2111 set dummy cc; ac_word=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 ac_prog_rejected=no
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2129 ac_prog_rejected=yes
2130 continue
2132 ac_cv_prog_CC="cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2139 if test $ac_prog_rejected = yes; then
2140 # We found a bogon in the path, so make sure we never use it.
2141 set dummy $ac_cv_prog_CC
2142 shift
2143 if test $# != 0; then
2144 # We chose a different compiler from the bogus one.
2145 # However, it has the same basename, so the bogon will be chosen
2146 # first if we set CC to just the basename; use the full file name.
2147 shift
2148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2188 done
2189 done
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2197 else
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2202 test -n "$CC" && break
2203 done
2205 if test -z "$CC"; then
2206 ac_ct_CC=$CC
2207 for ac_prog in cl
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6
2239 else
2240 echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2244 test -n "$ac_ct_CC" && break
2245 done
2247 CC=$ac_ct_CC
2253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2259 # Provide some information about the compiler.
2260 echo "$as_me:$LINENO:" \
2261 "checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2264 (eval $ac_compiler --version </dev/null >&5) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2269 (eval $ac_compiler -v </dev/null >&5) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2274 (eval $ac_compiler -V </dev/null >&5) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2279 cat >conftest.$ac_ext <<_ACEOF
2280 /* confdefs.h. */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2287 main ()
2291 return 0;
2293 _ACEOF
2294 ac_clean_files_save=$ac_clean_files
2295 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2296 # Try to create an executable without -o first, disregard a.out.
2297 # It will help us diagnose broken compilers, and finding out an intuition
2298 # of exeext.
2299 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2301 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2303 (eval $ac_link_default) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Find the output, starting from the most likely. This scheme is
2308 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2309 # resort.
2311 # Be careful to initialize this variable, since it used to be cached.
2312 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313 ac_cv_exeext=
2314 # b.out is created by i960 compilers.
2315 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2317 test -f "$ac_file" || continue
2318 case $ac_file in
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2321 conftest.$ac_ext )
2322 # This is the source file.
2324 [ab].out )
2325 # We found the default executable, but exeext='' is most
2326 # certainly right.
2327 break;;
2328 *.* )
2329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 # FIXME: I believe we export ac_cv_exeext for Libtool,
2331 # but it would be cool to find out if it's true. Does anybody
2332 # maintain Libtool? --akim.
2333 export ac_cv_exeext
2334 break;;
2336 break;;
2337 esac
2338 done
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: C compiler cannot create executables
2346 See \`config.log' for more details." >&2;}
2347 { (exit 77); exit 77; }; }
2350 ac_exeext=$ac_cv_exeext
2351 echo "$as_me:$LINENO: result: $ac_file" >&5
2352 echo "${ECHO_T}$ac_file" >&6
2354 # Check the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2358 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359 # If not cross compiling, check that we can run a simple program.
2360 if test "$cross_compiling" != yes; then
2361 if { ac_try='./$ac_file'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 cross_compiling=no
2368 else
2369 if test "$cross_compiling" = maybe; then
2370 cross_compiling=yes
2371 else
2372 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2382 echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6
2385 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2386 ac_clean_files=$ac_clean_files_save
2387 # Check the compiler produces executables we can run. If not, either
2388 # the compiler is broken, or we cross compile.
2389 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2390 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2391 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2392 echo "${ECHO_T}$cross_compiling" >&6
2394 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2395 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2402 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2403 # work properly (i.e., refer to `conftest.exe'), while it won't with
2404 # `rm'.
2405 for ac_file in conftest.exe conftest conftest.*; do
2406 test -f "$ac_file" || continue
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 export ac_cv_exeext
2411 break;;
2412 * ) break;;
2413 esac
2414 done
2415 else
2416 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2419 See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2423 rm -f conftest$ac_cv_exeext
2424 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2425 echo "${ECHO_T}$ac_cv_exeext" >&6
2427 rm -f conftest.$ac_ext
2428 EXEEXT=$ac_cv_exeext
2429 ac_exeext=$EXEEXT
2430 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2431 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2432 if test "${ac_cv_objext+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h. */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2443 main ()
2447 return 0;
2449 _ACEOF
2450 rm -f conftest.o conftest.obj
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 case $ac_file in
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460 break;;
2461 esac
2462 done
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2476 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477 echo "${ECHO_T}$ac_cv_objext" >&6
2478 OBJEXT=$ac_cv_objext
2479 ac_objext=$OBJEXT
2480 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 main ()
2495 #ifndef __GNUC__
2496 choke me
2497 #endif
2500 return 0;
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 ac_compiler_gnu=yes
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 ac_compiler_gnu=no
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2537 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2538 GCC=`test $ac_compiler_gnu = yes && echo yes`
2539 ac_test_CFLAGS=${CFLAGS+set}
2540 ac_save_CFLAGS=$CFLAGS
2541 CFLAGS="-g"
2542 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_g+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 main ()
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_cv_prog_cc_g=yes
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2589 ac_cv_prog_cc_g=no
2591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2595 if test "$ac_test_CFLAGS" = set; then
2596 CFLAGS=$ac_save_CFLAGS
2597 elif test $ac_cv_prog_cc_g = yes; then
2598 if test "$GCC" = yes; then
2599 CFLAGS="-g -O2"
2600 else
2601 CFLAGS="-g"
2603 else
2604 if test "$GCC" = yes; then
2605 CFLAGS="-O2"
2606 else
2607 CFLAGS=
2610 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2611 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2612 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 ac_cv_prog_cc_stdc=no
2616 ac_save_CC=$CC
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623 #include <stdarg.h>
2624 #include <stdio.h>
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2631 char **p;
2632 int i;
2634 return p[i];
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2638 char *s;
2639 va_list v;
2640 va_start (v,p);
2641 s = g (p, va_arg (v,int));
2642 va_end (v);
2643 return s;
2646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2647 function prototypes and stuff, but not '\xHH' hex character constants.
2648 These don't provoke an error unfortunately, instead are silently treated
2649 as 'x'. The following induces an error, until -std1 is added to get
2650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2651 array size at least. It's necessary to write '\x00'==0 to get something
2652 that's true only with -std1. */
2653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2655 int test (int i, double x);
2656 struct s1 {int (*f) (int a);};
2657 struct s2 {int (*f) (double a);};
2658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2659 int argc;
2660 char **argv;
2662 main ()
2664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 return 0;
2668 _ACEOF
2669 # Don't try gcc -ansi; that turns off useful extensions and
2670 # breaks some systems' header files.
2671 # AIX -qlanglvl=ansi
2672 # Ultrix and OSF/1 -std1
2673 # HP-UX 10.20 and later -Ae
2674 # HP-UX older versions -Aa -D_HPUX_SOURCE
2675 # SVR4 -Xc -D__EXTENSIONS__
2676 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678 CC="$ac_save_CC $ac_arg"
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>conftest.er1
2682 ac_status=$?
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
2688 { ac_try='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_prog_cc_stdc=$ac_arg
2702 break
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2708 rm -f conftest.err conftest.$ac_objext
2709 done
2710 rm -f conftest.$ac_ext conftest.$ac_objext
2711 CC=$ac_save_CC
2715 case "x$ac_cv_prog_cc_stdc" in
2716 x|xno)
2717 echo "$as_me:$LINENO: result: none needed" >&5
2718 echo "${ECHO_T}none needed" >&6 ;;
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722 CC="$CC $ac_cv_prog_cc_stdc" ;;
2723 esac
2725 # Some people use a C++ compiler to compile C. Since we use `exit',
2726 # in C++ we need to declare it. In case someone uses the same compiler
2727 # for both compiling C and C++ we need to have the C++ compiler decide
2728 # the declaration of exit, since it's the most demanding environment.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #ifndef __cplusplus
2731 choke me
2732 #endif
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 for ac_declaration in \
2757 '' \
2758 'extern "C" void std::exit (int) throw (); using std::exit;' \
2759 'extern "C" void std::exit (int); using std::exit;' \
2760 'extern "C" void exit (int) throw ();' \
2761 'extern "C" void exit (int);' \
2762 'void exit (int);'
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 $ac_declaration
2771 #include <stdlib.h>
2773 main ()
2775 exit (42);
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 continue
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 $ac_declaration
2818 main ()
2820 exit (42);
2822 return 0;
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 break
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 done
2855 rm -f conftest*
2856 if test -n "$ac_declaration"; then
2857 echo '#ifdef __cplusplus' >>confdefs.h
2858 echo $ac_declaration >>confdefs.h
2859 echo '#endif' >>confdefs.h
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 # checks for UNIX variants that set C preprocessor variables
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2884 # On Suns, sometimes $CPP names a directory.
2885 if test -n "$CPP" && test -d "$CPP"; then
2886 CPP=
2888 if test -z "$CPP"; then
2889 if test "${ac_cv_prog_CPP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 # Double quotes because CPP needs to be expanded
2893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 ac_preproc_ok=false
2896 for ac_c_preproc_warn_flag in '' yes
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #ifdef __STDC__
2911 # include <limits.h>
2912 #else
2913 # include <assert.h>
2914 #endif
2915 Syntax error
2916 _ACEOF
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2928 else
2929 ac_cpp_err=
2931 else
2932 ac_cpp_err=yes
2934 if test -z "$ac_cpp_err"; then
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Broken: fails on valid input.
2941 continue
2943 rm -f conftest.err conftest.$ac_ext
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 else
2967 ac_cpp_err=
2969 else
2970 ac_cpp_err=yes
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2974 continue
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Passes both tests.
2980 ac_preproc_ok=:
2981 break
2983 rm -f conftest.err conftest.$ac_ext
2985 done
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.$ac_ext
2988 if $ac_preproc_ok; then
2989 break
2992 done
2993 ac_cv_prog_CPP=$CPP
2996 CPP=$ac_cv_prog_CPP
2997 else
2998 ac_cv_prog_CPP=$CPP
3000 echo "$as_me:$LINENO: result: $CPP" >&5
3001 echo "${ECHO_T}$CPP" >&6
3002 ac_preproc_ok=false
3003 for ac_c_preproc_warn_flag in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022 Syntax error
3023 _ACEOF
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3035 else
3036 ac_cpp_err=
3038 else
3039 ac_cpp_err=yes
3041 if test -z "$ac_cpp_err"; then
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Broken: fails on valid input.
3048 continue
3050 rm -f conftest.err conftest.$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073 else
3074 ac_cpp_err=
3076 else
3077 ac_cpp_err=yes
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3081 continue
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Passes both tests.
3087 ac_preproc_ok=:
3088 break
3090 rm -f conftest.err conftest.$ac_ext
3092 done
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3097 else
3098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking for egrep" >&5
3113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114 if test "${ac_cv_prog_egrep+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3118 then ac_cv_prog_egrep='grep -E'
3119 else ac_cv_prog_egrep='egrep'
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124 EGREP=$ac_cv_prog_egrep
3128 echo "$as_me:$LINENO: checking for AIX" >&5
3129 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #ifdef _AIX
3138 #endif
3140 _ACEOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 $EGREP "yes" >/dev/null 2>&1; then
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3145 cat >>confdefs.h <<\_ACEOF
3146 #define _ALL_SOURCE 1
3147 _ACEOF
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3153 rm -f conftest*
3157 # Check for unsupported systems
3158 case $ac_sys_system/$ac_sys_release in
3159 Linux*/1*)
3160 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3161 echo See README for details.
3162 exit 1;;
3163 esac
3166 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3167 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3169 # Check whether --with-suffix or --without-suffix was given.
3170 if test "${with_suffix+set}" = set; then
3171 withval="$with_suffix"
3173 case $withval in
3174 no) EXEEXT=;;
3175 yes) EXEEXT=.exe;;
3176 *) EXEEXT=$withval;;
3177 esac
3179 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3180 echo "${ECHO_T}$EXEEXT" >&6
3182 # Test whether we're running on a non-case-sensitive system, in which
3183 # case we give a warning if no ext is given
3185 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3186 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3187 if test ! -d CaseSensitiveTestDir; then
3188 mkdir CaseSensitiveTestDir
3191 if test -d casesensitivetestdir
3192 then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3195 BUILDEXEEXT=.exe
3196 else
3197 echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3199 BUILDEXEEXT=$EXEEXT
3201 rmdir CaseSensitiveTestDir
3203 case $MACHDEP in
3204 bsdos*)
3205 case $CC in
3206 gcc) CC="$CC -D_HAVE_BSDI";;
3207 esac;;
3208 esac
3210 case $ac_sys_system in
3211 hp*|HP*)
3212 case $CC in
3213 cc|*/cc) CC="$CC -Ae";;
3214 esac;;
3215 Monterey*)
3216 case $CC in
3217 cc) CC="$CC -Wl,-Bexport";;
3218 esac;;
3219 SunOS*)
3220 # Some functions have a prototype only with that define, e.g. confstr
3222 cat >>confdefs.h <<\_ACEOF
3223 #define __EXTENSIONS__ 1
3224 _ACEOF
3227 esac
3231 echo "$as_me:$LINENO: checking LIBRARY" >&5
3232 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3233 if test -z "$LIBRARY"
3234 then
3235 LIBRARY='libpython$(VERSION).a'
3237 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3238 echo "${ECHO_T}$LIBRARY" >&6
3240 # LDLIBRARY is the name of the library to link against (as opposed to the
3241 # name of the library into which to insert object files). BLDLIBRARY is also
3242 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3243 # is blank as the main program is not linked directly against LDLIBRARY.
3244 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3245 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3246 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3247 # DLLLIBRARY is the shared (i.e., DLL) library.
3249 # RUNSHARED is used to run shared python without installed libraries
3251 # INSTSONAME is the name of the shared library that will be use to install
3252 # on the system - some systems like version suffix, others don't
3259 LDLIBRARY="$LIBRARY"
3260 BLDLIBRARY='$(LDLIBRARY)'
3261 INSTSONAME='$(LDLIBRARY)'
3262 DLLLIBRARY=''
3263 LDLIBRARYDIR=''
3264 RUNSHARED=''
3266 # LINKCC is the command that links the python executable -- default is $(CC).
3267 # If CXX is set, and if it is needed to link a main function that was
3268 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3269 # python might then depend on the C++ runtime
3270 # This is altered for AIX in order to build the export list before
3271 # linking.
3273 echo "$as_me:$LINENO: checking LINKCC" >&5
3274 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3275 if test -z "$LINKCC"
3276 then
3277 if test -z "$CXX"; then
3278 LINKCC="\$(PURIFY) \$(CC)"
3279 else
3280 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3281 $CXX -c conftest_a.cc # 2>&5
3282 echo 'void foo(){}' > conftest_b.$ac_ext
3283 $CC -c conftest_b.$ac_ext # 2>&5
3284 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3285 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3286 then
3287 LINKCC="\$(PURIFY) \$(CC)"
3288 else
3289 LINKCC="\$(PURIFY) \$(CXX)"
3291 rm -fr conftest*
3293 case $ac_sys_system in
3294 AIX*)
3295 exp_extra="\"\""
3296 if test $ac_sys_release -ge 5 -o \
3297 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3298 exp_extra="."
3300 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3301 Monterey64*)
3302 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3303 esac
3305 echo "$as_me:$LINENO: result: $LINKCC" >&5
3306 echo "${ECHO_T}$LINKCC" >&6
3308 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3309 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3310 # Check whether --enable-shared or --disable-shared was given.
3311 if test "${enable_shared+set}" = set; then
3312 enableval="$enable_shared"
3316 if test -z "$enable_shared"
3317 then
3318 case $ac_sys_system in
3319 CYGWIN* | atheos*)
3320 enable_shared="yes";;
3322 enable_shared="no";;
3323 esac
3325 echo "$as_me:$LINENO: result: $enable_shared" >&5
3326 echo "${ECHO_T}$enable_shared" >&6
3328 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3329 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3330 # Check whether --enable-profiling or --disable-profiling was given.
3331 if test "${enable_profiling+set}" = set; then
3332 enableval="$enable_profiling"
3333 ac_save_cc="$CC"
3334 CC="$CC -pg"
3335 if test "$cross_compiling" = yes; then
3336 ac_enable_profiling="no"
3337 else
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 int main() { return 0; }
3345 _ACEOF
3346 rm -f conftest$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_enable_profiling="yes"
3358 else
3359 echo "$as_me: program exited with status $ac_status" >&5
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ( exit $ac_status )
3364 ac_enable_profiling="no"
3366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3368 CC="$ac_save_cc"
3370 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3371 echo "${ECHO_T}$ac_enable_profiling" >&6
3373 case "$ac_enable_profiling" in
3374 "yes")
3375 BASECFLAGS="-pg $BASECFLAGS"
3376 LDFLAGS="-pg $LDFLAGS"
3378 esac
3380 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3381 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3383 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3384 # library that we build, but we do not want to link against it (we
3385 # will find it with a -framework option). For this reason there is an
3386 # extra variable BLDLIBRARY against which Python and the extension
3387 # modules are linked, BLDLIBRARY. This is normally the same as
3388 # LDLIBRARY, but empty for MacOSX framework builds.
3389 if test "$enable_framework"
3390 then
3391 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3392 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3393 BLDLIBRARY=''
3394 else
3395 BLDLIBRARY='$(LDLIBRARY)'
3398 # Other platforms follow
3399 if test $enable_shared = "yes"; then
3401 cat >>confdefs.h <<\_ACEOF
3402 #define Py_ENABLE_SHARED 1
3403 _ACEOF
3405 case $ac_sys_system in
3406 BeOS*)
3407 LDLIBRARY='libpython$(VERSION).so'
3409 CYGWIN*)
3410 LDLIBRARY='libpython$(VERSION).dll.a'
3411 DLLLIBRARY='libpython$(VERSION).dll'
3413 SunOS*)
3414 LDLIBRARY='libpython$(VERSION).so'
3415 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3416 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3417 INSTSONAME="$LDLIBRARY".$SOVERSION
3419 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3420 LDLIBRARY='libpython$(VERSION).so'
3421 BLDLIBRARY='-L. -lpython$(VERSION)'
3422 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3423 case $ac_sys_system in
3424 FreeBSD*)
3425 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3427 esac
3428 INSTSONAME="$LDLIBRARY".$SOVERSION
3430 hp*|HP*)
3431 LDLIBRARY='libpython$(VERSION).sl'
3432 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3433 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3435 OSF*)
3436 LDLIBRARY='libpython$(VERSION).so'
3437 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3438 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3440 atheos*)
3441 LDLIBRARY='libpython$(VERSION).so'
3442 BLDLIBRARY='-L. -lpython$(VERSION)'
3443 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3445 esac
3446 else # shared is disabled
3447 case $ac_sys_system in
3448 CYGWIN*)
3449 BLDLIBRARY='$(LIBRARY)'
3450 LDLIBRARY='libpython$(VERSION).dll.a'
3452 esac
3455 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3456 echo "${ECHO_T}$LDLIBRARY" >&6
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466 if test -n "$RANLIB"; then
3467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3485 RANLIB=$ac_cv_prog_RANLIB
3486 if test -n "$RANLIB"; then
3487 echo "$as_me:$LINENO: result: $RANLIB" >&5
3488 echo "${ECHO_T}$RANLIB" >&6
3489 else
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3495 if test -z "$ac_cv_prog_RANLIB"; then
3496 ac_ct_RANLIB=$RANLIB
3497 # Extract the first word of "ranlib", so it can be a program name with args.
3498 set dummy ranlib; ac_word=$2
3499 echo "$as_me:$LINENO: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 if test -n "$ac_ct_RANLIB"; then
3505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_ac_ct_RANLIB="ranlib"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3518 done
3519 done
3521 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3525 if test -n "$ac_ct_RANLIB"; then
3526 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3527 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3528 else
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3533 RANLIB=$ac_ct_RANLIB
3534 else
3535 RANLIB="$ac_cv_prog_RANLIB"
3539 for ac_prog in ar aal
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_AR+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -n "$AR"; then
3549 ac_cv_prog_AR="$AR" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_AR="$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3562 done
3563 done
3567 AR=$ac_cv_prog_AR
3568 if test -n "$AR"; then
3569 echo "$as_me:$LINENO: result: $AR" >&5
3570 echo "${ECHO_T}$AR" >&6
3571 else
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 test -n "$AR" && break
3577 done
3578 test -n "$AR" || AR="ar"
3582 # Extract the first word of "svnversion", so it can be a program name with args.
3583 set dummy svnversion; ac_word=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 if test -n "$SVNVERSION"; then
3590 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_SVNVERSION="found"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3606 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3609 SVNVERSION=$ac_cv_prog_SVNVERSION
3610 if test -n "$SVNVERSION"; then
3611 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3612 echo "${ECHO_T}$SVNVERSION" >&6
3613 else
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 if test $SVNVERSION = found
3619 then
3620 SVNVERSION="svnversion \$(srcdir)"
3621 else
3622 SVNVERSION="echo exported"
3625 case $MACHDEP in
3626 bsdos*|hp*|HP*)
3627 # install -d does not work on BSDI or HP-UX
3628 if test -z "$INSTALL"
3629 then
3630 INSTALL="${srcdir}/install-sh -c"
3632 esac
3633 ac_aux_dir=
3634 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3635 if test -f $ac_dir/install-sh; then
3636 ac_aux_dir=$ac_dir
3637 ac_install_sh="$ac_aux_dir/install-sh -c"
3638 break
3639 elif test -f $ac_dir/install.sh; then
3640 ac_aux_dir=$ac_dir
3641 ac_install_sh="$ac_aux_dir/install.sh -c"
3642 break
3643 elif test -f $ac_dir/shtool; then
3644 ac_aux_dir=$ac_dir
3645 ac_install_sh="$ac_aux_dir/shtool install -c"
3646 break
3648 done
3649 if test -z "$ac_aux_dir"; then
3650 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3651 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3652 { (exit 1); exit 1; }; }
3654 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3655 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3656 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3658 # Find a good install program. We prefer a C program (faster),
3659 # so one script is as good as another. But avoid the broken or
3660 # incompatible versions:
3661 # SysV /etc/install, /usr/sbin/install
3662 # SunOS /usr/etc/install
3663 # IRIX /sbin/install
3664 # AIX /bin/install
3665 # AmigaOS /C/install, which installs bootblocks on floppy discs
3666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3669 # OS/2's system install, which has a completely different semantic
3670 # ./install, which can be erroneously created by make from ./install.sh.
3671 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3673 if test -z "$INSTALL"; then
3674 if test "${ac_cv_path_install+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 # Account for people who put trailing slashes in PATH elements.
3683 case $as_dir/ in
3684 ./ | .// | /cC/* | \
3685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3686 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3687 /usr/ucb/* ) ;;
3689 # OSF1 and SCO ODT 3.0 have their own names for install.
3690 # Don't use installbsd from OSF since it installs stuff as root
3691 # by default.
3692 for ac_prog in ginstall scoinst install; do
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3695 if test $ac_prog = install &&
3696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3697 # AIX install. It has an incompatible calling convention.
3699 elif test $ac_prog = install &&
3700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3701 # program-specific install script used by HP pwplus--don't use.
3703 else
3704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3705 break 3
3708 done
3709 done
3711 esac
3712 done
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL=$ac_cv_path_install
3718 else
3719 # As a last resort, use the slow shell script. We don't cache a
3720 # path for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the path is relative.
3723 INSTALL=$ac_install_sh
3726 echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3738 # Not every filesystem supports hard links
3740 if test -z "$LN" ; then
3741 case $ac_sys_system in
3742 BeOS*) LN="ln -s";;
3743 CYGWIN*) LN="ln -s";;
3744 atheos*) LN="ln -s";;
3745 *) LN=ln;;
3746 esac
3749 # Check for --with-pydebug
3750 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3751 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3753 # Check whether --with-pydebug or --without-pydebug was given.
3754 if test "${with_pydebug+set}" = set; then
3755 withval="$with_pydebug"
3757 if test "$withval" != no
3758 then
3760 cat >>confdefs.h <<\_ACEOF
3761 #define Py_DEBUG 1
3762 _ACEOF
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6;
3766 Py_DEBUG='true'
3767 else echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3770 else
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3775 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3776 # merged with this chunk of code?
3778 # Optimizer/debugger flags
3779 # ------------------------
3780 # (The following bit of code is complicated enough - please keep things
3781 # indented properly. Just pretend you're editing Python code. ;-)
3783 # There are two parallel sets of case statements below, one that checks to
3784 # see if OPT was set and one that does BASECFLAGS setting based upon
3785 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3786 # user set OPT.
3788 # tweak OPT based on compiler and platform, only if the user didn't set
3789 # it on the command line
3791 if test -z "$OPT"
3792 then
3793 case $GCC in
3794 yes)
3795 if test "$CC" != 'g++' ; then
3796 STRICT_PROTO="-Wstrict-prototypes"
3798 case $ac_cv_prog_cc_g in
3799 yes)
3800 if test "$Py_DEBUG" = 'true' ; then
3801 # Optimization messes up debuggers, so turn it off for
3802 # debug builds.
3803 OPT="-g -Wall $STRICT_PROTO"
3804 else
3805 OPT="-g -O3 -Wall $STRICT_PROTO"
3809 OPT="-O3 -Wall $STRICT_PROTO"
3811 esac
3812 case $ac_sys_system in
3813 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3815 esac
3819 OPT="-O"
3821 esac
3823 # The current (beta) Monterey compiler dies with optimizations
3824 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3825 case $ac_sys_system in
3826 Monterey*)
3827 OPT=""
3829 esac
3834 # tweak BASECFLAGS based on compiler and platform
3835 case $GCC in
3836 yes)
3837 # Python violates C99 rules, by casting between incompatible
3838 # pointer types. GCC may generate bad code as a result of that,
3839 # so use -fno-strict-aliasing if supported.
3840 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3841 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3842 ac_save_cc="$CC"
3843 CC="$CC -fno-strict-aliasing"
3844 if test "$cross_compiling" = yes; then
3845 ac_cv_no_strict_aliasing_ok=no
3846 else
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 int main() { return 0; }
3854 _ACEOF
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_no_strict_aliasing_ok=yes
3867 else
3868 echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ( exit $ac_status )
3873 ac_cv_no_strict_aliasing_ok=no
3875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877 CC="$ac_save_cc"
3878 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3879 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3880 if test $ac_cv_no_strict_aliasing_ok = yes
3881 then
3882 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3884 case $ac_sys_system in
3885 SCO_SV*)
3886 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3888 # is there any other compiler on Darwin besides gcc?
3889 Darwin*)
3890 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3892 OSF*)
3893 BASECFLAGS="$BASECFLAGS -mieee"
3895 esac
3899 case $ac_sys_system in
3900 OpenUNIX*|UnixWare*)
3901 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3903 OSF*)
3904 BASECFLAGS="$BASECFLAGS -ieee -std"
3906 SCO_SV*)
3907 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3909 esac
3911 esac
3913 if test "$Py_DEBUG" = 'true'; then
3915 else
3916 OPT="-DNDEBUG $OPT"
3919 if test "$ac_arch_flags"
3920 then
3921 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3924 # disable check for icc since it seems to pass, but generates a warning
3925 if test "$CC" = icc
3926 then
3927 ac_cv_opt_olimit_ok=no
3930 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3931 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3932 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 ac_save_cc="$CC"
3936 CC="$CC -OPT:Olimit=0"
3937 if test "$cross_compiling" = yes; then
3938 ac_cv_opt_olimit_ok=no
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 int main() { return 0; }
3947 _ACEOF
3948 rm -f conftest$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 (eval $ac_try) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_opt_olimit_ok=yes
3960 else
3961 echo "$as_me: program exited with status $ac_status" >&5
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 ( exit $ac_status )
3966 ac_cv_opt_olimit_ok=no
3968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3970 CC="$ac_save_cc"
3973 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3974 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3975 if test $ac_cv_opt_olimit_ok = yes; then
3976 case $ac_sys_system in
3977 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3978 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3979 # environment?
3980 Darwin*)
3983 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3985 esac
3986 else
3987 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3988 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3989 if test "${ac_cv_olimit_ok+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 ac_save_cc="$CC"
3993 CC="$CC -Olimit 1500"
3994 if test "$cross_compiling" = yes; then
3995 ac_cv_olimit_ok=no
3996 else
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 int main() { return 0; }
4004 _ACEOF
4005 rm -f conftest$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 (eval $ac_try) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4016 ac_cv_olimit_ok=yes
4017 else
4018 echo "$as_me: program exited with status $ac_status" >&5
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ( exit $ac_status )
4023 ac_cv_olimit_ok=no
4025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027 CC="$ac_save_cc"
4030 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4031 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4032 if test $ac_cv_olimit_ok = yes; then
4033 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4037 # On some compilers, pthreads are available without further options
4038 # (e.g. MacOS X). On some of these systems, the compiler will not
4039 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4040 # So we have to see first whether pthreads are available without
4041 # options before we can check whether -Kpthread improves anything.
4042 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4043 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4044 if test "${ac_cv_pthread_is_default+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 if test "$cross_compiling" = yes; then
4048 ac_cv_pthread_is_default=no
4049 else
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4057 #include <pthread.h>
4059 void* routine(void* p){return NULL;}
4061 int main(){
4062 pthread_t p;
4063 if(pthread_create(&p,NULL,routine,NULL)!=0)
4064 return 1;
4065 (void)pthread_detach(p);
4066 return 0;
4069 _ACEOF
4070 rm -f conftest$ac_exeext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4082 ac_cv_pthread_is_default=yes
4083 ac_cv_kthread=no
4084 ac_cv_pthread=no
4086 else
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ( exit $ac_status )
4092 ac_cv_pthread_is_default=no
4094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4100 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4103 if test $ac_cv_pthread_is_default = yes
4104 then
4105 ac_cv_kpthread=no
4106 else
4107 # -Kpthread, if available, provides the right #defines
4108 # and linker options to make pthread_create available
4109 # Some compilers won't report that they do not support -Kpthread,
4110 # so we need to run a program to see whether it really made the
4111 # function available.
4112 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4113 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4114 if test "${ac_cv_kpthread+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 ac_save_cc="$CC"
4118 CC="$CC -Kpthread"
4119 if test "$cross_compiling" = yes; then
4120 ac_cv_kpthread=no
4121 else
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 #include <pthread.h>
4131 void* routine(void* p){return NULL;}
4133 int main(){
4134 pthread_t p;
4135 if(pthread_create(&p,NULL,routine,NULL)!=0)
4136 return 1;
4137 (void)pthread_detach(p);
4138 return 0;
4141 _ACEOF
4142 rm -f conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_kpthread=yes
4154 else
4155 echo "$as_me: program exited with status $ac_status" >&5
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ( exit $ac_status )
4160 ac_cv_kpthread=no
4162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4164 CC="$ac_save_cc"
4167 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4168 echo "${ECHO_T}$ac_cv_kpthread" >&6
4171 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4172 then
4173 # -Kthread, if available, provides the right #defines
4174 # and linker options to make pthread_create available
4175 # Some compilers won't report that they do not support -Kthread,
4176 # so we need to run a program to see whether it really made the
4177 # function available.
4178 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4179 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4180 if test "${ac_cv_kthread+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 ac_save_cc="$CC"
4184 CC="$CC -Kthread"
4185 if test "$cross_compiling" = yes; then
4186 ac_cv_kthread=no
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4195 #include <pthread.h>
4197 void* routine(void* p){return NULL;}
4199 int main(){
4200 pthread_t p;
4201 if(pthread_create(&p,NULL,routine,NULL)!=0)
4202 return 1;
4203 (void)pthread_detach(p);
4204 return 0;
4207 _ACEOF
4208 rm -f conftest$ac_exeext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_kthread=yes
4220 else
4221 echo "$as_me: program exited with status $ac_status" >&5
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ( exit $ac_status )
4226 ac_cv_kthread=no
4228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 CC="$ac_save_cc"
4233 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4234 echo "${ECHO_T}$ac_cv_kthread" >&6
4237 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4238 then
4239 # -pthread, if available, provides the right #defines
4240 # and linker options to make pthread_create available
4241 # Some compilers won't report that they do not support -pthread,
4242 # so we need to run a program to see whether it really made the
4243 # function available.
4244 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4245 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4246 if test "${ac_cv_thread+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 ac_save_cc="$CC"
4250 CC="$CC -pthread"
4251 if test "$cross_compiling" = yes; then
4252 ac_cv_pthread=no
4253 else
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4261 #include <pthread.h>
4263 void* routine(void* p){return NULL;}
4265 int main(){
4266 pthread_t p;
4267 if(pthread_create(&p,NULL,routine,NULL)!=0)
4268 return 1;
4269 (void)pthread_detach(p);
4270 return 0;
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_pthread=yes
4286 else
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ( exit $ac_status )
4292 ac_cv_pthread=no
4294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296 CC="$ac_save_cc"
4299 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4300 echo "${ECHO_T}$ac_cv_pthread" >&6
4303 # If we have set a CC compiler flag for thread support then
4304 # check if it works for CXX, too.
4305 ac_cv_cxx_thread=no
4306 if test ! -z "$CXX"
4307 then
4308 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4309 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4310 ac_save_cxx="$CXX"
4312 if test "$ac_cv_kpthread" = "yes"
4313 then
4314 CXX="$CXX -Kpthread"
4315 ac_cv_cxx_thread=yes
4316 elif test "$ac_cv_kthread" = "yes"
4317 then
4318 CXX="$CXX -Kthread"
4319 ac_cv_cxx_thread=yes
4320 elif test "$ac_cv_pthread" = "yes"
4321 then
4322 CXX="$CXX -pthread"
4323 ac_cv_cxx_thread=yes
4326 if test $ac_cv_cxx_thread = yes
4327 then
4328 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4329 $CXX -c conftest.$ac_ext 2>&5
4330 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4331 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4332 then
4333 ac_cv_cxx_thread=yes
4334 else
4335 ac_cv_cxx_thread=no
4337 rm -fr conftest*
4339 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4340 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4342 CXX="$ac_save_cxx"
4345 # checks for header files
4346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <stdlib.h>
4358 #include <stdarg.h>
4359 #include <string.h>
4360 #include <float.h>
4363 main ()
4367 return 0;
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_header_stdc=yes
4393 else
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_cv_header_stdc=no
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 if test $ac_cv_header_stdc = yes; then
4402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <string.h>
4411 _ACEOF
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4415 else
4416 ac_cv_header_stdc=no
4418 rm -f conftest*
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <stdlib.h>
4432 _ACEOF
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev/null 2>&1; then
4436 else
4437 ac_cv_header_stdc=no
4439 rm -f conftest*
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then
4447 else
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <ctype.h>
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458 #else
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464 #endif
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4468 main ()
4470 int i;
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4474 exit(2);
4475 exit (0);
4477 _ACEOF
4478 rm -f conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4490 else
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ( exit $ac_status )
4496 ac_cv_header_stdc=no
4498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4504 if test $ac_cv_header_stdc = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define STDC_HEADERS 1
4508 _ACEOF
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4523 inttypes.h stdint.h unistd.h
4525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 #include <$ac_header>
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_Header=yes"
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 eval "$as_ac_Header=no"
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4575 cat >>confdefs.h <<_ACEOF
4576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 _ACEOF
4581 done
4623 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4624 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4625 stropts.h termios.h thread.h \
4626 unistd.h utime.h \
4627 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4628 sys/modem.h \
4629 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4630 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4631 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4632 bluetooth/bluetooth.h
4634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4643 else
4644 # Is the header compilable?
4645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 $ac_includes_default
4654 #include <$ac_header>
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_header_compiler=yes
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 ac_header_compiler=no
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4687 echo "${ECHO_T}$ac_header_compiler" >&6
4689 # Is the header present?
4690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #include <$ac_header>
4699 _ACEOF
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null; then
4708 if test -s conftest.err; then
4709 ac_cpp_err=$ac_c_preproc_warn_flag
4710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4711 else
4712 ac_cpp_err=
4714 else
4715 ac_cpp_err=yes
4717 if test -z "$ac_cpp_err"; then
4718 ac_header_preproc=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 ac_header_preproc=no
4725 rm -f conftest.err conftest.$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4727 echo "${ECHO_T}$ac_header_preproc" >&6
4729 # So? What about this header?
4730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4731 yes:no: )
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4736 ac_header_preproc=yes
4738 no:yes:* )
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4752 cat <<\_ASBOX
4753 ## ------------------------------------------------ ##
4754 ## Report this to http://www.python.org/python-bugs ##
4755 ## ------------------------------------------------ ##
4756 _ASBOX
4758 sed "s/^/$as_me: WARNING: /" >&2
4760 esac
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 eval "$as_ac_Header=\$ac_header_preproc"
4768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4779 done
4786 ac_header_dirent=no
4787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4788 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4789 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 #include <$ac_hdr>
4804 main ()
4806 if ((DIR *) 0)
4807 return 0;
4809 return 0;
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 eval "$as_ac_Header=yes"
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 eval "$as_ac_Header=no"
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4848 _ACEOF
4850 ac_header_dirent=$ac_hdr; break
4853 done
4854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4855 if test $ac_header_dirent = dirent.h; then
4856 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4858 if test "${ac_cv_search_opendir+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 ac_func_search_save_LIBS=$LIBS
4862 ac_cv_search_opendir=no
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 #ifdef __cplusplus
4872 extern "C"
4873 #endif
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char opendir ();
4878 main ()
4880 opendir ();
4882 return 0;
4884 _ACEOF
4885 rm -f conftest.$ac_objext conftest$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_c_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_search_opendir="none required"
4908 else
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4913 rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4915 if test "$ac_cv_search_opendir" = no; then
4916 for ac_lib in dir; do
4917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 #ifdef __cplusplus
4927 extern "C"
4928 #endif
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4931 char opendir ();
4933 main ()
4935 opendir ();
4937 return 0;
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_search_opendir="-l$ac_lib"
4963 break
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4971 done
4973 LIBS=$ac_func_search_save_LIBS
4975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4977 if test "$ac_cv_search_opendir" != no; then
4978 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4982 else
4983 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4985 if test "${ac_cv_search_opendir+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 ac_func_search_save_LIBS=$LIBS
4989 ac_cv_search_opendir=no
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 /* Override any gcc2 internal prototype to avoid an error. */
4998 #ifdef __cplusplus
4999 extern "C"
5000 #endif
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5003 char opendir ();
5005 main ()
5007 opendir ();
5009 return 0;
5011 _ACEOF
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest$ac_exeext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_search_opendir="none required"
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5040 rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042 if test "$ac_cv_search_opendir" = no; then
5043 for ac_lib in x; do
5044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5052 /* Override any gcc2 internal prototype to avoid an error. */
5053 #ifdef __cplusplus
5054 extern "C"
5055 #endif
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char opendir ();
5060 main ()
5062 opendir ();
5064 return 0;
5066 _ACEOF
5067 rm -f conftest.$ac_objext conftest$ac_exeext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag"
5077 || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_search_opendir="-l$ac_lib"
5090 break
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5096 rm -f conftest.err conftest.$ac_objext \
5097 conftest$ac_exeext conftest.$ac_ext
5098 done
5100 LIBS=$ac_func_search_save_LIBS
5102 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5103 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5104 if test "$ac_cv_search_opendir" != no; then
5105 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5111 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5112 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5113 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <sys/types.h>
5124 main ()
5126 return makedev(0, 0);
5128 return 0;
5130 _ACEOF
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -z "$ac_c_werror_flag"
5141 || test ! -s conftest.err'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_header_sys_types_h_makedev=yes
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 ac_cv_header_sys_types_h_makedev=no
5160 rm -f conftest.err conftest.$ac_objext \
5161 conftest$ac_exeext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5167 if test $ac_cv_header_sys_types_h_makedev = no; then
5168 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5169 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5170 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5175 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5176 else
5177 # Is the header compilable?
5178 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5179 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187 #include <sys/mkdev.h>
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191 (eval $ac_compile) 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag"
5199 || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 (eval $ac_try) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_header_compiler=yes
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 ac_header_compiler=no
5218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5220 echo "${ECHO_T}$ac_header_compiler" >&6
5222 # Is the header present?
5223 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5224 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/mkdev.h>
5232 _ACEOF
5233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } >/dev/null; then
5241 if test -s conftest.err; then
5242 ac_cpp_err=$ac_c_preproc_warn_flag
5243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5244 else
5245 ac_cpp_err=
5247 else
5248 ac_cpp_err=yes
5250 if test -z "$ac_cpp_err"; then
5251 ac_header_preproc=yes
5252 else
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 ac_header_preproc=no
5258 rm -f conftest.err conftest.$ac_ext
5259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5260 echo "${ECHO_T}$ac_header_preproc" >&6
5262 # So? What about this header?
5263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5264 yes:no: )
5265 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5266 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5268 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5269 ac_header_preproc=yes
5271 no:yes:* )
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5275 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5277 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5282 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5283 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5285 cat <<\_ASBOX
5286 ## ------------------------------------------------ ##
5287 ## Report this to http://www.python.org/python-bugs ##
5288 ## ------------------------------------------------ ##
5289 _ASBOX
5291 sed "s/^/$as_me: WARNING: /" >&2
5293 esac
5294 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5295 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5296 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5305 if test $ac_cv_header_sys_mkdev_h = yes; then
5307 cat >>confdefs.h <<\_ACEOF
5308 #define MAJOR_IN_MKDEV 1
5309 _ACEOF
5315 if test $ac_cv_header_sys_mkdev_h = no; then
5316 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5317 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5318 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5319 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5323 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5324 else
5325 # Is the header compilable?
5326 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5327 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 #include <sys/sysmacros.h>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_header_compiler=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_header_compiler=no
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5368 echo "${ECHO_T}$ac_header_compiler" >&6
5370 # Is the header present?
5371 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5372 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <sys/sysmacros.h>
5380 _ACEOF
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5395 else
5396 ac_cpp_err=yes
5398 if test -z "$ac_cpp_err"; then
5399 ac_header_preproc=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_header_preproc=no
5406 rm -f conftest.err conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5408 echo "${ECHO_T}$ac_header_preproc" >&6
5410 # So? What about this header?
5411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5412 yes:no: )
5413 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5414 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5416 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5417 ac_header_preproc=yes
5419 no:yes:* )
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5423 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5425 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5431 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5433 cat <<\_ASBOX
5434 ## ------------------------------------------------ ##
5435 ## Report this to http://www.python.org/python-bugs ##
5436 ## ------------------------------------------------ ##
5437 _ASBOX
5439 sed "s/^/$as_me: WARNING: /" >&2
5441 esac
5442 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5443 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5444 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5449 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5450 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5453 if test $ac_cv_header_sys_sysmacros_h = yes; then
5455 cat >>confdefs.h <<\_ACEOF
5456 #define MAJOR_IN_SYSMACROS 1
5457 _ACEOF
5466 # On Solaris, term.h requires curses.h
5468 for ac_header in term.h
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 #ifdef HAVE_CURSES_H
5484 #include <curses.h>
5485 #endif
5488 #include <$ac_header>
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -z "$ac_c_werror_flag"
5500 || test ! -s conftest.err'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 eval "$as_ac_Header=yes"
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 eval "$as_ac_Header=no"
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526 _ACEOF
5530 done
5533 # On Linux, netlink.h requires asm/types.h
5535 for ac_header in linux/netlink.h
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5550 #ifdef HAVE_ASM_TYPES_H
5551 #include <asm/types.h>
5552 #endif
5553 #ifdef HAVE_SYS_SOCKET_H
5554 #include <sys/socket.h>
5555 #endif
5558 #include <$ac_header>
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -z "$ac_c_werror_flag"
5570 || test ! -s conftest.err'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try='test -s conftest.$ac_objext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 eval "$as_ac_Header=yes"
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 eval "$as_ac_Header=no"
5589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5594 cat >>confdefs.h <<_ACEOF
5595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596 _ACEOF
5600 done
5603 # checks for typedefs
5604 was_it_defined=no
5605 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5606 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <time.h>
5615 _ACEOF
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 $EGREP "clock_t" >/dev/null 2>&1; then
5618 was_it_defined=yes
5619 else
5622 cat >>confdefs.h <<\_ACEOF
5623 #define clock_t long
5624 _ACEOF
5628 rm -f conftest*
5630 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5631 echo "${ECHO_T}$was_it_defined" >&6
5633 # Check whether using makedev requires defining _OSF_SOURCE
5634 echo "$as_me:$LINENO: checking for makedev" >&5
5635 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <sys/types.h>
5644 main ()
5646 makedev(0, 0)
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_has_makedev=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_has_makedev=no
5680 rm -f conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 if test "$ac_cv_has_makedev" = "no"; then
5683 # we didn't link, try if _OSF_SOURCE will allow us to link
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 #define _OSF_SOURCE 1
5692 #include <sys/types.h>
5695 main ()
5697 makedev(0, 0)
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_has_makedev=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 ac_cv_has_makedev=no
5731 rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h <<\_ACEOF
5736 #define _OSF_SOURCE 1
5737 _ACEOF
5741 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5742 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5743 if test "$ac_cv_has_makedev" = "yes"; then
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_MAKEDEV 1
5747 _ACEOF
5751 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5752 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5753 # defined, but the compiler does not support pragma redefine_extname,
5754 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5755 # structures (such as rlimit64) without declaring them. As a
5756 # work-around, disable LFS on such configurations
5758 use_lfs=yes
5759 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5760 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 #define _LARGEFILE_SOURCE 1
5769 #define _FILE_OFFSET_BITS 64
5770 #include <sys/resource.h>
5773 main ()
5775 struct rlimit foo;
5777 return 0;
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 sol_lfs_bug=no
5803 else
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 sol_lfs_bug=yes
5809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5810 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5811 echo "${ECHO_T}$sol_lfs_bug" >&6
5812 if test "$sol_lfs_bug" = "yes"; then
5813 use_lfs=no
5816 if test "$use_lfs" = "yes"; then
5817 # Two defines needed to enable largefile support on various platforms
5818 # These may affect some typedefs
5820 cat >>confdefs.h <<\_ACEOF
5821 #define _LARGEFILE_SOURCE 1
5822 _ACEOF
5825 cat >>confdefs.h <<\_ACEOF
5826 #define _FILE_OFFSET_BITS 64
5827 _ACEOF
5831 # Add some code to confdefs.h so that the test for off_t works on SCO
5832 cat >> confdefs.h <<\EOF
5833 #if defined(SCO_DS)
5834 #undef _OFF_T
5835 #endif
5838 # Type availability checks
5839 echo "$as_me:$LINENO: checking for mode_t" >&5
5840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5841 if test "${ac_cv_type_mode_t+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5852 main ()
5854 if ((mode_t *) 0)
5855 return 0;
5856 if (sizeof (mode_t))
5857 return 0;
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_type_mode_t=yes
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ac_cv_type_mode_t=no
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5895 if test $ac_cv_type_mode_t = yes; then
5897 else
5899 cat >>confdefs.h <<_ACEOF
5900 #define mode_t int
5901 _ACEOF
5905 echo "$as_me:$LINENO: checking for off_t" >&5
5906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5907 if test "${ac_cv_type_off_t+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5918 main ()
5920 if ((off_t *) 0)
5921 return 0;
5922 if (sizeof (off_t))
5923 return 0;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_off_t=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_off_t=no
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5961 if test $ac_cv_type_off_t = yes; then
5963 else
5965 cat >>confdefs.h <<_ACEOF
5966 #define off_t long
5967 _ACEOF
5971 echo "$as_me:$LINENO: checking for pid_t" >&5
5972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5973 if test "${ac_cv_type_pid_t+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5984 main ()
5986 if ((pid_t *) 0)
5987 return 0;
5988 if (sizeof (pid_t))
5989 return 0;
5991 return 0;
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_type_pid_t=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_cv_type_pid_t=no
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6027 if test $ac_cv_type_pid_t = yes; then
6029 else
6031 cat >>confdefs.h <<_ACEOF
6032 #define pid_t int
6033 _ACEOF
6037 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6038 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6039 if test "${ac_cv_type_signal+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <sys/types.h>
6049 #include <signal.h>
6050 #ifdef signal
6051 # undef signal
6052 #endif
6053 #ifdef __cplusplus
6054 extern "C" void (*signal (int, void (*)(int)))(int);
6055 #else
6056 void (*signal ()) ();
6057 #endif
6060 main ()
6062 int i;
6064 return 0;
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_type_signal=void
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_type_signal=int
6096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6099 echo "${ECHO_T}$ac_cv_type_signal" >&6
6101 cat >>confdefs.h <<_ACEOF
6102 #define RETSIGTYPE $ac_cv_type_signal
6103 _ACEOF
6106 echo "$as_me:$LINENO: checking for size_t" >&5
6107 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6108 if test "${ac_cv_type_size_t+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6119 main ()
6121 if ((size_t *) 0)
6122 return 0;
6123 if (sizeof (size_t))
6124 return 0;
6126 return 0;
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_type_size_t=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_cv_type_size_t=no
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6161 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6162 if test $ac_cv_type_size_t = yes; then
6164 else
6166 cat >>confdefs.h <<_ACEOF
6167 #define size_t unsigned
6168 _ACEOF
6172 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6173 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6174 if test "${ac_cv_type_uid_t+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 #include <sys/types.h>
6185 _ACEOF
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 $EGREP "uid_t" >/dev/null 2>&1; then
6188 ac_cv_type_uid_t=yes
6189 else
6190 ac_cv_type_uid_t=no
6192 rm -f conftest*
6195 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6196 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6197 if test $ac_cv_type_uid_t = no; then
6199 cat >>confdefs.h <<\_ACEOF
6200 #define uid_t int
6201 _ACEOF
6204 cat >>confdefs.h <<\_ACEOF
6205 #define gid_t int
6206 _ACEOF
6210 echo "$as_me:$LINENO: checking for ssize_t" >&5
6211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6212 if test "${ac_cv_type_ssize_t+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6223 main ()
6225 if ((ssize_t *) 0)
6226 return 0;
6227 if (sizeof (ssize_t))
6228 return 0;
6230 return 0;
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6236 ac_status=$?
6237 grep -v '^ *+' conftest.er1 >conftest.err
6238 rm -f conftest.er1
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -z "$ac_c_werror_flag"
6243 || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_type_ssize_t=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_cv_type_ssize_t=no
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6265 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6266 if test $ac_cv_type_ssize_t = yes; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_SSIZE_T 1
6270 _ACEOF
6275 # Sizes of various common basic types
6276 # ANSI C requires sizeof(char) == 1, so no need to check it
6277 echo "$as_me:$LINENO: checking for int" >&5
6278 echo $ECHO_N "checking for int... $ECHO_C" >&6
6279 if test "${ac_cv_type_int+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6290 main ()
6292 if ((int *) 0)
6293 return 0;
6294 if (sizeof (int))
6295 return 0;
6297 return 0;
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_type_int=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_cv_type_int=no
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332 echo "${ECHO_T}$ac_cv_type_int" >&6
6334 echo "$as_me:$LINENO: checking size of int" >&5
6335 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6336 if test "${ac_cv_sizeof_int+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 if test "$ac_cv_type_int" = yes; then
6340 # The cast to unsigned long works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 if test "$cross_compiling" = yes; then
6345 # Depending upon the size, compute the lo and hi bounds.
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6354 main ()
6356 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6357 test_array [0] = 0
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest.$ac_objext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 ac_lo=0 ac_mid=0
6386 while :; do
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6395 main ()
6397 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6398 test_array [0] = 0
6401 return 0;
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_hi=$ac_mid; break
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_lo=`expr $ac_mid + 1`
6432 if test $ac_lo -le $ac_mid; then
6433 ac_lo= ac_hi=
6434 break
6436 ac_mid=`expr 2 '*' $ac_mid + 1`
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 done
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 main ()
6454 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6455 test_array [0] = 0
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_hi=-1 ac_mid=-1
6484 while :; do
6485 cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h. */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6493 main ()
6495 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6496 test_array [0] = 0
6499 return 0;
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_lo=$ac_mid; break
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_hi=`expr '(' $ac_mid ')' - 1`
6530 if test $ac_mid -le $ac_hi; then
6531 ac_lo= ac_hi=
6532 break
6534 ac_mid=`expr 2 '*' $ac_mid`
6536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537 done
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 ac_lo= ac_hi=
6544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547 # Binary search between lo and hi bounds.
6548 while test "x$ac_lo" != "x$ac_hi"; do
6549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6558 main ()
6560 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6561 test_array [0] = 0
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_hi=$ac_mid
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_lo=`expr '(' $ac_mid ')' + 1`
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 done
6598 case $ac_lo in
6599 ?*) ac_cv_sizeof_int=$ac_lo;;
6600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6601 See \`config.log' for more details." >&5
6602 echo "$as_me: error: cannot compute sizeof (int), 77
6603 See \`config.log' for more details." >&2;}
6604 { (exit 1); exit 1; }; } ;;
6605 esac
6606 else
6607 if test "$cross_compiling" = yes; then
6608 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6609 See \`config.log' for more details." >&5
6610 echo "$as_me: error: cannot run test program while cross compiling
6611 See \`config.log' for more details." >&2;}
6612 { (exit 1); exit 1; }; }
6613 else
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 long longval () { return (long) (sizeof (int)); }
6622 unsigned long ulongval () { return (long) (sizeof (int)); }
6623 #include <stdio.h>
6624 #include <stdlib.h>
6626 main ()
6629 FILE *f = fopen ("conftest.val", "w");
6630 if (! f)
6631 exit (1);
6632 if (((long) (sizeof (int))) < 0)
6634 long i = longval ();
6635 if (i != ((long) (sizeof (int))))
6636 exit (1);
6637 fprintf (f, "%ld\n", i);
6639 else
6641 unsigned long i = ulongval ();
6642 if (i != ((long) (sizeof (int))))
6643 exit (1);
6644 fprintf (f, "%lu\n", i);
6646 exit (ferror (f) || fclose (f) != 0);
6649 return 0;
6651 _ACEOF
6652 rm -f conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_sizeof_int=`cat conftest.val`
6664 else
6665 echo "$as_me: program exited with status $ac_status" >&5
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ( exit $ac_status )
6670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6671 See \`config.log' for more details." >&5
6672 echo "$as_me: error: cannot compute sizeof (int), 77
6673 See \`config.log' for more details." >&2;}
6674 { (exit 1); exit 1; }; }
6676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6679 rm -f conftest.val
6680 else
6681 ac_cv_sizeof_int=0
6684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6685 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6686 cat >>confdefs.h <<_ACEOF
6687 #define SIZEOF_INT $ac_cv_sizeof_int
6688 _ACEOF
6691 echo "$as_me:$LINENO: checking for long" >&5
6692 echo $ECHO_N "checking for long... $ECHO_C" >&6
6693 if test "${ac_cv_type_long+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6704 main ()
6706 if ((long *) 0)
6707 return 0;
6708 if (sizeof (long))
6709 return 0;
6711 return 0;
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_type_long=yes
6737 else
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6741 ac_cv_type_long=no
6743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6746 echo "${ECHO_T}$ac_cv_type_long" >&6
6748 echo "$as_me:$LINENO: checking size of long" >&5
6749 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6750 if test "${ac_cv_sizeof_long+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 if test "$ac_cv_type_long" = yes; then
6754 # The cast to unsigned long works around a bug in the HP C Compiler
6755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6757 # This bug is HP SR number 8606223364.
6758 if test "$cross_compiling" = yes; then
6759 # Depending upon the size, compute the lo and hi bounds.
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 $ac_includes_default
6768 main ()
6770 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6771 test_array [0] = 0
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_c_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest.$ac_objext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_lo=0 ac_mid=0
6800 while :; do
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6809 main ()
6811 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6812 test_array [0] = 0
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_hi=$ac_mid; break
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_lo=`expr $ac_mid + 1`
6846 if test $ac_lo -le $ac_mid; then
6847 ac_lo= ac_hi=
6848 break
6850 ac_mid=`expr 2 '*' $ac_mid + 1`
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 done
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6866 main ()
6868 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6869 test_array [0] = 0
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_hi=-1 ac_mid=-1
6898 while :; do
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6907 main ()
6909 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6910 test_array [0] = 0
6913 return 0;
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_lo=$ac_mid; break
6939 else
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 ac_hi=`expr '(' $ac_mid ')' - 1`
6944 if test $ac_mid -le $ac_hi; then
6945 ac_lo= ac_hi=
6946 break
6948 ac_mid=`expr 2 '*' $ac_mid`
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6951 done
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_lo= ac_hi=
6958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6961 # Binary search between lo and hi bounds.
6962 while test "x$ac_lo" != "x$ac_hi"; do
6963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6972 main ()
6974 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6975 test_array [0] = 0
6978 return 0;
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag"
6991 || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_hi=$ac_mid
7004 else
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_lo=`expr '(' $ac_mid ')' + 1`
7010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 done
7012 case $ac_lo in
7013 ?*) ac_cv_sizeof_long=$ac_lo;;
7014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7015 See \`config.log' for more details." >&5
7016 echo "$as_me: error: cannot compute sizeof (long), 77
7017 See \`config.log' for more details." >&2;}
7018 { (exit 1); exit 1; }; } ;;
7019 esac
7020 else
7021 if test "$cross_compiling" = yes; then
7022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7023 See \`config.log' for more details." >&5
7024 echo "$as_me: error: cannot run test program while cross compiling
7025 See \`config.log' for more details." >&2;}
7026 { (exit 1); exit 1; }; }
7027 else
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 long longval () { return (long) (sizeof (long)); }
7036 unsigned long ulongval () { return (long) (sizeof (long)); }
7037 #include <stdio.h>
7038 #include <stdlib.h>
7040 main ()
7043 FILE *f = fopen ("conftest.val", "w");
7044 if (! f)
7045 exit (1);
7046 if (((long) (sizeof (long))) < 0)
7048 long i = longval ();
7049 if (i != ((long) (sizeof (long))))
7050 exit (1);
7051 fprintf (f, "%ld\n", i);
7053 else
7055 unsigned long i = ulongval ();
7056 if (i != ((long) (sizeof (long))))
7057 exit (1);
7058 fprintf (f, "%lu\n", i);
7060 exit (ferror (f) || fclose (f) != 0);
7063 return 0;
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_sizeof_long=`cat conftest.val`
7078 else
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 ( exit $ac_status )
7084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: cannot compute sizeof (long), 77
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 rm -f conftest.val
7094 else
7095 ac_cv_sizeof_long=0
7098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7099 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7100 cat >>confdefs.h <<_ACEOF
7101 #define SIZEOF_LONG $ac_cv_sizeof_long
7102 _ACEOF
7105 echo "$as_me:$LINENO: checking for void *" >&5
7106 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7107 if test "${ac_cv_type_void_p+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7118 main ()
7120 if ((void * *) 0)
7121 return 0;
7122 if (sizeof (void *))
7123 return 0;
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_type_void_p=yes
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 ac_cv_type_void_p=no
7157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7159 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7160 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7162 echo "$as_me:$LINENO: checking size of void *" >&5
7163 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7164 if test "${ac_cv_sizeof_void_p+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 if test "$ac_cv_type_void_p" = yes; then
7168 # The cast to unsigned long works around a bug in the HP C Compiler
7169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7171 # This bug is HP SR number 8606223364.
7172 if test "$cross_compiling" = yes; then
7173 # Depending upon the size, compute the lo and hi bounds.
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7182 main ()
7184 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7185 test_array [0] = 0
7188 return 0;
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_lo=0 ac_mid=0
7214 while :; do
7215 cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h. */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 $ac_includes_default
7223 main ()
7225 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7226 test_array [0] = 0
7229 return 0;
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_hi=$ac_mid; break
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_lo=`expr $ac_mid + 1`
7260 if test $ac_lo -le $ac_mid; then
7261 ac_lo= ac_hi=
7262 break
7264 ac_mid=`expr 2 '*' $ac_mid + 1`
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 done
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7280 main ()
7282 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7283 test_array [0] = 0
7286 return 0;
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_hi=-1 ac_mid=-1
7312 while :; do
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7321 main ()
7323 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7324 test_array [0] = 0
7327 return 0;
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_lo=$ac_mid; break
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_hi=`expr '(' $ac_mid ')' - 1`
7358 if test $ac_mid -le $ac_hi; then
7359 ac_lo= ac_hi=
7360 break
7362 ac_mid=`expr 2 '*' $ac_mid`
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 done
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_lo= ac_hi=
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 # Binary search between lo and hi bounds.
7376 while test "x$ac_lo" != "x$ac_hi"; do
7377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7386 main ()
7388 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7389 test_array [0] = 0
7392 return 0;
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 (eval $ac_compile) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag"
7405 || test ! -s conftest.err'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; } &&
7411 { ac_try='test -s conftest.$ac_objext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_hi=$ac_mid
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_lo=`expr '(' $ac_mid ')' + 1`
7424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425 done
7426 case $ac_lo in
7427 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7428 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7429 See \`config.log' for more details." >&5
7430 echo "$as_me: error: cannot compute sizeof (void *), 77
7431 See \`config.log' for more details." >&2;}
7432 { (exit 1); exit 1; }; } ;;
7433 esac
7434 else
7435 if test "$cross_compiling" = yes; then
7436 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7437 See \`config.log' for more details." >&5
7438 echo "$as_me: error: cannot run test program while cross compiling
7439 See \`config.log' for more details." >&2;}
7440 { (exit 1); exit 1; }; }
7441 else
7442 cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h. */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7449 long longval () { return (long) (sizeof (void *)); }
7450 unsigned long ulongval () { return (long) (sizeof (void *)); }
7451 #include <stdio.h>
7452 #include <stdlib.h>
7454 main ()
7457 FILE *f = fopen ("conftest.val", "w");
7458 if (! f)
7459 exit (1);
7460 if (((long) (sizeof (void *))) < 0)
7462 long i = longval ();
7463 if (i != ((long) (sizeof (void *))))
7464 exit (1);
7465 fprintf (f, "%ld\n", i);
7467 else
7469 unsigned long i = ulongval ();
7470 if (i != ((long) (sizeof (void *))))
7471 exit (1);
7472 fprintf (f, "%lu\n", i);
7474 exit (ferror (f) || fclose (f) != 0);
7477 return 0;
7479 _ACEOF
7480 rm -f conftest$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 (eval $ac_try) 2>&5
7488 ac_status=$?
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 ac_cv_sizeof_void_p=`cat conftest.val`
7492 else
7493 echo "$as_me: program exited with status $ac_status" >&5
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 ( exit $ac_status )
7498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7499 See \`config.log' for more details." >&5
7500 echo "$as_me: error: cannot compute sizeof (void *), 77
7501 See \`config.log' for more details." >&2;}
7502 { (exit 1); exit 1; }; }
7504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7507 rm -f conftest.val
7508 else
7509 ac_cv_sizeof_void_p=0
7512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7513 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7514 cat >>confdefs.h <<_ACEOF
7515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7516 _ACEOF
7519 echo "$as_me:$LINENO: checking for short" >&5
7520 echo $ECHO_N "checking for short... $ECHO_C" >&6
7521 if test "${ac_cv_type_short+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7532 main ()
7534 if ((short *) 0)
7535 return 0;
7536 if (sizeof (short))
7537 return 0;
7539 return 0;
7541 _ACEOF
7542 rm -f conftest.$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag"
7552 || test ! -s conftest.err'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; } &&
7558 { ac_try='test -s conftest.$ac_objext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 ac_cv_type_short=yes
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_cv_type_short=no
7571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7574 echo "${ECHO_T}$ac_cv_type_short" >&6
7576 echo "$as_me:$LINENO: checking size of short" >&5
7577 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7578 if test "${ac_cv_sizeof_short+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 if test "$ac_cv_type_short" = yes; then
7582 # The cast to unsigned long works around a bug in the HP C Compiler
7583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7585 # This bug is HP SR number 8606223364.
7586 if test "$cross_compiling" = yes; then
7587 # Depending upon the size, compute the lo and hi bounds.
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7596 main ()
7598 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7599 test_array [0] = 0
7602 return 0;
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -z "$ac_c_werror_flag"
7615 || test ! -s conftest.err'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_lo=0 ac_mid=0
7628 while :; do
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7637 main ()
7639 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7640 test_array [0] = 0
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try='test -z "$ac_c_werror_flag"
7656 || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_hi=$ac_mid; break
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_lo=`expr $ac_mid + 1`
7674 if test $ac_lo -le $ac_mid; then
7675 ac_lo= ac_hi=
7676 break
7678 ac_mid=`expr 2 '*' $ac_mid + 1`
7680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7681 done
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7694 main ()
7696 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7697 test_array [0] = 0
7700 return 0;
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_hi=-1 ac_mid=-1
7726 while :; do
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7735 main ()
7737 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7738 test_array [0] = 0
7741 return 0;
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_lo=$ac_mid; break
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_hi=`expr '(' $ac_mid ')' - 1`
7772 if test $ac_mid -le $ac_hi; then
7773 ac_lo= ac_hi=
7774 break
7776 ac_mid=`expr 2 '*' $ac_mid`
7778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 done
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 ac_lo= ac_hi=
7786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 # Binary search between lo and hi bounds.
7790 while test "x$ac_lo" != "x$ac_hi"; do
7791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7800 main ()
7802 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7803 test_array [0] = 0
7806 return 0;
7808 _ACEOF
7809 rm -f conftest.$ac_objext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811 (eval $ac_compile) 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -z "$ac_c_werror_flag"
7819 || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_hi=$ac_mid
7832 else
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_lo=`expr '(' $ac_mid ')' + 1`
7838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7839 done
7840 case $ac_lo in
7841 ?*) ac_cv_sizeof_short=$ac_lo;;
7842 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7843 See \`config.log' for more details." >&5
7844 echo "$as_me: error: cannot compute sizeof (short), 77
7845 See \`config.log' for more details." >&2;}
7846 { (exit 1); exit 1; }; } ;;
7847 esac
7848 else
7849 if test "$cross_compiling" = yes; then
7850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7851 See \`config.log' for more details." >&5
7852 echo "$as_me: error: cannot run test program while cross compiling
7853 See \`config.log' for more details." >&2;}
7854 { (exit 1); exit 1; }; }
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 long longval () { return (long) (sizeof (short)); }
7864 unsigned long ulongval () { return (long) (sizeof (short)); }
7865 #include <stdio.h>
7866 #include <stdlib.h>
7868 main ()
7871 FILE *f = fopen ("conftest.val", "w");
7872 if (! f)
7873 exit (1);
7874 if (((long) (sizeof (short))) < 0)
7876 long i = longval ();
7877 if (i != ((long) (sizeof (short))))
7878 exit (1);
7879 fprintf (f, "%ld\n", i);
7881 else
7883 unsigned long i = ulongval ();
7884 if (i != ((long) (sizeof (short))))
7885 exit (1);
7886 fprintf (f, "%lu\n", i);
7888 exit (ferror (f) || fclose (f) != 0);
7891 return 0;
7893 _ACEOF
7894 rm -f conftest$ac_exeext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_sizeof_short=`cat conftest.val`
7906 else
7907 echo "$as_me: program exited with status $ac_status" >&5
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 ( exit $ac_status )
7912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7913 See \`config.log' for more details." >&5
7914 echo "$as_me: error: cannot compute sizeof (short), 77
7915 See \`config.log' for more details." >&2;}
7916 { (exit 1); exit 1; }; }
7918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7921 rm -f conftest.val
7922 else
7923 ac_cv_sizeof_short=0
7926 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7927 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7928 cat >>confdefs.h <<_ACEOF
7929 #define SIZEOF_SHORT $ac_cv_sizeof_short
7930 _ACEOF
7933 echo "$as_me:$LINENO: checking for float" >&5
7934 echo $ECHO_N "checking for float... $ECHO_C" >&6
7935 if test "${ac_cv_type_float+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7946 main ()
7948 if ((float *) 0)
7949 return 0;
7950 if (sizeof (float))
7951 return 0;
7953 return 0;
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_type_float=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_type_float=no
7985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7987 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7988 echo "${ECHO_T}$ac_cv_type_float" >&6
7990 echo "$as_me:$LINENO: checking size of float" >&5
7991 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7992 if test "${ac_cv_sizeof_float+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 if test "$ac_cv_type_float" = yes; then
7996 # The cast to unsigned long works around a bug in the HP C Compiler
7997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7999 # This bug is HP SR number 8606223364.
8000 if test "$cross_compiling" = yes; then
8001 # Depending upon the size, compute the lo and hi bounds.
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8010 main ()
8012 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8013 test_array [0] = 0
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_lo=0 ac_mid=0
8042 while :; do
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8051 main ()
8053 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8054 test_array [0] = 0
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_hi=$ac_mid; break
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_lo=`expr $ac_mid + 1`
8088 if test $ac_lo -le $ac_mid; then
8089 ac_lo= ac_hi=
8090 break
8092 ac_mid=`expr 2 '*' $ac_mid + 1`
8094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8095 done
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8108 main ()
8110 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8111 test_array [0] = 0
8114 return 0;
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_hi=-1 ac_mid=-1
8140 while :; do
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8149 main ()
8151 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8152 test_array [0] = 0
8155 return 0;
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_lo=$ac_mid; break
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 ac_hi=`expr '(' $ac_mid ')' - 1`
8186 if test $ac_mid -le $ac_hi; then
8187 ac_lo= ac_hi=
8188 break
8190 ac_mid=`expr 2 '*' $ac_mid`
8192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8193 done
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_lo= ac_hi=
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203 # Binary search between lo and hi bounds.
8204 while test "x$ac_lo" != "x$ac_hi"; do
8205 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8214 main ()
8216 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8217 test_array [0] = 0
8220 return 0;
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_hi=$ac_mid
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 ac_lo=`expr '(' $ac_mid ')' + 1`
8252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8253 done
8254 case $ac_lo in
8255 ?*) ac_cv_sizeof_float=$ac_lo;;
8256 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8257 See \`config.log' for more details." >&5
8258 echo "$as_me: error: cannot compute sizeof (float), 77
8259 See \`config.log' for more details." >&2;}
8260 { (exit 1); exit 1; }; } ;;
8261 esac
8262 else
8263 if test "$cross_compiling" = yes; then
8264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8265 See \`config.log' for more details." >&5
8266 echo "$as_me: error: cannot run test program while cross compiling
8267 See \`config.log' for more details." >&2;}
8268 { (exit 1); exit 1; }; }
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 long longval () { return (long) (sizeof (float)); }
8278 unsigned long ulongval () { return (long) (sizeof (float)); }
8279 #include <stdio.h>
8280 #include <stdlib.h>
8282 main ()
8285 FILE *f = fopen ("conftest.val", "w");
8286 if (! f)
8287 exit (1);
8288 if (((long) (sizeof (float))) < 0)
8290 long i = longval ();
8291 if (i != ((long) (sizeof (float))))
8292 exit (1);
8293 fprintf (f, "%ld\n", i);
8295 else
8297 unsigned long i = ulongval ();
8298 if (i != ((long) (sizeof (float))))
8299 exit (1);
8300 fprintf (f, "%lu\n", i);
8302 exit (ferror (f) || fclose (f) != 0);
8305 return 0;
8307 _ACEOF
8308 rm -f conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_sizeof_float=`cat conftest.val`
8320 else
8321 echo "$as_me: program exited with status $ac_status" >&5
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ( exit $ac_status )
8326 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8327 See \`config.log' for more details." >&5
8328 echo "$as_me: error: cannot compute sizeof (float), 77
8329 See \`config.log' for more details." >&2;}
8330 { (exit 1); exit 1; }; }
8332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8335 rm -f conftest.val
8336 else
8337 ac_cv_sizeof_float=0
8340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8341 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8342 cat >>confdefs.h <<_ACEOF
8343 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8344 _ACEOF
8347 echo "$as_me:$LINENO: checking for double" >&5
8348 echo $ECHO_N "checking for double... $ECHO_C" >&6
8349 if test "${ac_cv_type_double+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8360 main ()
8362 if ((double *) 0)
8363 return 0;
8364 if (sizeof (double))
8365 return 0;
8367 return 0;
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_type_double=yes
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 ac_cv_type_double=no
8399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8402 echo "${ECHO_T}$ac_cv_type_double" >&6
8404 echo "$as_me:$LINENO: checking size of double" >&5
8405 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8406 if test "${ac_cv_sizeof_double+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 if test "$ac_cv_type_double" = yes; then
8410 # The cast to unsigned long works around a bug in the HP C Compiler
8411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8413 # This bug is HP SR number 8606223364.
8414 if test "$cross_compiling" = yes; then
8415 # Depending upon the size, compute the lo and hi bounds.
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8424 main ()
8426 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8427 test_array [0] = 0
8430 return 0;
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435 (eval $ac_compile) 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag"
8443 || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_lo=0 ac_mid=0
8456 while :; do
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8465 main ()
8467 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8468 test_array [0] = 0
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_hi=$ac_mid; break
8497 else
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_lo=`expr $ac_mid + 1`
8502 if test $ac_lo -le $ac_mid; then
8503 ac_lo= ac_hi=
8504 break
8506 ac_mid=`expr 2 '*' $ac_mid + 1`
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509 done
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8522 main ()
8524 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8525 test_array [0] = 0
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest.$ac_objext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_hi=-1 ac_mid=-1
8554 while :; do
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8563 main ()
8565 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8566 test_array [0] = 0
8569 return 0;
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_lo=$ac_mid; break
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_hi=`expr '(' $ac_mid ')' - 1`
8600 if test $ac_mid -le $ac_hi; then
8601 ac_lo= ac_hi=
8602 break
8604 ac_mid=`expr 2 '*' $ac_mid`
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8607 done
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_lo= ac_hi=
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617 # Binary search between lo and hi bounds.
8618 while test "x$ac_lo" != "x$ac_hi"; do
8619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8628 main ()
8630 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8631 test_array [0] = 0
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest.$ac_objext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_hi=$ac_mid
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_lo=`expr '(' $ac_mid ')' + 1`
8666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 done
8668 case $ac_lo in
8669 ?*) ac_cv_sizeof_double=$ac_lo;;
8670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8671 See \`config.log' for more details." >&5
8672 echo "$as_me: error: cannot compute sizeof (double), 77
8673 See \`config.log' for more details." >&2;}
8674 { (exit 1); exit 1; }; } ;;
8675 esac
8676 else
8677 if test "$cross_compiling" = yes; then
8678 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8679 See \`config.log' for more details." >&5
8680 echo "$as_me: error: cannot run test program while cross compiling
8681 See \`config.log' for more details." >&2;}
8682 { (exit 1); exit 1; }; }
8683 else
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 long longval () { return (long) (sizeof (double)); }
8692 unsigned long ulongval () { return (long) (sizeof (double)); }
8693 #include <stdio.h>
8694 #include <stdlib.h>
8696 main ()
8699 FILE *f = fopen ("conftest.val", "w");
8700 if (! f)
8701 exit (1);
8702 if (((long) (sizeof (double))) < 0)
8704 long i = longval ();
8705 if (i != ((long) (sizeof (double))))
8706 exit (1);
8707 fprintf (f, "%ld\n", i);
8709 else
8711 unsigned long i = ulongval ();
8712 if (i != ((long) (sizeof (double))))
8713 exit (1);
8714 fprintf (f, "%lu\n", i);
8716 exit (ferror (f) || fclose (f) != 0);
8719 return 0;
8721 _ACEOF
8722 rm -f conftest$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_sizeof_double=`cat conftest.val`
8734 else
8735 echo "$as_me: program exited with status $ac_status" >&5
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ( exit $ac_status )
8740 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8741 See \`config.log' for more details." >&5
8742 echo "$as_me: error: cannot compute sizeof (double), 77
8743 See \`config.log' for more details." >&2;}
8744 { (exit 1); exit 1; }; }
8746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8749 rm -f conftest.val
8750 else
8751 ac_cv_sizeof_double=0
8754 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8755 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8756 cat >>confdefs.h <<_ACEOF
8757 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8758 _ACEOF
8761 echo "$as_me:$LINENO: checking for fpos_t" >&5
8762 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_fpos_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8774 main ()
8776 if ((fpos_t *) 0)
8777 return 0;
8778 if (sizeof (fpos_t))
8779 return 0;
8781 return 0;
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_type_fpos_t=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_type_fpos_t=no
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8818 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8819 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8820 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 if test "$ac_cv_type_fpos_t" = yes; then
8824 # The cast to unsigned long works around a bug in the HP C Compiler
8825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8827 # This bug is HP SR number 8606223364.
8828 if test "$cross_compiling" = yes; then
8829 # Depending upon the size, compute the lo and hi bounds.
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8838 main ()
8840 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8841 test_array [0] = 0
8844 return 0;
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_lo=0 ac_mid=0
8870 while :; do
8871 cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 $ac_includes_default
8879 main ()
8881 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8882 test_array [0] = 0
8885 return 0;
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890 (eval $ac_compile) 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -z "$ac_c_werror_flag"
8898 || test ! -s conftest.err'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_hi=$ac_mid; break
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_lo=`expr $ac_mid + 1`
8916 if test $ac_lo -le $ac_mid; then
8917 ac_lo= ac_hi=
8918 break
8920 ac_mid=`expr 2 '*' $ac_mid + 1`
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 done
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 $ac_includes_default
8936 main ()
8938 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8939 test_array [0] = 0
8942 return 0;
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_hi=-1 ac_mid=-1
8968 while :; do
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8977 main ()
8979 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8980 test_array [0] = 0
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_lo=$ac_mid; break
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_hi=`expr '(' $ac_mid ')' - 1`
9014 if test $ac_mid -le $ac_hi; then
9015 ac_lo= ac_hi=
9016 break
9018 ac_mid=`expr 2 '*' $ac_mid`
9020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9021 done
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_lo= ac_hi=
9028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031 # Binary search between lo and hi bounds.
9032 while test "x$ac_lo" != "x$ac_hi"; do
9033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 $ac_includes_default
9042 main ()
9044 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9045 test_array [0] = 0
9048 return 0;
9050 _ACEOF
9051 rm -f conftest.$ac_objext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9053 (eval $ac_compile) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest.$ac_objext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_hi=$ac_mid
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_lo=`expr '(' $ac_mid ')' + 1`
9080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9081 done
9082 case $ac_lo in
9083 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9085 See \`config.log' for more details." >&5
9086 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9087 See \`config.log' for more details." >&2;}
9088 { (exit 1); exit 1; }; } ;;
9089 esac
9090 else
9091 if test "$cross_compiling" = yes; then
9092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9093 See \`config.log' for more details." >&5
9094 echo "$as_me: error: cannot run test program while cross compiling
9095 See \`config.log' for more details." >&2;}
9096 { (exit 1); exit 1; }; }
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 long longval () { return (long) (sizeof (fpos_t)); }
9106 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9107 #include <stdio.h>
9108 #include <stdlib.h>
9110 main ()
9113 FILE *f = fopen ("conftest.val", "w");
9114 if (! f)
9115 exit (1);
9116 if (((long) (sizeof (fpos_t))) < 0)
9118 long i = longval ();
9119 if (i != ((long) (sizeof (fpos_t))))
9120 exit (1);
9121 fprintf (f, "%ld\n", i);
9123 else
9125 unsigned long i = ulongval ();
9126 if (i != ((long) (sizeof (fpos_t))))
9127 exit (1);
9128 fprintf (f, "%lu\n", i);
9130 exit (ferror (f) || fclose (f) != 0);
9133 return 0;
9135 _ACEOF
9136 rm -f conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_sizeof_fpos_t=`cat conftest.val`
9148 else
9149 echo "$as_me: program exited with status $ac_status" >&5
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ( exit $ac_status )
9154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9155 See \`config.log' for more details." >&5
9156 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9157 See \`config.log' for more details." >&2;}
9158 { (exit 1); exit 1; }; }
9160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9163 rm -f conftest.val
9164 else
9165 ac_cv_sizeof_fpos_t=0
9168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9169 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9170 cat >>confdefs.h <<_ACEOF
9171 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9172 _ACEOF
9175 echo "$as_me:$LINENO: checking for size_t" >&5
9176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9177 if test "${ac_cv_type_size_t+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 $ac_includes_default
9188 main ()
9190 if ((size_t *) 0)
9191 return 0;
9192 if (sizeof (size_t))
9193 return 0;
9195 return 0;
9197 _ACEOF
9198 rm -f conftest.$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_cv_type_size_t=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_type_size_t=no
9227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9232 echo "$as_me:$LINENO: checking size of size_t" >&5
9233 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9234 if test "${ac_cv_sizeof_size_t+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237 if test "$ac_cv_type_size_t" = yes; then
9238 # The cast to unsigned long works around a bug in the HP C Compiler
9239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9241 # This bug is HP SR number 8606223364.
9242 if test "$cross_compiling" = yes; then
9243 # Depending upon the size, compute the lo and hi bounds.
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 $ac_includes_default
9252 main ()
9254 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9255 test_array [0] = 0
9258 return 0;
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_lo=0 ac_mid=0
9284 while :; do
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 $ac_includes_default
9293 main ()
9295 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9296 test_array [0] = 0
9299 return 0;
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_hi=$ac_mid; break
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_lo=`expr $ac_mid + 1`
9330 if test $ac_lo -le $ac_mid; then
9331 ac_lo= ac_hi=
9332 break
9334 ac_mid=`expr 2 '*' $ac_mid + 1`
9336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9337 done
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9350 main ()
9352 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9353 test_array [0] = 0
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_hi=-1 ac_mid=-1
9382 while :; do
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 $ac_includes_default
9391 main ()
9393 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9394 test_array [0] = 0
9397 return 0;
9399 _ACEOF
9400 rm -f conftest.$ac_objext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9402 (eval $ac_compile) 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag"
9410 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest.$ac_objext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_lo=$ac_mid; break
9423 else
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 ac_hi=`expr '(' $ac_mid ')' - 1`
9428 if test $ac_mid -le $ac_hi; then
9429 ac_lo= ac_hi=
9430 break
9432 ac_mid=`expr 2 '*' $ac_mid`
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 done
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_lo= ac_hi=
9442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9445 # Binary search between lo and hi bounds.
9446 while test "x$ac_lo" != "x$ac_hi"; do
9447 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 $ac_includes_default
9456 main ()
9458 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9459 test_array [0] = 0
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest.$ac_objext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_hi=$ac_mid
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_lo=`expr '(' $ac_mid ')' + 1`
9494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9495 done
9496 case $ac_lo in
9497 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9498 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9499 See \`config.log' for more details." >&5
9500 echo "$as_me: error: cannot compute sizeof (size_t), 77
9501 See \`config.log' for more details." >&2;}
9502 { (exit 1); exit 1; }; } ;;
9503 esac
9504 else
9505 if test "$cross_compiling" = yes; then
9506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9507 See \`config.log' for more details." >&5
9508 echo "$as_me: error: cannot run test program while cross compiling
9509 See \`config.log' for more details." >&2;}
9510 { (exit 1); exit 1; }; }
9511 else
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 $ac_includes_default
9519 long longval () { return (long) (sizeof (size_t)); }
9520 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9521 #include <stdio.h>
9522 #include <stdlib.h>
9524 main ()
9527 FILE *f = fopen ("conftest.val", "w");
9528 if (! f)
9529 exit (1);
9530 if (((long) (sizeof (size_t))) < 0)
9532 long i = longval ();
9533 if (i != ((long) (sizeof (size_t))))
9534 exit (1);
9535 fprintf (f, "%ld\n", i);
9537 else
9539 unsigned long i = ulongval ();
9540 if (i != ((long) (sizeof (size_t))))
9541 exit (1);
9542 fprintf (f, "%lu\n", i);
9544 exit (ferror (f) || fclose (f) != 0);
9547 return 0;
9549 _ACEOF
9550 rm -f conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_sizeof_size_t=`cat conftest.val`
9562 else
9563 echo "$as_me: program exited with status $ac_status" >&5
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ( exit $ac_status )
9568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9569 See \`config.log' for more details." >&5
9570 echo "$as_me: error: cannot compute sizeof (size_t), 77
9571 See \`config.log' for more details." >&2;}
9572 { (exit 1); exit 1; }; }
9574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9577 rm -f conftest.val
9578 else
9579 ac_cv_sizeof_size_t=0
9582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9583 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9584 cat >>confdefs.h <<_ACEOF
9585 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9586 _ACEOF
9590 echo "$as_me:$LINENO: checking for long long support" >&5
9591 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9592 have_long_long=no
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9601 main ()
9603 long long x; x = (long long)0;
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610 (eval $ac_compile) 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag"
9618 || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9632 cat >>confdefs.h <<\_ACEOF
9633 #define HAVE_LONG_LONG 1
9634 _ACEOF
9636 have_long_long=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $have_long_long" >&5
9645 echo "${ECHO_T}$have_long_long" >&6
9646 if test "$have_long_long" = yes ; then
9647 echo "$as_me:$LINENO: checking for long long" >&5
9648 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9649 if test "${ac_cv_type_long_long+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 $ac_includes_default
9660 main ()
9662 if ((long long *) 0)
9663 return 0;
9664 if (sizeof (long long))
9665 return 0;
9667 return 0;
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_type_long_long=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_type_long_long=no
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9702 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9704 echo "$as_me:$LINENO: checking size of long long" >&5
9705 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9706 if test "${ac_cv_sizeof_long_long+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709 if test "$ac_cv_type_long_long" = yes; then
9710 # The cast to unsigned long works around a bug in the HP C Compiler
9711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9713 # This bug is HP SR number 8606223364.
9714 if test "$cross_compiling" = yes; then
9715 # Depending upon the size, compute the lo and hi bounds.
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9724 main ()
9726 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9727 test_array [0] = 0
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_lo=0 ac_mid=0
9756 while :; do
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9765 main ()
9767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9768 test_array [0] = 0
9771 return 0;
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776 (eval $ac_compile) 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag"
9784 || test ! -s conftest.err'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 (eval $ac_try) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_hi=$ac_mid; break
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_lo=`expr $ac_mid + 1`
9802 if test $ac_lo -le $ac_mid; then
9803 ac_lo= ac_hi=
9804 break
9806 ac_mid=`expr 2 '*' $ac_mid + 1`
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9809 done
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9822 main ()
9824 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9825 test_array [0] = 0
9828 return 0;
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_hi=-1 ac_mid=-1
9854 while :; do
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9863 main ()
9865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9866 test_array [0] = 0
9869 return 0;
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_lo=$ac_mid; break
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_hi=`expr '(' $ac_mid ')' - 1`
9900 if test $ac_mid -le $ac_hi; then
9901 ac_lo= ac_hi=
9902 break
9904 ac_mid=`expr 2 '*' $ac_mid`
9906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9907 done
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_lo= ac_hi=
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 # Binary search between lo and hi bounds.
9918 while test "x$ac_lo" != "x$ac_hi"; do
9919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 $ac_includes_default
9928 main ()
9930 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9931 test_array [0] = 0
9934 return 0;
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939 (eval $ac_compile) 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest.$ac_objext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_hi=$ac_mid
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_lo=`expr '(' $ac_mid ')' + 1`
9966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9967 done
9968 case $ac_lo in
9969 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9971 See \`config.log' for more details." >&5
9972 echo "$as_me: error: cannot compute sizeof (long long), 77
9973 See \`config.log' for more details." >&2;}
9974 { (exit 1); exit 1; }; } ;;
9975 esac
9976 else
9977 if test "$cross_compiling" = yes; then
9978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9979 See \`config.log' for more details." >&5
9980 echo "$as_me: error: cannot run test program while cross compiling
9981 See \`config.log' for more details." >&2;}
9982 { (exit 1); exit 1; }; }
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 long longval () { return (long) (sizeof (long long)); }
9992 unsigned long ulongval () { return (long) (sizeof (long long)); }
9993 #include <stdio.h>
9994 #include <stdlib.h>
9996 main ()
9999 FILE *f = fopen ("conftest.val", "w");
10000 if (! f)
10001 exit (1);
10002 if (((long) (sizeof (long long))) < 0)
10004 long i = longval ();
10005 if (i != ((long) (sizeof (long long))))
10006 exit (1);
10007 fprintf (f, "%ld\n", i);
10009 else
10011 unsigned long i = ulongval ();
10012 if (i != ((long) (sizeof (long long))))
10013 exit (1);
10014 fprintf (f, "%lu\n", i);
10016 exit (ferror (f) || fclose (f) != 0);
10019 return 0;
10021 _ACEOF
10022 rm -f conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_sizeof_long_long=`cat conftest.val`
10034 else
10035 echo "$as_me: program exited with status $ac_status" >&5
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ( exit $ac_status )
10040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10041 See \`config.log' for more details." >&5
10042 echo "$as_me: error: cannot compute sizeof (long long), 77
10043 See \`config.log' for more details." >&2;}
10044 { (exit 1); exit 1; }; }
10046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10049 rm -f conftest.val
10050 else
10051 ac_cv_sizeof_long_long=0
10054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10055 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10056 cat >>confdefs.h <<_ACEOF
10057 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10058 _ACEOF
10063 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10064 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10065 have_uintptr_t=no
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10074 main ()
10076 uintptr_t x; x = (uintptr_t)0;
10078 return 0;
10080 _ACEOF
10081 rm -f conftest.$ac_objext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083 (eval $ac_compile) 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest.$ac_objext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_UINTPTR_T 1
10107 _ACEOF
10109 have_uintptr_t=yes
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10118 echo "${ECHO_T}$have_uintptr_t" >&6
10119 if test "$have_uintptr_t" = yes ; then
10120 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10121 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10122 if test "${ac_cv_type_uintptr_t+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h. */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 $ac_includes_default
10133 main ()
10135 if ((uintptr_t *) 0)
10136 return 0;
10137 if (sizeof (uintptr_t))
10138 return 0;
10140 return 0;
10142 _ACEOF
10143 rm -f conftest.$ac_objext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10145 (eval $ac_compile) 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest.$ac_objext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_type_uintptr_t=yes
10166 else
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_type_uintptr_t=no
10172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10175 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10177 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10178 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10179 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 if test "$ac_cv_type_uintptr_t" = yes; then
10183 # The cast to unsigned long works around a bug in the HP C Compiler
10184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10186 # This bug is HP SR number 8606223364.
10187 if test "$cross_compiling" = yes; then
10188 # Depending upon the size, compute the lo and hi bounds.
10189 cat >conftest.$ac_ext <<_ACEOF
10190 /* confdefs.h. */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 $ac_includes_default
10197 main ()
10199 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10200 test_array [0] = 0
10203 return 0;
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_lo=0 ac_mid=0
10229 while :; do
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10238 main ()
10240 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10241 test_array [0] = 0
10244 return 0;
10246 _ACEOF
10247 rm -f conftest.$ac_objext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag"
10257 || test ! -s conftest.err'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest.$ac_objext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_hi=$ac_mid; break
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_lo=`expr $ac_mid + 1`
10275 if test $ac_lo -le $ac_mid; then
10276 ac_lo= ac_hi=
10277 break
10279 ac_mid=`expr 2 '*' $ac_mid + 1`
10281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282 done
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 $ac_includes_default
10295 main ()
10297 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10298 test_array [0] = 0
10301 return 0;
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_hi=-1 ac_mid=-1
10327 while :; do
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10336 main ()
10338 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10339 test_array [0] = 0
10342 return 0;
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_lo=$ac_mid; break
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_hi=`expr '(' $ac_mid ')' - 1`
10373 if test $ac_mid -le $ac_hi; then
10374 ac_lo= ac_hi=
10375 break
10377 ac_mid=`expr 2 '*' $ac_mid`
10379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380 done
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_lo= ac_hi=
10387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10390 # Binary search between lo and hi bounds.
10391 while test "x$ac_lo" != "x$ac_hi"; do
10392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 $ac_includes_default
10401 main ()
10403 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10404 test_array [0] = 0
10407 return 0;
10409 _ACEOF
10410 rm -f conftest.$ac_objext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -z "$ac_c_werror_flag"
10420 || test ! -s conftest.err'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; } &&
10426 { ac_try='test -s conftest.$ac_objext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_hi=$ac_mid
10433 else
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_lo=`expr '(' $ac_mid ')' + 1`
10439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10440 done
10441 case $ac_lo in
10442 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10443 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10444 See \`config.log' for more details." >&5
10445 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10446 See \`config.log' for more details." >&2;}
10447 { (exit 1); exit 1; }; } ;;
10448 esac
10449 else
10450 if test "$cross_compiling" = yes; then
10451 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10452 See \`config.log' for more details." >&5
10453 echo "$as_me: error: cannot run test program while cross compiling
10454 See \`config.log' for more details." >&2;}
10455 { (exit 1); exit 1; }; }
10456 else
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 long longval () { return (long) (sizeof (uintptr_t)); }
10465 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10466 #include <stdio.h>
10467 #include <stdlib.h>
10469 main ()
10472 FILE *f = fopen ("conftest.val", "w");
10473 if (! f)
10474 exit (1);
10475 if (((long) (sizeof (uintptr_t))) < 0)
10477 long i = longval ();
10478 if (i != ((long) (sizeof (uintptr_t))))
10479 exit (1);
10480 fprintf (f, "%ld\n", i);
10482 else
10484 unsigned long i = ulongval ();
10485 if (i != ((long) (sizeof (uintptr_t))))
10486 exit (1);
10487 fprintf (f, "%lu\n", i);
10489 exit (ferror (f) || fclose (f) != 0);
10492 return 0;
10494 _ACEOF
10495 rm -f conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10507 else
10508 echo "$as_me: program exited with status $ac_status" >&5
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ( exit $ac_status )
10513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10514 See \`config.log' for more details." >&5
10515 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10516 See \`config.log' for more details." >&2;}
10517 { (exit 1); exit 1; }; }
10519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10522 rm -f conftest.val
10523 else
10524 ac_cv_sizeof_uintptr_t=0
10527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10528 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10529 cat >>confdefs.h <<_ACEOF
10530 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10531 _ACEOF
10536 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10537 echo "$as_me:$LINENO: checking size of off_t" >&5
10538 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10539 if test "${ac_cv_sizeof_off_t+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 if test "$cross_compiling" = yes; then
10543 ac_cv_sizeof_off_t=4
10544 else
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <stdio.h>
10552 #include <sys/types.h>
10553 main()
10555 FILE *f=fopen("conftestval", "w");
10556 if (!f) exit(1);
10557 fprintf(f, "%d\n", sizeof(off_t));
10558 exit(0);
10560 _ACEOF
10561 rm -f conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_sizeof_off_t=`cat conftestval`
10573 else
10574 echo "$as_me: program exited with status $ac_status" >&5
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ( exit $ac_status )
10579 ac_cv_sizeof_off_t=0
10581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10587 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10589 cat >>confdefs.h <<_ACEOF
10590 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10591 _ACEOF
10594 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10595 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10596 if test "$have_long_long" = yes -a \
10597 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10598 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_LARGEFILE_SUPPORT 1
10602 _ACEOF
10604 echo "$as_me:$LINENO: result: yes" >&5
10605 echo "${ECHO_T}yes" >&6
10606 else
10607 echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6
10611 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10612 echo "$as_me:$LINENO: checking size of time_t" >&5
10613 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10614 if test "${ac_cv_sizeof_time_t+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test "$cross_compiling" = yes; then
10618 ac_cv_sizeof_time_t=4
10619 else
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 #include <stdio.h>
10627 #include <time.h>
10628 main()
10630 FILE *f=fopen("conftestval", "w");
10631 if (!f) exit(1);
10632 fprintf(f, "%d\n", sizeof(time_t));
10633 exit(0);
10635 _ACEOF
10636 rm -f conftest$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638 (eval $ac_link) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_sizeof_time_t=`cat conftestval`
10648 else
10649 echo "$as_me: program exited with status $ac_status" >&5
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ( exit $ac_status )
10654 ac_cv_sizeof_time_t=0
10656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10661 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10662 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10664 cat >>confdefs.h <<_ACEOF
10665 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10666 _ACEOF
10670 # if have pthread_t then define SIZEOF_PTHREAD_T
10671 ac_save_cc="$CC"
10672 if test "$ac_cv_kpthread" = "yes"
10673 then CC="$CC -Kpthread"
10674 elif test "$ac_cv_kthread" = "yes"
10675 then CC="$CC -Kthread"
10676 elif test "$ac_cv_pthread" = "yes"
10677 then CC="$CC -pthread"
10679 echo "$as_me:$LINENO: checking for pthread_t" >&5
10680 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10681 have_pthread_t=no
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <pthread.h>
10690 main ()
10692 pthread_t x; x = *(pthread_t*)0;
10694 return 0;
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699 (eval $ac_compile) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 have_pthread_t=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10727 echo "${ECHO_T}$have_pthread_t" >&6
10728 if test "$have_pthread_t" = yes ; then
10729 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10730 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10731 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10732 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 if test "$cross_compiling" = yes; then
10736 ac_cv_sizeof_pthread_t=4
10737 else
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <stdio.h>
10745 #include <pthread.h>
10746 main()
10748 FILE *f=fopen("conftestval", "w");
10749 if (!f) exit(1);
10750 fprintf(f, "%d\n", sizeof(pthread_t));
10751 exit(0);
10753 _ACEOF
10754 rm -f conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_sizeof_pthread_t=`cat conftestval`
10766 else
10767 echo "$as_me: program exited with status $ac_status" >&5
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ( exit $ac_status )
10772 ac_cv_sizeof_pthread_t=0
10774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10779 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10780 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10782 cat >>confdefs.h <<_ACEOF
10783 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10784 _ACEOF
10787 CC="$ac_save_cc"
10789 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10790 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10791 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10792 if test "${enable_toolbox_glue+set}" = set; then
10793 enableval="$enable_toolbox_glue"
10797 if test -z "$enable_toolbox_glue"
10798 then
10799 case $ac_sys_system/$ac_sys_release in
10800 Darwin/*)
10801 enable_toolbox_glue="yes";;
10803 enable_toolbox_glue="no";;
10804 esac
10806 case "$enable_toolbox_glue" in
10807 yes)
10808 extra_machdep_objs="Python/mactoolboxglue.o"
10809 extra_undefs="-u _PyMac_Error"
10811 cat >>confdefs.h <<\_ACEOF
10812 #define USE_TOOLBOX_OBJECT_GLUE 1
10813 _ACEOF
10817 extra_machdep_objs=""
10818 extra_undefs=""
10820 esac
10821 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10822 echo "${ECHO_T}$enable_toolbox_glue" >&6
10825 case $ac_sys_system/$ac_sys_release in
10826 Darwin/[01567]\..*)
10827 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10829 Darwin/*)
10830 OTHER_LIBTOOL_OPT=""
10832 esac
10835 case $ac_sys_system/$ac_sys_release in
10836 Darwin/[01567]\..*)
10837 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`"
10838 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10839 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10840 Darwin/*)
10841 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10842 if test ${gcc_version} '<' 4.0
10843 then
10844 LIBTOOL_CRUFT="-lcc_dynamic"
10845 else
10846 LIBTOOL_CRUFT=""
10848 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10849 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10850 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10851 esac
10853 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10854 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10855 if test "$enable_framework"
10856 then
10857 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10858 # -F. is needed to allow linking to the framework while
10859 # in the build location.
10861 cat >>confdefs.h <<\_ACEOF
10862 #define WITH_NEXT_FRAMEWORK 1
10863 _ACEOF
10865 echo "$as_me:$LINENO: result: yes" >&5
10866 echo "${ECHO_T}yes" >&6
10867 else
10868 echo "$as_me:$LINENO: result: no" >&5
10869 echo "${ECHO_T}no" >&6
10872 echo "$as_me:$LINENO: checking for dyld" >&5
10873 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10874 case $ac_sys_system/$ac_sys_release in
10875 Darwin/*)
10877 cat >>confdefs.h <<\_ACEOF
10878 #define WITH_DYLD 1
10879 _ACEOF
10881 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10882 echo "${ECHO_T}always on for Darwin" >&6
10885 echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6
10888 esac
10890 # Set info about shared libraries.
10896 # SO is the extension of shared libraries `(including the dot!)
10897 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10898 echo "$as_me:$LINENO: checking SO" >&5
10899 echo $ECHO_N "checking SO... $ECHO_C" >&6
10900 if test -z "$SO"
10901 then
10902 case $ac_sys_system in
10903 hp*|HP*) SO=.sl;;
10904 CYGWIN*) SO=.dll;;
10905 *) SO=.so;;
10906 esac
10907 else
10908 # this might also be a termcap variable, see #610332
10909 echo
10910 echo '====================================================================='
10911 echo '+ +'
10912 echo '+ WARNING: You have set SO in your environment. +'
10913 echo '+ Do you really mean to change the extension for shared libraries? +'
10914 echo '+ Continuing in 10 seconds to let you to ponder. +'
10915 echo '+ +'
10916 echo '====================================================================='
10917 sleep 10
10919 echo "$as_me:$LINENO: result: $SO" >&5
10920 echo "${ECHO_T}$SO" >&6
10921 # LDSHARED is the ld *command* used to create shared library
10922 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10923 # (Shared libraries in this instance are shared modules to be loaded into
10924 # Python, as opposed to building Python itself as a shared library.)
10925 echo "$as_me:$LINENO: checking LDSHARED" >&5
10926 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10927 if test -z "$LDSHARED"
10928 then
10929 case $ac_sys_system/$ac_sys_release in
10930 AIX*)
10931 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10932 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10934 BeOS*)
10935 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10936 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10938 IRIX/5*) LDSHARED="ld -shared";;
10939 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10940 SunOS/5*)
10941 if test "$GCC" = "yes"
10942 then LDSHARED='$(CC) -shared'
10943 else LDSHARED='$(CC) -G';
10944 fi ;;
10945 hp*|HP*) LDSHARED="ld -b";;
10946 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10947 Darwin/1.3*)
10948 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10949 if test "$enable_framework" ; then
10950 # Link against the framework. All externals should be defined.
10951 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10952 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10953 else
10954 # No framework. Ignore undefined symbols, assuming they come from Python
10955 LDSHARED="$LDSHARED -undefined suppress"
10956 fi ;;
10957 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10958 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10959 if test "$enable_framework" ; then
10960 # Link against the framework. All externals should be defined.
10961 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10962 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10963 else
10964 # No framework, use the Python app as bundle-loader
10965 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10966 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10967 fi ;;
10968 Darwin/*)
10969 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10970 # This allows an extension to be used in any Python
10971 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10972 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10973 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10974 then
10975 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10976 BLDSHARED="$LDSHARED"
10977 else
10978 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10979 if test "$enable_framework" ; then
10980 # Link against the framework. All externals should be defined.
10981 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10982 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10983 else
10984 # No framework, use the Python app as bundle-loader
10985 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10986 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10990 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10991 BSD/OS*/4*) LDSHARED="gcc -shared";;
10992 OpenBSD*|FreeBSD*)
10993 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10994 then
10995 LDSHARED="$CC -shared ${LDFLAGS}"
10996 else
10997 LDSHARED="ld -Bshareable ${LDFLAGS}"
10998 fi;;
10999 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11000 OpenUNIX*|UnixWare*)
11001 if test "$GCC" = "yes"
11002 then LDSHARED='$(CC) -shared'
11003 else LDSHARED='$(CC) -G'
11004 fi;;
11005 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11006 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11007 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11008 atheos*) LDSHARED="gcc -shared";;
11009 *) LDSHARED="ld";;
11010 esac
11012 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11013 echo "${ECHO_T}$LDSHARED" >&6
11014 BLDSHARED=${BLDSHARED-$LDSHARED}
11015 # CCSHARED are the C *flags* used to create objects to go into a shared
11016 # library (module) -- this is only needed for a few systems
11017 echo "$as_me:$LINENO: checking CCSHARED" >&5
11018 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11019 if test -z "$CCSHARED"
11020 then
11021 case $ac_sys_system/$ac_sys_release in
11022 SunOS*) if test "$GCC" = yes;
11023 then CCSHARED="-fPIC";
11024 else CCSHARED="-xcode=pic32";
11025 fi;;
11026 hp*|HP*) if test "$GCC" = yes;
11027 then CCSHARED="-fPIC";
11028 else CCSHARED="+z";
11029 fi;;
11030 Linux*|GNU*) CCSHARED="-fPIC";;
11031 BSD/OS*/4*) CCSHARED="-fpic";;
11032 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11033 OpenUNIX*|UnixWare*)
11034 if test "$GCC" = "yes"
11035 then CCSHARED="-fPIC"
11036 else CCSHARED="-KPIC"
11037 fi;;
11038 SCO_SV*)
11039 if test "$GCC" = "yes"
11040 then CCSHARED="-fPIC"
11041 else CCSHARED="-Kpic -belf"
11042 fi;;
11043 Monterey*) CCSHARED="-G";;
11044 IRIX*/6*) case $CC in
11045 *gcc*) CCSHARED="-shared";;
11046 *) CCSHARED="";;
11047 esac;;
11048 atheos*) CCSHARED="-fPIC";;
11049 esac
11051 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11052 echo "${ECHO_T}$CCSHARED" >&6
11053 # LINKFORSHARED are the flags passed to the $(CC) command that links
11054 # the python executable -- this is only needed for a few systems
11055 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11056 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11057 if test -z "$LINKFORSHARED"
11058 then
11059 case $ac_sys_system/$ac_sys_release in
11060 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11061 hp*|HP*)
11062 LINKFORSHARED="-Wl,-E -Wl,+s";;
11063 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11064 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11065 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11066 # -u libsys_s pulls in all symbols in libsys
11067 Darwin/*)
11068 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11069 # which is
11070 # not used by the core itself but which needs to be in the core so
11071 # that dynamically loaded extension modules have access to it.
11072 # -prebind is no longer used, because it actually seems to give a
11073 # slowdown in stead of a speedup, maybe due to the large number of
11074 # dynamic loads Python does.
11076 LINKFORSHARED="$extra_undefs"
11077 if test "$enable_framework"
11078 then
11079 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11081 LINKFORSHARED="$LINKFORSHARED";;
11082 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11083 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11084 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11085 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11086 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11087 then
11088 LINKFORSHARED="-Wl,--export-dynamic"
11089 fi;;
11090 SunOS/5*) case $CC in
11091 *gcc*)
11092 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11093 then
11094 LINKFORSHARED="-Xlinker --export-dynamic"
11095 fi;;
11096 esac;;
11097 CYGWIN*)
11098 if test $enable_shared = "no"
11099 then
11100 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11101 fi;;
11102 esac
11104 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11105 echo "${ECHO_T}$LINKFORSHARED" >&6
11108 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11109 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11110 if test ! "$LIBRARY" = "$LDLIBRARY"
11111 then
11112 case $ac_sys_system in
11113 CYGWIN*)
11114 # Cygwin needs CCSHARED when building extension DLLs
11115 # but not when building the interpreter DLL.
11116 CFLAGSFORSHARED='';;
11118 CFLAGSFORSHARED='$(CCSHARED)'
11119 esac
11121 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11122 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11124 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11125 # library (with --enable-shared).
11126 # For platforms on which shared libraries are not allowed to have unresolved
11127 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11128 # if it is not required, since it creates a dependency of the shared library
11129 # to LIBS. This, in turn, means that applications linking the shared libpython
11130 # don't need to link LIBS explicitly. The default should be only changed
11131 # on systems where this approach causes problems.
11133 echo "$as_me:$LINENO: checking SHLIBS" >&5
11134 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11135 case "$ac_sys_system" in
11137 SHLIBS='$(LIBS)';;
11138 esac
11139 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11140 echo "${ECHO_T}$SHLIBS" >&6
11143 # checks for libraries
11145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11146 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-ldl $LIBS"
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11159 /* Override any gcc2 internal prototype to avoid an error. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char dlopen ();
11167 main ()
11169 dlopen ();
11171 return 0;
11173 _ACEOF
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_dl_dlopen=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_lib_dl_dlopen=no
11203 rm -f conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11209 if test $ac_cv_lib_dl_dlopen = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define HAVE_LIBDL 1
11212 _ACEOF
11214 LIBS="-ldl $LIBS"
11217 # Dynamic linking for SunOS/Solaris and SYSV
11219 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11220 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11221 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-ldld $LIBS"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 /* Override any gcc2 internal prototype to avoid an error. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 /* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11239 char shl_load ();
11241 main ()
11243 shl_load ();
11245 return 0;
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -z "$ac_c_werror_flag"
11258 || test ! -s conftest.err'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest$ac_exeext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_cv_lib_dld_shl_load=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_cv_lib_dld_shl_load=no
11277 rm -f conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11281 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11282 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11283 if test $ac_cv_lib_dld_shl_load = yes; then
11284 cat >>confdefs.h <<_ACEOF
11285 #define HAVE_LIBDLD 1
11286 _ACEOF
11288 LIBS="-ldld $LIBS"
11291 # Dynamic linking for HP-UX
11293 # only check for sem_ini if thread support is requested
11294 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11295 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11296 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11297 if test "${ac_cv_search_sem_init+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 ac_func_search_save_LIBS=$LIBS
11301 ac_cv_search_sem_init=no
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 /* Override any gcc2 internal prototype to avoid an error. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char sem_init ();
11317 main ()
11319 sem_init ();
11321 return 0;
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest$ac_exeext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_cv_search_sem_init="none required"
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 if test "$ac_cv_search_sem_init" = no; then
11355 for ac_lib in pthread rt posix4; do
11356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h. */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11364 /* Override any gcc2 internal prototype to avoid an error. */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 /* We use char because int might match the return type of a gcc2
11369 builtin and then its argument prototype would still apply. */
11370 char sem_init ();
11372 main ()
11374 sem_init ();
11376 return 0;
11378 _ACEOF
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_cv_search_sem_init="-l$ac_lib"
11402 break
11403 else
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11408 rm -f conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 done
11412 LIBS=$ac_func_search_save_LIBS
11414 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11415 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11416 if test "$ac_cv_search_sem_init" != no; then
11417 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11420 # 'Real Time' functions on Solaris
11421 # posix4 on Solaris 2.6
11422 # pthread (first!) on Linux
11425 # check if we need libintl for locale functions
11426 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11427 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11428 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-lintl $LIBS"
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 /* We use char because int might match the return type of a gcc2
11445 builtin and then its argument prototype would still apply. */
11446 char textdomain ();
11448 main ()
11450 textdomain ();
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_intl_textdomain=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_lib_intl_textdomain=no
11484 rm -f conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11489 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11490 if test $ac_cv_lib_intl_textdomain = yes; then
11492 cat >>confdefs.h <<\_ACEOF
11493 #define WITH_LIBINTL 1
11494 _ACEOF
11499 # checks for system dependent C++ extensions support
11500 case "$ac_sys_system" in
11501 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11502 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include "/usr/lpp/xlC/include/load.h"
11511 main ()
11513 loadAndInit("", 0, "")
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11541 cat >>confdefs.h <<\_ACEOF
11542 #define AIX_GENUINE_CPLUSPLUS 1
11543 _ACEOF
11545 echo "$as_me:$LINENO: result: yes" >&5
11546 echo "${ECHO_T}yes" >&6
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6
11554 rm -f conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext;;
11556 *) ;;
11557 esac
11559 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11560 # BeOS' sockets are stashed in libnet.
11561 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11562 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-lnsl $LIBS"
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11575 /* Override any gcc2 internal prototype to avoid an error. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 /* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11581 char t_open ();
11583 main ()
11585 t_open ();
11587 return 0;
11589 _ACEOF
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592 (eval $ac_link) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_lib_nsl_t_open=yes
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_lib_nsl_t_open=no
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11624 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11625 if test $ac_cv_lib_nsl_t_open = yes; then
11626 LIBS="-lnsl $LIBS"
11628 # SVR4
11629 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11630 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11631 if test "${ac_cv_lib_socket_socket+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-lsocket $LIBS $LIBS"
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11643 /* Override any gcc2 internal prototype to avoid an error. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649 char socket ();
11651 main ()
11653 socket ();
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_socket_socket=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_cv_lib_socket_socket=no
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11692 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11693 if test $ac_cv_lib_socket_socket = yes; then
11694 LIBS="-lsocket $LIBS"
11696 # SVR4 sockets
11698 case "$ac_sys_system" in
11699 BeOS*)
11700 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11701 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11702 if test "${ac_cv_lib_net_socket+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lnet $LIBS $LIBS"
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11714 /* Override any gcc2 internal prototype to avoid an error. */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 /* We use char because int might match the return type of a gcc2
11719 builtin and then its argument prototype would still apply. */
11720 char socket ();
11722 main ()
11724 socket ();
11726 return 0;
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag"
11739 || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_lib_net_socket=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_cv_lib_net_socket=no
11758 rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11762 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11763 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11764 if test $ac_cv_lib_net_socket = yes; then
11765 LIBS="-lnet $LIBS"
11767 # BeOS
11769 esac
11771 echo "$as_me:$LINENO: checking for --with-libs" >&5
11772 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11774 # Check whether --with-libs or --without-libs was given.
11775 if test "${with_libs+set}" = set; then
11776 withval="$with_libs"
11778 echo "$as_me:$LINENO: result: $withval" >&5
11779 echo "${ECHO_T}$withval" >&6
11780 LIBS="$withval $LIBS"
11782 else
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11787 # Check for use of the system libffi library
11788 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11789 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11791 # Check whether --with-system_ffi or --without-system_ffi was given.
11792 if test "${with_system_ffi+set}" = set; then
11793 withval="$with_system_ffi"
11797 if test -z "$with_system_ffi"
11798 then with_system_ffi="no"
11800 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11801 echo "${ECHO_T}$with_system_ffi" >&6
11803 # Determine if signalmodule should be used.
11806 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11807 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11809 # Check whether --with-signal-module or --without-signal-module was given.
11810 if test "${with_signal_module+set}" = set; then
11811 withval="$with_signal_module"
11815 if test -z "$with_signal_module"
11816 then with_signal_module="yes"
11818 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11819 echo "${ECHO_T}$with_signal_module" >&6
11821 if test "${with_signal_module}" = "yes"; then
11822 USE_SIGNAL_MODULE=""
11823 SIGNAL_OBJS=""
11824 else
11825 USE_SIGNAL_MODULE="#"
11826 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11829 # This is used to generate Setup.config
11831 USE_THREAD_MODULE=""
11833 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11834 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11837 # Check whether --with-dec-threads or --without-dec-threads was given.
11838 if test "${with_dec_threads+set}" = set; then
11839 withval="$with_dec_threads"
11841 echo "$as_me:$LINENO: result: $withval" >&5
11842 echo "${ECHO_T}$withval" >&6
11843 LDLAST=-threads
11844 if test "${with_thread+set}" != set; then
11845 with_thread="$withval";
11847 else
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11852 # Templates for things AC_DEFINEd more than once.
11853 # For a single AC_DEFINE, no template is needed.
11861 echo "$as_me:$LINENO: checking for --with-threads" >&5
11862 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11864 # Check whether --with-threads or --without-threads was given.
11865 if test "${with_threads+set}" = set; then
11866 withval="$with_threads"
11870 # --with-thread is deprecated, but check for it anyway
11872 # Check whether --with-thread or --without-thread was given.
11873 if test "${with_thread+set}" = set; then
11874 withval="$with_thread"
11875 with_threads=$with_thread
11878 if test -z "$with_threads"
11879 then with_threads="yes"
11881 echo "$as_me:$LINENO: result: $with_threads" >&5
11882 echo "${ECHO_T}$with_threads" >&6
11885 if test "$with_threads" = "no"
11886 then
11887 USE_THREAD_MODULE="#"
11888 elif test "$ac_cv_pthread_is_default" = yes
11889 then
11890 cat >>confdefs.h <<\_ACEOF
11891 #define WITH_THREAD 1
11892 _ACEOF
11894 # Defining _REENTRANT on system with POSIX threads should not hurt.
11895 cat >>confdefs.h <<\_ACEOF
11896 #define _REENTRANT 1
11897 _ACEOF
11899 posix_threads=yes
11900 THREADOBJ="Python/thread.o"
11901 elif test "$ac_cv_kpthread" = "yes"
11902 then
11903 CC="$CC -Kpthread"
11904 if test "$ac_cv_cxx_thread" = "yes"; then
11905 CXX="$CXX -Kpthread"
11907 cat >>confdefs.h <<\_ACEOF
11908 #define WITH_THREAD 1
11909 _ACEOF
11911 posix_threads=yes
11912 THREADOBJ="Python/thread.o"
11913 elif test "$ac_cv_kthread" = "yes"
11914 then
11915 CC="$CC -Kthread"
11916 if test "$ac_cv_cxx_thread" = "yes"; then
11917 CXX="$CXX -Kthread"
11919 cat >>confdefs.h <<\_ACEOF
11920 #define WITH_THREAD 1
11921 _ACEOF
11923 posix_threads=yes
11924 THREADOBJ="Python/thread.o"
11925 elif test "$ac_cv_pthread" = "yes"
11926 then
11927 CC="$CC -pthread"
11928 if test "$ac_cv_cxx_thread" = "yes"; then
11929 CXX="$CXX -pthread"
11931 cat >>confdefs.h <<\_ACEOF
11932 #define WITH_THREAD 1
11933 _ACEOF
11935 posix_threads=yes
11936 THREADOBJ="Python/thread.o"
11937 else
11938 if test ! -z "$with_threads" -a -d "$with_threads"
11939 then LDFLAGS="$LDFLAGS -L$with_threads"
11941 if test ! -z "$withval" -a -d "$withval"
11942 then LDFLAGS="$LDFLAGS -L$withval"
11945 # According to the POSIX spec, a pthreads implementation must
11946 # define _POSIX_THREADS in unistd.h. Some apparently don't
11947 # (e.g. gnu pth with pthread emulation)
11948 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11949 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11957 #include <unistd.h>
11958 #ifdef _POSIX_THREADS
11960 #endif
11962 _ACEOF
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 $EGREP "yes" >/dev/null 2>&1; then
11965 unistd_defines_pthreads=yes
11966 else
11967 unistd_defines_pthreads=no
11969 rm -f conftest*
11971 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11972 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11974 cat >>confdefs.h <<\_ACEOF
11975 #define _REENTRANT 1
11976 _ACEOF
11978 if test "${ac_cv_header_cthreads_h+set}" = set; then
11979 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11980 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11981 if test "${ac_cv_header_cthreads_h+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11985 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11986 else
11987 # Is the header compilable?
11988 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11989 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 $ac_includes_default
11997 #include <cthreads.h>
11998 _ACEOF
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_header_compiler=yes
12022 else
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_header_compiler=no
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 echo "${ECHO_T}$ac_header_compiler" >&6
12032 # Is the header present?
12033 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12034 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <cthreads.h>
12042 _ACEOF
12043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } >/dev/null; then
12051 if test -s conftest.err; then
12052 ac_cpp_err=$ac_c_preproc_warn_flag
12053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12054 else
12055 ac_cpp_err=
12057 else
12058 ac_cpp_err=yes
12060 if test -z "$ac_cpp_err"; then
12061 ac_header_preproc=yes
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_header_preproc=no
12068 rm -f conftest.err conftest.$ac_ext
12069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12070 echo "${ECHO_T}$ac_header_preproc" >&6
12072 # So? What about this header?
12073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12074 yes:no: )
12075 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12076 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12078 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12079 ac_header_preproc=yes
12081 no:yes:* )
12082 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12083 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12085 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12087 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12089 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12091 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12093 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12095 cat <<\_ASBOX
12096 ## ------------------------------------------------ ##
12097 ## Report this to http://www.python.org/python-bugs ##
12098 ## ------------------------------------------------ ##
12099 _ASBOX
12101 sed "s/^/$as_me: WARNING: /" >&2
12103 esac
12104 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12105 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12106 if test "${ac_cv_header_cthreads_h+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 ac_cv_header_cthreads_h=$ac_header_preproc
12111 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12112 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12115 if test $ac_cv_header_cthreads_h = yes; then
12116 cat >>confdefs.h <<\_ACEOF
12117 #define WITH_THREAD 1
12118 _ACEOF
12120 cat >>confdefs.h <<\_ACEOF
12121 #define C_THREADS 1
12122 _ACEOF
12125 cat >>confdefs.h <<\_ACEOF
12126 #define HURD_C_THREADS 1
12127 _ACEOF
12129 LIBS="$LIBS -lthreads"
12130 THREADOBJ="Python/thread.o"
12131 else
12133 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12134 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12135 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12136 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12140 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12141 else
12142 # Is the header compilable?
12143 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12144 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <mach/cthreads.h>
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_header_compiler=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_header_compiler=no
12183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6
12187 # Is the header present?
12188 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12189 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <mach/cthreads.h>
12197 _ACEOF
12198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } >/dev/null; then
12206 if test -s conftest.err; then
12207 ac_cpp_err=$ac_c_preproc_warn_flag
12208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12209 else
12210 ac_cpp_err=
12212 else
12213 ac_cpp_err=yes
12215 if test -z "$ac_cpp_err"; then
12216 ac_header_preproc=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 ac_header_preproc=no
12223 rm -f conftest.err conftest.$ac_ext
12224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12225 echo "${ECHO_T}$ac_header_preproc" >&6
12227 # So? What about this header?
12228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12229 yes:no: )
12230 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12231 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12233 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12234 ac_header_preproc=yes
12236 no:yes:* )
12237 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12238 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12240 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12242 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12244 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12246 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12248 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12250 cat <<\_ASBOX
12251 ## ------------------------------------------------ ##
12252 ## Report this to http://www.python.org/python-bugs ##
12253 ## ------------------------------------------------ ##
12254 _ASBOX
12256 sed "s/^/$as_me: WARNING: /" >&2
12258 esac
12259 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12260 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12261 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12266 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12270 if test $ac_cv_header_mach_cthreads_h = yes; then
12271 cat >>confdefs.h <<\_ACEOF
12272 #define WITH_THREAD 1
12273 _ACEOF
12275 cat >>confdefs.h <<\_ACEOF
12276 #define C_THREADS 1
12277 _ACEOF
12280 cat >>confdefs.h <<\_ACEOF
12281 #define MACH_C_THREADS 1
12282 _ACEOF
12284 THREADOBJ="Python/thread.o"
12285 else
12287 echo "$as_me:$LINENO: checking for --with-pth" >&5
12288 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12290 # Check whether --with-pth or --without-pth was given.
12291 if test "${with_pth+set}" = set; then
12292 withval="$with_pth"
12293 echo "$as_me:$LINENO: result: $withval" >&5
12294 echo "${ECHO_T}$withval" >&6
12295 cat >>confdefs.h <<\_ACEOF
12296 #define WITH_THREAD 1
12297 _ACEOF
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_PTH 1
12302 _ACEOF
12304 LIBS="-lpth $LIBS"
12305 THREADOBJ="Python/thread.o"
12306 else
12307 echo "$as_me:$LINENO: result: no" >&5
12308 echo "${ECHO_T}no" >&6
12310 # Just looking for pthread_create in libpthread is not enough:
12311 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12312 # So we really have to include pthread.h, and then link.
12313 _libs=$LIBS
12314 LIBS="$LIBS -lpthread"
12315 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12316 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <pthread.h>
12325 void * start_routine (void *arg) { exit (0); }
12327 main ()
12330 pthread_create (NULL, NULL, start_routine, NULL)
12332 return 0;
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12358 echo "$as_me:$LINENO: result: yes" >&5
12359 echo "${ECHO_T}yes" >&6
12360 cat >>confdefs.h <<\_ACEOF
12361 #define WITH_THREAD 1
12362 _ACEOF
12364 posix_threads=yes
12365 THREADOBJ="Python/thread.o"
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12371 LIBS=$_libs
12372 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12373 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12374 if test "${ac_cv_func_pthread_detach+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define pthread_detach innocuous_pthread_detach
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char pthread_detach (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12398 #undef pthread_detach
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 #ifdef __cplusplus
12402 extern "C"
12404 #endif
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12407 char pthread_detach ();
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12412 choke me
12413 #else
12414 char (*f) () = pthread_detach;
12415 #endif
12416 #ifdef __cplusplus
12418 #endif
12421 main ()
12423 return f != pthread_detach;
12425 return 0;
12427 _ACEOF
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag"
12438 || test ! -s conftest.err'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_func_pthread_detach=yes
12451 else
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_cv_func_pthread_detach=no
12457 rm -f conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12461 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12462 if test $ac_cv_func_pthread_detach = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define WITH_THREAD 1
12465 _ACEOF
12467 posix_threads=yes
12468 THREADOBJ="Python/thread.o"
12469 else
12471 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12472 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12473 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12474 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12478 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12479 else
12480 # Is the header compilable?
12481 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12482 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h. */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12490 #include <atheos/threads.h>
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_header_compiler=yes
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_header_compiler=no
12521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12527 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 #include <atheos/threads.h>
12535 _ACEOF
12536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } >/dev/null; then
12544 if test -s conftest.err; then
12545 ac_cpp_err=$ac_c_preproc_warn_flag
12546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12547 else
12548 ac_cpp_err=
12550 else
12551 ac_cpp_err=yes
12553 if test -z "$ac_cpp_err"; then
12554 ac_header_preproc=yes
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_header_preproc=no
12561 rm -f conftest.err conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12563 echo "${ECHO_T}$ac_header_preproc" >&6
12565 # So? What about this header?
12566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12567 yes:no: )
12568 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12569 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12571 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12572 ac_header_preproc=yes
12574 no:yes:* )
12575 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12576 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12578 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12580 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12582 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12584 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12586 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12588 cat <<\_ASBOX
12589 ## ------------------------------------------------ ##
12590 ## Report this to http://www.python.org/python-bugs ##
12591 ## ------------------------------------------------ ##
12592 _ASBOX
12594 sed "s/^/$as_me: WARNING: /" >&2
12596 esac
12597 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12598 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12599 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 ac_cv_header_atheos_threads_h=$ac_header_preproc
12604 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12605 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12608 if test $ac_cv_header_atheos_threads_h = yes; then
12609 cat >>confdefs.h <<\_ACEOF
12610 #define WITH_THREAD 1
12611 _ACEOF
12614 cat >>confdefs.h <<\_ACEOF
12615 #define ATHEOS_THREADS 1
12616 _ACEOF
12618 THREADOBJ="Python/thread.o"
12619 else
12621 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12622 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12623 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12624 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12628 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12629 else
12630 # Is the header compilable?
12631 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12632 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <kernel/OS.h>
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_header_compiler=yes
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 ac_header_compiler=no
12671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673 echo "${ECHO_T}$ac_header_compiler" >&6
12675 # Is the header present?
12676 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12677 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 #include <kernel/OS.h>
12685 _ACEOF
12686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev/null; then
12694 if test -s conftest.err; then
12695 ac_cpp_err=$ac_c_preproc_warn_flag
12696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12697 else
12698 ac_cpp_err=
12700 else
12701 ac_cpp_err=yes
12703 if test -z "$ac_cpp_err"; then
12704 ac_header_preproc=yes
12705 else
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 ac_header_preproc=no
12711 rm -f conftest.err conftest.$ac_ext
12712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713 echo "${ECHO_T}$ac_header_preproc" >&6
12715 # So? What about this header?
12716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12717 yes:no: )
12718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12719 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12721 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12722 ac_header_preproc=yes
12724 no:yes:* )
12725 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12726 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12728 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12730 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12732 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12734 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12736 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12738 cat <<\_ASBOX
12739 ## ------------------------------------------------ ##
12740 ## Report this to http://www.python.org/python-bugs ##
12741 ## ------------------------------------------------ ##
12742 _ASBOX
12744 sed "s/^/$as_me: WARNING: /" >&2
12746 esac
12747 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12748 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12749 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752 ac_cv_header_kernel_OS_h=$ac_header_preproc
12754 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12755 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12758 if test $ac_cv_header_kernel_OS_h = yes; then
12759 cat >>confdefs.h <<\_ACEOF
12760 #define WITH_THREAD 1
12761 _ACEOF
12764 cat >>confdefs.h <<\_ACEOF
12765 #define BEOS_THREADS 1
12766 _ACEOF
12768 THREADOBJ="Python/thread.o"
12769 else
12771 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12772 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12773 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lpthreads $LIBS"
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any gcc2 internal prototype to avoid an error. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char pthread_create ();
12793 main ()
12795 pthread_create ();
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_pthreads_pthread_create=yes
12823 else
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_cv_lib_pthreads_pthread_create=no
12829 rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12833 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12834 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12835 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12836 cat >>confdefs.h <<\_ACEOF
12837 #define WITH_THREAD 1
12838 _ACEOF
12840 posix_threads=yes
12841 LIBS="$LIBS -lpthreads"
12842 THREADOBJ="Python/thread.o"
12843 else
12845 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12846 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12847 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-lc_r $LIBS"
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char pthread_create ();
12867 main ()
12869 pthread_create ();
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_c_r_pthread_create=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_lib_c_r_pthread_create=no
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12908 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12909 if test $ac_cv_lib_c_r_pthread_create = yes; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define WITH_THREAD 1
12912 _ACEOF
12914 posix_threads=yes
12915 LIBS="$LIBS -lc_r"
12916 THREADOBJ="Python/thread.o"
12917 else
12919 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12920 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12921 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924 ac_check_lib_save_LIBS=$LIBS
12925 LIBS="-lpthread $LIBS"
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12933 /* Override any gcc2 internal prototype to avoid an error. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 /* We use char because int might match the return type of a gcc2
12938 builtin and then its argument prototype would still apply. */
12939 char __pthread_create_system ();
12941 main ()
12943 __pthread_create_system ();
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 (eval $ac_link) 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_lib_pthread___pthread_create_system=yes
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12975 ac_cv_lib_pthread___pthread_create_system=no
12977 rm -f conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12981 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12982 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12983 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12984 cat >>confdefs.h <<\_ACEOF
12985 #define WITH_THREAD 1
12986 _ACEOF
12988 posix_threads=yes
12989 LIBS="$LIBS -lpthread"
12990 THREADOBJ="Python/thread.o"
12991 else
12993 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12994 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12995 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998 ac_check_lib_save_LIBS=$LIBS
12999 LIBS="-lcma $LIBS"
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 /* Override any gcc2 internal prototype to avoid an error. */
13008 #ifdef __cplusplus
13009 extern "C"
13010 #endif
13011 /* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013 char pthread_create ();
13015 main ()
13017 pthread_create ();
13019 return 0;
13021 _ACEOF
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_lib_cma_pthread_create=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_cv_lib_cma_pthread_create=no
13051 rm -f conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13053 LIBS=$ac_check_lib_save_LIBS
13055 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13056 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13057 if test $ac_cv_lib_cma_pthread_create = yes; then
13058 cat >>confdefs.h <<\_ACEOF
13059 #define WITH_THREAD 1
13060 _ACEOF
13062 posix_threads=yes
13063 LIBS="$LIBS -lcma"
13064 THREADOBJ="Python/thread.o"
13065 else
13067 USE_THREAD_MODULE="#"
13086 rm -f conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13096 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13097 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13098 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101 ac_check_lib_save_LIBS=$LIBS
13102 LIBS="-lmpc $LIBS"
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13116 char usconfig ();
13118 main ()
13120 usconfig ();
13122 return 0;
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13127 (eval $ac_link) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_lib_mpc_usconfig=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_cv_lib_mpc_usconfig=no
13154 rm -f conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13159 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13160 if test $ac_cv_lib_mpc_usconfig = yes; then
13161 cat >>confdefs.h <<\_ACEOF
13162 #define WITH_THREAD 1
13163 _ACEOF
13165 LIBS="$LIBS -lmpc"
13166 THREADOBJ="Python/thread.o"
13167 USE_THREAD_MODULE=""
13171 if test "$posix_threads" != "yes"; then
13172 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13173 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13174 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177 ac_check_lib_save_LIBS=$LIBS
13178 LIBS="-lthread $LIBS"
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13186 /* Override any gcc2 internal prototype to avoid an error. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13192 char thr_create ();
13194 main ()
13196 thr_create ();
13198 return 0;
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_lib_thread_thr_create=yes
13224 else
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 ac_cv_lib_thread_thr_create=no
13230 rm -f conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13235 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13236 if test $ac_cv_lib_thread_thr_create = yes; then
13237 cat >>confdefs.h <<\_ACEOF
13238 #define WITH_THREAD 1
13239 _ACEOF
13241 LIBS="$LIBS -lthread"
13242 THREADOBJ="Python/thread.o"
13243 USE_THREAD_MODULE=""
13248 if test "$USE_THREAD_MODULE" != "#"
13249 then
13250 # If the above checks didn't disable threads, (at least) OSF1
13251 # needs this '-threads' argument during linking.
13252 case $ac_sys_system in
13253 OSF1) LDLAST=-threads;;
13254 esac
13258 if test "$posix_threads" = "yes"; then
13259 if test "$unistd_defines_pthreads" = "no"; then
13261 cat >>confdefs.h <<\_ACEOF
13262 #define _POSIX_THREADS 1
13263 _ACEOF
13267 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13268 case $ac_sys_system/$ac_sys_release in
13269 SunOS/5.6)
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_PTHREAD_DESTRUCTOR 1
13272 _ACEOF
13275 SunOS/5.8)
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13278 _ACEOF
13281 esac
13283 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13284 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13285 if test "${ac_cv_pthread_system_supported+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 if test "$cross_compiling" = yes; then
13289 ac_cv_pthread_system_supported=no
13290 else
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <pthread.h>
13298 void *foo(void *parm) {
13299 return NULL;
13301 main() {
13302 pthread_attr_t attr;
13303 pthread_t id;
13304 if (pthread_attr_init(&attr)) exit(-1);
13305 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13306 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13307 exit(0);
13309 _ACEOF
13310 rm -f conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_pthread_system_supported=yes
13322 else
13323 echo "$as_me: program exited with status $ac_status" >&5
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ( exit $ac_status )
13328 ac_cv_pthread_system_supported=no
13330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13336 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13337 if test "$ac_cv_pthread_system_supported" = "yes"; then
13339 cat >>confdefs.h <<\_ACEOF
13340 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13341 _ACEOF
13345 for ac_func in pthread_sigmask
13347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13348 echo "$as_me:$LINENO: checking for $ac_func" >&5
13349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13350 if eval "test \"\${$as_ac_var+set}\" = set"; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13361 #define $ac_func innocuous_$ac_func
13363 /* System header to define __stub macros and hopefully few prototypes,
13364 which can conflict with char $ac_func (); below.
13365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13366 <limits.h> exists even on freestanding compilers. */
13368 #ifdef __STDC__
13369 # include <limits.h>
13370 #else
13371 # include <assert.h>
13372 #endif
13374 #undef $ac_func
13376 /* Override any gcc2 internal prototype to avoid an error. */
13377 #ifdef __cplusplus
13378 extern "C"
13380 #endif
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13383 char $ac_func ();
13384 /* The GNU C library defines this for functions which it implements
13385 to always fail with ENOSYS. Some functions are actually named
13386 something starting with __ and the normal name is an alias. */
13387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13388 choke me
13389 #else
13390 char (*f) () = $ac_func;
13391 #endif
13392 #ifdef __cplusplus
13394 #endif
13397 main ()
13399 return f != $ac_func;
13401 return 0;
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>conftest.er1
13407 ac_status=$?
13408 grep -v '^ *+' conftest.er1 >conftest.err
13409 rm -f conftest.er1
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag"
13414 || test ! -s conftest.err'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 eval "$as_ac_var=yes"
13427 else
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 eval "$as_ac_var=no"
13433 rm -f conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13438 if test `eval echo '${'$as_ac_var'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13441 _ACEOF
13442 case $ac_sys_system in
13443 CYGWIN*)
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13447 _ACEOF
13450 esac
13452 done
13457 # Check for enable-ipv6
13460 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13461 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13462 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13463 if test "${enable_ipv6+set}" = set; then
13464 enableval="$enable_ipv6"
13465 case "$enableval" in
13467 echo "$as_me:$LINENO: result: no" >&5
13468 echo "${ECHO_T}no" >&6
13469 ipv6=no
13471 *) echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6
13473 cat >>confdefs.h <<\_ACEOF
13474 #define ENABLE_IPV6 1
13475 _ACEOF
13477 ipv6=yes
13479 esac
13480 else
13482 if test "$cross_compiling" = yes; then
13483 echo "$as_me:$LINENO: result: no" >&5
13484 echo "${ECHO_T}no" >&6
13485 ipv6=no
13487 else
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 /* AF_INET6 available check */
13495 #include <sys/types.h>
13496 #include <sys/socket.h>
13497 main()
13499 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13500 exit(1);
13501 else
13502 exit(0);
13505 _ACEOF
13506 rm -f conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 echo "$as_me:$LINENO: result: yes" >&5
13518 echo "${ECHO_T}yes" >&6
13519 ipv6=yes
13520 else
13521 echo "$as_me: program exited with status $ac_status" >&5
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 ( exit $ac_status )
13526 echo "$as_me:$LINENO: result: no" >&5
13527 echo "${ECHO_T}no" >&6
13528 ipv6=no
13530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13533 if test "$ipv6" = "yes"; then
13534 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13535 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <netinet/in.h>
13545 main ()
13547 struct sockaddr_in6 x;
13548 x.sin6_scope_id;
13550 return 0;
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6
13577 ipv6=yes
13578 else
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6
13584 ipv6=no
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589 if test "$ipv6" = "yes"; then
13590 cat >>confdefs.h <<\_ACEOF
13591 #define ENABLE_IPV6 1
13592 _ACEOF
13598 ipv6type=unknown
13599 ipv6lib=none
13600 ipv6trylibc=no
13602 if test "$ipv6" = "yes"; then
13603 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13604 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13605 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13607 case $i in
13608 inria)
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 IPV6_INRIA_VERSION
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
13625 rm -f conftest*
13628 kame)
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 #include <netinet/in.h>
13637 #ifdef __KAME__
13639 #endif
13640 _ACEOF
13641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13642 $EGREP "yes" >/dev/null 2>&1; then
13643 ipv6type=$i;
13644 ipv6lib=inet6
13645 ipv6libdir=/usr/local/v6/lib
13646 ipv6trylibc=yes
13648 rm -f conftest*
13651 linux-glibc)
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h. */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13659 #include <features.h>
13660 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13662 #endif
13663 _ACEOF
13664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13665 $EGREP "yes" >/dev/null 2>&1; then
13666 ipv6type=$i;
13667 ipv6trylibc=yes
13669 rm -f conftest*
13672 linux-inet6)
13673 if test -d /usr/inet6; then
13674 ipv6type=$i
13675 ipv6lib=inet6
13676 ipv6libdir=/usr/inet6/lib
13677 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13680 solaris)
13681 if test -f /etc/netconfig; then
13682 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13683 ipv6type=$i
13684 ipv6trylibc=yes
13688 toshiba)
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13696 #include <sys/param.h>
13697 #ifdef _TOSHIBA_INET6
13699 #endif
13700 _ACEOF
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702 $EGREP "yes" >/dev/null 2>&1; then
13703 ipv6type=$i;
13704 ipv6lib=inet6;
13705 ipv6libdir=/usr/local/v6/lib
13707 rm -f conftest*
13710 v6d)
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 #include </usr/local/v6/include/sys/v6config.h>
13719 #ifdef __V6D__
13721 #endif
13722 _ACEOF
13723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13724 $EGREP "yes" >/dev/null 2>&1; then
13725 ipv6type=$i;
13726 ipv6lib=v6;
13727 ipv6libdir=/usr/local/v6/lib;
13728 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13730 rm -f conftest*
13733 zeta)
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 #include <sys/param.h>
13742 #ifdef _ZETA_MINAMI_INET6
13744 #endif
13745 _ACEOF
13746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13747 $EGREP "yes" >/dev/null 2>&1; then
13748 ipv6type=$i;
13749 ipv6lib=inet6;
13750 ipv6libdir=/usr/local/v6/lib
13752 rm -f conftest*
13755 esac
13756 if test "$ipv6type" != "unknown"; then
13757 break
13759 done
13760 echo "$as_me:$LINENO: result: $ipv6type" >&5
13761 echo "${ECHO_T}$ipv6type" >&6
13764 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13765 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13766 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13767 echo "using lib$ipv6lib"
13768 else
13769 if test $ipv6trylibc = "yes"; then
13770 echo "using libc"
13771 else
13772 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13773 echo "You need to fetch lib$ipv6lib.a from appropriate"
13774 echo 'ipv6 kit and compile beforehand.'
13775 exit 1
13780 # Check for --with-doc-strings
13781 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13782 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13784 # Check whether --with-doc-strings or --without-doc-strings was given.
13785 if test "${with_doc_strings+set}" = set; then
13786 withval="$with_doc_strings"
13790 if test -z "$with_doc_strings"
13791 then with_doc_strings="yes"
13793 if test "$with_doc_strings" != "no"
13794 then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define WITH_DOC_STRINGS 1
13798 _ACEOF
13801 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13802 echo "${ECHO_T}$with_doc_strings" >&6
13804 # Check for Python-specific malloc support
13805 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13806 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13808 # Check whether --with-tsc or --without-tsc was given.
13809 if test "${with_tsc+set}" = set; then
13810 withval="$with_tsc"
13812 if test "$withval" != no
13813 then
13815 cat >>confdefs.h <<\_ACEOF
13816 #define WITH_TSC 1
13817 _ACEOF
13819 echo "$as_me:$LINENO: result: yes" >&5
13820 echo "${ECHO_T}yes" >&6
13821 else echo "$as_me:$LINENO: result: no" >&5
13822 echo "${ECHO_T}no" >&6
13824 else
13825 echo "$as_me:$LINENO: result: no" >&5
13826 echo "${ECHO_T}no" >&6
13829 # Check for Python-specific malloc support
13830 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13831 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13833 # Check whether --with-pymalloc or --without-pymalloc was given.
13834 if test "${with_pymalloc+set}" = set; then
13835 withval="$with_pymalloc"
13839 if test -z "$with_pymalloc"
13840 then with_pymalloc="yes"
13842 if test "$with_pymalloc" != "no"
13843 then
13845 cat >>confdefs.h <<\_ACEOF
13846 #define WITH_PYMALLOC 1
13847 _ACEOF
13850 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13851 echo "${ECHO_T}$with_pymalloc" >&6
13853 # Check for --with-wctype-functions
13854 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13855 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13857 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13858 if test "${with_wctype_functions+set}" = set; then
13859 withval="$with_wctype_functions"
13861 if test "$withval" != no
13862 then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define WANT_WCTYPE_FUNCTIONS 1
13866 _ACEOF
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13873 else
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13880 DLINCLDIR=.
13882 # the dlopen() function means we might want to use dynload_shlib.o. some
13883 # platforms, such as AIX, have dlopen(), but don't want to use it.
13885 for ac_func in dlopen
13887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13888 echo "$as_me:$LINENO: checking for $ac_func" >&5
13889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_var+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h. */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13901 #define $ac_func innocuous_$ac_func
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func (); below.
13905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13906 <limits.h> exists even on freestanding compilers. */
13908 #ifdef __STDC__
13909 # include <limits.h>
13910 #else
13911 # include <assert.h>
13912 #endif
13914 #undef $ac_func
13916 /* Override any gcc2 internal prototype to avoid an error. */
13917 #ifdef __cplusplus
13918 extern "C"
13920 #endif
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13923 char $ac_func ();
13924 /* The GNU C library defines this for functions which it implements
13925 to always fail with ENOSYS. Some functions are actually named
13926 something starting with __ and the normal name is an alias. */
13927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13928 choke me
13929 #else
13930 char (*f) () = $ac_func;
13931 #endif
13932 #ifdef __cplusplus
13934 #endif
13937 main ()
13939 return f != $ac_func;
13941 return 0;
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>conftest.er1
13947 ac_status=$?
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_c_werror_flag"
13954 || test ! -s conftest.err'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest$ac_exeext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 eval "$as_ac_var=yes"
13967 else
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 eval "$as_ac_var=no"
13973 rm -f conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13978 if test `eval echo '${'$as_ac_var'}'` = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13981 _ACEOF
13984 done
13987 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13988 # loading of modules.
13990 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13991 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13992 if test -z "$DYNLOADFILE"
13993 then
13994 case $ac_sys_system/$ac_sys_release in
13995 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13996 if test "$ac_cv_func_dlopen" = yes
13997 then DYNLOADFILE="dynload_shlib.o"
13998 else DYNLOADFILE="dynload_aix.o"
14001 BeOS*) DYNLOADFILE="dynload_beos.o";;
14002 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14003 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14004 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14005 atheos*) DYNLOADFILE="dynload_atheos.o";;
14007 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14008 # out any dynamic loading
14009 if test "$ac_cv_func_dlopen" = yes
14010 then DYNLOADFILE="dynload_shlib.o"
14011 else DYNLOADFILE="dynload_stub.o"
14014 esac
14016 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14017 echo "${ECHO_T}$DYNLOADFILE" >&6
14018 if test "$DYNLOADFILE" != "dynload_stub.o"
14019 then
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_DYNAMIC_LOADING 1
14023 _ACEOF
14027 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14030 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14031 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14032 if test -z "$MACHDEP_OBJS"
14033 then
14034 MACHDEP_OBJS=$extra_machdep_objs
14035 else
14036 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14038 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14039 echo "${ECHO_T}MACHDEP_OBJS" >&6
14041 # checks for library functions
14118 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14119 execv fork fpathconf ftime ftruncate \
14120 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14121 getpriority getpwent getspnam getspent getsid getwd \
14122 kill killpg lchown lstat mkfifo mknod mktime \
14123 mremap nice pathconf pause plock poll pthread_init \
14124 putenv readlink realpath \
14125 select setegid seteuid setgid \
14126 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14127 sigaction siginterrupt sigrelse strftime \
14128 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14129 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14132 echo "$as_me:$LINENO: checking for $ac_func" >&5
14133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_var+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14145 #define $ac_func innocuous_$ac_func
14147 /* System header to define __stub macros and hopefully few prototypes,
14148 which can conflict with char $ac_func (); below.
14149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14150 <limits.h> exists even on freestanding compilers. */
14152 #ifdef __STDC__
14153 # include <limits.h>
14154 #else
14155 # include <assert.h>
14156 #endif
14158 #undef $ac_func
14160 /* Override any gcc2 internal prototype to avoid an error. */
14161 #ifdef __cplusplus
14162 extern "C"
14164 #endif
14165 /* We use char because int might match the return type of a gcc2
14166 builtin and then its argument prototype would still apply. */
14167 char $ac_func ();
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14172 choke me
14173 #else
14174 char (*f) () = $ac_func;
14175 #endif
14176 #ifdef __cplusplus
14178 #endif
14181 main ()
14183 return f != $ac_func;
14185 return 0;
14187 _ACEOF
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190 (eval $ac_link) 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag"
14198 || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 eval "$as_ac_var=yes"
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 eval "$as_ac_var=no"
14217 rm -f conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14222 if test `eval echo '${'$as_ac_var'}'` = yes; then
14223 cat >>confdefs.h <<_ACEOF
14224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14225 _ACEOF
14228 done
14231 # For some functions, having a definition is not sufficient, since
14232 # we want to take their address.
14233 echo "$as_me:$LINENO: checking for chroot" >&5
14234 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <unistd.h>
14243 main ()
14245 void *x=chroot
14247 return 0;
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_CHROOT 1
14275 _ACEOF
14277 echo "$as_me:$LINENO: result: yes" >&5
14278 echo "${ECHO_T}yes" >&6
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 echo "$as_me:$LINENO: result: no" >&5
14284 echo "${ECHO_T}no" >&6
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288 echo "$as_me:$LINENO: checking for link" >&5
14289 echo $ECHO_N "checking for link... $ECHO_C" >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h. */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <unistd.h>
14298 main ()
14300 void *x=link
14302 return 0;
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_LINK 1
14330 _ACEOF
14332 echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 echo "$as_me:$LINENO: result: no" >&5
14339 echo "${ECHO_T}no" >&6
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343 echo "$as_me:$LINENO: checking for symlink" >&5
14344 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 #include <unistd.h>
14353 main ()
14355 void *x=symlink
14357 return 0;
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_SYMLINK 1
14385 _ACEOF
14387 echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 echo "$as_me:$LINENO: result: no" >&5
14394 echo "${ECHO_T}no" >&6
14397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398 echo "$as_me:$LINENO: checking for fchdir" >&5
14399 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h. */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14406 #include <unistd.h>
14408 main ()
14410 void *x=fchdir
14412 return 0;
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_FCHDIR 1
14440 _ACEOF
14442 echo "$as_me:$LINENO: result: yes" >&5
14443 echo "${ECHO_T}yes" >&6
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 echo "$as_me:$LINENO: result: no" >&5
14449 echo "${ECHO_T}no" >&6
14452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14453 echo "$as_me:$LINENO: checking for fsync" >&5
14454 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <unistd.h>
14463 main ()
14465 void *x=fsync
14467 return 0;
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_FSYNC 1
14495 _ACEOF
14497 echo "$as_me:$LINENO: result: yes" >&5
14498 echo "${ECHO_T}yes" >&6
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 echo "$as_me:$LINENO: result: no" >&5
14504 echo "${ECHO_T}no" >&6
14507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14508 echo "$as_me:$LINENO: checking for fdatasync" >&5
14509 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <unistd.h>
14518 main ()
14520 void *x=fdatasync
14522 return 0;
14524 _ACEOF
14525 rm -f conftest.$ac_objext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527 (eval $ac_compile) 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag"
14535 || test ! -s conftest.err'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14548 cat >>confdefs.h <<\_ACEOF
14549 #define HAVE_FDATASYNC 1
14550 _ACEOF
14552 echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 echo "$as_me:$LINENO: result: no" >&5
14559 echo "${ECHO_T}no" >&6
14562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 # On some systems (eg. FreeBSD 5), we would find a definition of the
14565 # functions ctermid_r, setgroups in the library, but no prototype
14566 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14567 # address to avoid compiler warnings and potential miscompilations
14568 # because of the missing prototypes.
14570 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14571 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14579 #include "confdefs.h"
14580 #include <stdio.h>
14583 main ()
14585 void* p = ctermid_r
14587 return 0;
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag"
14600 || test ! -s conftest.err'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_CTERMID_R 1
14615 _ACEOF
14617 echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6
14619 else
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 echo "$as_me:$LINENO: result: no" >&5
14624 echo "${ECHO_T}no" >&6
14627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:$LINENO: checking for flock" >&5
14630 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #include "confdefs.h"
14639 #include <sys/file.h>
14642 main ()
14644 void* p = flock
14646 return 0;
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_FLOCK 1
14674 _ACEOF
14676 echo "$as_me:$LINENO: result: yes" >&5
14677 echo "${ECHO_T}yes" >&6
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 echo "$as_me:$LINENO: result: no" >&5
14683 echo "${ECHO_T}no" >&6
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14688 echo "$as_me:$LINENO: checking for getpagesize" >&5
14689 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 #include "confdefs.h"
14698 #include <unistd.h>
14701 main ()
14703 void* p = getpagesize
14705 return 0;
14707 _ACEOF
14708 rm -f conftest.$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710 (eval $ac_compile) 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag"
14718 || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_GETPAGESIZE 1
14733 _ACEOF
14735 echo "$as_me:$LINENO: result: yes" >&5
14736 echo "${ECHO_T}yes" >&6
14737 else
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14741 echo "$as_me:$LINENO: result: no" >&5
14742 echo "${ECHO_T}no" >&6
14745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14747 for ac_prog in true
14749 # Extract the first word of "$ac_prog", so it can be a program name with args.
14750 set dummy $ac_prog; ac_word=$2
14751 echo "$as_me:$LINENO: checking for $ac_word" >&5
14752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14753 if test "${ac_cv_prog_TRUE+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756 if test -n "$TRUE"; then
14757 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14758 else
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14766 ac_cv_prog_TRUE="$ac_prog"
14767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 break 2
14770 done
14771 done
14775 TRUE=$ac_cv_prog_TRUE
14776 if test -n "$TRUE"; then
14777 echo "$as_me:$LINENO: result: $TRUE" >&5
14778 echo "${ECHO_T}$TRUE" >&6
14779 else
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14784 test -n "$TRUE" && break
14785 done
14786 test -n "$TRUE" || TRUE="/bin/true"
14789 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14790 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14791 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 ac_check_lib_save_LIBS=$LIBS
14795 LIBS="-lc $LIBS"
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any gcc2 internal prototype to avoid an error. */
14804 #ifdef __cplusplus
14805 extern "C"
14806 #endif
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char inet_aton ();
14811 main ()
14813 inet_aton ();
14815 return 0;
14817 _ACEOF
14818 rm -f conftest.$ac_objext conftest$ac_exeext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14820 (eval $ac_link) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest$ac_exeext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_lib_c_inet_aton=yes
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 ac_cv_lib_c_inet_aton=no
14847 rm -f conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14851 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14852 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14853 if test $ac_cv_lib_c_inet_aton = yes; then
14854 $ac_cv_prog_TRUE
14855 else
14857 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14858 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14859 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lresolv $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any gcc2 internal prototype to avoid an error. */
14872 #ifdef __cplusplus
14873 extern "C"
14874 #endif
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877 char inet_aton ();
14879 main ()
14881 inet_aton ();
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_lib_resolv_inet_aton=yes
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_cv_lib_resolv_inet_aton=no
14915 rm -f conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14920 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14921 if test $ac_cv_lib_resolv_inet_aton = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_LIBRESOLV 1
14924 _ACEOF
14926 LIBS="-lresolv $LIBS"
14934 echo "$as_me:$LINENO: checking for hstrerror" >&5
14935 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14943 #include "confdefs.h"
14944 #include <netdb.h>
14947 main ()
14949 void* p = hstrerror; hstrerror(0)
14951 return 0;
14953 _ACEOF
14954 rm -f conftest.$ac_objext conftest$ac_exeext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14956 (eval $ac_link) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest$ac_exeext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_HSTRERROR 1
14979 _ACEOF
14981 echo "$as_me:$LINENO: result: yes" >&5
14982 echo "${ECHO_T}yes" >&6
14983 else
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 echo "$as_me:$LINENO: result: no" >&5
14988 echo "${ECHO_T}no" >&6
14991 rm -f conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14994 echo "$as_me:$LINENO: checking for inet_aton" >&5
14995 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15003 #include "confdefs.h"
15004 #include <sys/types.h>
15005 #include <sys/socket.h>
15006 #include <netinet/in.h>
15007 #include <arpa/inet.h>
15010 main ()
15012 void* p = inet_aton;inet_aton(0,0)
15014 return 0;
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15040 cat >>confdefs.h <<\_ACEOF
15041 #define HAVE_INET_ATON 1
15042 _ACEOF
15044 echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6
15046 else
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 echo "$as_me:$LINENO: result: no" >&5
15051 echo "${ECHO_T}no" >&6
15054 rm -f conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15057 echo "$as_me:$LINENO: checking for inet_pton" >&5
15058 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15066 #include "confdefs.h"
15067 #include <sys/types.h>
15068 #include <sys/socket.h>
15069 #include <netinet/in.h>
15070 #include <arpa/inet.h>
15073 main ()
15075 void* p = inet_pton
15077 return 0;
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_INET_PTON 1
15105 _ACEOF
15107 echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6
15109 else
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15119 # On some systems, setgroups is in unistd.h, on others, in grp.h
15120 echo "$as_me:$LINENO: checking for setgroups" >&5
15121 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15129 #include "confdefs.h"
15130 #include <unistd.h>
15131 #ifdef HAVE_GRP_H
15132 #include <grp.h>
15133 #endif
15136 main ()
15138 void* p = setgroups
15140 return 0;
15142 _ACEOF
15143 rm -f conftest.$ac_objext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145 (eval $ac_compile) 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_c_werror_flag"
15153 || test ! -s conftest.err'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try='test -s conftest.$ac_objext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15166 cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_SETGROUPS 1
15168 _ACEOF
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6
15180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 # check for openpty and forkpty
15185 for ac_func in openpty
15187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15188 echo "$as_me:$LINENO: checking for $ac_func" >&5
15189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15190 if eval "test \"\${$as_ac_var+set}\" = set"; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15201 #define $ac_func innocuous_$ac_func
15203 /* System header to define __stub macros and hopefully few prototypes,
15204 which can conflict with char $ac_func (); below.
15205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206 <limits.h> exists even on freestanding compilers. */
15208 #ifdef __STDC__
15209 # include <limits.h>
15210 #else
15211 # include <assert.h>
15212 #endif
15214 #undef $ac_func
15216 /* Override any gcc2 internal prototype to avoid an error. */
15217 #ifdef __cplusplus
15218 extern "C"
15220 #endif
15221 /* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15223 char $ac_func ();
15224 /* The GNU C library defines this for functions which it implements
15225 to always fail with ENOSYS. Some functions are actually named
15226 something starting with __ and the normal name is an alias. */
15227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15228 choke me
15229 #else
15230 char (*f) () = $ac_func;
15231 #endif
15232 #ifdef __cplusplus
15234 #endif
15237 main ()
15239 return f != $ac_func;
15241 return 0;
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246 (eval $ac_link) 2>conftest.er1
15247 ac_status=$?
15248 grep -v '^ *+' conftest.er1 >conftest.err
15249 rm -f conftest.er1
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest$ac_exeext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 eval "$as_ac_var=yes"
15267 else
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 eval "$as_ac_var=no"
15273 rm -f conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15278 if test `eval echo '${'$as_ac_var'}'` = yes; then
15279 cat >>confdefs.h <<_ACEOF
15280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15281 _ACEOF
15283 else
15284 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15285 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15286 if test "${ac_cv_lib_util_openpty+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289 ac_check_lib_save_LIBS=$LIBS
15290 LIBS="-lutil $LIBS"
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 #ifdef __cplusplus
15300 extern "C"
15301 #endif
15302 /* We use char because int might match the return type of a gcc2
15303 builtin and then its argument prototype would still apply. */
15304 char openpty ();
15306 main ()
15308 openpty ();
15310 return 0;
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_lib_util_openpty=yes
15336 else
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 ac_cv_lib_util_openpty=no
15342 rm -f conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15347 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15348 if test $ac_cv_lib_util_openpty = yes; then
15349 cat >>confdefs.h <<\_ACEOF
15350 #define HAVE_OPENPTY 1
15351 _ACEOF
15352 LIBS="$LIBS -lutil"
15353 else
15354 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15355 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15356 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 ac_check_lib_save_LIBS=$LIBS
15360 LIBS="-lbsd $LIBS"
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15368 /* Override any gcc2 internal prototype to avoid an error. */
15369 #ifdef __cplusplus
15370 extern "C"
15371 #endif
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15374 char openpty ();
15376 main ()
15378 openpty ();
15380 return 0;
15382 _ACEOF
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag"
15393 || test ! -s conftest.err'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest$ac_exeext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_cv_lib_bsd_openpty=yes
15406 else
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_cv_lib_bsd_openpty=no
15412 rm -f conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
15414 LIBS=$ac_check_lib_save_LIBS
15416 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15417 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15418 if test $ac_cv_lib_bsd_openpty = yes; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_OPENPTY 1
15421 _ACEOF
15422 LIBS="$LIBS -lbsd"
15430 done
15433 for ac_func in forkpty
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15449 #define $ac_func innocuous_$ac_func
15451 /* System header to define __stub macros and hopefully few prototypes,
15452 which can conflict with char $ac_func (); below.
15453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15454 <limits.h> exists even on freestanding compilers. */
15456 #ifdef __STDC__
15457 # include <limits.h>
15458 #else
15459 # include <assert.h>
15460 #endif
15462 #undef $ac_func
15464 /* Override any gcc2 internal prototype to avoid an error. */
15465 #ifdef __cplusplus
15466 extern "C"
15468 #endif
15469 /* We use char because int might match the return type of a gcc2
15470 builtin and then its argument prototype would still apply. */
15471 char $ac_func ();
15472 /* The GNU C library defines this for functions which it implements
15473 to always fail with ENOSYS. Some functions are actually named
15474 something starting with __ and the normal name is an alias. */
15475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15476 choke me
15477 #else
15478 char (*f) () = $ac_func;
15479 #endif
15480 #ifdef __cplusplus
15482 #endif
15485 main ()
15487 return f != $ac_func;
15489 return 0;
15491 _ACEOF
15492 rm -f conftest.$ac_objext conftest$ac_exeext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag"
15502 || test ! -s conftest.err'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 eval "$as_ac_var=yes"
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 eval "$as_ac_var=no"
15521 rm -f conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15526 if test `eval echo '${'$as_ac_var'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15529 _ACEOF
15531 else
15532 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15533 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15534 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lutil $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any gcc2 internal prototype to avoid an error. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552 char forkpty ();
15554 main ()
15556 forkpty ();
15558 return 0;
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag"
15571 || test ! -s conftest.err'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_lib_util_forkpty=yes
15584 else
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588 ac_cv_lib_util_forkpty=no
15590 rm -f conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 LIBS=$ac_check_lib_save_LIBS
15594 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15595 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15596 if test $ac_cv_lib_util_forkpty = yes; then
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_FORKPTY 1
15599 _ACEOF
15600 LIBS="$LIBS -lutil"
15601 else
15602 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15603 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15604 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607 ac_check_lib_save_LIBS=$LIBS
15608 LIBS="-lbsd $LIBS"
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15616 /* Override any gcc2 internal prototype to avoid an error. */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622 char forkpty ();
15624 main ()
15626 forkpty ();
15628 return 0;
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_lib_bsd_forkpty=yes
15654 else
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_cv_lib_bsd_forkpty=no
15660 rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 LIBS=$ac_check_lib_save_LIBS
15664 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15665 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15666 if test $ac_cv_lib_bsd_forkpty = yes; then
15667 cat >>confdefs.h <<\_ACEOF
15668 #define HAVE_FORKPTY 1
15669 _ACEOF
15670 LIBS="$LIBS -lbsd"
15678 done
15681 # check for long file support functions
15688 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15691 echo "$as_me:$LINENO: checking for $ac_func" >&5
15692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15693 if eval "test \"\${$as_ac_var+set}\" = set"; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15704 #define $ac_func innocuous_$ac_func
15706 /* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func (); below.
15708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15709 <limits.h> exists even on freestanding compilers. */
15711 #ifdef __STDC__
15712 # include <limits.h>
15713 #else
15714 # include <assert.h>
15715 #endif
15717 #undef $ac_func
15719 /* Override any gcc2 internal prototype to avoid an error. */
15720 #ifdef __cplusplus
15721 extern "C"
15723 #endif
15724 /* We use char because int might match the return type of a gcc2
15725 builtin and then its argument prototype would still apply. */
15726 char $ac_func ();
15727 /* The GNU C library defines this for functions which it implements
15728 to always fail with ENOSYS. Some functions are actually named
15729 something starting with __ and the normal name is an alias. */
15730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15731 choke me
15732 #else
15733 char (*f) () = $ac_func;
15734 #endif
15735 #ifdef __cplusplus
15737 #endif
15740 main ()
15742 return f != $ac_func;
15744 return 0;
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest$ac_exeext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 eval "$as_ac_var=yes"
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 eval "$as_ac_var=no"
15776 rm -f conftest.err conftest.$ac_objext \
15777 conftest$ac_exeext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15781 if test `eval echo '${'$as_ac_var'}'` = yes; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15784 _ACEOF
15787 done
15795 for ac_func in dup2 getcwd strdup strerror memmove
15797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15798 echo "$as_me:$LINENO: checking for $ac_func" >&5
15799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_var+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15811 #define $ac_func innocuous_$ac_func
15813 /* System header to define __stub macros and hopefully few prototypes,
15814 which can conflict with char $ac_func (); below.
15815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15816 <limits.h> exists even on freestanding compilers. */
15818 #ifdef __STDC__
15819 # include <limits.h>
15820 #else
15821 # include <assert.h>
15822 #endif
15824 #undef $ac_func
15826 /* Override any gcc2 internal prototype to avoid an error. */
15827 #ifdef __cplusplus
15828 extern "C"
15830 #endif
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15833 char $ac_func ();
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15838 choke me
15839 #else
15840 char (*f) () = $ac_func;
15841 #endif
15842 #ifdef __cplusplus
15844 #endif
15847 main ()
15849 return f != $ac_func;
15851 return 0;
15853 _ACEOF
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest$ac_exeext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 eval "$as_ac_var=yes"
15877 else
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 eval "$as_ac_var=no"
15883 rm -f conftest.err conftest.$ac_objext \
15884 conftest$ac_exeext conftest.$ac_ext
15886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15888 if test `eval echo '${'$as_ac_var'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15891 _ACEOF
15893 else
15894 case $LIBOBJS in
15895 "$ac_func.$ac_objext" | \
15896 *" $ac_func.$ac_objext" | \
15897 "$ac_func.$ac_objext "* | \
15898 *" $ac_func.$ac_objext "* ) ;;
15899 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15900 esac
15903 done
15907 for ac_func in getpgrp
15909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910 echo "$as_me:$LINENO: checking for $ac_func" >&5
15911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15912 if eval "test \"\${$as_ac_var+set}\" = set"; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15930 #ifdef __STDC__
15931 # include <limits.h>
15932 #else
15933 # include <assert.h>
15934 #endif
15936 #undef $ac_func
15938 /* Override any gcc2 internal prototype to avoid an error. */
15939 #ifdef __cplusplus
15940 extern "C"
15942 #endif
15943 /* We use char because int might match the return type of a gcc2
15944 builtin and then its argument prototype would still apply. */
15945 char $ac_func ();
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15950 choke me
15951 #else
15952 char (*f) () = $ac_func;
15953 #endif
15954 #ifdef __cplusplus
15956 #endif
15959 main ()
15961 return f != $ac_func;
15963 return 0;
15965 _ACEOF
15966 rm -f conftest.$ac_objext conftest$ac_exeext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968 (eval $ac_link) 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest$ac_exeext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 eval "$as_ac_var=yes"
15989 else
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 eval "$as_ac_var=no"
15995 rm -f conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16000 if test `eval echo '${'$as_ac_var'}'` = yes; then
16001 cat >>confdefs.h <<_ACEOF
16002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16003 _ACEOF
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <unistd.h>
16012 main ()
16014 getpgrp(0);
16016 return 0;
16018 _ACEOF
16019 rm -f conftest.$ac_objext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>conftest.er1
16022 ac_status=$?
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try='test -z "$ac_c_werror_flag"
16029 || test ! -s conftest.err'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest.$ac_objext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16042 cat >>confdefs.h <<\_ACEOF
16043 #define GETPGRP_HAVE_ARG 1
16044 _ACEOF
16047 else
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16055 done
16058 for ac_func in setpgrp
16060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16061 echo "$as_me:$LINENO: checking for $ac_func" >&5
16062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16063 if eval "test \"\${$as_ac_var+set}\" = set"; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16074 #define $ac_func innocuous_$ac_func
16076 /* System header to define __stub macros and hopefully few prototypes,
16077 which can conflict with char $ac_func (); below.
16078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16079 <limits.h> exists even on freestanding compilers. */
16081 #ifdef __STDC__
16082 # include <limits.h>
16083 #else
16084 # include <assert.h>
16085 #endif
16087 #undef $ac_func
16089 /* Override any gcc2 internal prototype to avoid an error. */
16090 #ifdef __cplusplus
16091 extern "C"
16093 #endif
16094 /* We use char because int might match the return type of a gcc2
16095 builtin and then its argument prototype would still apply. */
16096 char $ac_func ();
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16101 choke me
16102 #else
16103 char (*f) () = $ac_func;
16104 #endif
16105 #ifdef __cplusplus
16107 #endif
16110 main ()
16112 return f != $ac_func;
16114 return 0;
16116 _ACEOF
16117 rm -f conftest.$ac_objext conftest$ac_exeext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16119 (eval $ac_link) 2>conftest.er1
16120 ac_status=$?
16121 grep -v '^ *+' conftest.er1 >conftest.err
16122 rm -f conftest.er1
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } &&
16126 { ac_try='test -z "$ac_c_werror_flag"
16127 || test ! -s conftest.err'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; } &&
16133 { ac_try='test -s conftest$ac_exeext'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 eval "$as_ac_var=yes"
16140 else
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 eval "$as_ac_var=no"
16146 rm -f conftest.err conftest.$ac_objext \
16147 conftest$ac_exeext conftest.$ac_ext
16149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16151 if test `eval echo '${'$as_ac_var'}'` = yes; then
16152 cat >>confdefs.h <<_ACEOF
16153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16154 _ACEOF
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <unistd.h>
16163 main ()
16165 setpgrp(0,0);
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16172 (eval $ac_compile) 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag"
16180 || test ! -s conftest.err'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest.$ac_objext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16193 cat >>confdefs.h <<\_ACEOF
16194 #define SETPGRP_HAVE_ARG 1
16195 _ACEOF
16198 else
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16206 done
16209 for ac_func in gettimeofday
16211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for $ac_func" >&5
16213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_var+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16225 #define $ac_func innocuous_$ac_func
16227 /* System header to define __stub macros and hopefully few prototypes,
16228 which can conflict with char $ac_func (); below.
16229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16230 <limits.h> exists even on freestanding compilers. */
16232 #ifdef __STDC__
16233 # include <limits.h>
16234 #else
16235 # include <assert.h>
16236 #endif
16238 #undef $ac_func
16240 /* Override any gcc2 internal prototype to avoid an error. */
16241 #ifdef __cplusplus
16242 extern "C"
16244 #endif
16245 /* We use char because int might match the return type of a gcc2
16246 builtin and then its argument prototype would still apply. */
16247 char $ac_func ();
16248 /* The GNU C library defines this for functions which it implements
16249 to always fail with ENOSYS. Some functions are actually named
16250 something starting with __ and the normal name is an alias. */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16252 choke me
16253 #else
16254 char (*f) () = $ac_func;
16255 #endif
16256 #ifdef __cplusplus
16258 #endif
16261 main ()
16263 return f != $ac_func;
16265 return 0;
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270 (eval $ac_link) 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 eval "$as_ac_var=yes"
16291 else
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 eval "$as_ac_var=no"
16297 rm -f conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16305 _ACEOF
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 #include <sys/time.h>
16314 main ()
16316 gettimeofday((struct timeval*)0,(struct timezone*)0);
16318 return 0;
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16349 cat >>confdefs.h <<\_ACEOF
16350 #define GETTIMEOFDAY_NO_TZ 1
16351 _ACEOF
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 done
16361 echo "$as_me:$LINENO: checking for major" >&5
16362 echo $ECHO_N "checking for major... $ECHO_C" >&6
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 #if defined(MAJOR_IN_MKDEV)
16371 #include <sys/mkdev.h>
16372 #elif defined(MAJOR_IN_SYSMACROS)
16373 #include <sys/sysmacros.h>
16374 #else
16375 #include <sys/types.h>
16376 #endif
16379 main ()
16382 makedev(major(0),minor(0));
16385 return 0;
16387 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16390 (eval $ac_link) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_DEVICE_MACROS 1
16414 _ACEOF
16416 echo "$as_me:$LINENO: result: yes" >&5
16417 echo "${ECHO_T}yes" >&6
16419 else
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16424 echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6
16428 rm -f conftest.err conftest.$ac_objext \
16429 conftest$ac_exeext conftest.$ac_ext
16431 # On OSF/1 V5.1, getaddrinfo is available, but a define
16432 # for [no]getaddrinfo in netdb.h.
16433 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16434 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h. */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 #include <sys/types.h>
16443 #include <sys/socket.h>
16444 #include <netdb.h>
16445 #include <stdio.h>
16448 main ()
16451 getaddrinfo(NULL, NULL, NULL, NULL);
16454 return 0;
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459 (eval $ac_link) 2>conftest.er1
16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } &&
16466 { ac_try='test -z "$ac_c_werror_flag"
16467 || test ! -s conftest.err'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; } &&
16473 { ac_try='test -s conftest$ac_exeext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16480 echo "$as_me:$LINENO: result: yes" >&5
16481 echo "${ECHO_T}yes" >&6
16482 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16483 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16484 if test "$cross_compiling" = yes; then
16485 echo "$as_me:$LINENO: result: buggy" >&5
16486 echo "${ECHO_T}buggy" >&6
16487 buggygetaddrinfo=yes
16488 else
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 #include <sys/types.h>
16497 #include <netdb.h>
16498 #include <string.h>
16499 #include <sys/socket.h>
16500 #include <netinet/in.h>
16502 main()
16504 int passive, gaierr, inet4 = 0, inet6 = 0;
16505 struct addrinfo hints, *ai, *aitop;
16506 char straddr[INET6_ADDRSTRLEN], strport[16];
16508 for (passive = 0; passive <= 1; passive++) {
16509 memset(&hints, 0, sizeof(hints));
16510 hints.ai_family = AF_UNSPEC;
16511 hints.ai_flags = passive ? AI_PASSIVE : 0;
16512 hints.ai_socktype = SOCK_STREAM;
16513 hints.ai_protocol = IPPROTO_TCP;
16514 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16515 (void)gai_strerror(gaierr);
16516 goto bad;
16518 for (ai = aitop; ai; ai = ai->ai_next) {
16519 if (ai->ai_addr == NULL ||
16520 ai->ai_addrlen == 0 ||
16521 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16522 straddr, sizeof(straddr), strport, sizeof(strport),
16523 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16524 goto bad;
16526 switch (ai->ai_family) {
16527 case AF_INET:
16528 if (strcmp(strport, "54321") != 0) {
16529 goto bad;
16531 if (passive) {
16532 if (strcmp(straddr, "0.0.0.0") != 0) {
16533 goto bad;
16535 } else {
16536 if (strcmp(straddr, "127.0.0.1") != 0) {
16537 goto bad;
16540 inet4++;
16541 break;
16542 case AF_INET6:
16543 if (strcmp(strport, "54321") != 0) {
16544 goto bad;
16546 if (passive) {
16547 if (strcmp(straddr, "::") != 0) {
16548 goto bad;
16550 } else {
16551 if (strcmp(straddr, "::1") != 0) {
16552 goto bad;
16555 inet6++;
16556 break;
16557 case AF_UNSPEC:
16558 goto bad;
16559 break;
16560 default:
16561 /* another family support? */
16562 break;
16567 if (!(inet4 == 0 || inet4 == 2))
16568 goto bad;
16569 if (!(inet6 == 0 || inet6 == 2))
16570 goto bad;
16572 if (aitop)
16573 freeaddrinfo(aitop);
16574 exit(0);
16576 bad:
16577 if (aitop)
16578 freeaddrinfo(aitop);
16579 exit(1);
16582 _ACEOF
16583 rm -f conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 echo "$as_me:$LINENO: result: good" >&5
16595 echo "${ECHO_T}good" >&6
16596 buggygetaddrinfo=no
16597 else
16598 echo "$as_me: program exited with status $ac_status" >&5
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ( exit $ac_status )
16603 echo "$as_me:$LINENO: result: buggy" >&5
16604 echo "${ECHO_T}buggy" >&6
16605 buggygetaddrinfo=yes
16607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16609 else
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16614 echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6
16616 buggygetaddrinfo=yes
16619 rm -f conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16622 if test "$buggygetaddrinfo" = "yes"; then
16623 if test "$ipv6" = "yes"; then
16624 echo 'Fatal: You must get working getaddrinfo() function.'
16625 echo ' or you can specify "--disable-ipv6"'.
16626 exit 1
16628 else
16630 cat >>confdefs.h <<\_ACEOF
16631 #define HAVE_GETADDRINFO 1
16632 _ACEOF
16636 for ac_func in getnameinfo
16638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16641 if eval "test \"\${$as_ac_var+set}\" = set"; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16659 #ifdef __STDC__
16660 # include <limits.h>
16661 #else
16662 # include <assert.h>
16663 #endif
16665 #undef $ac_func
16667 /* Override any gcc2 internal prototype to avoid an error. */
16668 #ifdef __cplusplus
16669 extern "C"
16671 #endif
16672 /* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16674 char $ac_func ();
16675 /* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16679 choke me
16680 #else
16681 char (*f) () = $ac_func;
16682 #endif
16683 #ifdef __cplusplus
16685 #endif
16688 main ()
16690 return f != $ac_func;
16692 return 0;
16694 _ACEOF
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16697 (eval $ac_link) 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 eval "$as_ac_var=yes"
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 eval "$as_ac_var=no"
16724 rm -f conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16729 if test `eval echo '${'$as_ac_var'}'` = yes; then
16730 cat >>confdefs.h <<_ACEOF
16731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16732 _ACEOF
16735 done
16738 # checks for structures
16739 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16740 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16741 if test "${ac_cv_header_time+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <sys/types.h>
16751 #include <sys/time.h>
16752 #include <time.h>
16755 main ()
16757 if ((struct tm *) 0)
16758 return 0;
16760 return 0;
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_header_time=yes
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_header_time=no
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16794 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16795 echo "${ECHO_T}$ac_cv_header_time" >&6
16796 if test $ac_cv_header_time = yes; then
16798 cat >>confdefs.h <<\_ACEOF
16799 #define TIME_WITH_SYS_TIME 1
16800 _ACEOF
16804 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <sys/types.h>
16816 #include <time.h>
16819 main ()
16821 struct tm *tp; tp->tm_sec;
16823 return 0;
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_cv_struct_tm=time.h
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_cv_struct_tm=sys/time.h
16855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16858 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16859 if test $ac_cv_struct_tm = sys/time.h; then
16861 cat >>confdefs.h <<\_ACEOF
16862 #define TM_IN_SYS_TIME 1
16863 _ACEOF
16867 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16868 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16869 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h. */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 #include <sys/types.h>
16879 #include <$ac_cv_struct_tm>
16883 main ()
16885 static struct tm ac_aggr;
16886 if (ac_aggr.tm_zone)
16887 return 0;
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16894 (eval $ac_compile) 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest.$ac_objext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_member_struct_tm_tm_zone=yes
16915 else
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <sys/types.h>
16926 #include <$ac_cv_struct_tm>
16930 main ()
16932 static struct tm ac_aggr;
16933 if (sizeof ac_aggr.tm_zone)
16934 return 0;
16936 return 0;
16938 _ACEOF
16939 rm -f conftest.$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941 (eval $ac_compile) 2>conftest.er1
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_cv_member_struct_tm_tm_zone=yes
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_cv_member_struct_tm_tm_zone=no
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16972 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16973 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16974 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define HAVE_STRUCT_TM_TM_ZONE 1
16978 _ACEOF
16983 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_TM_ZONE 1
16987 _ACEOF
16989 else
16990 echo "$as_me:$LINENO: checking for tzname" >&5
16991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16992 if test "${ac_cv_var_tzname+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 #include <time.h>
17002 #ifndef tzname /* For SGI. */
17003 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17004 #endif
17007 main ()
17009 atoi(*tzname);
17011 return 0;
17013 _ACEOF
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_var_tzname=yes
17037 else
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 ac_cv_var_tzname=no
17043 rm -f conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17046 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17047 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17048 if test $ac_cv_var_tzname = yes; then
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_TZNAME 1
17052 _ACEOF
17057 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17058 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17059 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062 cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17070 main ()
17072 static struct stat ac_aggr;
17073 if (ac_aggr.st_rdev)
17074 return 0;
17076 return 0;
17078 _ACEOF
17079 rm -f conftest.$ac_objext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17081 (eval $ac_compile) 2>conftest.er1
17082 ac_status=$?
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try='test -z "$ac_c_werror_flag"
17089 || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_member_struct_stat_st_rdev=yes
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h. */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 $ac_includes_default
17114 main ()
17116 static struct stat ac_aggr;
17117 if (sizeof ac_aggr.st_rdev)
17118 return 0;
17120 return 0;
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_member_struct_stat_st_rdev=yes
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 ac_cv_member_struct_stat_st_rdev=no
17152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17157 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17158 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define HAVE_STRUCT_STAT_ST_RDEV 1
17162 _ACEOF
17167 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17168 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17169 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h. */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 $ac_includes_default
17180 main ()
17182 static struct stat ac_aggr;
17183 if (ac_aggr.st_blksize)
17184 return 0;
17186 return 0;
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191 (eval $ac_compile) 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_member_struct_stat_st_blksize=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h. */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17224 main ()
17226 static struct stat ac_aggr;
17227 if (sizeof ac_aggr.st_blksize)
17228 return 0;
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_member_struct_stat_st_blksize=yes
17256 else
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 ac_cv_member_struct_stat_st_blksize=no
17262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17268 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17272 _ACEOF
17277 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17278 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17279 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 $ac_includes_default
17290 main ()
17292 static struct stat ac_aggr;
17293 if (ac_aggr.st_flags)
17294 return 0;
17296 return 0;
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17301 (eval $ac_compile) 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag"
17309 || test ! -s conftest.err'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_cv_member_struct_stat_st_flags=yes
17322 else
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h. */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17334 main ()
17336 static struct stat ac_aggr;
17337 if (sizeof ac_aggr.st_flags)
17338 return 0;
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_cv_member_struct_stat_st_flags=yes
17366 else
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ac_cv_member_struct_stat_st_flags=no
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17376 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17378 if test $ac_cv_member_struct_stat_st_flags = yes; then
17380 cat >>confdefs.h <<_ACEOF
17381 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17382 _ACEOF
17387 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17388 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17389 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 $ac_includes_default
17400 main ()
17402 static struct stat ac_aggr;
17403 if (ac_aggr.st_gen)
17404 return 0;
17406 return 0;
17408 _ACEOF
17409 rm -f conftest.$ac_objext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411 (eval $ac_compile) 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest.$ac_objext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_member_struct_stat_st_gen=yes
17432 else
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 $ac_includes_default
17444 main ()
17446 static struct stat ac_aggr;
17447 if (sizeof ac_aggr.st_gen)
17448 return 0;
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_member_struct_stat_st_gen=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 ac_cv_member_struct_stat_st_gen=no
17482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17487 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17488 if test $ac_cv_member_struct_stat_st_gen = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define HAVE_STRUCT_STAT_ST_GEN 1
17492 _ACEOF
17497 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17498 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17499 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h. */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 $ac_includes_default
17510 main ()
17512 static struct stat ac_aggr;
17513 if (ac_aggr.st_birthtime)
17514 return 0;
17516 return 0;
17518 _ACEOF
17519 rm -f conftest.$ac_objext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_member_struct_stat_st_birthtime=yes
17542 else
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 $ac_includes_default
17554 main ()
17556 static struct stat ac_aggr;
17557 if (sizeof ac_aggr.st_birthtime)
17558 return 0;
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_c_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest.$ac_objext'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_member_struct_stat_st_birthtime=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_cv_member_struct_stat_st_birthtime=no
17592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17598 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17602 _ACEOF
17607 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17608 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17609 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612 cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h. */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 $ac_includes_default
17620 main ()
17622 static struct stat ac_aggr;
17623 if (ac_aggr.st_blocks)
17624 return 0;
17626 return 0;
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_member_struct_stat_st_blocks=yes
17652 else
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h. */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17664 main ()
17666 static struct stat ac_aggr;
17667 if (sizeof ac_aggr.st_blocks)
17668 return 0;
17670 return 0;
17672 _ACEOF
17673 rm -f conftest.$ac_objext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_member_struct_stat_st_blocks=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_cv_member_struct_stat_st_blocks=no
17702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17708 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17710 cat >>confdefs.h <<_ACEOF
17711 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17712 _ACEOF
17715 cat >>confdefs.h <<\_ACEOF
17716 #define HAVE_ST_BLOCKS 1
17717 _ACEOF
17719 else
17720 case $LIBOBJS in
17721 "fileblocks.$ac_objext" | \
17722 *" fileblocks.$ac_objext" | \
17723 "fileblocks.$ac_objext "* | \
17724 *" fileblocks.$ac_objext "* ) ;;
17725 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17726 esac
17732 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17733 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17734 if test "${ac_cv_header_time_altzone+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 #include <time.h>
17745 main ()
17747 return altzone;
17749 return 0;
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754 (eval $ac_compile) 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_header_time_altzone=yes
17775 else
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ac_cv_header_time_altzone=no
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17785 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17786 if test $ac_cv_header_time_altzone = yes; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_ALTZONE 1
17790 _ACEOF
17794 was_it_defined=no
17795 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17796 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 #include <sys/types.h>
17805 #include <sys/select.h>
17806 #include <sys/time.h>
17809 main ()
17813 return 0;
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17840 cat >>confdefs.h <<\_ACEOF
17841 #define SYS_SELECT_WITH_SYS_TIME 1
17842 _ACEOF
17844 was_it_defined=yes
17846 else
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17853 echo "${ECHO_T}$was_it_defined" >&6
17855 echo "$as_me:$LINENO: checking for addrinfo" >&5
17856 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17857 if test "${ac_cv_struct_addrinfo+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 # include <netdb.h>
17869 main ()
17871 struct addrinfo a
17873 return 0;
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_struct_addrinfo=yes
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_struct_addrinfo=no
17905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17908 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17909 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17910 if test $ac_cv_struct_addrinfo = yes; then
17912 cat >>confdefs.h <<\_ACEOF
17913 #define HAVE_ADDRINFO 1
17914 _ACEOF
17918 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17919 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17920 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923 cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h. */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17930 # include <sys/types.h>
17931 # include <sys/socket.h>
17933 main ()
17935 struct sockaddr_storage s
17937 return 0;
17939 _ACEOF
17940 rm -f conftest.$ac_objext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17942 (eval $ac_compile) 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag"
17950 || test ! -s conftest.err'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest.$ac_objext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_cv_struct_sockaddr_storage=yes
17963 else
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 ac_cv_struct_sockaddr_storage=no
17969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17972 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17973 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17974 if test $ac_cv_struct_sockaddr_storage = yes; then
17976 cat >>confdefs.h <<\_ACEOF
17977 #define HAVE_SOCKADDR_STORAGE 1
17978 _ACEOF
17982 # checks for compiler characteristics
17985 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17986 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17987 if test "${ac_cv_c_char_unsigned+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17998 main ()
18000 static int test_array [1 - 2 * !(((char) -1) < 0)];
18001 test_array [0] = 0
18004 return 0;
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag"
18017 || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_c_char_unsigned=no
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_c_char_unsigned=yes
18036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18038 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18039 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18040 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18041 cat >>confdefs.h <<\_ACEOF
18042 #define __CHAR_UNSIGNED__ 1
18043 _ACEOF
18047 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18048 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18049 if test "${ac_cv_c_const+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18060 main ()
18062 /* FIXME: Include the comments suggested by Paul. */
18063 #ifndef __cplusplus
18064 /* Ultrix mips cc rejects this. */
18065 typedef int charset[2];
18066 const charset x;
18067 /* SunOS 4.1.1 cc rejects this. */
18068 char const *const *ccp;
18069 char **p;
18070 /* NEC SVR4.0.2 mips cc rejects this. */
18071 struct point {int x, y;};
18072 static struct point const zero = {0,0};
18073 /* AIX XL C 1.02.0.0 rejects this.
18074 It does not let you subtract one const X* pointer from another in
18075 an arm of an if-expression whose if-part is not a constant
18076 expression */
18077 const char *g = "string";
18078 ccp = &g + (g ? g-g : 0);
18079 /* HPUX 7.0 cc rejects these. */
18080 ++ccp;
18081 p = (char**) ccp;
18082 ccp = (char const *const *) p;
18083 { /* SCO 3.2v4 cc rejects this. */
18084 char *t;
18085 char const *s = 0 ? (char *) 0 : (char const *) 0;
18087 *t++ = 0;
18089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18090 int x[] = {25, 17};
18091 const int *foo = &x[0];
18092 ++foo;
18094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18095 typedef const int *iptr;
18096 iptr p = 0;
18097 ++p;
18099 { /* AIX XL C 1.02.0.0 rejects this saying
18100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18101 struct s { int j; const int *ap[3]; };
18102 struct s *b; b->j = 5;
18104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18105 const int foo = 10;
18107 #endif
18110 return 0;
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_c_const=yes
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_cv_c_const=no
18142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18145 echo "${ECHO_T}$ac_cv_c_const" >&6
18146 if test $ac_cv_c_const = no; then
18148 cat >>confdefs.h <<\_ACEOF
18149 #define const
18150 _ACEOF
18155 works=no
18156 echo "$as_me:$LINENO: checking for working volatile" >&5
18157 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18166 main ()
18168 volatile int x; x = 0;
18170 return 0;
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 works=yes
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18201 cat >>confdefs.h <<\_ACEOF
18202 #define volatile
18203 _ACEOF
18207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18208 echo "$as_me:$LINENO: result: $works" >&5
18209 echo "${ECHO_T}$works" >&6
18211 works=no
18212 echo "$as_me:$LINENO: checking for working signed char" >&5
18213 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18222 main ()
18224 signed char c;
18226 return 0;
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>conftest.er1
18232 ac_status=$?
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest.$ac_objext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 works=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18257 cat >>confdefs.h <<\_ACEOF
18258 #define signed
18259 _ACEOF
18263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18264 echo "$as_me:$LINENO: result: $works" >&5
18265 echo "${ECHO_T}$works" >&6
18267 have_prototypes=no
18268 echo "$as_me:$LINENO: checking for prototypes" >&5
18269 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 int foo(int x) { return 0; }
18278 main ()
18280 return foo(10);
18282 return 0;
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_PROTOTYPES 1
18311 _ACEOF
18313 have_prototypes=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18321 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18322 echo "${ECHO_T}$have_prototypes" >&6
18324 works=no
18325 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18326 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 #include <stdarg.h>
18335 int foo(int x, ...) {
18336 va_list va;
18337 va_start(va, x);
18338 va_arg(va, int);
18339 va_arg(va, char *);
18340 va_arg(va, double);
18341 return 0;
18345 main ()
18347 return foo(10, "", 3.14);
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18354 (eval $ac_compile) 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest.$ac_objext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE_STDARG_PROTOTYPES 1
18378 _ACEOF
18380 works=yes
18382 else
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18388 echo "$as_me:$LINENO: result: $works" >&5
18389 echo "${ECHO_T}$works" >&6
18391 # check for socketpair
18392 echo "$as_me:$LINENO: checking for socketpair" >&5
18393 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18401 #include <sys/types.h>
18402 #include <sys/socket.h>
18405 main ()
18407 void *x=socketpair
18409 return 0;
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414 (eval $ac_compile) 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
18421 { ac_try='test -z "$ac_c_werror_flag"
18422 || test ! -s conftest.err'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest.$ac_objext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18435 cat >>confdefs.h <<\_ACEOF
18436 #define HAVE_SOCKETPAIR 1
18437 _ACEOF
18439 echo "$as_me:$LINENO: result: yes" >&5
18440 echo "${ECHO_T}yes" >&6
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 echo "$as_me:$LINENO: result: no" >&5
18446 echo "${ECHO_T}no" >&6
18449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18451 # check if sockaddr has sa_len member
18452 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18453 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18454 cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h. */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <sys/types.h>
18461 #include <sys/socket.h>
18463 main ()
18465 struct sockaddr x;
18466 x.sa_len = 0;
18468 return 0;
18470 _ACEOF
18471 rm -f conftest.$ac_objext
18472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18473 (eval $ac_compile) 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try='test -z "$ac_c_werror_flag"
18481 || test ! -s conftest.err'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest.$ac_objext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 echo "$as_me:$LINENO: result: yes" >&5
18494 echo "${ECHO_T}yes" >&6
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE_SOCKADDR_SA_LEN 1
18498 _ACEOF
18500 else
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 echo "$as_me:$LINENO: result: no" >&5
18505 echo "${ECHO_T}no" >&6
18507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509 va_list_is_array=no
18510 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18511 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 #ifdef HAVE_STDARG_PROTOTYPES
18520 #include <stdarg.h>
18521 #else
18522 #include <varargs.h>
18523 #endif
18526 main ()
18528 va_list list1, list2; list1 = list2;
18530 return 0;
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18562 cat >>confdefs.h <<\_ACEOF
18563 #define VA_LIST_IS_ARRAY 1
18564 _ACEOF
18566 va_list_is_array=yes
18569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18570 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18571 echo "${ECHO_T}$va_list_is_array" >&6
18573 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18577 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18578 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18579 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18590 #define gethostbyname_r innocuous_gethostbyname_r
18592 /* System header to define __stub macros and hopefully few prototypes,
18593 which can conflict with char gethostbyname_r (); below.
18594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18595 <limits.h> exists even on freestanding compilers. */
18597 #ifdef __STDC__
18598 # include <limits.h>
18599 #else
18600 # include <assert.h>
18601 #endif
18603 #undef gethostbyname_r
18605 /* Override any gcc2 internal prototype to avoid an error. */
18606 #ifdef __cplusplus
18607 extern "C"
18609 #endif
18610 /* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18612 char gethostbyname_r ();
18613 /* The GNU C library defines this for functions which it implements
18614 to always fail with ENOSYS. Some functions are actually named
18615 something starting with __ and the normal name is an alias. */
18616 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18617 choke me
18618 #else
18619 char (*f) () = gethostbyname_r;
18620 #endif
18621 #ifdef __cplusplus
18623 #endif
18626 main ()
18628 return f != gethostbyname_r;
18630 return 0;
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest$ac_exeext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655 ac_cv_func_gethostbyname_r=yes
18656 else
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 ac_cv_func_gethostbyname_r=no
18662 rm -f conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18665 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18666 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18667 if test $ac_cv_func_gethostbyname_r = yes; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define HAVE_GETHOSTBYNAME_R 1
18671 _ACEOF
18673 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18674 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18675 OLD_CFLAGS=$CFLAGS
18676 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 # include <netdb.h>
18687 main ()
18690 char *name;
18691 struct hostent *he, *res;
18692 char buffer[2048];
18693 int buflen = 2048;
18694 int h_errnop;
18696 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18699 return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18704 (eval $ac_compile) 2>conftest.er1
18705 ac_status=$?
18706 grep -v '^ *+' conftest.er1 >conftest.err
18707 rm -f conftest.er1
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -z "$ac_c_werror_flag"
18712 || test ! -s conftest.err'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest.$ac_objext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_GETHOSTBYNAME_R 1
18727 _ACEOF
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18732 _ACEOF
18734 echo "$as_me:$LINENO: result: yes" >&5
18735 echo "${ECHO_T}yes" >&6
18737 else
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18742 echo "$as_me:$LINENO: result: no" >&5
18743 echo "${ECHO_T}no" >&6
18744 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18745 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h. */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 # include <netdb.h>
18756 main ()
18759 char *name;
18760 struct hostent *he;
18761 char buffer[2048];
18762 int buflen = 2048;
18763 int h_errnop;
18765 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest.$ac_objext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18794 cat >>confdefs.h <<\_ACEOF
18795 #define HAVE_GETHOSTBYNAME_R 1
18796 _ACEOF
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18801 _ACEOF
18803 echo "$as_me:$LINENO: result: yes" >&5
18804 echo "${ECHO_T}yes" >&6
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18811 echo "$as_me:$LINENO: result: no" >&5
18812 echo "${ECHO_T}no" >&6
18813 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18814 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 # include <netdb.h>
18825 main ()
18828 char *name;
18829 struct hostent *he;
18830 struct hostent_data data;
18832 (void) gethostbyname_r(name, he, &data);
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE_GETHOSTBYNAME_R 1
18863 _ACEOF
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18868 _ACEOF
18870 echo "$as_me:$LINENO: result: yes" >&5
18871 echo "${ECHO_T}yes" >&6
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18878 echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6
18882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18889 CFLAGS=$OLD_CFLAGS
18891 else
18894 for ac_func in gethostbyname
18896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18899 if eval "test \"\${$as_ac_var+set}\" = set"; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h. */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18910 #define $ac_func innocuous_$ac_func
18912 /* System header to define __stub macros and hopefully few prototypes,
18913 which can conflict with char $ac_func (); below.
18914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915 <limits.h> exists even on freestanding compilers. */
18917 #ifdef __STDC__
18918 # include <limits.h>
18919 #else
18920 # include <assert.h>
18921 #endif
18923 #undef $ac_func
18925 /* Override any gcc2 internal prototype to avoid an error. */
18926 #ifdef __cplusplus
18927 extern "C"
18929 #endif
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932 char $ac_func ();
18933 /* The GNU C library defines this for functions which it implements
18934 to always fail with ENOSYS. Some functions are actually named
18935 something starting with __ and the normal name is an alias. */
18936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18937 choke me
18938 #else
18939 char (*f) () = $ac_func;
18940 #endif
18941 #ifdef __cplusplus
18943 #endif
18946 main ()
18948 return f != $ac_func;
18950 return 0;
18952 _ACEOF
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955 (eval $ac_link) 2>conftest.er1
18956 ac_status=$?
18957 grep -v '^ *+' conftest.er1 >conftest.err
18958 rm -f conftest.er1
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag"
18963 || test ! -s conftest.err'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 eval "$as_ac_var=yes"
18976 else
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 eval "$as_ac_var=no"
18982 rm -f conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18987 if test `eval echo '${'$as_ac_var'}'` = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18990 _ACEOF
18993 done
19004 # checks for system services
19005 # (none yet)
19007 # Linux requires this for correct f.p. operations
19008 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19009 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19010 if test "${ac_cv_func___fpu_control+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013 cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h. */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define __fpu_control innocuous___fpu_control
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char __fpu_control (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19028 #ifdef __STDC__
19029 # include <limits.h>
19030 #else
19031 # include <assert.h>
19032 #endif
19034 #undef __fpu_control
19036 /* Override any gcc2 internal prototype to avoid an error. */
19037 #ifdef __cplusplus
19038 extern "C"
19040 #endif
19041 /* We use char because int might match the return type of a gcc2
19042 builtin and then its argument prototype would still apply. */
19043 char __fpu_control ();
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19048 choke me
19049 #else
19050 char (*f) () = __fpu_control;
19051 #endif
19052 #ifdef __cplusplus
19054 #endif
19057 main ()
19059 return f != __fpu_control;
19061 return 0;
19063 _ACEOF
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest$ac_exeext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_cv_func___fpu_control=yes
19087 else
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ac_cv_func___fpu_control=no
19093 rm -f conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19096 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19097 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19098 if test $ac_cv_func___fpu_control = yes; then
19100 else
19102 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19103 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19104 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lieee $LIBS"
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 /* Override any gcc2 internal prototype to avoid an error. */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19122 char __fpu_control ();
19124 main ()
19126 __fpu_control ();
19128 return 0;
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133 (eval $ac_link) 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag"
19141 || test ! -s conftest.err'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_ieee___fpu_control=yes
19154 else
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_lib_ieee___fpu_control=no
19160 rm -f conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19164 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19165 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19166 if test $ac_cv_lib_ieee___fpu_control = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define HAVE_LIBIEEE 1
19169 _ACEOF
19171 LIBS="-lieee $LIBS"
19179 # Check for --with-fpectl
19180 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19181 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19183 # Check whether --with-fpectl or --without-fpectl was given.
19184 if test "${with_fpectl+set}" = set; then
19185 withval="$with_fpectl"
19187 if test "$withval" != no
19188 then
19190 cat >>confdefs.h <<\_ACEOF
19191 #define WANT_SIGFPE_HANDLER 1
19192 _ACEOF
19194 echo "$as_me:$LINENO: result: yes" >&5
19195 echo "${ECHO_T}yes" >&6
19196 else echo "$as_me:$LINENO: result: no" >&5
19197 echo "${ECHO_T}no" >&6
19199 else
19200 echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6
19204 # check for --with-libm=...
19206 case $ac_sys_system in
19207 Darwin) ;;
19208 BeOS) ;;
19209 *) LIBM=-lm
19210 esac
19211 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19212 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19214 # Check whether --with-libm or --without-libm was given.
19215 if test "${with_libm+set}" = set; then
19216 withval="$with_libm"
19218 if test "$withval" = no
19219 then LIBM=
19220 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19221 echo "${ECHO_T}force LIBM empty" >&6
19222 elif test "$withval" != yes
19223 then LIBM=$withval
19224 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19225 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19226 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19227 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19228 { (exit 1); exit 1; }; }
19230 else
19231 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19232 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19235 # check for --with-libc=...
19237 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19238 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19240 # Check whether --with-libc or --without-libc was given.
19241 if test "${with_libc+set}" = set; then
19242 withval="$with_libc"
19244 if test "$withval" = no
19245 then LIBC=
19246 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19247 echo "${ECHO_T}force LIBC empty" >&6
19248 elif test "$withval" != yes
19249 then LIBC=$withval
19250 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19251 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19252 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19253 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19254 { (exit 1); exit 1; }; }
19256 else
19257 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19258 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19261 # check for hypot() in math library
19262 LIBS_SAVE=$LIBS
19263 LIBS="$LIBS $LIBM"
19265 for ac_func in hypot
19267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19268 echo "$as_me:$LINENO: checking for $ac_func" >&5
19269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19270 if eval "test \"\${$as_ac_var+set}\" = set"; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h. */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19281 #define $ac_func innocuous_$ac_func
19283 /* System header to define __stub macros and hopefully few prototypes,
19284 which can conflict with char $ac_func (); below.
19285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 <limits.h> exists even on freestanding compilers. */
19288 #ifdef __STDC__
19289 # include <limits.h>
19290 #else
19291 # include <assert.h>
19292 #endif
19294 #undef $ac_func
19296 /* Override any gcc2 internal prototype to avoid an error. */
19297 #ifdef __cplusplus
19298 extern "C"
19300 #endif
19301 /* We use char because int might match the return type of a gcc2
19302 builtin and then its argument prototype would still apply. */
19303 char $ac_func ();
19304 /* The GNU C library defines this for functions which it implements
19305 to always fail with ENOSYS. Some functions are actually named
19306 something starting with __ and the normal name is an alias. */
19307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19308 choke me
19309 #else
19310 char (*f) () = $ac_func;
19311 #endif
19312 #ifdef __cplusplus
19314 #endif
19317 main ()
19319 return f != $ac_func;
19321 return 0;
19323 _ACEOF
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19326 (eval $ac_link) 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_c_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 eval "$as_ac_var=yes"
19347 else
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 eval "$as_ac_var=no"
19353 rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361 _ACEOF
19363 else
19364 case $LIBOBJS in
19365 "$ac_func.$ac_objext" | \
19366 *" $ac_func.$ac_objext" | \
19367 "$ac_func.$ac_objext "* | \
19368 *" $ac_func.$ac_objext "* ) ;;
19369 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19370 esac
19373 done
19376 LIBS=$LIBS_SAVE
19378 # check for wchar.h
19379 if test "${ac_cv_header_wchar_h+set}" = set; then
19380 echo "$as_me:$LINENO: checking for wchar.h" >&5
19381 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19382 if test "${ac_cv_header_wchar_h+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19386 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19387 else
19388 # Is the header compilable?
19389 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19390 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 $ac_includes_default
19398 #include <wchar.h>
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19402 (eval $ac_compile) 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_c_werror_flag"
19410 || test ! -s conftest.err'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try='test -s conftest.$ac_objext'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_header_compiler=yes
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_header_compiler=no
19429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19431 echo "${ECHO_T}$ac_header_compiler" >&6
19433 # Is the header present?
19434 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19435 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h. */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <wchar.h>
19443 _ACEOF
19444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev/null; then
19452 if test -s conftest.err; then
19453 ac_cpp_err=$ac_c_preproc_warn_flag
19454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19455 else
19456 ac_cpp_err=
19458 else
19459 ac_cpp_err=yes
19461 if test -z "$ac_cpp_err"; then
19462 ac_header_preproc=yes
19463 else
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_header_preproc=no
19469 rm -f conftest.err conftest.$ac_ext
19470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19471 echo "${ECHO_T}$ac_header_preproc" >&6
19473 # So? What about this header?
19474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19475 yes:no: )
19476 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19477 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19479 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19480 ac_header_preproc=yes
19482 no:yes:* )
19483 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19484 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19486 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19488 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19490 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19492 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19494 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19496 cat <<\_ASBOX
19497 ## ------------------------------------------------ ##
19498 ## Report this to http://www.python.org/python-bugs ##
19499 ## ------------------------------------------------ ##
19500 _ASBOX
19502 sed "s/^/$as_me: WARNING: /" >&2
19504 esac
19505 echo "$as_me:$LINENO: checking for wchar.h" >&5
19506 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19507 if test "${ac_cv_header_wchar_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510 ac_cv_header_wchar_h=$ac_header_preproc
19512 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19513 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19516 if test $ac_cv_header_wchar_h = yes; then
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_WCHAR_H 1
19521 _ACEOF
19523 wchar_h="yes"
19525 else
19526 wchar_h="no"
19532 # determine wchar_t size
19533 if test "$wchar_h" = yes
19534 then
19535 echo "$as_me:$LINENO: checking for wchar_t" >&5
19536 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19537 if test "${ac_cv_type_wchar_t+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h. */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 #include <wchar.h>
19549 main ()
19551 if ((wchar_t *) 0)
19552 return 0;
19553 if (sizeof (wchar_t))
19554 return 0;
19556 return 0;
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19562 ac_status=$?
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_cv_type_wchar_t=yes
19582 else
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_type_wchar_t=no
19588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19591 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19593 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19594 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19595 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 if test "$ac_cv_type_wchar_t" = yes; then
19599 # The cast to unsigned long works around a bug in the HP C Compiler
19600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19602 # This bug is HP SR number 8606223364.
19603 if test "$cross_compiling" = yes; then
19604 # Depending upon the size, compute the lo and hi bounds.
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <wchar.h>
19614 main ()
19616 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19617 test_array [0] = 0
19620 return 0;
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625 (eval $ac_compile) 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag"
19633 || test ! -s conftest.err'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_lo=0 ac_mid=0
19646 while :; do
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <wchar.h>
19656 main ()
19658 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19659 test_array [0] = 0
19662 return 0;
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_hi=$ac_mid; break
19688 else
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 ac_lo=`expr $ac_mid + 1`
19693 if test $ac_lo -le $ac_mid; then
19694 ac_lo= ac_hi=
19695 break
19697 ac_mid=`expr 2 '*' $ac_mid + 1`
19699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 done
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #include <wchar.h>
19714 main ()
19716 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19717 test_array [0] = 0
19720 return 0;
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_hi=-1 ac_mid=-1
19746 while :; do
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 #include <wchar.h>
19756 main ()
19758 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19759 test_array [0] = 0
19762 return 0;
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19767 (eval $ac_compile) 2>conftest.er1
19768 ac_status=$?
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_c_werror_flag"
19775 || test ! -s conftest.err'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest.$ac_objext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_lo=$ac_mid; break
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_hi=`expr '(' $ac_mid ')' - 1`
19793 if test $ac_mid -le $ac_hi; then
19794 ac_lo= ac_hi=
19795 break
19797 ac_mid=`expr 2 '*' $ac_mid`
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19800 done
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_lo= ac_hi=
19807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810 # Binary search between lo and hi bounds.
19811 while test "x$ac_lo" != "x$ac_hi"; do
19812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 #include <wchar.h>
19822 main ()
19824 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19825 test_array [0] = 0
19828 return 0;
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19833 (eval $ac_compile) 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_hi=$ac_mid
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_lo=`expr '(' $ac_mid ')' + 1`
19860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19861 done
19862 case $ac_lo in
19863 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19864 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19865 See \`config.log' for more details." >&5
19866 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19867 See \`config.log' for more details." >&2;}
19868 { (exit 1); exit 1; }; } ;;
19869 esac
19870 else
19871 if test "$cross_compiling" = yes; then
19872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19873 See \`config.log' for more details." >&5
19874 echo "$as_me: error: cannot run test program while cross compiling
19875 See \`config.log' for more details." >&2;}
19876 { (exit 1); exit 1; }; }
19877 else
19878 cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h. */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 #include <wchar.h>
19886 long longval () { return (long) (sizeof (wchar_t)); }
19887 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19888 #include <stdio.h>
19889 #include <stdlib.h>
19891 main ()
19894 FILE *f = fopen ("conftest.val", "w");
19895 if (! f)
19896 exit (1);
19897 if (((long) (sizeof (wchar_t))) < 0)
19899 long i = longval ();
19900 if (i != ((long) (sizeof (wchar_t))))
19901 exit (1);
19902 fprintf (f, "%ld\n", i);
19904 else
19906 unsigned long i = ulongval ();
19907 if (i != ((long) (sizeof (wchar_t))))
19908 exit (1);
19909 fprintf (f, "%lu\n", i);
19911 exit (ferror (f) || fclose (f) != 0);
19914 return 0;
19916 _ACEOF
19917 rm -f conftest$ac_exeext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_sizeof_wchar_t=`cat conftest.val`
19929 else
19930 echo "$as_me: program exited with status $ac_status" >&5
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ( exit $ac_status )
19935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19936 See \`config.log' for more details." >&5
19937 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19938 See \`config.log' for more details." >&2;}
19939 { (exit 1); exit 1; }; }
19941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19944 rm -f conftest.val
19945 else
19946 ac_cv_sizeof_wchar_t=0
19949 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19950 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19951 cat >>confdefs.h <<_ACEOF
19952 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19953 _ACEOF
19958 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19959 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19960 have_ucs4_tcl=no
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19968 #include <tcl.h>
19969 #if TCL_UTF_MAX != 6
19970 # error "NOT UCS4_TCL"
19971 #endif
19973 main ()
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
19989 { ac_try='test -z "$ac_c_werror_flag"
19990 || test ! -s conftest.err'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20004 cat >>confdefs.h <<\_ACEOF
20005 #define HAVE_UCS4_TCL 1
20006 _ACEOF
20008 have_ucs4_tcl=yes
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20016 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20017 echo "${ECHO_T}$have_ucs4_tcl" >&6
20019 # check whether wchar_t is signed or not
20020 if test "$wchar_h" = yes
20021 then
20022 # check whether wchar_t is signed or not
20023 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20024 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20025 if test "${ac_cv_wchar_t_signed+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20029 if test "$cross_compiling" = yes; then
20030 ac_cv_wchar_t_signed=yes
20031 else
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 #include <wchar.h>
20040 int main()
20042 /* Success: exit code 0 */
20043 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20046 _ACEOF
20047 rm -f conftest$ac_exeext
20048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20049 (eval $ac_link) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_wchar_t_signed=yes
20059 else
20060 echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ( exit $ac_status )
20065 ac_cv_wchar_t_signed=no
20067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20071 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20072 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20075 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20076 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20077 # Check whether --enable-unicode or --disable-unicode was given.
20078 if test "${enable_unicode+set}" = set; then
20079 enableval="$enable_unicode"
20081 else
20082 enable_unicode=yes
20085 if test $enable_unicode = yes
20086 then
20087 # Without any arguments, Py_UNICODE defaults to two-byte mode
20088 case "$have_ucs4_tcl" in
20089 yes) enable_unicode="ucs4"
20091 *) enable_unicode="ucs2"
20093 esac
20098 case "$enable_unicode" in
20099 ucs2) unicode_size="2"
20100 cat >>confdefs.h <<\_ACEOF
20101 #define Py_UNICODE_SIZE 2
20102 _ACEOF
20105 ucs4) unicode_size="4"
20106 cat >>confdefs.h <<\_ACEOF
20107 #define Py_UNICODE_SIZE 4
20108 _ACEOF
20111 esac
20117 if test "$enable_unicode" = "no"
20118 then
20119 UNICODE_OBJS=""
20120 echo "$as_me:$LINENO: result: not used" >&5
20121 echo "${ECHO_T}not used" >&6
20122 else
20123 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20125 cat >>confdefs.h <<\_ACEOF
20126 #define Py_USING_UNICODE 1
20127 _ACEOF
20130 # wchar_t is only usable if it maps to an unsigned type
20131 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20132 -a "$ac_cv_wchar_t_signed" = "no"
20133 then
20134 PY_UNICODE_TYPE="wchar_t"
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_USABLE_WCHAR_T 1
20138 _ACEOF
20140 cat >>confdefs.h <<\_ACEOF
20141 #define PY_UNICODE_TYPE wchar_t
20142 _ACEOF
20144 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20145 then
20146 PY_UNICODE_TYPE="unsigned short"
20147 cat >>confdefs.h <<\_ACEOF
20148 #define PY_UNICODE_TYPE unsigned short
20149 _ACEOF
20151 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20152 then
20153 PY_UNICODE_TYPE="unsigned long"
20154 cat >>confdefs.h <<\_ACEOF
20155 #define PY_UNICODE_TYPE unsigned long
20156 _ACEOF
20158 else
20159 PY_UNICODE_TYPE="no type found"
20161 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20162 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20165 # check for endianness
20166 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20167 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20168 if test "${ac_cv_c_bigendian+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 # See if sys/param.h defines the BYTE_ORDER macro.
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h. */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #include <sys/types.h>
20179 #include <sys/param.h>
20182 main ()
20184 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20185 bogus endian macros
20186 #endif
20189 return 0;
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag"
20202 || test ! -s conftest.err'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 # It does; now see whether it defined to BIG_ENDIAN or not.
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <sys/types.h>
20222 #include <sys/param.h>
20225 main ()
20227 #if BYTE_ORDER != BIG_ENDIAN
20228 not big endian
20229 #endif
20232 return 0;
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_cv_c_bigendian=yes
20258 else
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 ac_cv_c_bigendian=no
20264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 # It does not; compile a test program.
20270 if test "$cross_compiling" = yes; then
20271 # try to guess the endianness by grepping values into an object file
20272 ac_cv_c_bigendian=unknown
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20280 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20281 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20282 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20283 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20284 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20286 main ()
20288 _ascii (); _ebcdic ();
20290 return 0;
20292 _ACEOF
20293 rm -f conftest.$ac_objext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20295 (eval $ac_compile) 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest.$ac_objext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20316 ac_cv_c_bigendian=yes
20318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20319 if test "$ac_cv_c_bigendian" = unknown; then
20320 ac_cv_c_bigendian=no
20321 else
20322 # finding both strings is unlikely to happen, but who knows?
20323 ac_cv_c_bigendian=unknown
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20332 else
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 main ()
20342 /* Are we little or big endian? From Harbison&Steele. */
20343 union
20345 long l;
20346 char c[sizeof (long)];
20347 } u;
20348 u.l = 1;
20349 exit (u.c[sizeof (long) - 1] == 1);
20351 _ACEOF
20352 rm -f conftest$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_c_bigendian=no
20364 else
20365 echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ( exit $ac_status )
20370 ac_cv_c_bigendian=yes
20372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20377 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379 case $ac_cv_c_bigendian in
20380 yes)
20382 cat >>confdefs.h <<\_ACEOF
20383 #define WORDS_BIGENDIAN 1
20384 _ACEOF
20389 { { echo "$as_me:$LINENO: error: unknown endianness
20390 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20391 echo "$as_me: error: unknown endianness
20392 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20393 { (exit 1); exit 1; }; } ;;
20394 esac
20397 # Check whether right shifting a negative integer extends the sign bit
20398 # or fills with zeros (like the Cray J90, according to Tim Peters).
20399 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20400 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20401 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20405 if test "$cross_compiling" = yes; then
20406 ac_cv_rshift_extends_sign=yes
20407 else
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 int main()
20417 exit(((-1)>>3 == -1) ? 0 : 1);
20420 _ACEOF
20421 rm -f conftest$ac_exeext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20423 (eval $ac_link) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_rshift_extends_sign=yes
20433 else
20434 echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ( exit $ac_status )
20439 ac_cv_rshift_extends_sign=no
20441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20446 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20447 if test "$ac_cv_rshift_extends_sign" = no
20448 then
20450 cat >>confdefs.h <<\_ACEOF
20451 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20452 _ACEOF
20456 # check for getc_unlocked and related locking functions
20457 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20458 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20459 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 #include <stdio.h>
20471 main ()
20474 FILE *f = fopen("/dev/null", "r");
20475 flockfile(f);
20476 getc_unlocked(f);
20477 funlockfile(f);
20480 return 0;
20482 _ACEOF
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20485 (eval $ac_link) 2>conftest.er1
20486 ac_status=$?
20487 grep -v '^ *+' conftest.er1 >conftest.err
20488 rm -f conftest.er1
20489 cat conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try='test -z "$ac_c_werror_flag"
20493 || test ! -s conftest.err'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_have_getc_unlocked=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_cv_have_getc_unlocked=no
20512 rm -f conftest.err conftest.$ac_objext \
20513 conftest$ac_exeext conftest.$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20517 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20518 if test "$ac_cv_have_getc_unlocked" = yes
20519 then
20521 cat >>confdefs.h <<\_ACEOF
20522 #define HAVE_GETC_UNLOCKED 1
20523 _ACEOF
20527 # check where readline lives
20528 # save the value of LIBS so we don't actually link Python with readline
20529 LIBS_no_readline=$LIBS
20531 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20532 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20533 if test "${ac_cv_lib_readline_readline+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 ac_check_lib_save_LIBS=$LIBS
20537 LIBS="-lreadline $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20545 /* Override any gcc2 internal prototype to avoid an error. */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 /* We use char because int might match the return type of a gcc2
20550 builtin and then its argument prototype would still apply. */
20551 char readline ();
20553 main ()
20555 readline ();
20557 return 0;
20559 _ACEOF
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20562 (eval $ac_link) 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag"
20570 || test ! -s conftest.err'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest$ac_exeext'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_cv_lib_readline_readline=yes
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 ac_cv_lib_readline_readline=no
20589 rm -f conftest.err conftest.$ac_objext \
20590 conftest$ac_exeext conftest.$ac_ext
20591 LIBS=$ac_check_lib_save_LIBS
20593 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20594 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20595 if test $ac_cv_lib_readline_readline = yes; then
20596 cat >>confdefs.h <<_ACEOF
20597 #define HAVE_LIBREADLINE 1
20598 _ACEOF
20600 LIBS="-lreadline $LIBS"
20604 if test "$ac_cv_have_readline_readline" = no
20605 then
20607 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20608 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20609 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 ac_check_lib_save_LIBS=$LIBS
20613 LIBS="-ltermcap $LIBS"
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 /* Override any gcc2 internal prototype to avoid an error. */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20627 char readline ();
20629 main ()
20631 readline ();
20633 return 0;
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_termcap_readline=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_termcap_readline=no
20665 rm -f conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20670 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20671 if test $ac_cv_lib_termcap_readline = yes; then
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_LIBTERMCAP 1
20674 _ACEOF
20676 LIBS="-ltermcap $LIBS"
20682 # check for readline 2.1
20683 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20684 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20685 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688 ac_check_lib_save_LIBS=$LIBS
20689 LIBS="-lreadline $LIBS"
20690 cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h. */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20697 /* Override any gcc2 internal prototype to avoid an error. */
20698 #ifdef __cplusplus
20699 extern "C"
20700 #endif
20701 /* We use char because int might match the return type of a gcc2
20702 builtin and then its argument prototype would still apply. */
20703 char rl_callback_handler_install ();
20705 main ()
20707 rl_callback_handler_install ();
20709 return 0;
20711 _ACEOF
20712 rm -f conftest.$ac_objext conftest$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>conftest.er1
20715 ac_status=$?
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest$ac_exeext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_cv_lib_readline_rl_callback_handler_install=yes
20735 else
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_lib_readline_rl_callback_handler_install=no
20741 rm -f conftest.err conftest.$ac_objext \
20742 conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20745 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20746 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20747 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20749 cat >>confdefs.h <<\_ACEOF
20750 #define HAVE_RL_CALLBACK 1
20751 _ACEOF
20756 # check for readline 2.2
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 #include <readline/readline.h>
20764 _ACEOF
20765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20767 ac_status=$?
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev/null; then
20773 if test -s conftest.err; then
20774 ac_cpp_err=$ac_c_preproc_warn_flag
20775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20776 else
20777 ac_cpp_err=
20779 else
20780 ac_cpp_err=yes
20782 if test -z "$ac_cpp_err"; then
20783 have_readline=yes
20784 else
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 have_readline=no
20790 rm -f conftest.err conftest.$ac_ext
20791 if test $have_readline = yes
20792 then
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #include <readline/readline.h>
20801 _ACEOF
20802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20803 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20807 _ACEOF
20810 rm -f conftest*
20814 # check for readline 4.0
20815 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20816 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20817 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820 ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-lreadline $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h. */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any gcc2 internal prototype to avoid an error. */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 /* We use char because int might match the return type of a gcc2
20834 builtin and then its argument prototype would still apply. */
20835 char rl_pre_input_hook ();
20837 main ()
20839 rl_pre_input_hook ();
20841 return 0;
20843 _ACEOF
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846 (eval $ac_link) 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -z "$ac_c_werror_flag"
20854 || test ! -s conftest.err'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest$ac_exeext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 ac_cv_lib_readline_rl_pre_input_hook=yes
20867 else
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_lib_readline_rl_pre_input_hook=no
20873 rm -f conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20877 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20878 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20879 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define HAVE_RL_PRE_INPUT_HOOK 1
20883 _ACEOF
20888 # check for readline 4.2
20889 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20890 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20891 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894 ac_check_lib_save_LIBS=$LIBS
20895 LIBS="-lreadline $LIBS"
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h. */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20903 /* Override any gcc2 internal prototype to avoid an error. */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 /* We use char because int might match the return type of a gcc2
20908 builtin and then its argument prototype would still apply. */
20909 char rl_completion_matches ();
20911 main ()
20913 rl_completion_matches ();
20915 return 0;
20917 _ACEOF
20918 rm -f conftest.$ac_objext conftest$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_c_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_lib_readline_rl_completion_matches=yes
20941 else
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_lib_readline_rl_completion_matches=no
20947 rm -f conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20949 LIBS=$ac_check_lib_save_LIBS
20951 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20952 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20953 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_RL_COMPLETION_MATCHES 1
20957 _ACEOF
20962 # also in readline 4.2
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 #include <readline/readline.h>
20970 _ACEOF
20971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } >/dev/null; then
20979 if test -s conftest.err; then
20980 ac_cpp_err=$ac_c_preproc_warn_flag
20981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20982 else
20983 ac_cpp_err=
20985 else
20986 ac_cpp_err=yes
20988 if test -z "$ac_cpp_err"; then
20989 have_readline=yes
20990 else
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20994 have_readline=no
20996 rm -f conftest.err conftest.$ac_ext
20997 if test $have_readline = yes
20998 then
20999 cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h. */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <readline/readline.h>
21007 _ACEOF
21008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21009 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21011 cat >>confdefs.h <<\_ACEOF
21012 #define HAVE_RL_CATCH_SIGNAL 1
21013 _ACEOF
21016 rm -f conftest*
21020 # End of readline checks: restore LIBS
21021 LIBS=$LIBS_no_readline
21023 echo "$as_me:$LINENO: checking for broken nice()" >&5
21024 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21025 if test "${ac_cv_broken_nice+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21029 if test "$cross_compiling" = yes; then
21030 ac_cv_broken_nice=no
21031 else
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 int main()
21041 int val1 = nice(1);
21042 if (val1 != -1 && val1 == nice(2))
21043 exit(0);
21044 exit(1);
21047 _ACEOF
21048 rm -f conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_cv_broken_nice=yes
21060 else
21061 echo "$as_me: program exited with status $ac_status" >&5
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ( exit $ac_status )
21066 ac_cv_broken_nice=no
21068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21072 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21073 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21074 if test "$ac_cv_broken_nice" = yes
21075 then
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_BROKEN_NICE 1
21079 _ACEOF
21083 echo "$as_me:$LINENO: checking for broken poll()" >&5
21084 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21085 if test "$cross_compiling" = yes; then
21086 ac_cv_broken_poll=no
21087 else
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 #include <poll.h>
21097 int main (void)
21099 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21101 close (42);
21103 int poll_test = poll (&poll_struct, 1, 0);
21105 if (poll_test < 0)
21107 exit(0);
21109 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21111 exit(0);
21113 else
21115 exit(1);
21119 _ACEOF
21120 rm -f conftest$ac_exeext
21121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21122 (eval $ac_link) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_broken_poll=yes
21132 else
21133 echo "$as_me: program exited with status $ac_status" >&5
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ( exit $ac_status )
21138 ac_cv_broken_poll=no
21140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21143 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21144 if test "$ac_cv_broken_poll" = yes
21145 then
21147 cat >>confdefs.h <<\_ACEOF
21148 #define HAVE_BROKEN_POLL 1
21149 _ACEOF
21153 # Before we can test tzset, we need to check if struct tm has a tm_zone
21154 # (which is not required by ISO C or UNIX spec) and/or if we support
21155 # tzname[]
21156 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21157 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21158 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <sys/types.h>
21168 #include <$ac_cv_struct_tm>
21172 main ()
21174 static struct tm ac_aggr;
21175 if (ac_aggr.tm_zone)
21176 return 0;
21178 return 0;
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183 (eval $ac_compile) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest.$ac_objext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_member_struct_tm_tm_zone=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h. */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <sys/types.h>
21215 #include <$ac_cv_struct_tm>
21219 main ()
21221 static struct tm ac_aggr;
21222 if (sizeof ac_aggr.tm_zone)
21223 return 0;
21225 return 0;
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230 (eval $ac_compile) 2>conftest.er1
21231 ac_status=$?
21232 grep -v '^ *+' conftest.er1 >conftest.err
21233 rm -f conftest.er1
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag"
21238 || test ! -s conftest.err'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try='test -s conftest.$ac_objext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_cv_member_struct_tm_tm_zone=yes
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_cv_member_struct_tm_tm_zone=no
21257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21261 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21262 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21263 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21265 cat >>confdefs.h <<_ACEOF
21266 #define HAVE_STRUCT_TM_TM_ZONE 1
21267 _ACEOF
21272 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_TM_ZONE 1
21276 _ACEOF
21278 else
21279 echo "$as_me:$LINENO: checking for tzname" >&5
21280 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21281 if test "${ac_cv_var_tzname+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h. */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <time.h>
21291 #ifndef tzname /* For SGI. */
21292 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21293 #endif
21296 main ()
21298 atoi(*tzname);
21300 return 0;
21302 _ACEOF
21303 rm -f conftest.$ac_objext conftest$ac_exeext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21305 (eval $ac_link) 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_c_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest$ac_exeext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_var_tzname=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_var_tzname=no
21332 rm -f conftest.err conftest.$ac_objext \
21333 conftest$ac_exeext conftest.$ac_ext
21335 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21336 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21337 if test $ac_cv_var_tzname = yes; then
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_TZNAME 1
21341 _ACEOF
21347 # check tzset(3) exists and works like we expect it to
21348 echo "$as_me:$LINENO: checking for working tzset()" >&5
21349 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21350 if test "${ac_cv_working_tzset+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21354 if test "$cross_compiling" = yes; then
21355 ac_cv_working_tzset=no
21356 else
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21364 #include <stdlib.h>
21365 #include <time.h>
21366 #include <string.h>
21368 #if HAVE_TZNAME
21369 extern char *tzname[];
21370 #endif
21372 int main()
21374 /* Note that we need to ensure that not only does tzset(3)
21375 do 'something' with localtime, but it works as documented
21376 in the library reference and as expected by the test suite.
21377 This includes making sure that tzname is set properly if
21378 tm->tm_zone does not exist since it is the alternative way
21379 of getting timezone info.
21381 Red Hat 6.2 doesn't understand the southern hemisphere
21382 after New Year's Day.
21385 time_t groundhogday = 1044144000; /* GMT-based */
21386 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21388 putenv("TZ=UTC+0");
21389 tzset();
21390 if (localtime(&groundhogday)->tm_hour != 0)
21391 exit(1);
21392 #if HAVE_TZNAME
21393 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21394 if (strcmp(tzname[0], "UTC") ||
21395 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21396 exit(1);
21397 #endif
21399 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21400 tzset();
21401 if (localtime(&groundhogday)->tm_hour != 19)
21402 exit(1);
21403 #if HAVE_TZNAME
21404 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21405 exit(1);
21406 #endif
21408 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21409 tzset();
21410 if (localtime(&groundhogday)->tm_hour != 11)
21411 exit(1);
21412 #if HAVE_TZNAME
21413 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21414 exit(1);
21415 #endif
21417 #if HAVE_STRUCT_TM_TM_ZONE
21418 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21419 exit(1);
21420 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21421 exit(1);
21422 #endif
21424 exit(0);
21427 _ACEOF
21428 rm -f conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_working_tzset=yes
21440 else
21441 echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ( exit $ac_status )
21446 ac_cv_working_tzset=no
21448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21452 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21453 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21454 if test "$ac_cv_working_tzset" = yes
21455 then
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_WORKING_TZSET 1
21459 _ACEOF
21463 # Look for subsecond timestamps in struct stat
21464 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21465 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21466 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469 cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h. */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <sys/stat.h>
21477 main ()
21480 struct stat st;
21481 st.st_mtim.tv_nsec = 1;
21484 return 0;
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -z "$ac_c_werror_flag"
21497 || test ! -s conftest.err'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_cv_stat_tv_nsec=yes
21510 else
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_stat_tv_nsec=no
21516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21519 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21520 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21521 if test "$ac_cv_stat_tv_nsec" = yes
21522 then
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_STAT_TV_NSEC 1
21526 _ACEOF
21530 # Look for BSD style subsecond timestamps in struct stat
21531 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21532 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21533 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <sys/stat.h>
21544 main ()
21547 struct stat st;
21548 st.st_mtimespec.tv_nsec = 1;
21551 return 0;
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest.$ac_objext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21573 ac_status=$?
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 ac_cv_stat_tv_nsec2=yes
21577 else
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_cv_stat_tv_nsec2=no
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21586 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21587 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21588 if test "$ac_cv_stat_tv_nsec2" = yes
21589 then
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_STAT_TV_NSEC2 1
21593 _ACEOF
21597 # On HP/UX 11.0, mvwdelch is a block with a return statement
21598 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21599 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21600 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <curses.h>
21611 main ()
21614 int rtn;
21615 rtn = mvwdelch(0,0,0);
21618 return 0;
21620 _ACEOF
21621 rm -f conftest.$ac_objext
21622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21623 (eval $ac_compile) 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try='test -z "$ac_c_werror_flag"
21631 || test ! -s conftest.err'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_mvwdelch_is_expression=yes
21644 else
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_cv_mvwdelch_is_expression=no
21650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21653 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21654 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21656 if test "$ac_cv_mvwdelch_is_expression" = yes
21657 then
21659 cat >>confdefs.h <<\_ACEOF
21660 #define MVWDELCH_IS_EXPRESSION 1
21661 _ACEOF
21665 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21666 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21667 if test "${ac_cv_window_has_flags+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 #include <curses.h>
21678 main ()
21681 WINDOW *w;
21682 w->_flags = 0;
21685 return 0;
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21690 (eval $ac_compile) 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -z "$ac_c_werror_flag"
21698 || test ! -s conftest.err'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; } &&
21704 { ac_try='test -s conftest.$ac_objext'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_window_has_flags=yes
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_cv_window_has_flags=no
21717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21720 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21721 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21724 if test "$ac_cv_window_has_flags" = yes
21725 then
21727 cat >>confdefs.h <<\_ACEOF
21728 #define WINDOW_HAS_FLAGS 1
21729 _ACEOF
21733 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21734 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21736 if test -e /dev/ptmx
21737 then
21738 echo "$as_me:$LINENO: result: yes" >&5
21739 echo "${ECHO_T}yes" >&6
21741 cat >>confdefs.h <<\_ACEOF
21742 #define HAVE_DEV_PTMX 1
21743 _ACEOF
21745 else
21746 echo "$as_me:$LINENO: result: no" >&5
21747 echo "${ECHO_T}no" >&6
21750 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21751 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21753 if test -e /dev/ptc
21754 then
21755 echo "$as_me:$LINENO: result: yes" >&5
21756 echo "${ECHO_T}yes" >&6
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_DEV_PTC 1
21760 _ACEOF
21762 else
21763 echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21767 echo "$as_me:$LINENO: checking for socklen_t" >&5
21768 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21769 if test "${ac_cv_type_socklen_t+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772 cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h. */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21779 #ifdef HAVE_SYS_TYPES_H
21780 #include <sys/types.h>
21781 #endif
21782 #ifdef HAVE_SYS_SOCKET_H
21783 #include <sys/socket.h>
21784 #endif
21788 main ()
21790 if ((socklen_t *) 0)
21791 return 0;
21792 if (sizeof (socklen_t))
21793 return 0;
21795 return 0;
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800 (eval $ac_compile) 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest.$ac_objext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_type_socklen_t=yes
21821 else
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ac_cv_type_socklen_t=no
21827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21830 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21831 if test $ac_cv_type_socklen_t = yes; then
21833 else
21835 cat >>confdefs.h <<\_ACEOF
21836 #define socklen_t int
21837 _ACEOF
21844 for h in `(cd $srcdir;echo Python/thread_*.h)`
21846 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21847 done
21850 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21851 echo "$as_me:$LINENO: checking for build directories" >&5
21852 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21853 for dir in $SRCDIRS; do
21854 if test ! -d $dir; then
21855 mkdir $dir
21857 done
21858 echo "$as_me:$LINENO: result: done" >&5
21859 echo "${ECHO_T}done" >&6
21861 # generate output files
21862 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21864 cat >confcache <<\_ACEOF
21865 # This file is a shell script that caches the results of configure
21866 # tests run on this system so they can be shared between configure
21867 # scripts and configure runs, see configure's option --config-cache.
21868 # It is not useful on other systems. If it contains results you don't
21869 # want to keep, you may remove or edit it.
21871 # config.status only pays attention to the cache file if you give it
21872 # the --recheck option to rerun configure.
21874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21876 # following values.
21878 _ACEOF
21880 # The following way of writing the cache mishandles newlines in values,
21881 # but we know of no workaround that is simple, portable, and efficient.
21882 # So, don't put newlines in cache variables' values.
21883 # Ultrix sh set writes to stderr and can't be redirected directly,
21884 # and sets the high bit in the cache file unless we assign to the vars.
21886 (set) 2>&1 |
21887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21888 *ac_space=\ *)
21889 # `set' does not quote correctly, so add quotes (double-quote
21890 # substitution turns \\\\ into \\, and sed turns \\ into \).
21891 sed -n \
21892 "s/'/'\\\\''/g;
21893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21896 # `set' quotes correctly as required by POSIX, so do not add quotes.
21897 sed -n \
21898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21900 esac;
21902 sed '
21903 t clear
21904 : clear
21905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21906 t end
21907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21908 : end' >>confcache
21909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21910 if test -w $cache_file; then
21911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21912 cat confcache >$cache_file
21913 else
21914 echo "not updating unwritable cache $cache_file"
21917 rm -f confcache
21919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21920 # Let make expand exec_prefix.
21921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21925 # trailing colons and then remove the whole line if VPATH becomes empty
21926 # (actually we leave an empty line to preserve line numbers).
21927 if test "x$srcdir" = x.; then
21928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21929 s/:*\$(srcdir):*/:/;
21930 s/:*\${srcdir}:*/:/;
21931 s/:*@srcdir@:*/:/;
21932 s/^\([^=]*=[ ]*\):*/\1/;
21933 s/:*$//;
21934 s/^[^=]*=[ ]*$//;
21938 DEFS=-DHAVE_CONFIG_H
21940 ac_libobjs=
21941 ac_ltlibobjs=
21942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21943 # 1. Remove the extension, and $U if already installed.
21944 ac_i=`echo "$ac_i" |
21945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21946 # 2. Add them.
21947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21949 done
21950 LIBOBJS=$ac_libobjs
21952 LTLIBOBJS=$ac_ltlibobjs
21956 : ${CONFIG_STATUS=./config.status}
21957 ac_clean_files_save=$ac_clean_files
21958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21961 cat >$CONFIG_STATUS <<_ACEOF
21962 #! $SHELL
21963 # Generated by $as_me.
21964 # Run this file to recreate the current configuration.
21965 # Compiler output produced by configure, useful for debugging
21966 # configure, is in config.log if it exists.
21968 debug=false
21969 ac_cs_recheck=false
21970 ac_cs_silent=false
21971 SHELL=\${CONFIG_SHELL-$SHELL}
21972 _ACEOF
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 ## --------------------- ##
21976 ## M4sh Initialization. ##
21977 ## --------------------- ##
21979 # Be Bourne compatible
21980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21981 emulate sh
21982 NULLCMD=:
21983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21984 # is contrary to our usage. Disable this feature.
21985 alias -g '${1+"$@"}'='"$@"'
21986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21987 set -o posix
21989 DUALCASE=1; export DUALCASE # for MKS sh
21991 # Support unset when possible.
21992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21993 as_unset=unset
21994 else
21995 as_unset=false
21999 # Work around bugs in pre-3.0 UWIN ksh.
22000 $as_unset ENV MAIL MAILPATH
22001 PS1='$ '
22002 PS2='> '
22003 PS4='+ '
22005 # NLS nuisances.
22006 for as_var in \
22007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22009 LC_TELEPHONE LC_TIME
22011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22012 eval $as_var=C; export $as_var
22013 else
22014 $as_unset $as_var
22016 done
22018 # Required to use basename.
22019 if expr a : '\(a\)' >/dev/null 2>&1; then
22020 as_expr=expr
22021 else
22022 as_expr=false
22025 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22026 as_basename=basename
22027 else
22028 as_basename=false
22032 # Name of the executable.
22033 as_me=`$as_basename "$0" ||
22034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22035 X"$0" : 'X\(//\)$' \| \
22036 X"$0" : 'X\(/\)$' \| \
22037 . : '\(.\)' 2>/dev/null ||
22038 echo X/"$0" |
22039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22040 /^X\/\(\/\/\)$/{ s//\1/; q; }
22041 /^X\/\(\/\).*/{ s//\1/; q; }
22042 s/.*/./; q'`
22045 # PATH needs CR, and LINENO needs CR and PATH.
22046 # Avoid depending upon Character Ranges.
22047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22050 as_cr_digits='0123456789'
22051 as_cr_alnum=$as_cr_Letters$as_cr_digits
22053 # The user is always right.
22054 if test "${PATH_SEPARATOR+set}" != set; then
22055 echo "#! /bin/sh" >conf$$.sh
22056 echo "exit 0" >>conf$$.sh
22057 chmod +x conf$$.sh
22058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22059 PATH_SEPARATOR=';'
22060 else
22061 PATH_SEPARATOR=:
22063 rm -f conf$$.sh
22067 as_lineno_1=$LINENO
22068 as_lineno_2=$LINENO
22069 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22070 test "x$as_lineno_1" != "x$as_lineno_2" &&
22071 test "x$as_lineno_3" = "x$as_lineno_2" || {
22072 # Find who we are. Look in the path if we contain no path at all
22073 # relative or not.
22074 case $0 in
22075 *[\\/]* ) as_myself=$0 ;;
22076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22077 for as_dir in $PATH
22079 IFS=$as_save_IFS
22080 test -z "$as_dir" && as_dir=.
22081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22082 done
22085 esac
22086 # We did not find ourselves, most probably we were run as `sh COMMAND'
22087 # in which case we are not to be found in the path.
22088 if test "x$as_myself" = x; then
22089 as_myself=$0
22091 if test ! -f "$as_myself"; then
22092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22094 { (exit 1); exit 1; }; }
22096 case $CONFIG_SHELL in
22098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22101 IFS=$as_save_IFS
22102 test -z "$as_dir" && as_dir=.
22103 for as_base in sh bash ksh sh5; do
22104 case $as_dir in
22106 if ("$as_dir/$as_base" -c '
22107 as_lineno_1=$LINENO
22108 as_lineno_2=$LINENO
22109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22110 test "x$as_lineno_1" != "x$as_lineno_2" &&
22111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22112 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22113 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22114 CONFIG_SHELL=$as_dir/$as_base
22115 export CONFIG_SHELL
22116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22117 fi;;
22118 esac
22119 done
22120 done
22122 esac
22124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22125 # uniformly replaced by the line number. The first 'sed' inserts a
22126 # line-number line before each line; the second 'sed' does the real
22127 # work. The second script uses 'N' to pair each line-number line
22128 # with the numbered line, and appends trailing '-' during
22129 # substitution so that $LINENO is not a special case at line end.
22130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22132 sed '=' <$as_myself |
22133 sed '
22135 s,$,-,
22136 : loop
22137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22138 t loop
22139 s,-$,,
22140 s,^['$as_cr_digits']*\n,,
22141 ' >$as_me.lineno &&
22142 chmod +x $as_me.lineno ||
22143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22145 { (exit 1); exit 1; }; }
22147 # Don't try to exec as it changes $[0], causing all sort of problems
22148 # (the dirname of $[0] is not the place where we might find the
22149 # original and so on. Autoconf is especially sensible to this).
22150 . ./$as_me.lineno
22151 # Exit status is that of the last command.
22152 exit
22156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22157 *c*,-n*) ECHO_N= ECHO_C='
22158 ' ECHO_T=' ' ;;
22159 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22160 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22161 esac
22163 if expr a : '\(a\)' >/dev/null 2>&1; then
22164 as_expr=expr
22165 else
22166 as_expr=false
22169 rm -f conf$$ conf$$.exe conf$$.file
22170 echo >conf$$.file
22171 if ln -s conf$$.file conf$$ 2>/dev/null; then
22172 # We could just check for DJGPP; but this test a) works b) is more generic
22173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22174 if test -f conf$$.exe; then
22175 # Don't use ln at all; we don't have any links
22176 as_ln_s='cp -p'
22177 else
22178 as_ln_s='ln -s'
22180 elif ln conf$$.file conf$$ 2>/dev/null; then
22181 as_ln_s=ln
22182 else
22183 as_ln_s='cp -p'
22185 rm -f conf$$ conf$$.exe conf$$.file
22187 if mkdir -p . 2>/dev/null; then
22188 as_mkdir_p=:
22189 else
22190 test -d ./-p && rmdir ./-p
22191 as_mkdir_p=false
22194 as_executable_p="test -f"
22196 # Sed expression to map a string onto a valid CPP name.
22197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22199 # Sed expression to map a string onto a valid variable name.
22200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22203 # IFS
22204 # We need space, tab and new line, in precisely that order.
22205 as_nl='
22207 IFS=" $as_nl"
22209 # CDPATH.
22210 $as_unset CDPATH
22212 exec 6>&1
22214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22215 # report actual input values of CONFIG_FILES etc. instead of their
22216 # values after options handling. Logging --version etc. is OK.
22217 exec 5>>config.log
22219 echo
22220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22221 ## Running $as_me. ##
22222 _ASBOX
22223 } >&5
22224 cat >&5 <<_CSEOF
22226 This file was extended by python $as_me 2.5, which was
22227 generated by GNU Autoconf 2.59. Invocation command line was
22229 CONFIG_FILES = $CONFIG_FILES
22230 CONFIG_HEADERS = $CONFIG_HEADERS
22231 CONFIG_LINKS = $CONFIG_LINKS
22232 CONFIG_COMMANDS = $CONFIG_COMMANDS
22233 $ $0 $@
22235 _CSEOF
22236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22237 echo >&5
22238 _ACEOF
22240 # Files that config.status was made for.
22241 if test -n "$ac_config_files"; then
22242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22245 if test -n "$ac_config_headers"; then
22246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22249 if test -n "$ac_config_links"; then
22250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22253 if test -n "$ac_config_commands"; then
22254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22257 cat >>$CONFIG_STATUS <<\_ACEOF
22259 ac_cs_usage="\
22260 \`$as_me' instantiates files from templates according to the
22261 current configuration.
22263 Usage: $0 [OPTIONS] [FILE]...
22265 -h, --help print this help, then exit
22266 -V, --version print version number, then exit
22267 -q, --quiet do not print progress messages
22268 -d, --debug don't remove temporary files
22269 --recheck update $as_me by reconfiguring in the same conditions
22270 --file=FILE[:TEMPLATE]
22271 instantiate the configuration file FILE
22272 --header=FILE[:TEMPLATE]
22273 instantiate the configuration header FILE
22275 Configuration files:
22276 $config_files
22278 Configuration headers:
22279 $config_headers
22281 Report bugs to <bug-autoconf@gnu.org>."
22282 _ACEOF
22284 cat >>$CONFIG_STATUS <<_ACEOF
22285 ac_cs_version="\\
22286 python config.status 2.5
22287 configured by $0, generated by GNU Autoconf 2.59,
22288 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22290 Copyright (C) 2003 Free Software Foundation, Inc.
22291 This config.status script is free software; the Free Software Foundation
22292 gives unlimited permission to copy, distribute and modify it."
22293 srcdir=$srcdir
22294 INSTALL="$INSTALL"
22295 _ACEOF
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22298 # If no file are specified by the user, then we need to provide default
22299 # value. By we need to know if files were specified by the user.
22300 ac_need_defaults=:
22301 while test $# != 0
22303 case $1 in
22304 --*=*)
22305 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22306 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22307 ac_shift=:
22310 ac_option=$1
22311 ac_optarg=$2
22312 ac_shift=shift
22314 *) # This is not an option, so the user has probably given explicit
22315 # arguments.
22316 ac_option=$1
22317 ac_need_defaults=false;;
22318 esac
22320 case $ac_option in
22321 # Handling of the options.
22322 _ACEOF
22323 cat >>$CONFIG_STATUS <<\_ACEOF
22324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22325 ac_cs_recheck=: ;;
22326 --version | --vers* | -V )
22327 echo "$ac_cs_version"; exit 0 ;;
22328 --he | --h)
22329 # Conflict between --help and --header
22330 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22331 Try \`$0 --help' for more information." >&5
22332 echo "$as_me: error: ambiguous option: $1
22333 Try \`$0 --help' for more information." >&2;}
22334 { (exit 1); exit 1; }; };;
22335 --help | --hel | -h )
22336 echo "$ac_cs_usage"; exit 0 ;;
22337 --debug | --d* | -d )
22338 debug=: ;;
22339 --file | --fil | --fi | --f )
22340 $ac_shift
22341 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22342 ac_need_defaults=false;;
22343 --header | --heade | --head | --hea )
22344 $ac_shift
22345 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22346 ac_need_defaults=false;;
22347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22349 ac_cs_silent=: ;;
22351 # This is an error.
22352 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22353 Try \`$0 --help' for more information." >&5
22354 echo "$as_me: error: unrecognized option: $1
22355 Try \`$0 --help' for more information." >&2;}
22356 { (exit 1); exit 1; }; } ;;
22358 *) ac_config_targets="$ac_config_targets $1" ;;
22360 esac
22361 shift
22362 done
22364 ac_configure_extra_args=
22366 if $ac_cs_silent; then
22367 exec 6>/dev/null
22368 ac_configure_extra_args="$ac_configure_extra_args --silent"
22371 _ACEOF
22372 cat >>$CONFIG_STATUS <<_ACEOF
22373 if \$ac_cs_recheck; then
22374 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22375 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22378 _ACEOF
22384 cat >>$CONFIG_STATUS <<\_ACEOF
22385 for ac_config_target in $ac_config_targets
22387 case "$ac_config_target" in
22388 # Handling of arguments.
22389 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22390 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22391 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22394 { (exit 1); exit 1; }; };;
22395 esac
22396 done
22398 # If the user did not use the arguments to specify the items to instantiate,
22399 # then the envvar interface is used. Set only those that are not.
22400 # We use the long form for the default assignment because of an extremely
22401 # bizarre bug on SunOS 4.1.3.
22402 if $ac_need_defaults; then
22403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22407 # Have a temporary directory for convenience. Make it in the build tree
22408 # simply because there is no reason to put it here, and in addition,
22409 # creating and moving files from /tmp can sometimes cause problems.
22410 # Create a temporary directory, and hook for its removal unless debugging.
22411 $debug ||
22413 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22414 trap '{ (exit 1); exit 1; }' 1 2 13 15
22417 # Create a (secure) tmp directory for tmp files.
22420 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22421 test -n "$tmp" && test -d "$tmp"
22422 } ||
22424 tmp=./confstat$$-$RANDOM
22425 (umask 077 && mkdir $tmp)
22426 } ||
22428 echo "$me: cannot create a temporary directory in ." >&2
22429 { (exit 1); exit 1; }
22432 _ACEOF
22434 cat >>$CONFIG_STATUS <<_ACEOF
22437 # CONFIG_FILES section.
22440 # No need to generate the scripts if there are no CONFIG_FILES.
22441 # This happens for instance when ./config.status config.h
22442 if test -n "\$CONFIG_FILES"; then
22443 # Protect against being on the right side of a sed subst in config.status.
22444 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22445 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22446 s,@SHELL@,$SHELL,;t t
22447 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22453 s,@exec_prefix@,$exec_prefix,;t t
22454 s,@prefix@,$prefix,;t t
22455 s,@program_transform_name@,$program_transform_name,;t t
22456 s,@bindir@,$bindir,;t t
22457 s,@sbindir@,$sbindir,;t t
22458 s,@libexecdir@,$libexecdir,;t t
22459 s,@datadir@,$datadir,;t t
22460 s,@sysconfdir@,$sysconfdir,;t t
22461 s,@sharedstatedir@,$sharedstatedir,;t t
22462 s,@localstatedir@,$localstatedir,;t t
22463 s,@libdir@,$libdir,;t t
22464 s,@includedir@,$includedir,;t t
22465 s,@oldincludedir@,$oldincludedir,;t t
22466 s,@infodir@,$infodir,;t t
22467 s,@mandir@,$mandir,;t t
22468 s,@build_alias@,$build_alias,;t t
22469 s,@host_alias@,$host_alias,;t t
22470 s,@target_alias@,$target_alias,;t t
22471 s,@DEFS@,$DEFS,;t t
22472 s,@ECHO_C@,$ECHO_C,;t t
22473 s,@ECHO_N@,$ECHO_N,;t t
22474 s,@ECHO_T@,$ECHO_T,;t t
22475 s,@LIBS@,$LIBS,;t t
22476 s,@VERSION@,$VERSION,;t t
22477 s,@SOVERSION@,$SOVERSION,;t t
22478 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22479 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22480 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22481 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22482 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22483 s,@MACHDEP@,$MACHDEP,;t t
22484 s,@SGI_ABI@,$SGI_ABI,;t t
22485 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22486 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22487 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22488 s,@CXX@,$CXX,;t t
22489 s,@MAINOBJ@,$MAINOBJ,;t t
22490 s,@EXEEXT@,$EXEEXT,;t t
22491 s,@CC@,$CC,;t t
22492 s,@CFLAGS@,$CFLAGS,;t t
22493 s,@LDFLAGS@,$LDFLAGS,;t t
22494 s,@CPPFLAGS@,$CPPFLAGS,;t t
22495 s,@ac_ct_CC@,$ac_ct_CC,;t t
22496 s,@OBJEXT@,$OBJEXT,;t t
22497 s,@CPP@,$CPP,;t t
22498 s,@EGREP@,$EGREP,;t t
22499 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22500 s,@LIBRARY@,$LIBRARY,;t t
22501 s,@LDLIBRARY@,$LDLIBRARY,;t t
22502 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22503 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22504 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22505 s,@INSTSONAME@,$INSTSONAME,;t t
22506 s,@RUNSHARED@,$RUNSHARED,;t t
22507 s,@LINKCC@,$LINKCC,;t t
22508 s,@RANLIB@,$RANLIB,;t t
22509 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22510 s,@AR@,$AR,;t t
22511 s,@SVNVERSION@,$SVNVERSION,;t t
22512 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22513 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22514 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22515 s,@LN@,$LN,;t t
22516 s,@OPT@,$OPT,;t t
22517 s,@BASECFLAGS@,$BASECFLAGS,;t t
22518 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22519 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22520 s,@SO@,$SO,;t t
22521 s,@LDSHARED@,$LDSHARED,;t t
22522 s,@BLDSHARED@,$BLDSHARED,;t t
22523 s,@CCSHARED@,$CCSHARED,;t t
22524 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22525 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22526 s,@SHLIBS@,$SHLIBS,;t t
22527 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22528 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22529 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22530 s,@LDLAST@,$LDLAST,;t t
22531 s,@THREADOBJ@,$THREADOBJ,;t t
22532 s,@DLINCLDIR@,$DLINCLDIR,;t t
22533 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22534 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22535 s,@TRUE@,$TRUE,;t t
22536 s,@LIBOBJS@,$LIBOBJS,;t t
22537 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22538 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22539 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22540 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22541 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22542 s,@LIBM@,$LIBM,;t t
22543 s,@LIBC@,$LIBC,;t t
22544 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22545 s,@THREADHEADERS@,$THREADHEADERS,;t t
22546 s,@SRCDIRS@,$SRCDIRS,;t t
22547 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22548 CEOF
22550 _ACEOF
22552 cat >>$CONFIG_STATUS <<\_ACEOF
22553 # Split the substitutions into bite-sized pieces for seds with
22554 # small command number limits, like on Digital OSF/1 and HP-UX.
22555 ac_max_sed_lines=48
22556 ac_sed_frag=1 # Number of current file.
22557 ac_beg=1 # First line for current file.
22558 ac_end=$ac_max_sed_lines # Line after last line for current file.
22559 ac_more_lines=:
22560 ac_sed_cmds=
22561 while $ac_more_lines; do
22562 if test $ac_beg -gt 1; then
22563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22564 else
22565 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22567 if test ! -s $tmp/subs.frag; then
22568 ac_more_lines=false
22569 else
22570 # The purpose of the label and of the branching condition is to
22571 # speed up the sed processing (if there are no `@' at all, there
22572 # is no need to browse any of the substitutions).
22573 # These are the two extra sed commands mentioned above.
22574 (echo ':t
22575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22576 if test -z "$ac_sed_cmds"; then
22577 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22578 else
22579 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22581 ac_sed_frag=`expr $ac_sed_frag + 1`
22582 ac_beg=$ac_end
22583 ac_end=`expr $ac_end + $ac_max_sed_lines`
22585 done
22586 if test -z "$ac_sed_cmds"; then
22587 ac_sed_cmds=cat
22589 fi # test -n "$CONFIG_FILES"
22591 _ACEOF
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22595 case $ac_file in
22596 - | *:- | *:-:* ) # input from stdin
22597 cat >$tmp/stdin
22598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22602 * ) ac_file_in=$ac_file.in ;;
22603 esac
22605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22608 X"$ac_file" : 'X\(//\)[^/]' \| \
22609 X"$ac_file" : 'X\(//\)$' \| \
22610 X"$ac_file" : 'X\(/\)' \| \
22611 . : '\(.\)' 2>/dev/null ||
22612 echo X"$ac_file" |
22613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22615 /^X\(\/\/\)$/{ s//\1/; q; }
22616 /^X\(\/\).*/{ s//\1/; q; }
22617 s/.*/./; q'`
22618 { if $as_mkdir_p; then
22619 mkdir -p "$ac_dir"
22620 else
22621 as_dir="$ac_dir"
22622 as_dirs=
22623 while test ! -d "$as_dir"; do
22624 as_dirs="$as_dir $as_dirs"
22625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22627 X"$as_dir" : 'X\(//\)[^/]' \| \
22628 X"$as_dir" : 'X\(//\)$' \| \
22629 X"$as_dir" : 'X\(/\)' \| \
22630 . : '\(.\)' 2>/dev/null ||
22631 echo X"$as_dir" |
22632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22634 /^X\(\/\/\)$/{ s//\1/; q; }
22635 /^X\(\/\).*/{ s//\1/; q; }
22636 s/.*/./; q'`
22637 done
22638 test ! -n "$as_dirs" || mkdir $as_dirs
22639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22641 { (exit 1); exit 1; }; }; }
22643 ac_builddir=.
22645 if test "$ac_dir" != .; then
22646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22647 # A "../" for each directory in $ac_dir_suffix.
22648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22649 else
22650 ac_dir_suffix= ac_top_builddir=
22653 case $srcdir in
22654 .) # No --srcdir option. We are building in place.
22655 ac_srcdir=.
22656 if test -z "$ac_top_builddir"; then
22657 ac_top_srcdir=.
22658 else
22659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22660 fi ;;
22661 [\\/]* | ?:[\\/]* ) # Absolute path.
22662 ac_srcdir=$srcdir$ac_dir_suffix;
22663 ac_top_srcdir=$srcdir ;;
22664 *) # Relative path.
22665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22667 esac
22669 # Do not use `cd foo && pwd` to compute absolute paths, because
22670 # the directories may not exist.
22671 case `pwd` in
22672 .) ac_abs_builddir="$ac_dir";;
22674 case "$ac_dir" in
22675 .) ac_abs_builddir=`pwd`;;
22676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22678 esac;;
22679 esac
22680 case $ac_abs_builddir in
22681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22683 case ${ac_top_builddir}. in
22684 .) ac_abs_top_builddir=$ac_abs_builddir;;
22685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22687 esac;;
22688 esac
22689 case $ac_abs_builddir in
22690 .) ac_abs_srcdir=$ac_srcdir;;
22692 case $ac_srcdir in
22693 .) ac_abs_srcdir=$ac_abs_builddir;;
22694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22696 esac;;
22697 esac
22698 case $ac_abs_builddir in
22699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22701 case $ac_top_srcdir in
22702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22705 esac;;
22706 esac
22709 case $INSTALL in
22710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22711 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22712 esac
22714 if test x"$ac_file" != x-; then
22715 { echo "$as_me:$LINENO: creating $ac_file" >&5
22716 echo "$as_me: creating $ac_file" >&6;}
22717 rm -f "$ac_file"
22719 # Let's still pretend it is `configure' which instantiates (i.e., don't
22720 # use $as_me), people would be surprised to read:
22721 # /* config.h. Generated by config.status. */
22722 if test x"$ac_file" = x-; then
22723 configure_input=
22724 else
22725 configure_input="$ac_file. "
22727 configure_input=$configure_input"Generated from `echo $ac_file_in |
22728 sed 's,.*/,,'` by configure."
22730 # First look for the input files in the build tree, otherwise in the
22731 # src tree.
22732 ac_file_inputs=`IFS=:
22733 for f in $ac_file_in; do
22734 case $f in
22735 -) echo $tmp/stdin ;;
22736 [\\/$]*)
22737 # Absolute (can't be DOS-style, as IFS=:)
22738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22739 echo "$as_me: error: cannot find input file: $f" >&2;}
22740 { (exit 1); exit 1; }; }
22741 echo "$f";;
22742 *) # Relative
22743 if test -f "$f"; then
22744 # Build tree
22745 echo "$f"
22746 elif test -f "$srcdir/$f"; then
22747 # Source tree
22748 echo "$srcdir/$f"
22749 else
22750 # /dev/null tree
22751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22752 echo "$as_me: error: cannot find input file: $f" >&2;}
22753 { (exit 1); exit 1; }; }
22754 fi;;
22755 esac
22756 done` || { (exit 1); exit 1; }
22757 _ACEOF
22758 cat >>$CONFIG_STATUS <<_ACEOF
22759 sed "$ac_vpsub
22760 $extrasub
22761 _ACEOF
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22765 s,@configure_input@,$configure_input,;t t
22766 s,@srcdir@,$ac_srcdir,;t t
22767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22768 s,@top_srcdir@,$ac_top_srcdir,;t t
22769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22770 s,@builddir@,$ac_builddir,;t t
22771 s,@abs_builddir@,$ac_abs_builddir,;t t
22772 s,@top_builddir@,$ac_top_builddir,;t t
22773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22774 s,@INSTALL@,$ac_INSTALL,;t t
22775 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22776 rm -f $tmp/stdin
22777 if test x"$ac_file" != x-; then
22778 mv $tmp/out $ac_file
22779 else
22780 cat $tmp/out
22781 rm -f $tmp/out
22784 done
22785 _ACEOF
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22789 # CONFIG_HEADER section.
22792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22795 # ac_d sets the value in "#define NAME VALUE" lines.
22796 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22797 ac_dB='[ ].*$,\1#\2'
22798 ac_dC=' '
22799 ac_dD=',;t'
22800 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22801 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22802 ac_uB='$,\1#\2define\3'
22803 ac_uC=' '
22804 ac_uD=',;t'
22806 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22808 case $ac_file in
22809 - | *:- | *:-:* ) # input from stdin
22810 cat >$tmp/stdin
22811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22815 * ) ac_file_in=$ac_file.in ;;
22816 esac
22818 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22819 echo "$as_me: creating $ac_file" >&6;}
22821 # First look for the input files in the build tree, otherwise in the
22822 # src tree.
22823 ac_file_inputs=`IFS=:
22824 for f in $ac_file_in; do
22825 case $f in
22826 -) echo $tmp/stdin ;;
22827 [\\/$]*)
22828 # Absolute (can't be DOS-style, as IFS=:)
22829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22830 echo "$as_me: error: cannot find input file: $f" >&2;}
22831 { (exit 1); exit 1; }; }
22832 # Do quote $f, to prevent DOS paths from being IFS'd.
22833 echo "$f";;
22834 *) # Relative
22835 if test -f "$f"; then
22836 # Build tree
22837 echo "$f"
22838 elif test -f "$srcdir/$f"; then
22839 # Source tree
22840 echo "$srcdir/$f"
22841 else
22842 # /dev/null tree
22843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22844 echo "$as_me: error: cannot find input file: $f" >&2;}
22845 { (exit 1); exit 1; }; }
22846 fi;;
22847 esac
22848 done` || { (exit 1); exit 1; }
22849 # Remove the trailing spaces.
22850 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22852 _ACEOF
22854 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22855 # `conftest.undefs', that substitutes the proper values into
22856 # config.h.in to produce config.h. The first handles `#define'
22857 # templates, and the second `#undef' templates.
22858 # And first: Protect against being on the right side of a sed subst in
22859 # config.status. Protect against being in an unquoted here document
22860 # in config.status.
22861 rm -f conftest.defines conftest.undefs
22862 # Using a here document instead of a string reduces the quoting nightmare.
22863 # Putting comments in sed scripts is not portable.
22865 # `end' is used to avoid that the second main sed command (meant for
22866 # 0-ary CPP macros) applies to n-ary macro definitions.
22867 # See the Autoconf documentation for `clear'.
22868 cat >confdef2sed.sed <<\_ACEOF
22869 s/[\\&,]/\\&/g
22870 s,[\\$`],\\&,g
22871 t clear
22872 : clear
22873 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22874 t end
22875 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22876 : end
22877 _ACEOF
22878 # If some macros were called several times there might be several times
22879 # the same #defines, which is useless. Nevertheless, we may not want to
22880 # sort them, since we want the *last* AC-DEFINE to be honored.
22881 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22882 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22883 rm -f confdef2sed.sed
22885 # This sed command replaces #undef with comments. This is necessary, for
22886 # example, in the case of _POSIX_SOURCE, which is predefined and required
22887 # on some systems where configure will not decide to define it.
22888 cat >>conftest.undefs <<\_ACEOF
22889 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22890 _ACEOF
22892 # Break up conftest.defines because some shells have a limit on the size
22893 # of here documents, and old seds have small limits too (100 cmds).
22894 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22895 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22896 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22897 echo ' :' >>$CONFIG_STATUS
22898 rm -f conftest.tail
22899 while grep . conftest.defines >/dev/null
22901 # Write a limited-size here document to $tmp/defines.sed.
22902 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22903 # Speed up: don't consider the non `#define' lines.
22904 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22905 # Work around the forget-to-reset-the-flag bug.
22906 echo 't clr' >>$CONFIG_STATUS
22907 echo ': clr' >>$CONFIG_STATUS
22908 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22909 echo 'CEOF
22910 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22911 rm -f $tmp/in
22912 mv $tmp/out $tmp/in
22913 ' >>$CONFIG_STATUS
22914 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22915 rm -f conftest.defines
22916 mv conftest.tail conftest.defines
22917 done
22918 rm -f conftest.defines
22919 echo ' fi # grep' >>$CONFIG_STATUS
22920 echo >>$CONFIG_STATUS
22922 # Break up conftest.undefs because some shells have a limit on the size
22923 # of here documents, and old seds have small limits too (100 cmds).
22924 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22925 rm -f conftest.tail
22926 while grep . conftest.undefs >/dev/null
22928 # Write a limited-size here document to $tmp/undefs.sed.
22929 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22930 # Speed up: don't consider the non `#undef'
22931 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22932 # Work around the forget-to-reset-the-flag bug.
22933 echo 't clr' >>$CONFIG_STATUS
22934 echo ': clr' >>$CONFIG_STATUS
22935 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22936 echo 'CEOF
22937 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22938 rm -f $tmp/in
22939 mv $tmp/out $tmp/in
22940 ' >>$CONFIG_STATUS
22941 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22942 rm -f conftest.undefs
22943 mv conftest.tail conftest.undefs
22944 done
22945 rm -f conftest.undefs
22947 cat >>$CONFIG_STATUS <<\_ACEOF
22948 # Let's still pretend it is `configure' which instantiates (i.e., don't
22949 # use $as_me), people would be surprised to read:
22950 # /* config.h. Generated by config.status. */
22951 if test x"$ac_file" = x-; then
22952 echo "/* Generated by configure. */" >$tmp/config.h
22953 else
22954 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22956 cat $tmp/in >>$tmp/config.h
22957 rm -f $tmp/in
22958 if test x"$ac_file" != x-; then
22959 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22961 echo "$as_me: $ac_file is unchanged" >&6;}
22962 else
22963 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965 X"$ac_file" : 'X\(//\)[^/]' \| \
22966 X"$ac_file" : 'X\(//\)$' \| \
22967 X"$ac_file" : 'X\(/\)' \| \
22968 . : '\(.\)' 2>/dev/null ||
22969 echo X"$ac_file" |
22970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22972 /^X\(\/\/\)$/{ s//\1/; q; }
22973 /^X\(\/\).*/{ s//\1/; q; }
22974 s/.*/./; q'`
22975 { if $as_mkdir_p; then
22976 mkdir -p "$ac_dir"
22977 else
22978 as_dir="$ac_dir"
22979 as_dirs=
22980 while test ! -d "$as_dir"; do
22981 as_dirs="$as_dir $as_dirs"
22982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22984 X"$as_dir" : 'X\(//\)[^/]' \| \
22985 X"$as_dir" : 'X\(//\)$' \| \
22986 X"$as_dir" : 'X\(/\)' \| \
22987 . : '\(.\)' 2>/dev/null ||
22988 echo X"$as_dir" |
22989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22991 /^X\(\/\/\)$/{ s//\1/; q; }
22992 /^X\(\/\).*/{ s//\1/; q; }
22993 s/.*/./; q'`
22994 done
22995 test ! -n "$as_dirs" || mkdir $as_dirs
22996 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22997 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22998 { (exit 1); exit 1; }; }; }
23000 rm -f $ac_file
23001 mv $tmp/config.h $ac_file
23003 else
23004 cat $tmp/config.h
23005 rm -f $tmp/config.h
23007 done
23008 _ACEOF
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23012 { (exit 0); exit 0; }
23013 _ACEOF
23014 chmod +x $CONFIG_STATUS
23015 ac_clean_files=$ac_clean_files_save
23018 # configure is writing to config.log, and then calls config.status.
23019 # config.status does its own redirection, appending to config.log.
23020 # Unfortunately, on DOS this fails, as config.log is still kept open
23021 # by configure, so config.status won't be able to write to it; its
23022 # output is simply discarded. So we exec the FD to /dev/null,
23023 # effectively closing config.log, so it can be properly (re)opened and
23024 # appended to by config.status. When coming back to configure, we
23025 # need to make the FD available again.
23026 if test "$no_create" != yes; then
23027 ac_cs_success=:
23028 ac_config_status_args=
23029 test "$silent" = yes &&
23030 ac_config_status_args="$ac_config_status_args --quiet"
23031 exec 5>/dev/null
23032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23033 exec 5>>config.log
23034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23035 # would make configure fail if this is the last instruction.
23036 $ac_cs_success || { (exit 1); exit 1; }
23040 echo "creating Setup"
23041 if test ! -f Modules/Setup
23042 then
23043 cp $srcdir/Modules/Setup.dist Modules/Setup
23046 echo "creating Setup.local"
23047 if test ! -f Modules/Setup.local
23048 then
23049 echo "# Edit this file for local setup changes" >Modules/Setup.local
23052 echo "creating Makefile"
23053 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23054 -s Modules Modules/Setup.config \
23055 Modules/Setup.local Modules/Setup
23056 mv config.c Modules