Removed defensive test in Handler.close
[python.git] / configure
blob0f87215376a01094a60447ac8003d2821f74b3ae
1 #! /bin/sh
2 # From configure.in Revision: 42046 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[012345678])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 Darwin/8.*)
1517 define_xopen_source=no
1520 esac
1522 if test $define_xopen_source = yes
1523 then
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1527 # compiler
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1531 cat >>confdefs.h <<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1533 _ACEOF
1538 cat >>confdefs.h <<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1540 _ACEOF
1543 esac
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1552 SunOS/5.10)
1556 cat >>confdefs.h <<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1558 _ACEOF
1561 esac
1564 cat >>confdefs.h <<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1566 _ACEOF
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1582 then
1583 CC="cc $SGI_ABI"
1584 LDFLAGS="$SGI_ABI $LDFLAGS"
1585 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1596 then
1597 case $MACHDEP in
1598 darwin)
1599 EXTRAPLATDIR="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1603 EXTRAPLATDIR=""
1604 EXTRAMACHDEPPATH=""
1606 esac
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1613 # needs to check it
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1632 withval="$with_gcc"
1634 case $withval in
1635 no) CC=cc
1636 without_gcc=yes;;
1637 yes) CC=gcc
1638 without_gcc=no;;
1639 *) CC=$withval
1640 without_gcc=$withval;;
1641 esac
1642 else
1644 case $ac_sys_system in
1645 AIX*) CC=cc_r
1646 without_gcc=;;
1647 BeOS*)
1648 case $BE_HOST_CPU in
1649 ppc)
1650 CC=mwcc
1651 without_gcc=yes
1652 BASECFLAGS="$BASECFLAGS -export pragma"
1653 OPT="$OPT -O"
1654 LDFLAGS="$LDFLAGS -nodup"
1656 x86)
1657 CC=gcc
1658 without_gcc=no
1659 OPT="$OPT -O"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1666 esac
1667 AR="\$(srcdir)/Modules/ar_beos"
1668 RANLIB=:
1670 Monterey*)
1671 RANLIB=:
1672 without_gcc=;;
1673 *) without_gcc=no;;
1674 esac
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1681 MAINOBJ=python.o
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1687 withval="$with_cxx"
1689 check_cxx=no
1690 case $withval in
1691 no) CXX=
1692 with_cxx=no;;
1693 *) CXX=$withval
1694 MAINOBJ=ccpython.o
1695 with_cxx=$withval;;
1696 esac
1697 else
1699 with_cxx=no
1700 check_cxx=yes
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1707 then
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1717 then
1718 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 CXX=$ac_cv_prog_CXX
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1756 done
1757 test -n "$CXX" || CXX="notfound"
1759 if test "$CXX" = "notfound"
1760 then
1761 CXX=
1762 else
1763 ac_ext=cc
1764 ac_cpp='$CXXCPP $CPPFLAGS'
1765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1776 main ()
1780 return 0;
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 conftest.$ac_ext )
1811 # This is the source file.
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1933 then
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1941 ac_ext=c
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1968 done
1969 done
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1984 ac_ct_CC=$CC
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2006 done
2007 done
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 CC=$ac_ct_CC
2021 else
2022 CC="$ac_cv_prog_CC"
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}cc; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2064 ac_ct_CC=$CC
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2086 done
2087 done
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 CC=$ac_ct_CC
2101 else
2102 CC="$ac_cv_prog_CC"
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 ac_prog_rejected=no
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected=yes
2127 continue
2129 ac_cv_prog_CC="cc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2133 done
2134 done
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy $ac_cv_prog_CC
2139 shift
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2144 shift
2145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2150 CC=$ac_cv_prog_CC
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog in cl
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2190 CC=$ac_cv_prog_CC
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2194 else
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2200 done
2202 if test -z "$CC"; then
2203 ac_ct_CC=$CC
2204 for ac_prog in cl
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2242 done
2244 CC=$ac_ct_CC
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev/null >&5) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev/null >&5) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev/null >&5) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2284 main ()
2288 return 0;
2290 _ACEOF
2291 ac_clean_files_save=$ac_clean_files
2292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2295 # of exeext.
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306 # resort.
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2310 ac_cv_exeext=
2311 # b.out is created by i960 compilers.
2312 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2318 conftest.$ac_ext )
2319 # This is the source file.
2321 [ab].out )
2322 # We found the default executable, but exeext='' is most
2323 # certainly right.
2324 break;;
2325 *.* )
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2330 export ac_cv_exeext
2331 break;;
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 cross_compiling=no
2365 else
2366 if test "$cross_compiling" = maybe; then
2367 cross_compiling=yes
2368 else
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383 ac_clean_files=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2401 # `rm'.
2402 for ac_file in conftest.exe conftest conftest.*; do
2403 test -f "$ac_file" || continue
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 export ac_cv_exeext
2408 break;;
2409 * ) break;;
2410 esac
2411 done
2412 else
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.$ac_ext
2425 EXEEXT=$ac_cv_exeext
2426 ac_exeext=$EXEEXT
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2454 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2457 break;;
2458 esac
2459 done
2460 else
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT=$ac_cv_objext
2476 ac_objext=$OBJEXT
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 main ()
2492 #ifndef __GNUC__
2493 choke me
2494 #endif
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_compiler_gnu=yes
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 ac_compiler_gnu=no
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS=${CFLAGS+set}
2537 ac_save_CFLAGS=$CFLAGS
2538 CFLAGS="-g"
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_g=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_cv_prog_cc_g=no
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2596 CFLAGS="-g -O2"
2597 else
2598 CFLAGS="-g"
2600 else
2601 if test "$GCC" = yes; then
2602 CFLAGS="-O2"
2603 else
2604 CFLAGS=
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_cv_prog_cc_stdc=no
2613 ac_save_CC=$CC
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #include <stdarg.h>
2621 #include <stdio.h>
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2631 return p[i];
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2656 int argc;
2657 char **argv;
2659 main ()
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 return 0;
2665 _ACEOF
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC="$ac_save_CC $ac_arg"
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc=$ac_arg
2699 break
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext
2706 done
2707 rm -f conftest.$ac_ext conftest.$ac_objext
2708 CC=$ac_save_CC
2712 case "x$ac_cv_prog_cc_stdc" in
2713 x|xno)
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC="$CC $ac_cv_prog_cc_stdc" ;;
2720 esac
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #ifndef __cplusplus
2728 choke me
2729 #endif
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
2754 '' \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2759 'void exit (int);'
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 $ac_declaration
2768 #include <stdlib.h>
2770 main ()
2772 exit (42);
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 continue
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 $ac_declaration
2815 main ()
2817 exit (42);
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 break
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 done
2852 rm -f conftest*
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2883 CPP=
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 ac_preproc_ok=false
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 #ifdef __STDC__
2908 # include <limits.h>
2909 #else
2910 # include <assert.h>
2911 #endif
2912 Syntax error
2913 _ACEOF
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev/null; then
2922 if test -s conftest.err; then
2923 ac_cpp_err=$ac_c_preproc_warn_flag
2924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2925 else
2926 ac_cpp_err=
2928 else
2929 ac_cpp_err=yes
2931 if test -z "$ac_cpp_err"; then
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2938 continue
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2951 _ACEOF
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null; then
2960 if test -s conftest.err; then
2961 ac_cpp_err=$ac_c_preproc_warn_flag
2962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2963 else
2964 ac_cpp_err=
2966 else
2967 ac_cpp_err=yes
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2971 continue
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2977 ac_preproc_ok=:
2978 break
2980 rm -f conftest.err conftest.$ac_ext
2982 done
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2986 break
2989 done
2990 ac_cv_prog_CPP=$CPP
2993 CPP=$ac_cv_prog_CPP
2994 else
2995 ac_cv_prog_CPP=$CPP
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
2999 ac_preproc_ok=false
3000 for ac_c_preproc_warn_flag in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #ifdef __STDC__
3015 # include <limits.h>
3016 #else
3017 # include <assert.h>
3018 #endif
3019 Syntax error
3020 _ACEOF
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
3031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3032 else
3033 ac_cpp_err=
3035 else
3036 ac_cpp_err=yes
3038 if test -z "$ac_cpp_err"; then
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Broken: fails on valid input.
3045 continue
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3058 _ACEOF
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null; then
3067 if test -s conftest.err; then
3068 ac_cpp_err=$ac_c_preproc_warn_flag
3069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3070 else
3071 ac_cpp_err=
3073 else
3074 ac_cpp_err=yes
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3078 continue
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3087 rm -f conftest.err conftest.$ac_ext
3089 done
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3094 else
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3115 then ac_cv_prog_egrep='grep -E'
3116 else ac_cv_prog_egrep='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifdef _AIX
3135 #endif
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev/null 2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h <<\_ACEOF
3143 #define _ALL_SOURCE 1
3144 _ACEOF
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3150 rm -f conftest*
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3156 Linux*/1*)
3157 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3158 echo See README for details.
3159 exit 1;;
3160 esac
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval="$with_suffix"
3170 case $withval in
3171 no) EXEEXT=;;
3172 yes) EXEEXT=.exe;;
3173 *) EXEEXT=$withval;;
3174 esac
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3189 then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3192 BUILDEXEEXT=.exe
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 BUILDEXEEXT=$EXEEXT
3198 rmdir CaseSensitiveTestDir
3200 case $MACHDEP in
3201 bsdos*)
3202 case $CC in
3203 gcc) CC="$CC -D_HAVE_BSDI";;
3204 esac;;
3205 esac
3207 case $ac_sys_system in
3208 hp*|HP*)
3209 case $CC in
3210 cc|*/cc) CC="$CC -Ae";;
3211 esac;;
3212 Monterey*)
3213 case $CC in
3214 cc) CC="$CC -Wl,-Bexport";;
3215 esac;;
3216 SunOS*)
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h <<\_ACEOF
3220 #define __EXTENSIONS__ 1
3221 _ACEOF
3224 esac
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3231 then
3232 LIBRARY='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY="$LIBRARY"
3257 BLDLIBRARY='$(LDLIBRARY)'
3258 INSTSONAME='$(LDLIBRARY)'
3259 DLLLIBRARY=''
3260 LDLIBRARYDIR=''
3261 RUNSHARED=''
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3268 # linking.
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3273 then
3274 if test -z "$CXX"; then
3275 LINKCC="\$(PURIFY) \$(CC)"
3276 else
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc # 2>&5
3279 echo 'void foo(){}' > conftest_b.$ac_ext
3280 $CC -c conftest_b.$ac_ext # 2>&5
3281 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3282 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3283 then
3284 LINKCC="\$(PURIFY) \$(CC)"
3285 else
3286 LINKCC="\$(PURIFY) \$(CXX)"
3288 rm -fr conftest*
3290 case $ac_sys_system in
3291 AIX*)
3292 exp_extra="\"\""
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3295 exp_extra="."
3297 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 Monterey64*)
3299 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3300 esac
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval="$enable_shared"
3313 if test -z "$enable_shared"
3314 then
3315 case $ac_sys_system in
3316 CYGWIN* | atheos*)
3317 enable_shared="yes";;
3319 enable_shared="no";;
3320 esac
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval="$enable_profiling"
3330 ac_save_cc="$CC"
3331 CC="$CC -pg"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling="no"
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3342 _ACEOF
3343 rm -f conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling="yes"
3355 else
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ( exit $ac_status )
3361 ac_enable_profiling="no"
3363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3365 CC="$ac_save_cc"
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3371 "yes")
3372 BASECFLAGS="-pg $BASECFLAGS"
3373 LDFLAGS="-pg $LDFLAGS"
3375 esac
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3387 then
3388 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3390 BLDLIBRARY=''
3391 else
3392 BLDLIBRARY='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h <<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3400 _ACEOF
3402 case $ac_sys_system in
3403 BeOS*)
3404 LDLIBRARY='libpython$(VERSION).so'
3406 CYGWIN*)
3407 LDLIBRARY='libpython$(VERSION).dll.a'
3408 DLLLIBRARY='libpython$(VERSION).dll'
3410 SunOS*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME="$LDLIBRARY".$SOVERSION
3416 Linux*|GNU*|NetBSD*|FreeBSD*)
3417 LDLIBRARY='libpython$(VERSION).so'
3418 BLDLIBRARY='-L. -lpython$(VERSION)'
3419 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3421 FreeBSD*)
3422 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3424 esac
3425 INSTSONAME="$LDLIBRARY".$SOVERSION
3427 hp*|HP*)
3428 LDLIBRARY='libpython$(VERSION).sl'
3429 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3432 OSF*)
3433 LDLIBRARY='libpython$(VERSION).so'
3434 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3437 atheos*)
3438 LDLIBRARY='libpython$(VERSION).so'
3439 BLDLIBRARY='-L. -lpython$(VERSION)'
3440 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3442 esac
3443 else # shared is disabled
3444 case $ac_sys_system in
3445 CYGWIN*)
3446 BLDLIBRARY='$(LIBRARY)'
3447 LDLIBRARY='libpython$(VERSION).dll.a'
3449 esac
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3482 RANLIB=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB=$ac_ct_RANLIB
3531 else
3532 RANLIB="$ac_cv_prog_RANLIB"
3536 for ac_prog in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR="$AR" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3564 AR=$ac_cv_prog_AR
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3568 else
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3574 done
3575 test -n "$AR" || AR="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3605 SVNVERSION=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3609 else
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3615 then
3616 SVNVERSION="svnversion \$(srcdir)"
3617 else
3618 SVNVERSION="echo exported"
3621 case $MACHDEP in
3622 bsdos*|hp*|HP*)
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3625 then
3626 INSTALL="${srcdir}/install-sh -c"
3628 esac
3629 ac_aux_dir=
3630 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3631 if test -f $ac_dir/install-sh; then
3632 ac_aux_dir=$ac_dir
3633 ac_install_sh="$ac_aux_dir/install-sh -c"
3634 break
3635 elif test -f $ac_dir/install.sh; then
3636 ac_aux_dir=$ac_dir
3637 ac_install_sh="$ac_aux_dir/install.sh -c"
3638 break
3639 elif test -f $ac_dir/shtool; then
3640 ac_aux_dir=$ac_dir
3641 ac_install_sh="$ac_aux_dir/shtool install -c"
3642 break
3644 done
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3660 # AIX /bin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 # Account for people who put trailing slashes in PATH elements.
3679 case $as_dir/ in
3680 ./ | .// | /cC/* | \
3681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3683 /usr/ucb/* ) ;;
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3687 # by default.
3688 for ac_prog in ginstall scoinst install; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3699 else
3700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3701 break 3
3704 done
3705 done
3707 esac
3708 done
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL=$ac_cv_path_install
3714 else
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3738 BeOS*) LN="ln -s";;
3739 CYGWIN*) LN="ln -s";;
3740 atheos*) LN="ln -s";;
3741 *) LN=ln;;
3742 esac
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval="$with_pydebug"
3753 if test "$withval" != no
3754 then
3756 cat >>confdefs.h <<\_ACEOF
3757 #define Py_DEBUG 1
3758 _ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3762 Py_DEBUG='true'
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3782 # user set OPT.
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3787 if test -z "$OPT"
3788 then
3789 case $GCC in
3790 yes)
3791 case $ac_cv_prog_cc_g in
3792 yes)
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3795 # debug builds.
3796 OPT="-g -Wall -Wstrict-prototypes"
3797 else
3798 OPT="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT="-O3 -Wall -Wstrict-prototypes"
3804 esac
3805 case $ac_sys_system in
3806 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3808 esac
3812 OPT="-O"
3814 esac
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3819 Monterey*)
3820 OPT=""
3822 esac
3827 # tweak BASECFLAGS based on compiler and platform
3828 case $GCC in
3829 yes)
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3835 ac_save_cc="$CC"
3836 CC="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok=no
3839 else
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3847 _ACEOF
3848 rm -f conftest$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok=yes
3860 else
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ( exit $ac_status )
3866 ac_cv_no_strict_aliasing_ok=no
3868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3870 CC="$ac_save_cc"
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3874 then
3875 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3878 SCO_SV*)
3879 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3882 Darwin*)
3883 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3885 esac
3889 case $ac_sys_system in
3890 OpenUNIX*|UnixWare*)
3891 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3893 OSF*)
3894 BASECFLAGS="$BASECFLAGS -ieee -std"
3896 SCO_SV*)
3897 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3899 esac
3901 esac
3903 if test "$Py_DEBUG" = 'true'; then
3905 else
3906 OPT="-DNDEBUG $OPT"
3909 if test "$ac_arch_flags"
3910 then
3911 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3915 if test "$CC" = icc
3916 then
3917 ac_cv_opt_olimit_ok=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_save_cc="$CC"
3926 CC="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok=no
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3937 _ACEOF
3938 rm -f conftest$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok=yes
3950 else
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ( exit $ac_status )
3956 ac_cv_opt_olimit_ok=no
3958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3960 CC="$ac_save_cc"
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3969 # environment?
3970 Darwin*)
3973 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3975 esac
3976 else
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 ac_save_cc="$CC"
3983 CC="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_olimit_ok=no
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3994 _ACEOF
3995 rm -f conftest$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_olimit_ok=yes
4007 else
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ( exit $ac_status )
4013 ac_cv_olimit_ok=no
4015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017 CC="$ac_save_cc"
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default=no
4039 else
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4051 int main(){
4052 pthread_t p;
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4054 return 1;
4055 (void)pthread_detach(p);
4056 return 0;
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default=yes
4073 ac_cv_kthread=no
4074 ac_cv_pthread=no
4076 else
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ( exit $ac_status )
4082 ac_cv_pthread_is_default=no
4084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4094 then
4095 ac_cv_kpthread=no
4096 else
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 ac_save_cc="$CC"
4108 CC="$CC -Kpthread"
4109 if test "$cross_compiling" = yes; then
4110 ac_cv_kpthread=no
4111 else
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4123 int main(){
4124 pthread_t p;
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4126 return 1;
4127 (void)pthread_detach(p);
4128 return 0;
4131 _ACEOF
4132 rm -f conftest$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_kpthread=yes
4144 else
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ( exit $ac_status )
4150 ac_cv_kpthread=no
4152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4154 CC="$ac_save_cc"
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4162 then
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_save_cc="$CC"
4174 CC="$CC -Kthread"
4175 if test "$cross_compiling" = yes; then
4176 ac_cv_kthread=no
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4189 int main(){
4190 pthread_t p;
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4192 return 1;
4193 (void)pthread_detach(p);
4194 return 0;
4197 _ACEOF
4198 rm -f conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_kthread=yes
4210 else
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ( exit $ac_status )
4216 ac_cv_kthread=no
4218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 CC="$ac_save_cc"
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4228 then
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 ac_save_cc="$CC"
4240 CC="$CC -pthread"
4241 if test "$cross_compiling" = yes; then
4242 ac_cv_pthread=no
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4255 int main(){
4256 pthread_t p;
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4258 return 1;
4259 (void)pthread_detach(p);
4260 return 0;
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_pthread=yes
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ( exit $ac_status )
4282 ac_cv_pthread=no
4284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4286 CC="$ac_save_cc"
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4295 ac_cv_cxx_thread=no
4296 if test ! -z "$CXX"
4297 then
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4300 ac_save_cxx="$CXX"
4302 if test "$ac_cv_kpthread" = "yes"
4303 then
4304 CXX="$CXX -Kpthread"
4305 ac_cv_cxx_thread=yes
4306 elif test "$ac_cv_kthread" = "yes"
4307 then
4308 CXX="$CXX -Kthread"
4309 ac_cv_cxx_thread=yes
4310 elif test "$ac_cv_pthread" = "yes"
4311 then
4312 CXX="$CXX -pthread"
4313 ac_cv_cxx_thread=yes
4316 if test $ac_cv_cxx_thread = yes
4317 then
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4319 $CXX -c conftest.$ac_ext 2>&5
4320 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4321 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4322 then
4323 ac_cv_cxx_thread=yes
4324 else
4325 ac_cv_cxx_thread=no
4327 rm -fr conftest*
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4332 CXX="$ac_save_cxx"
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4353 main ()
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_header_stdc=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4458 main ()
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4464 exit(2);
4465 exit (0);
4467 _ACEOF
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4480 else
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ( exit $ac_status )
4486 ac_cv_header_stdc=no
4488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h <<\_ACEOF
4497 #define STDC_HEADERS 1
4498 _ACEOF
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 _ACEOF
4571 done
4613 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4616 unistd.h utime.h \
4617 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4618 sys/modem.h \
4619 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4620 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4621 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4622 bluetooth/bluetooth.h
4624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4633 else
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_header_compiler=no
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_c_preproc_warn_flag
4700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4701 else
4702 ac_cpp_err=
4704 else
4705 ac_cpp_err=yes
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc=yes
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ac_header_preproc=no
4715 rm -f conftest.err conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4721 yes:no: )
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc=yes
4728 no:yes:* )
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4742 cat <<\_ASBOX
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4746 _ASBOX
4748 sed "s/^/$as_me: WARNING: /" >&2
4750 esac
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 _ACEOF
4769 done
4776 ac_header_dirent=no
4777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <$ac_hdr>
4794 main ()
4796 if ((DIR *) 0)
4797 return 0;
4799 return 0;
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4838 _ACEOF
4840 ac_header_dirent=$ac_hdr; break
4843 done
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 ac_func_search_save_LIBS=$LIBS
4852 ac_cv_search_opendir=no
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 #ifdef __cplusplus
4862 extern "C"
4863 #endif
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4866 char opendir ();
4868 main ()
4870 opendir ();
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir="none required"
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4905 if test "$ac_cv_search_opendir" = no; then
4906 for ac_lib in dir; do
4907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char opendir ();
4923 main ()
4925 opendir ();
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir="-l$ac_lib"
4953 break
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 done
4963 LIBS=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4972 else
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_func_search_save_LIBS=$LIBS
4979 ac_cv_search_opendir=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 #ifdef __cplusplus
4989 extern "C"
4990 #endif
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char opendir ();
4995 main ()
4997 opendir ();
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir="none required"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 if test "$ac_cv_search_opendir" = no; then
5033 for ac_lib in x; do
5034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 #ifdef __cplusplus
5044 extern "C"
5045 #endif
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char opendir ();
5050 main ()
5052 opendir ();
5054 return 0;
5056 _ACEOF
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir="-l$ac_lib"
5080 break
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 done
5090 LIBS=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5114 main ()
5116 return makedev(0, 0);
5118 return 0;
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev=no
5150 rm -f conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5166 else
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_compiler=no
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5222 _ACEOF
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234 else
5235 ac_cpp_err=
5237 else
5238 ac_cpp_err=yes
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_preproc=no
5248 rm -f conftest.err conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254 yes:no: )
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc=yes
5261 no:yes:* )
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5275 cat <<\_ASBOX
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5279 _ASBOX
5281 sed "s/^/$as_me: WARNING: /" >&2
5283 esac
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h <<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5299 _ACEOF
5305 if test $ac_cv_header_sys_mkdev_h = no; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5314 else
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5370 _ACEOF
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_c_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5423 cat <<\_ASBOX
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5427 _ASBOX
5429 sed "s/^/$as_me: WARNING: /" >&2
5431 esac
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h <<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5447 _ACEOF
5456 # On Solaris, term.h requires curses.h
5458 for ac_header in term.h
5460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5474 #include <curses.h>
5475 #endif
5478 #include <$ac_header>
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h <<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 _ACEOF
5520 done
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header in linux/netlink.h
5527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5542 #endif
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5545 #endif
5548 #include <$ac_header>
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5590 done
5593 # checks for typedefs
5594 was_it_defined=no
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <time.h>
5605 _ACEOF
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev/null 2>&1; then
5608 was_it_defined=yes
5609 else
5612 cat >>confdefs.h <<\_ACEOF
5613 #define clock_t long
5614 _ACEOF
5618 rm -f conftest*
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5634 main ()
5636 makedev(0, 0)
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cv_has_makedev=no
5670 rm -f conftest.err conftest.$ac_objext \
5671 conftest$ac_exeext conftest.$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5685 main ()
5687 makedev(0, 0)
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev=yes
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_has_makedev=no
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define _OSF_SOURCE 1
5727 _ACEOF
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5737 _ACEOF
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5748 use_lfs=yes
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5763 main ()
5765 struct rlimit foo;
5767 return 0;
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 sol_lfs_bug=no
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 sol_lfs_bug=yes
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5803 use_lfs=no
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h <<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5812 _ACEOF
5815 cat >>confdefs.h <<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5817 _ACEOF
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h <<\EOF
5823 #if defined(SCO_DS)
5824 #undef _OFF_T
5825 #endif
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5842 main ()
5844 if ((mode_t *) 0)
5845 return 0;
5846 if (sizeof (mode_t))
5847 return 0;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_type_mode_t=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5887 else
5889 cat >>confdefs.h <<_ACEOF
5890 #define mode_t int
5891 _ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5908 main ()
5910 if ((off_t *) 0)
5911 return 0;
5912 if (sizeof (off_t))
5913 return 0;
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_type_off_t=no
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5953 else
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5974 main ()
5976 if ((pid_t *) 0)
5977 return 0;
5978 if (sizeof (pid_t))
5979 return 0;
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t=yes
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ac_cv_type_pid_t=no
6013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6019 else
6021 cat >>confdefs.h <<_ACEOF
6022 #define pid_t int
6023 _ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <signal.h>
6040 #ifdef signal
6041 # undef signal
6042 #endif
6043 #ifdef __cplusplus
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6045 #else
6046 void (*signal ()) ();
6047 #endif
6050 main ()
6052 int i;
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal=void
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_type_signal=int
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h <<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6093 _ACEOF
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6109 main ()
6111 if ((size_t *) 0)
6112 return 0;
6113 if (sizeof (size_t))
6114 return 0;
6116 return 0;
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_cv_type_size_t=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6154 else
6156 cat >>confdefs.h <<_ACEOF
6157 #define size_t unsigned
6158 _ACEOF
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev/null 2>&1; then
6178 ac_cv_type_uid_t=yes
6179 else
6180 ac_cv_type_uid_t=no
6182 rm -f conftest*
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define uid_t int
6191 _ACEOF
6194 cat >>confdefs.h <<\_ACEOF
6195 #define gid_t int
6196 _ACEOF
6201 # Sizes of various common basic types
6202 # ANSI C requires sizeof(char) == 1, so no need to check it
6203 echo "$as_me:$LINENO: checking for int" >&5
6204 echo $ECHO_N "checking for int... $ECHO_C" >&6
6205 if test "${ac_cv_type_int+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6216 main ()
6218 if ((int *) 0)
6219 return 0;
6220 if (sizeof (int))
6221 return 0;
6223 return 0;
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_type_int=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_type_int=no
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6258 echo "${ECHO_T}$ac_cv_type_int" >&6
6260 echo "$as_me:$LINENO: checking size of int" >&5
6261 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6262 if test "${ac_cv_sizeof_int+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 if test "$ac_cv_type_int" = yes; then
6266 # The cast to unsigned long works around a bug in the HP C Compiler
6267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6269 # This bug is HP SR number 8606223364.
6270 if test "$cross_compiling" = yes; then
6271 # Depending upon the size, compute the lo and hi bounds.
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6280 main ()
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6283 test_array [0] = 0
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_lo=0 ac_mid=0
6312 while :; do
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6321 main ()
6323 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6324 test_array [0] = 0
6327 return 0;
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi=$ac_mid; break
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_lo=`expr $ac_mid + 1`
6358 if test $ac_lo -le $ac_mid; then
6359 ac_lo= ac_hi=
6360 break
6362 ac_mid=`expr 2 '*' $ac_mid + 1`
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 done
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6378 main ()
6380 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6381 test_array [0] = 0
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_hi=-1 ac_mid=-1
6410 while :; do
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6419 main ()
6421 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6422 test_array [0] = 0
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_lo=$ac_mid; break
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_hi=`expr '(' $ac_mid ')' - 1`
6456 if test $ac_mid -le $ac_hi; then
6457 ac_lo= ac_hi=
6458 break
6460 ac_mid=`expr 2 '*' $ac_mid`
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 done
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_lo= ac_hi=
6470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473 # Binary search between lo and hi bounds.
6474 while test "x$ac_lo" != "x$ac_hi"; do
6475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6484 main ()
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6487 test_array [0] = 0
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest.$ac_objext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_hi=$ac_mid
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 ac_lo=`expr '(' $ac_mid ')' + 1`
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523 done
6524 case $ac_lo in
6525 ?*) ac_cv_sizeof_int=$ac_lo;;
6526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot compute sizeof (int), 77
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; } ;;
6531 esac
6532 else
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6535 See \`config.log' for more details." >&5
6536 echo "$as_me: error: cannot run test program while cross compiling
6537 See \`config.log' for more details." >&2;}
6538 { (exit 1); exit 1; }; }
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 long longval () { return (long) (sizeof (int)); }
6548 unsigned long ulongval () { return (long) (sizeof (int)); }
6549 #include <stdio.h>
6550 #include <stdlib.h>
6552 main ()
6555 FILE *f = fopen ("conftest.val", "w");
6556 if (! f)
6557 exit (1);
6558 if (((long) (sizeof (int))) < 0)
6560 long i = longval ();
6561 if (i != ((long) (sizeof (int))))
6562 exit (1);
6563 fprintf (f, "%ld\n", i);
6565 else
6567 unsigned long i = ulongval ();
6568 if (i != ((long) (sizeof (int))))
6569 exit (1);
6570 fprintf (f, "%lu\n", i);
6572 exit (ferror (f) || fclose (f) != 0);
6575 return 0;
6577 _ACEOF
6578 rm -f conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
6590 else
6591 echo "$as_me: program exited with status $ac_status" >&5
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ( exit $ac_status )
6596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; }
6602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6605 rm -f conftest.val
6606 else
6607 ac_cv_sizeof_int=0
6610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6611 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6612 cat >>confdefs.h <<_ACEOF
6613 #define SIZEOF_INT $ac_cv_sizeof_int
6614 _ACEOF
6617 echo "$as_me:$LINENO: checking for long" >&5
6618 echo $ECHO_N "checking for long... $ECHO_C" >&6
6619 if test "${ac_cv_type_long+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6630 main ()
6632 if ((long *) 0)
6633 return 0;
6634 if (sizeof (long))
6635 return 0;
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_type_long=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_type_long=no
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6672 echo "${ECHO_T}$ac_cv_type_long" >&6
6674 echo "$as_me:$LINENO: checking size of long" >&5
6675 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6676 if test "${ac_cv_sizeof_long+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 if test "$ac_cv_type_long" = yes; then
6680 # The cast to unsigned long works around a bug in the HP C Compiler
6681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6683 # This bug is HP SR number 8606223364.
6684 if test "$cross_compiling" = yes; then
6685 # Depending upon the size, compute the lo and hi bounds.
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6694 main ()
6696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6697 test_array [0] = 0
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag"
6713 || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_lo=0 ac_mid=0
6726 while :; do
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6735 main ()
6737 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6738 test_array [0] = 0
6741 return 0;
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_hi=$ac_mid; break
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_lo=`expr $ac_mid + 1`
6772 if test $ac_lo -le $ac_mid; then
6773 ac_lo= ac_hi=
6774 break
6776 ac_mid=`expr 2 '*' $ac_mid + 1`
6778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779 done
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6792 main ()
6794 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6795 test_array [0] = 0
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_hi=-1 ac_mid=-1
6824 while :; do
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6833 main ()
6835 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6836 test_array [0] = 0
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -z "$ac_c_werror_flag"
6852 || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_lo=$ac_mid; break
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_hi=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6871 ac_lo= ac_hi=
6872 break
6874 ac_mid=`expr 2 '*' $ac_mid`
6876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877 done
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_lo= ac_hi=
6884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6898 main ()
6900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6901 test_array [0] = 0
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_hi=$ac_mid
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 ac_lo=`expr '(' $ac_mid ')' + 1`
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 done
6938 case $ac_lo in
6939 ?*) ac_cv_sizeof_long=$ac_lo;;
6940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long), 77
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6945 esac
6946 else
6947 if test "$cross_compiling" = yes; then
6948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6949 See \`config.log' for more details." >&5
6950 echo "$as_me: error: cannot run test program while cross compiling
6951 See \`config.log' for more details." >&2;}
6952 { (exit 1); exit 1; }; }
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (long)); }
6962 unsigned long ulongval () { return (long) (sizeof (long)); }
6963 #include <stdio.h>
6964 #include <stdlib.h>
6966 main ()
6969 FILE *f = fopen ("conftest.val", "w");
6970 if (! f)
6971 exit (1);
6972 if (((long) (sizeof (long))) < 0)
6974 long i = longval ();
6975 if (i != ((long) (sizeof (long))))
6976 exit (1);
6977 fprintf (f, "%ld\n", i);
6979 else
6981 unsigned long i = ulongval ();
6982 if (i != ((long) (sizeof (long))))
6983 exit (1);
6984 fprintf (f, "%lu\n", i);
6986 exit (ferror (f) || fclose (f) != 0);
6989 return 0;
6991 _ACEOF
6992 rm -f conftest$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
7004 else
7005 echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ( exit $ac_status )
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7019 rm -f conftest.val
7020 else
7021 ac_cv_sizeof_long=0
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7026 cat >>confdefs.h <<_ACEOF
7027 #define SIZEOF_LONG $ac_cv_sizeof_long
7028 _ACEOF
7031 echo "$as_me:$LINENO: checking for void *" >&5
7032 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7033 if test "${ac_cv_type_void_p+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7044 main ()
7046 if ((void * *) 0)
7047 return 0;
7048 if (sizeof (void *))
7049 return 0;
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_void_p=yes
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 ac_cv_type_void_p=no
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7086 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7088 echo "$as_me:$LINENO: checking size of void *" >&5
7089 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_void_p+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 if test "$ac_cv_type_void_p" = yes; then
7094 # The cast to unsigned long works around a bug in the HP C Compiler
7095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097 # This bug is HP SR number 8606223364.
7098 if test "$cross_compiling" = yes; then
7099 # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7111 test_array [0] = 0
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_lo=0 ac_mid=0
7140 while :; do
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7149 main ()
7151 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7152 test_array [0] = 0
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_hi=$ac_mid; break
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_lo=`expr $ac_mid + 1`
7186 if test $ac_lo -le $ac_mid; then
7187 ac_lo= ac_hi=
7188 break
7190 ac_mid=`expr 2 '*' $ac_mid + 1`
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 done
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 main ()
7208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7209 test_array [0] = 0
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_hi=-1 ac_mid=-1
7238 while :; do
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7250 test_array [0] = 0
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_lo=$ac_mid; break
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_hi=`expr '(' $ac_mid ')' - 1`
7284 if test $ac_mid -le $ac_hi; then
7285 ac_lo= ac_hi=
7286 break
7288 ac_mid=`expr 2 '*' $ac_mid`
7290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291 done
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_lo= ac_hi=
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7312 main ()
7314 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7315 test_array [0] = 0
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_hi=$ac_mid
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_lo=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 case $ac_lo in
7353 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (void *), 77
7357 See \`config.log' for more details." >&2;}
7358 { (exit 1); exit 1; }; } ;;
7359 esac
7360 else
7361 if test "$cross_compiling" = yes; then
7362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366 { (exit 1); exit 1; }; }
7367 else
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (void *)); }
7376 unsigned long ulongval () { return (long) (sizeof (void *)); }
7377 #include <stdio.h>
7378 #include <stdlib.h>
7380 main ()
7383 FILE *f = fopen ("conftest.val", "w");
7384 if (! f)
7385 exit (1);
7386 if (((long) (sizeof (void *))) < 0)
7388 long i = longval ();
7389 if (i != ((long) (sizeof (void *))))
7390 exit (1);
7391 fprintf (f, "%ld\n", i);
7393 else
7395 unsigned long i = ulongval ();
7396 if (i != ((long) (sizeof (void *))))
7397 exit (1);
7398 fprintf (f, "%lu\n", i);
7400 exit (ferror (f) || fclose (f) != 0);
7403 return 0;
7405 _ACEOF
7406 rm -f conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_void_p=`cat conftest.val`
7418 else
7419 echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ( exit $ac_status )
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7433 rm -f conftest.val
7434 else
7435 ac_cv_sizeof_void_p=0
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7440 cat >>confdefs.h <<_ACEOF
7441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7442 _ACEOF
7445 echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7458 main ()
7460 if ((short *) 0)
7461 return 0;
7462 if (sizeof (short))
7463 return 0;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_short=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_type_short=no
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 if test "$ac_cv_type_short" = yes; then
7508 # The cast to unsigned long works around a bug in the HP C Compiler
7509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511 # This bug is HP SR number 8606223364.
7512 if test "$cross_compiling" = yes; then
7513 # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7522 main ()
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7525 test_array [0] = 0
7528 return 0;
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_lo=0 ac_mid=0
7554 while :; do
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7563 main ()
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7566 test_array [0] = 0
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_hi=$ac_mid; break
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_lo=`expr $ac_mid + 1`
7600 if test $ac_lo -le $ac_mid; then
7601 ac_lo= ac_hi=
7602 break
7604 ac_mid=`expr 2 '*' $ac_mid + 1`
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 done
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7620 main ()
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7623 test_array [0] = 0
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_hi=-1 ac_mid=-1
7652 while :; do
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7661 main ()
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7664 test_array [0] = 0
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_lo=$ac_mid; break
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7699 ac_lo= ac_hi=
7700 break
7702 ac_mid=`expr 2 '*' $ac_mid`
7704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705 done
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_lo= ac_hi=
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7726 main ()
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7729 test_array [0] = 0
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_hi=$ac_mid
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_lo=`expr '(' $ac_mid ')' + 1`
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 case $ac_lo in
7767 ?*) ac_cv_sizeof_short=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772 { (exit 1); exit 1; }; } ;;
7773 esac
7774 else
7775 if test "$cross_compiling" = yes; then
7776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7791 #include <stdio.h>
7792 #include <stdlib.h>
7794 main ()
7797 FILE *f = fopen ("conftest.val", "w");
7798 if (! f)
7799 exit (1);
7800 if (((long) (sizeof (short))) < 0)
7802 long i = longval ();
7803 if (i != ((long) (sizeof (short))))
7804 exit (1);
7805 fprintf (f, "%ld\n", i);
7807 else
7809 unsigned long i = ulongval ();
7810 if (i != ((long) (sizeof (short))))
7811 exit (1);
7812 fprintf (f, "%lu\n", i);
7814 exit (ferror (f) || fclose (f) != 0);
7817 return 0;
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_short=`cat conftest.val`
7832 else
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ( exit $ac_status )
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; }
7844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7847 rm -f conftest.val
7848 else
7849 ac_cv_sizeof_short=0
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h <<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7856 _ACEOF
7859 echo "$as_me:$LINENO: checking for float" >&5
7860 echo $ECHO_N "checking for float... $ECHO_C" >&6
7861 if test "${ac_cv_type_float+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7872 main ()
7874 if ((float *) 0)
7875 return 0;
7876 if (sizeof (float))
7877 return 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try='test -s conftest.$ac_objext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_type_float=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_type_float=no
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7914 echo "${ECHO_T}$ac_cv_type_float" >&6
7916 echo "$as_me:$LINENO: checking size of float" >&5
7917 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_float+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test "$ac_cv_type_float" = yes; then
7922 # The cast to unsigned long works around a bug in the HP C Compiler
7923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925 # This bug is HP SR number 8606223364.
7926 if test "$cross_compiling" = yes; then
7927 # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7936 main ()
7938 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7939 test_array [0] = 0
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_lo=0 ac_mid=0
7968 while :; do
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7977 main ()
7979 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7980 test_array [0] = 0
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_hi=$ac_mid; break
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_lo=`expr $ac_mid + 1`
8014 if test $ac_lo -le $ac_mid; then
8015 ac_lo= ac_hi=
8016 break
8018 ac_mid=`expr 2 '*' $ac_mid + 1`
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021 done
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8034 main ()
8036 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8037 test_array [0] = 0
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_hi=-1 ac_mid=-1
8066 while :; do
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8075 main ()
8077 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8078 test_array [0] = 0
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_lo=$ac_mid; break
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 ac_hi=`expr '(' $ac_mid ')' - 1`
8112 if test $ac_mid -le $ac_hi; then
8113 ac_lo= ac_hi=
8114 break
8116 ac_mid=`expr 2 '*' $ac_mid`
8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119 done
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_lo= ac_hi=
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8140 main ()
8142 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8143 test_array [0] = 0
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_hi=$ac_mid
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 case $ac_lo in
8181 ?*) ac_cv_sizeof_float=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (float), 77
8185 See \`config.log' for more details." >&2;}
8186 { (exit 1); exit 1; }; } ;;
8187 esac
8188 else
8189 if test "$cross_compiling" = yes; then
8190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194 { (exit 1); exit 1; }; }
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (float)); }
8204 unsigned long ulongval () { return (long) (sizeof (float)); }
8205 #include <stdio.h>
8206 #include <stdlib.h>
8208 main ()
8211 FILE *f = fopen ("conftest.val", "w");
8212 if (! f)
8213 exit (1);
8214 if (((long) (sizeof (float))) < 0)
8216 long i = longval ();
8217 if (i != ((long) (sizeof (float))))
8218 exit (1);
8219 fprintf (f, "%ld\n", i);
8221 else
8223 unsigned long i = ulongval ();
8224 if (i != ((long) (sizeof (float))))
8225 exit (1);
8226 fprintf (f, "%lu\n", i);
8228 exit (ferror (f) || fclose (f) != 0);
8231 return 0;
8233 _ACEOF
8234 rm -f conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_float=`cat conftest.val`
8246 else
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ( exit $ac_status )
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8261 rm -f conftest.val
8262 else
8263 ac_cv_sizeof_float=0
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8268 cat >>confdefs.h <<_ACEOF
8269 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8270 _ACEOF
8273 echo "$as_me:$LINENO: checking for double" >&5
8274 echo $ECHO_N "checking for double... $ECHO_C" >&6
8275 if test "${ac_cv_type_double+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8286 main ()
8288 if ((double *) 0)
8289 return 0;
8290 if (sizeof (double))
8291 return 0;
8293 return 0;
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_type_double=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_type_double=no
8325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8328 echo "${ECHO_T}$ac_cv_type_double" >&6
8330 echo "$as_me:$LINENO: checking size of double" >&5
8331 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8332 if test "${ac_cv_sizeof_double+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 if test "$ac_cv_type_double" = yes; then
8336 # The cast to unsigned long works around a bug in the HP C Compiler
8337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8339 # This bug is HP SR number 8606223364.
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8350 main ()
8352 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8353 test_array [0] = 0
8356 return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_lo=0 ac_mid=0
8382 while :; do
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8391 main ()
8393 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8394 test_array [0] = 0
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_hi=$ac_mid; break
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_lo=`expr $ac_mid + 1`
8428 if test $ac_lo -le $ac_mid; then
8429 ac_lo= ac_hi=
8430 break
8432 ac_mid=`expr 2 '*' $ac_mid + 1`
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 done
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8448 main ()
8450 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8451 test_array [0] = 0
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_hi=-1 ac_mid=-1
8480 while :; do
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8489 main ()
8491 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8492 test_array [0] = 0
8495 return 0;
8497 _ACEOF
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag"
8508 || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest.$ac_objext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_lo=$ac_mid; break
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_hi=`expr '(' $ac_mid ')' - 1`
8526 if test $ac_mid -le $ac_hi; then
8527 ac_lo= ac_hi=
8528 break
8530 ac_mid=`expr 2 '*' $ac_mid`
8532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8533 done
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 ac_lo= ac_hi=
8540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 # Binary search between lo and hi bounds.
8544 while test "x$ac_lo" != "x$ac_hi"; do
8545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8554 main ()
8556 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8557 test_array [0] = 0
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_hi=$ac_mid
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_lo=`expr '(' $ac_mid ')' + 1`
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 done
8594 case $ac_lo in
8595 ?*) ac_cv_sizeof_double=$ac_lo;;
8596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8597 See \`config.log' for more details." >&5
8598 echo "$as_me: error: cannot compute sizeof (double), 77
8599 See \`config.log' for more details." >&2;}
8600 { (exit 1); exit 1; }; } ;;
8601 esac
8602 else
8603 if test "$cross_compiling" = yes; then
8604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8605 See \`config.log' for more details." >&5
8606 echo "$as_me: error: cannot run test program while cross compiling
8607 See \`config.log' for more details." >&2;}
8608 { (exit 1); exit 1; }; }
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 long longval () { return (long) (sizeof (double)); }
8618 unsigned long ulongval () { return (long) (sizeof (double)); }
8619 #include <stdio.h>
8620 #include <stdlib.h>
8622 main ()
8625 FILE *f = fopen ("conftest.val", "w");
8626 if (! f)
8627 exit (1);
8628 if (((long) (sizeof (double))) < 0)
8630 long i = longval ();
8631 if (i != ((long) (sizeof (double))))
8632 exit (1);
8633 fprintf (f, "%ld\n", i);
8635 else
8637 unsigned long i = ulongval ();
8638 if (i != ((long) (sizeof (double))))
8639 exit (1);
8640 fprintf (f, "%lu\n", i);
8642 exit (ferror (f) || fclose (f) != 0);
8645 return 0;
8647 _ACEOF
8648 rm -f conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_double=`cat conftest.val`
8660 else
8661 echo "$as_me: program exited with status $ac_status" >&5
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ( exit $ac_status )
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; }
8672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8675 rm -f conftest.val
8676 else
8677 ac_cv_sizeof_double=0
8680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8681 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8682 cat >>confdefs.h <<_ACEOF
8683 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8684 _ACEOF
8687 echo "$as_me:$LINENO: checking for fpos_t" >&5
8688 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8689 if test "${ac_cv_type_fpos_t+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8700 main ()
8702 if ((fpos_t *) 0)
8703 return 0;
8704 if (sizeof (fpos_t))
8705 return 0;
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_type_fpos_t=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_type_fpos_t=no
8739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8742 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8744 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8745 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8746 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 if test "$ac_cv_type_fpos_t" = yes; then
8750 # The cast to unsigned long works around a bug in the HP C Compiler
8751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8753 # This bug is HP SR number 8606223364.
8754 if test "$cross_compiling" = yes; then
8755 # Depending upon the size, compute the lo and hi bounds.
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8764 main ()
8766 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8767 test_array [0] = 0
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_lo=0 ac_mid=0
8796 while :; do
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8805 main ()
8807 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8808 test_array [0] = 0
8811 return 0;
8813 _ACEOF
8814 rm -f conftest.$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_hi=$ac_mid; break
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_lo=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8843 ac_lo= ac_hi=
8844 break
8846 ac_mid=`expr 2 '*' $ac_mid + 1`
8848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8849 done
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8862 main ()
8864 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8865 test_array [0] = 0
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_hi=-1 ac_mid=-1
8894 while :; do
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8903 main ()
8905 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8906 test_array [0] = 0
8909 return 0;
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_lo=$ac_mid; break
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_hi=`expr '(' $ac_mid ')' - 1`
8940 if test $ac_mid -le $ac_hi; then
8941 ac_lo= ac_hi=
8942 break
8944 ac_mid=`expr 2 '*' $ac_mid`
8946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947 done
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_lo= ac_hi=
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 # Binary search between lo and hi bounds.
8958 while test "x$ac_lo" != "x$ac_hi"; do
8959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 $ac_includes_default
8968 main ()
8970 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8971 test_array [0] = 0
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_hi=$ac_mid
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_lo=`expr '(' $ac_mid ')' + 1`
9006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9007 done
9008 case $ac_lo in
9009 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9011 See \`config.log' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9013 See \`config.log' for more details." >&2;}
9014 { (exit 1); exit 1; }; } ;;
9015 esac
9016 else
9017 if test "$cross_compiling" = yes; then
9018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: cannot run test program while cross compiling
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9031 long longval () { return (long) (sizeof (fpos_t)); }
9032 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9033 #include <stdio.h>
9034 #include <stdlib.h>
9036 main ()
9039 FILE *f = fopen ("conftest.val", "w");
9040 if (! f)
9041 exit (1);
9042 if (((long) (sizeof (fpos_t))) < 0)
9044 long i = longval ();
9045 if (i != ((long) (sizeof (fpos_t))))
9046 exit (1);
9047 fprintf (f, "%ld\n", i);
9049 else
9051 unsigned long i = ulongval ();
9052 if (i != ((long) (sizeof (fpos_t))))
9053 exit (1);
9054 fprintf (f, "%lu\n", i);
9056 exit (ferror (f) || fclose (f) != 0);
9059 return 0;
9061 _ACEOF
9062 rm -f conftest$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_fpos_t=`cat conftest.val`
9074 else
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ( exit $ac_status )
9080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; }
9086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9089 rm -f conftest.val
9090 else
9091 ac_cv_sizeof_fpos_t=0
9094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9096 cat >>confdefs.h <<_ACEOF
9097 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9098 _ACEOF
9102 echo "$as_me:$LINENO: checking for long long support" >&5
9103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9104 have_long_long=no
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9113 main ()
9115 long long x; x = (long long)0;
9117 return 0;
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122 (eval $ac_compile) 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_LONG_LONG 1
9146 _ACEOF
9148 have_long_long=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $have_long_long" >&5
9157 echo "${ECHO_T}$have_long_long" >&6
9158 if test "$have_long_long" = yes ; then
9159 echo "$as_me:$LINENO: checking for long long" >&5
9160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9161 if test "${ac_cv_type_long_long+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 $ac_includes_default
9172 main ()
9174 if ((long long *) 0)
9175 return 0;
9176 if (sizeof (long long))
9177 return 0;
9179 return 0;
9181 _ACEOF
9182 rm -f conftest.$ac_objext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_type_long_long=yes
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_cv_type_long_long=no
9211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9216 echo "$as_me:$LINENO: checking size of long long" >&5
9217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9218 if test "${ac_cv_sizeof_long_long+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 if test "$ac_cv_type_long_long" = yes; then
9222 # The cast to unsigned long works around a bug in the HP C Compiler
9223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9225 # This bug is HP SR number 8606223364.
9226 if test "$cross_compiling" = yes; then
9227 # Depending upon the size, compute the lo and hi bounds.
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9236 main ()
9238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9239 test_array [0] = 0
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_lo=0 ac_mid=0
9268 while :; do
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 $ac_includes_default
9277 main ()
9279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9280 test_array [0] = 0
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_hi=$ac_mid; break
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_lo=`expr $ac_mid + 1`
9314 if test $ac_lo -le $ac_mid; then
9315 ac_lo= ac_hi=
9316 break
9318 ac_mid=`expr 2 '*' $ac_mid + 1`
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 done
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9334 main ()
9336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9337 test_array [0] = 0
9340 return 0;
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_hi=-1 ac_mid=-1
9366 while :; do
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9375 main ()
9377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9378 test_array [0] = 0
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_lo=$ac_mid; break
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_hi=`expr '(' $ac_mid ')' - 1`
9412 if test $ac_mid -le $ac_hi; then
9413 ac_lo= ac_hi=
9414 break
9416 ac_mid=`expr 2 '*' $ac_mid`
9418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419 done
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_lo= ac_hi=
9426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9429 # Binary search between lo and hi bounds.
9430 while test "x$ac_lo" != "x$ac_hi"; do
9431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9440 main ()
9442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9443 test_array [0] = 0
9446 return 0;
9448 _ACEOF
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_hi=$ac_mid
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_lo=`expr '(' $ac_mid ')' + 1`
9478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9479 done
9480 case $ac_lo in
9481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9483 See \`config.log' for more details." >&5
9484 echo "$as_me: error: cannot compute sizeof (long long), 77
9485 See \`config.log' for more details." >&2;}
9486 { (exit 1); exit 1; }; } ;;
9487 esac
9488 else
9489 if test "$cross_compiling" = yes; then
9490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9491 See \`config.log' for more details." >&5
9492 echo "$as_me: error: cannot run test program while cross compiling
9493 See \`config.log' for more details." >&2;}
9494 { (exit 1); exit 1; }; }
9495 else
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 long longval () { return (long) (sizeof (long long)); }
9504 unsigned long ulongval () { return (long) (sizeof (long long)); }
9505 #include <stdio.h>
9506 #include <stdlib.h>
9508 main ()
9511 FILE *f = fopen ("conftest.val", "w");
9512 if (! f)
9513 exit (1);
9514 if (((long) (sizeof (long long))) < 0)
9516 long i = longval ();
9517 if (i != ((long) (sizeof (long long))))
9518 exit (1);
9519 fprintf (f, "%ld\n", i);
9521 else
9523 unsigned long i = ulongval ();
9524 if (i != ((long) (sizeof (long long))))
9525 exit (1);
9526 fprintf (f, "%lu\n", i);
9528 exit (ferror (f) || fclose (f) != 0);
9531 return 0;
9533 _ACEOF
9534 rm -f conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_sizeof_long_long=`cat conftest.val`
9546 else
9547 echo "$as_me: program exited with status $ac_status" >&5
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ( exit $ac_status )
9552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9553 See \`config.log' for more details." >&5
9554 echo "$as_me: error: cannot compute sizeof (long long), 77
9555 See \`config.log' for more details." >&2;}
9556 { (exit 1); exit 1; }; }
9558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9561 rm -f conftest.val
9562 else
9563 ac_cv_sizeof_long_long=0
9566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9568 cat >>confdefs.h <<_ACEOF
9569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9570 _ACEOF
9575 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9576 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9577 have_uintptr_t=no
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9586 main ()
9588 uintptr_t x; x = (uintptr_t)0;
9590 return 0;
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_UINTPTR_T 1
9619 _ACEOF
9621 have_uintptr_t=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9630 echo "${ECHO_T}$have_uintptr_t" >&6
9631 if test "$have_uintptr_t" = yes ; then
9632 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9633 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9634 if test "${ac_cv_type_uintptr_t+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9645 main ()
9647 if ((uintptr_t *) 0)
9648 return 0;
9649 if (sizeof (uintptr_t))
9650 return 0;
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_type_uintptr_t=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_type_uintptr_t=no
9684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9687 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9689 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9690 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9691 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 if test "$ac_cv_type_uintptr_t" = yes; then
9695 # The cast to unsigned long works around a bug in the HP C Compiler
9696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9698 # This bug is HP SR number 8606223364.
9699 if test "$cross_compiling" = yes; then
9700 # Depending upon the size, compute the lo and hi bounds.
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9709 main ()
9711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9712 test_array [0] = 0
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_lo=0 ac_mid=0
9741 while :; do
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9750 main ()
9752 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9753 test_array [0] = 0
9756 return 0;
9758 _ACEOF
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest.$ac_objext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_hi=$ac_mid; break
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_lo=`expr $ac_mid + 1`
9787 if test $ac_lo -le $ac_mid; then
9788 ac_lo= ac_hi=
9789 break
9791 ac_mid=`expr 2 '*' $ac_mid + 1`
9793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9794 done
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9807 main ()
9809 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9810 test_array [0] = 0
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_hi=-1 ac_mid=-1
9839 while :; do
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9848 main ()
9850 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9851 test_array [0] = 0
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_lo=$ac_mid; break
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_hi=`expr '(' $ac_mid ')' - 1`
9885 if test $ac_mid -le $ac_hi; then
9886 ac_lo= ac_hi=
9887 break
9889 ac_mid=`expr 2 '*' $ac_mid`
9891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 done
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_lo= ac_hi=
9899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 # Binary search between lo and hi bounds.
9903 while test "x$ac_lo" != "x$ac_hi"; do
9904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9913 main ()
9915 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9916 test_array [0] = 0
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_hi=$ac_mid
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_lo=`expr '(' $ac_mid ')' + 1`
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9952 done
9953 case $ac_lo in
9954 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
9955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9956 See \`config.log' for more details." >&5
9957 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9958 See \`config.log' for more details." >&2;}
9959 { (exit 1); exit 1; }; } ;;
9960 esac
9961 else
9962 if test "$cross_compiling" = yes; then
9963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9964 See \`config.log' for more details." >&5
9965 echo "$as_me: error: cannot run test program while cross compiling
9966 See \`config.log' for more details." >&2;}
9967 { (exit 1); exit 1; }; }
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 long longval () { return (long) (sizeof (uintptr_t)); }
9977 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9978 #include <stdio.h>
9979 #include <stdlib.h>
9981 main ()
9984 FILE *f = fopen ("conftest.val", "w");
9985 if (! f)
9986 exit (1);
9987 if (((long) (sizeof (uintptr_t))) < 0)
9989 long i = longval ();
9990 if (i != ((long) (sizeof (uintptr_t))))
9991 exit (1);
9992 fprintf (f, "%ld\n", i);
9994 else
9996 unsigned long i = ulongval ();
9997 if (i != ((long) (sizeof (uintptr_t))))
9998 exit (1);
9999 fprintf (f, "%lu\n", i);
10001 exit (ferror (f) || fclose (f) != 0);
10004 return 0;
10006 _ACEOF
10007 rm -f conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10019 else
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ( exit $ac_status )
10025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10026 See \`config.log' for more details." >&5
10027 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10028 See \`config.log' for more details." >&2;}
10029 { (exit 1); exit 1; }; }
10031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10034 rm -f conftest.val
10035 else
10036 ac_cv_sizeof_uintptr_t=0
10039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10040 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10041 cat >>confdefs.h <<_ACEOF
10042 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10043 _ACEOF
10048 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10049 echo "$as_me:$LINENO: checking size of off_t" >&5
10050 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10051 if test "${ac_cv_sizeof_off_t+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 if test "$cross_compiling" = yes; then
10055 ac_cv_sizeof_off_t=4
10056 else
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <stdio.h>
10064 #include <sys/types.h>
10065 main()
10067 FILE *f=fopen("conftestval", "w");
10068 if (!f) exit(1);
10069 fprintf(f, "%d\n", sizeof(off_t));
10070 exit(0);
10072 _ACEOF
10073 rm -f conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_sizeof_off_t=`cat conftestval`
10085 else
10086 echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ( exit $ac_status )
10091 ac_cv_sizeof_off_t=0
10093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10099 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10101 cat >>confdefs.h <<_ACEOF
10102 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10103 _ACEOF
10106 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10107 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10108 if test "$have_long_long" = yes -a \
10109 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10110 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10112 cat >>confdefs.h <<\_ACEOF
10113 #define HAVE_LARGEFILE_SUPPORT 1
10114 _ACEOF
10116 echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6
10118 else
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10124 echo "$as_me:$LINENO: checking size of time_t" >&5
10125 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10126 if test "${ac_cv_sizeof_time_t+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_time_t=4
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <stdio.h>
10139 #include <time.h>
10140 main()
10142 FILE *f=fopen("conftestval", "w");
10143 if (!f) exit(1);
10144 fprintf(f, "%d\n", sizeof(time_t));
10145 exit(0);
10147 _ACEOF
10148 rm -f conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10159 ac_cv_sizeof_time_t=`cat conftestval`
10160 else
10161 echo "$as_me: program exited with status $ac_status" >&5
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ( exit $ac_status )
10166 ac_cv_sizeof_time_t=0
10168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10174 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10176 cat >>confdefs.h <<_ACEOF
10177 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10178 _ACEOF
10182 # if have pthread_t then define SIZEOF_PTHREAD_T
10183 ac_save_cc="$CC"
10184 if test "$ac_cv_kpthread" = "yes"
10185 then CC="$CC -Kpthread"
10186 elif test "$ac_cv_kthread" = "yes"
10187 then CC="$CC -Kthread"
10188 elif test "$ac_cv_pthread" = "yes"
10189 then CC="$CC -pthread"
10191 echo "$as_me:$LINENO: checking for pthread_t" >&5
10192 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10193 have_pthread_t=no
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <pthread.h>
10202 main ()
10204 pthread_t x; x = *(pthread_t*)0;
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 have_pthread_t=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10239 echo "${ECHO_T}$have_pthread_t" >&6
10240 if test "$have_pthread_t" = yes ; then
10241 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10242 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10243 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10244 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_sizeof_pthread_t=4
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <stdio.h>
10257 #include <pthread.h>
10258 main()
10260 FILE *f=fopen("conftestval", "w");
10261 if (!f) exit(1);
10262 fprintf(f, "%d\n", sizeof(pthread_t));
10263 exit(0);
10265 _ACEOF
10266 rm -f conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_sizeof_pthread_t=`cat conftestval`
10278 else
10279 echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ( exit $ac_status )
10284 ac_cv_sizeof_pthread_t=0
10286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10292 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10294 cat >>confdefs.h <<_ACEOF
10295 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10296 _ACEOF
10299 CC="$ac_save_cc"
10301 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10302 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10303 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10304 if test "${enable_toolbox_glue+set}" = set; then
10305 enableval="$enable_toolbox_glue"
10309 if test -z "$enable_toolbox_glue"
10310 then
10311 case $ac_sys_system/$ac_sys_release in
10312 Darwin/*)
10313 enable_toolbox_glue="yes";;
10315 enable_toolbox_glue="no";;
10316 esac
10318 case "$enable_toolbox_glue" in
10319 yes)
10320 extra_machdep_objs="Python/mactoolboxglue.o"
10321 extra_undefs="-u _PyMac_Error"
10323 cat >>confdefs.h <<\_ACEOF
10324 #define USE_TOOLBOX_OBJECT_GLUE 1
10325 _ACEOF
10329 extra_machdep_objs=""
10330 extra_undefs=""
10332 esac
10333 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10334 echo "${ECHO_T}$enable_toolbox_glue" >&6
10337 case $ac_sys_system/$ac_sys_release in
10338 Darwin/[01234567].*)
10339 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10341 Darwin/*)
10342 OTHER_LIBTOOL_OPT=""
10344 esac
10347 case $ac_sys_system/$ac_sys_release in
10348 Darwin/[01234567].*)
10349 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc"
10350 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10351 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10352 Darwin/*)
10353 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10354 if test ${gcc_version} '<' 4.0
10355 then
10356 LIBTOOL_CRUFT="-lcc_dynamic"
10357 else
10358 LIBTOOL_CRUFT=""
10360 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10361 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10362 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10363 esac
10365 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10366 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10367 if test "$enable_framework"
10368 then
10369 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10370 # -F. is needed to allow linking to the framework while
10371 # in the build location.
10373 cat >>confdefs.h <<\_ACEOF
10374 #define WITH_NEXT_FRAMEWORK 1
10375 _ACEOF
10377 echo "$as_me:$LINENO: result: yes" >&5
10378 echo "${ECHO_T}yes" >&6
10379 else
10380 echo "$as_me:$LINENO: result: no" >&5
10381 echo "${ECHO_T}no" >&6
10384 echo "$as_me:$LINENO: checking for dyld" >&5
10385 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10386 case $ac_sys_system/$ac_sys_release in
10387 Darwin/*)
10389 cat >>confdefs.h <<\_ACEOF
10390 #define WITH_DYLD 1
10391 _ACEOF
10393 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10394 echo "${ECHO_T}always on for Darwin" >&6
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10400 esac
10402 # Set info about shared libraries.
10408 # SO is the extension of shared libraries `(including the dot!)
10409 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10410 echo "$as_me:$LINENO: checking SO" >&5
10411 echo $ECHO_N "checking SO... $ECHO_C" >&6
10412 if test -z "$SO"
10413 then
10414 case $ac_sys_system in
10415 hp*|HP*) SO=.sl;;
10416 CYGWIN*) SO=.dll;;
10417 *) SO=.so;;
10418 esac
10419 else
10420 # this might also be a termcap variable, see #610332
10421 echo
10422 echo '====================================================================='
10423 echo '+ +'
10424 echo '+ WARNING: You have set SO in your environment. +'
10425 echo '+ Do you really mean to change the extension for shared libraries? +'
10426 echo '+ Continuing in 10 seconds to let you to ponder. +'
10427 echo '+ +'
10428 echo '====================================================================='
10429 sleep 10
10431 echo "$as_me:$LINENO: result: $SO" >&5
10432 echo "${ECHO_T}$SO" >&6
10433 # LDSHARED is the ld *command* used to create shared library
10434 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10435 # (Shared libraries in this instance are shared modules to be loaded into
10436 # Python, as opposed to building Python itself as a shared library.)
10437 echo "$as_me:$LINENO: checking LDSHARED" >&5
10438 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10439 if test -z "$LDSHARED"
10440 then
10441 case $ac_sys_system/$ac_sys_release in
10442 AIX*)
10443 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10444 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10446 BeOS*)
10447 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10448 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10450 IRIX/5*) LDSHARED="ld -shared";;
10451 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10452 SunOS/5*)
10453 if test "$GCC" = "yes"
10454 then LDSHARED='$(CC) -shared'
10455 else LDSHARED='$(CC) -G';
10456 fi ;;
10457 hp*|HP*) LDSHARED="ld -b";;
10458 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10459 Darwin/1.3*)
10460 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10461 if test "$enable_framework" ; then
10462 # Link against the framework. All externals should be defined.
10463 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10464 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10465 else
10466 # No framework. Ignore undefined symbols, assuming they come from Python
10467 LDSHARED="$LDSHARED -undefined suppress"
10468 fi ;;
10469 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10470 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10471 if test "$enable_framework" ; then
10472 # Link against the framework. All externals should be defined.
10473 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10474 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10475 else
10476 # No framework, use the Python app as bundle-loader
10477 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10478 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10479 fi ;;
10480 Darwin/*)
10481 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10482 # This allows an extension to be used in any Python
10483 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10484 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10485 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10486 then
10487 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10488 BLDSHARED="$LDSHARED"
10489 else
10490 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10491 if test "$enable_framework" ; then
10492 # Link against the framework. All externals should be defined.
10493 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10494 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10495 else
10496 # No framework, use the Python app as bundle-loader
10497 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10498 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10502 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10503 BSD/OS*/4*) LDSHARED="gcc -shared";;
10504 OpenBSD*|FreeBSD*)
10505 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10506 then
10507 LDSHARED="$CC -shared ${LDFLAGS}"
10508 else
10509 LDSHARED="ld -Bshareable ${LDFLAGS}"
10510 fi;;
10511 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
10512 OpenUNIX*|UnixWare*)
10513 if test "$GCC" = "yes"
10514 then LDSHARED='$(CC) -shared'
10515 else LDSHARED='$(CC) -G'
10516 fi;;
10517 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
10518 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10519 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
10520 atheos*) LDSHARED="gcc -shared";;
10521 *) LDSHARED="ld";;
10522 esac
10524 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10525 echo "${ECHO_T}$LDSHARED" >&6
10526 BLDSHARED=${BLDSHARED-$LDSHARED}
10527 # CCSHARED are the C *flags* used to create objects to go into a shared
10528 # library (module) -- this is only needed for a few systems
10529 echo "$as_me:$LINENO: checking CCSHARED" >&5
10530 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10531 if test -z "$CCSHARED"
10532 then
10533 case $ac_sys_system/$ac_sys_release in
10534 SunOS*) if test "$GCC" = yes;
10535 then CCSHARED="-fPIC";
10536 else CCSHARED="-xcode=pic32";
10537 fi;;
10538 hp*|HP*) if test "$GCC" = yes;
10539 then CCSHARED="-fPIC";
10540 else CCSHARED="+z";
10541 fi;;
10542 Linux*|GNU*) CCSHARED="-fPIC";;
10543 BSD/OS*/4*) CCSHARED="-fpic";;
10544 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
10545 OpenUNIX*|UnixWare*)
10546 if test "$GCC" = "yes"
10547 then CCSHARED="-fPIC"
10548 else CCSHARED="-KPIC"
10549 fi;;
10550 SCO_SV*)
10551 if test "$GCC" = "yes"
10552 then CCSHARED="-fPIC"
10553 else CCSHARED="-Kpic -belf"
10554 fi;;
10555 Monterey*) CCSHARED="-G";;
10556 IRIX*/6*) case $CC in
10557 *gcc*) CCSHARED="-shared";;
10558 *) CCSHARED="";;
10559 esac;;
10560 atheos*) CCSHARED="-fPIC";;
10561 esac
10563 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10564 echo "${ECHO_T}$CCSHARED" >&6
10565 # LINKFORSHARED are the flags passed to the $(CC) command that links
10566 # the python executable -- this is only needed for a few systems
10567 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10568 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10569 if test -z "$LINKFORSHARED"
10570 then
10571 case $ac_sys_system/$ac_sys_release in
10572 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
10573 hp*|HP*)
10574 LINKFORSHARED="-Wl,-E -Wl,+s";;
10575 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10576 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
10577 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
10578 # -u libsys_s pulls in all symbols in libsys
10579 Darwin/*)
10580 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10581 # which is
10582 # not used by the core itself but which needs to be in the core so
10583 # that dynamically loaded extension modules have access to it.
10584 # -prebind is no longer used, because it actually seems to give a
10585 # slowdown in stead of a speedup, maybe due to the large number of
10586 # dynamic loads Python does.
10588 LINKFORSHARED="$extra_undefs"
10589 if test "$enable_framework"
10590 then
10591 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10593 LINKFORSHARED="$LINKFORSHARED";;
10594 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
10595 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
10596 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
10597 FreeBSD*|NetBSD*|OpenBSD*)
10598 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10599 then
10600 LINKFORSHARED="-Wl,--export-dynamic"
10601 fi;;
10602 SunOS/5*) case $CC in
10603 *gcc*)
10604 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
10605 then
10606 LINKFORSHARED="-Xlinker --export-dynamic"
10607 fi;;
10608 esac;;
10609 CYGWIN*)
10610 if test $enable_shared = "no"
10611 then
10612 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
10613 fi;;
10614 esac
10616 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10617 echo "${ECHO_T}$LINKFORSHARED" >&6
10620 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10621 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10622 if test ! "$LIBRARY" = "$LDLIBRARY"
10623 then
10624 case $ac_sys_system in
10625 CYGWIN*)
10626 # Cygwin needs CCSHARED when building extension DLLs
10627 # but not when building the interpreter DLL.
10628 CFLAGSFORSHARED='';;
10630 CFLAGSFORSHARED='$(CCSHARED)'
10631 esac
10633 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10634 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10636 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10637 # library (with --enable-shared).
10638 # For platforms on which shared libraries are not allowed to have unresolved
10639 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10640 # if it is not required, since it creates a dependency of the shared library
10641 # to LIBS. This, in turn, means that applications linking the shared libpython
10642 # don't need to link LIBS explicitly. The default should be only changed
10643 # on systems where this approach causes problems.
10645 echo "$as_me:$LINENO: checking SHLIBS" >&5
10646 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10647 case "$ac_sys_system" in
10649 SHLIBS='$(LIBS)';;
10650 esac
10651 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10652 echo "${ECHO_T}$SHLIBS" >&6
10655 # checks for libraries
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldl $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10677 char dlopen ();
10679 main ()
10681 dlopen ();
10683 return 0;
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag"
10696 || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dl_dlopen=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_cv_lib_dl_dlopen=no
10715 rm -f conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10721 if test $ac_cv_lib_dl_dlopen = yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBDL 1
10724 _ACEOF
10726 LIBS="-ldl $LIBS"
10729 # Dynamic linking for SunOS/Solaris and SYSV
10731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldld $LIBS"
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. */
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751 char shl_load ();
10753 main ()
10755 shl_load ();
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_dld_shl_load=yes
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_lib_dld_shl_load=no
10789 rm -f conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10795 if test $ac_cv_lib_dld_shl_load = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_LIBDLD 1
10798 _ACEOF
10800 LIBS="-ldld $LIBS"
10803 # Dynamic linking for HP-UX
10805 # only check for sem_ini if thread support is requested
10806 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10807 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10808 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10809 if test "${ac_cv_search_sem_init+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 ac_func_search_save_LIBS=$LIBS
10813 ac_cv_search_sem_init=no
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char sem_init ();
10829 main ()
10831 sem_init ();
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -z "$ac_c_werror_flag"
10846 || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_search_sem_init="none required"
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866 if test "$ac_cv_search_sem_init" = no; then
10867 for ac_lib in pthread rt posix4; do
10868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any gcc2 internal prototype to avoid an error. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882 char sem_init ();
10884 main ()
10886 sem_init ();
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_search_sem_init="-l$ac_lib"
10914 break
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10920 rm -f conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 done
10924 LIBS=$ac_func_search_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10927 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10928 if test "$ac_cv_search_sem_init" != no; then
10929 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
10932 # 'Real Time' functions on Solaris
10933 # posix4 on Solaris 2.6
10934 # pthread (first!) on Linux
10937 # check if we need libintl for locale functions
10938 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10939 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10940 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-lintl $LIBS"
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char textdomain ();
10960 main ()
10962 textdomain ();
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_lib_intl_textdomain=yes
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_lib_intl_textdomain=no
10996 rm -f conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11001 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11002 if test $ac_cv_lib_intl_textdomain = yes; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define WITH_LIBINTL 1
11006 _ACEOF
11011 # checks for system dependent C++ extensions support
11012 case "$ac_sys_system" in
11013 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11014 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #include "/usr/lpp/xlC/include/load.h"
11023 main ()
11025 loadAndInit("", 0, "")
11027 return 0;
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11053 cat >>confdefs.h <<\_ACEOF
11054 #define AIX_GENUINE_CPLUSPLUS 1
11055 _ACEOF
11057 echo "$as_me:$LINENO: result: yes" >&5
11058 echo "${ECHO_T}yes" >&6
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11066 rm -f conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext;;
11068 *) ;;
11069 esac
11071 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11072 # BeOS' sockets are stashed in libnet.
11073 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11074 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11075 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-lnsl $LIBS"
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11093 char t_open ();
11095 main ()
11097 t_open ();
11099 return 0;
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_nsl_t_open=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_cv_lib_nsl_t_open=no
11131 rm -f conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11136 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11137 if test $ac_cv_lib_nsl_t_open = yes; then
11138 LIBS="-lnsl $LIBS"
11140 # SVR4
11141 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11142 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11143 if test "${ac_cv_lib_socket_socket+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lsocket $LIBS $LIBS"
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char socket ();
11163 main ()
11165 socket ();
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_socket_socket=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_lib_socket_socket=no
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11204 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11205 if test $ac_cv_lib_socket_socket = yes; then
11206 LIBS="-lsocket $LIBS"
11208 # SVR4 sockets
11210 case "$ac_sys_system" in
11211 BeOS*)
11212 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11213 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11214 if test "${ac_cv_lib_net_socket+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-lnet $LIBS $LIBS"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11232 char socket ();
11234 main ()
11236 socket ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_net_socket=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_lib_net_socket=no
11270 rm -f conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11275 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11276 if test $ac_cv_lib_net_socket = yes; then
11277 LIBS="-lnet $LIBS"
11279 # BeOS
11281 esac
11283 echo "$as_me:$LINENO: checking for --with-libs" >&5
11284 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11286 # Check whether --with-libs or --without-libs was given.
11287 if test "${with_libs+set}" = set; then
11288 withval="$with_libs"
11290 echo "$as_me:$LINENO: result: $withval" >&5
11291 echo "${ECHO_T}$withval" >&6
11292 LIBS="$withval $LIBS"
11294 else
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11299 # Determine if signalmodule should be used.
11302 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11303 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11305 # Check whether --with-signal-module or --without-signal-module was given.
11306 if test "${with_signal_module+set}" = set; then
11307 withval="$with_signal_module"
11311 if test -z "$with_signal_module"
11312 then with_signal_module="yes"
11314 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11315 echo "${ECHO_T}$with_signal_module" >&6
11317 if test "${with_signal_module}" = "yes"; then
11318 USE_SIGNAL_MODULE=""
11319 SIGNAL_OBJS=""
11320 else
11321 USE_SIGNAL_MODULE="#"
11322 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11325 # This is used to generate Setup.config
11327 USE_THREAD_MODULE=""
11329 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11330 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11333 # Check whether --with-dec-threads or --without-dec-threads was given.
11334 if test "${with_dec_threads+set}" = set; then
11335 withval="$with_dec_threads"
11337 echo "$as_me:$LINENO: result: $withval" >&5
11338 echo "${ECHO_T}$withval" >&6
11339 LDLAST=-threads
11340 if test "${with_thread+set}" != set; then
11341 with_thread="$withval";
11343 else
11344 echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6
11348 # Templates for things AC_DEFINEd more than once.
11349 # For a single AC_DEFINE, no template is needed.
11357 echo "$as_me:$LINENO: checking for --with-threads" >&5
11358 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11360 # Check whether --with-threads or --without-threads was given.
11361 if test "${with_threads+set}" = set; then
11362 withval="$with_threads"
11366 # --with-thread is deprecated, but check for it anyway
11368 # Check whether --with-thread or --without-thread was given.
11369 if test "${with_thread+set}" = set; then
11370 withval="$with_thread"
11371 with_threads=$with_thread
11374 if test -z "$with_threads"
11375 then with_threads="yes"
11377 echo "$as_me:$LINENO: result: $with_threads" >&5
11378 echo "${ECHO_T}$with_threads" >&6
11381 if test "$with_threads" = "no"
11382 then
11383 USE_THREAD_MODULE="#"
11384 elif test "$ac_cv_pthread_is_default" = yes
11385 then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define WITH_THREAD 1
11388 _ACEOF
11390 # Defining _REENTRANT on system with POSIX threads should not hurt.
11391 cat >>confdefs.h <<\_ACEOF
11392 #define _REENTRANT 1
11393 _ACEOF
11395 posix_threads=yes
11396 THREADOBJ="Python/thread.o"
11397 elif test "$ac_cv_kpthread" = "yes"
11398 then
11399 CC="$CC -Kpthread"
11400 if test "$ac_cv_cxx_thread" = "yes"; then
11401 CXX="$CXX -Kpthread"
11403 cat >>confdefs.h <<\_ACEOF
11404 #define WITH_THREAD 1
11405 _ACEOF
11407 posix_threads=yes
11408 THREADOBJ="Python/thread.o"
11409 elif test "$ac_cv_kthread" = "yes"
11410 then
11411 CC="$CC -Kthread"
11412 if test "$ac_cv_cxx_thread" = "yes"; then
11413 CXX="$CXX -Kthread"
11415 cat >>confdefs.h <<\_ACEOF
11416 #define WITH_THREAD 1
11417 _ACEOF
11419 posix_threads=yes
11420 THREADOBJ="Python/thread.o"
11421 elif test "$ac_cv_pthread" = "yes"
11422 then
11423 CC="$CC -pthread"
11424 if test "$ac_cv_cxx_thread" = "yes"; then
11425 CXX="$CXX -pthread"
11427 cat >>confdefs.h <<\_ACEOF
11428 #define WITH_THREAD 1
11429 _ACEOF
11431 posix_threads=yes
11432 THREADOBJ="Python/thread.o"
11433 else
11434 if test ! -z "$with_threads" -a -d "$with_threads"
11435 then LDFLAGS="$LDFLAGS -L$with_threads"
11437 if test ! -z "$withval" -a -d "$withval"
11438 then LDFLAGS="$LDFLAGS -L$withval"
11441 # According to the POSIX spec, a pthreads implementation must
11442 # define _POSIX_THREADS in unistd.h. Some apparently don't
11443 # (e.g. gnu pth with pthread emulation)
11444 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11445 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11446 cat >conftest.$ac_ext <<_ACEOF
11447 /* confdefs.h. */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11453 #include <unistd.h>
11454 #ifdef _POSIX_THREADS
11456 #endif
11458 _ACEOF
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "yes" >/dev/null 2>&1; then
11461 unistd_defines_pthreads=yes
11462 else
11463 unistd_defines_pthreads=no
11465 rm -f conftest*
11467 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11468 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11470 cat >>confdefs.h <<\_ACEOF
11471 #define _REENTRANT 1
11472 _ACEOF
11474 if test "${ac_cv_header_cthreads_h+set}" = set; then
11475 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11476 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11477 if test "${ac_cv_header_cthreads_h+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11482 else
11483 # Is the header compilable?
11484 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11485 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 #include <cthreads.h>
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_header_compiler=yes
11518 else
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_header_compiler=no
11524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6
11528 # Is the header present?
11529 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11530 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <cthreads.h>
11538 _ACEOF
11539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11550 else
11551 ac_cpp_err=
11553 else
11554 ac_cpp_err=yes
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_preproc=no
11564 rm -f conftest.err conftest.$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6
11568 # So? What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 yes:no: )
11571 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc=yes
11577 no:yes:* )
11578 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11591 cat <<\_ASBOX
11592 ## ------------------------------------------------ ##
11593 ## Report this to http://www.python.org/python-bugs ##
11594 ## ------------------------------------------------ ##
11595 _ASBOX
11597 sed "s/^/$as_me: WARNING: /" >&2
11599 esac
11600 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11601 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11602 if test "${ac_cv_header_cthreads_h+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 ac_cv_header_cthreads_h=$ac_header_preproc
11607 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11608 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11611 if test $ac_cv_header_cthreads_h = yes; then
11612 cat >>confdefs.h <<\_ACEOF
11613 #define WITH_THREAD 1
11614 _ACEOF
11616 cat >>confdefs.h <<\_ACEOF
11617 #define C_THREADS 1
11618 _ACEOF
11621 cat >>confdefs.h <<\_ACEOF
11622 #define HURD_C_THREADS 1
11623 _ACEOF
11625 LIBS="$LIBS -lthreads"
11626 THREADOBJ="Python/thread.o"
11627 else
11629 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11630 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11631 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11637 else
11638 # Is the header compilable?
11639 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11640 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <mach/cthreads.h>
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag"
11660 || test ! -s conftest.err'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_header_compiler=yes
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_compiler=no
11679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6
11683 # Is the header present?
11684 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11685 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <mach/cthreads.h>
11693 _ACEOF
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705 else
11706 ac_cpp_err=
11708 else
11709 ac_cpp_err=yes
11711 if test -z "$ac_cpp_err"; then
11712 ac_header_preproc=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_preproc=no
11719 rm -f conftest.err conftest.$ac_ext
11720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11721 echo "${ECHO_T}$ac_header_preproc" >&6
11723 # So? What about this header?
11724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11725 yes:no: )
11726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11727 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11730 ac_header_preproc=yes
11732 no:yes:* )
11733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11738 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11740 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11742 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11744 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11746 cat <<\_ASBOX
11747 ## ------------------------------------------------ ##
11748 ## Report this to http://www.python.org/python-bugs ##
11749 ## ------------------------------------------------ ##
11750 _ASBOX
11752 sed "s/^/$as_me: WARNING: /" >&2
11754 esac
11755 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11756 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11757 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 ac_cv_header_mach_cthreads_h=$ac_header_preproc
11762 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11766 if test $ac_cv_header_mach_cthreads_h = yes; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define WITH_THREAD 1
11769 _ACEOF
11771 cat >>confdefs.h <<\_ACEOF
11772 #define C_THREADS 1
11773 _ACEOF
11776 cat >>confdefs.h <<\_ACEOF
11777 #define MACH_C_THREADS 1
11778 _ACEOF
11780 THREADOBJ="Python/thread.o"
11781 else
11783 echo "$as_me:$LINENO: checking for --with-pth" >&5
11784 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11786 # Check whether --with-pth or --without-pth was given.
11787 if test "${with_pth+set}" = set; then
11788 withval="$with_pth"
11789 echo "$as_me:$LINENO: result: $withval" >&5
11790 echo "${ECHO_T}$withval" >&6
11791 cat >>confdefs.h <<\_ACEOF
11792 #define WITH_THREAD 1
11793 _ACEOF
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_PTH 1
11798 _ACEOF
11800 LIBS="-lpth $LIBS"
11801 THREADOBJ="Python/thread.o"
11802 else
11803 echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11806 # Just looking for pthread_create in libpthread is not enough:
11807 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11808 # So we really have to include pthread.h, and then link.
11809 _libs=$LIBS
11810 LIBS="$LIBS -lpthread"
11811 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11812 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <pthread.h>
11821 void * start_routine (void *arg) { exit (0); }
11823 main ()
11826 pthread_create (NULL, NULL, start_routine, NULL)
11828 return 0;
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11854 echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6
11856 cat >>confdefs.h <<\_ACEOF
11857 #define WITH_THREAD 1
11858 _ACEOF
11860 posix_threads=yes
11861 THREADOBJ="Python/thread.o"
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11867 LIBS=$_libs
11868 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11869 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11870 if test "${ac_cv_func_pthread_detach+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define pthread_detach innocuous_pthread_detach
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char pthread_detach (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11894 #undef pthread_detach
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 #ifdef __cplusplus
11898 extern "C"
11900 #endif
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903 char pthread_detach ();
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11908 choke me
11909 #else
11910 char (*f) () = pthread_detach;
11911 #endif
11912 #ifdef __cplusplus
11914 #endif
11917 main ()
11919 return f != pthread_detach;
11921 return 0;
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_func_pthread_detach=yes
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_func_pthread_detach=no
11953 rm -f conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11957 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11958 if test $ac_cv_func_pthread_detach = yes; then
11959 cat >>confdefs.h <<\_ACEOF
11960 #define WITH_THREAD 1
11961 _ACEOF
11963 posix_threads=yes
11964 THREADOBJ="Python/thread.o"
11965 else
11967 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11968 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11969 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11970 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11974 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11975 else
11976 # Is the header compilable?
11977 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11978 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11986 #include <atheos/threads.h>
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_c_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_header_compiler=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_header_compiler=no
12017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12019 echo "${ECHO_T}$ac_header_compiler" >&6
12021 # Is the header present?
12022 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12023 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <atheos/threads.h>
12031 _ACEOF
12032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev/null; then
12040 if test -s conftest.err; then
12041 ac_cpp_err=$ac_c_preproc_warn_flag
12042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12043 else
12044 ac_cpp_err=
12046 else
12047 ac_cpp_err=yes
12049 if test -z "$ac_cpp_err"; then
12050 ac_header_preproc=yes
12051 else
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_header_preproc=no
12057 rm -f conftest.err conftest.$ac_ext
12058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 echo "${ECHO_T}$ac_header_preproc" >&6
12061 # So? What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12063 yes:no: )
12064 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12065 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12067 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc=yes
12070 no:yes:* )
12071 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12072 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12074 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12076 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12078 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12080 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12082 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12084 cat <<\_ASBOX
12085 ## ------------------------------------------------ ##
12086 ## Report this to http://www.python.org/python-bugs ##
12087 ## ------------------------------------------------ ##
12088 _ASBOX
12090 sed "s/^/$as_me: WARNING: /" >&2
12092 esac
12093 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12094 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12095 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 ac_cv_header_atheos_threads_h=$ac_header_preproc
12100 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12101 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12104 if test $ac_cv_header_atheos_threads_h = yes; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define WITH_THREAD 1
12107 _ACEOF
12110 cat >>confdefs.h <<\_ACEOF
12111 #define ATHEOS_THREADS 1
12112 _ACEOF
12114 THREADOBJ="Python/thread.o"
12115 else
12117 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12118 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12119 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12120 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12124 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12125 else
12126 # Is the header compilable?
12127 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12128 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 $ac_includes_default
12136 #include <kernel/OS.h>
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12141 ac_status=$?
12142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest.$ac_objext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_header_compiler=yes
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_header_compiler=no
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 echo "${ECHO_T}$ac_header_compiler" >&6
12171 # Is the header present?
12172 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12173 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include <kernel/OS.h>
12181 _ACEOF
12182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } >/dev/null; then
12190 if test -s conftest.err; then
12191 ac_cpp_err=$ac_c_preproc_warn_flag
12192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12193 else
12194 ac_cpp_err=
12196 else
12197 ac_cpp_err=yes
12199 if test -z "$ac_cpp_err"; then
12200 ac_header_preproc=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_header_preproc=no
12207 rm -f conftest.err conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 echo "${ECHO_T}$ac_header_preproc" >&6
12211 # So? What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12213 yes:no: )
12214 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12217 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12218 ac_header_preproc=yes
12220 no:yes:* )
12221 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12222 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12224 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12226 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12228 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12230 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12232 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12234 cat <<\_ASBOX
12235 ## ------------------------------------------------ ##
12236 ## Report this to http://www.python.org/python-bugs ##
12237 ## ------------------------------------------------ ##
12238 _ASBOX
12240 sed "s/^/$as_me: WARNING: /" >&2
12242 esac
12243 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12244 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12245 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 ac_cv_header_kernel_OS_h=$ac_header_preproc
12250 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12251 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12254 if test $ac_cv_header_kernel_OS_h = yes; then
12255 cat >>confdefs.h <<\_ACEOF
12256 #define WITH_THREAD 1
12257 _ACEOF
12260 cat >>confdefs.h <<\_ACEOF
12261 #define BEOS_THREADS 1
12262 _ACEOF
12264 THREADOBJ="Python/thread.o"
12265 else
12267 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12268 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12269 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lpthreads $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any gcc2 internal prototype to avoid an error. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char pthread_create ();
12289 main ()
12291 pthread_create ();
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_pthreads_pthread_create=yes
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_pthreads_pthread_create=no
12325 rm -f conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12330 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12331 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12332 cat >>confdefs.h <<\_ACEOF
12333 #define WITH_THREAD 1
12334 _ACEOF
12336 posix_threads=yes
12337 LIBS="$LIBS -lpthreads"
12338 THREADOBJ="Python/thread.o"
12339 else
12341 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12342 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12343 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346 ac_check_lib_save_LIBS=$LIBS
12347 LIBS="-lc_r $LIBS"
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char pthread_create ();
12363 main ()
12365 pthread_create ();
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag"
12380 || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest$ac_exeext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_lib_c_r_pthread_create=yes
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_cv_lib_c_r_pthread_create=no
12399 rm -f conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12403 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12404 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12405 if test $ac_cv_lib_c_r_pthread_create = yes; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define WITH_THREAD 1
12408 _ACEOF
12410 posix_threads=yes
12411 LIBS="$LIBS -lc_r"
12412 THREADOBJ="Python/thread.o"
12413 else
12415 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12416 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12417 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 ac_check_lib_save_LIBS=$LIBS
12421 LIBS="-lpthread $LIBS"
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 /* Override any gcc2 internal prototype to avoid an error. */
12430 #ifdef __cplusplus
12431 extern "C"
12432 #endif
12433 /* We use char because int might match the return type of a gcc2
12434 builtin and then its argument prototype would still apply. */
12435 char __pthread_create_system ();
12437 main ()
12439 __pthread_create_system ();
12441 return 0;
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_lib_pthread___pthread_create_system=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_cv_lib_pthread___pthread_create_system=no
12473 rm -f conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12478 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12479 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12480 cat >>confdefs.h <<\_ACEOF
12481 #define WITH_THREAD 1
12482 _ACEOF
12484 posix_threads=yes
12485 LIBS="$LIBS -lpthread"
12486 THREADOBJ="Python/thread.o"
12487 else
12489 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12490 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12491 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-lcma $LIBS"
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 /* Override any gcc2 internal prototype to avoid an error. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509 char pthread_create ();
12511 main ()
12513 pthread_create ();
12515 return 0;
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest$ac_exeext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_lib_cma_pthread_create=yes
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_lib_cma_pthread_create=no
12547 rm -f conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12551 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12552 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12553 if test $ac_cv_lib_cma_pthread_create = yes; then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define WITH_THREAD 1
12556 _ACEOF
12558 posix_threads=yes
12559 LIBS="$LIBS -lcma"
12560 THREADOBJ="Python/thread.o"
12561 else
12563 USE_THREAD_MODULE="#"
12582 rm -f conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12592 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12593 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12594 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lmpc $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char usconfig ();
12614 main ()
12616 usconfig ();
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_mpc_usconfig=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_lib_mpc_usconfig=no
12650 rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12654 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12655 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12656 if test $ac_cv_lib_mpc_usconfig = yes; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define WITH_THREAD 1
12659 _ACEOF
12661 LIBS="$LIBS -lmpc"
12662 THREADOBJ="Python/thread.o"
12663 USE_THREAD_MODULE=""
12667 if test "$posix_threads" != "yes"; then
12668 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12669 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12670 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-lthread $LIBS"
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char thr_create ();
12690 main ()
12692 thr_create ();
12694 return 0;
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_thread_thr_create=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_thread_thr_create=no
12726 rm -f conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12731 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12732 if test $ac_cv_lib_thread_thr_create = yes; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define WITH_THREAD 1
12735 _ACEOF
12737 LIBS="$LIBS -lthread"
12738 THREADOBJ="Python/thread.o"
12739 USE_THREAD_MODULE=""
12744 if test "$USE_THREAD_MODULE" != "#"
12745 then
12746 # If the above checks didn't disable threads, (at least) OSF1
12747 # needs this '-threads' argument during linking.
12748 case $ac_sys_system in
12749 OSF1) LDLAST=-threads;;
12750 esac
12754 if test "$posix_threads" = "yes"; then
12755 if test "$unistd_defines_pthreads" = "no"; then
12757 cat >>confdefs.h <<\_ACEOF
12758 #define _POSIX_THREADS 1
12759 _ACEOF
12763 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12764 case $ac_sys_system/$ac_sys_release in
12765 SunOS/5.6)
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_PTHREAD_DESTRUCTOR 1
12768 _ACEOF
12771 SunOS/5.8)
12772 cat >>confdefs.h <<\_ACEOF
12773 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12774 _ACEOF
12777 esac
12779 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12780 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12781 if test "${ac_cv_pthread_system_supported+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 if test "$cross_compiling" = yes; then
12785 ac_cv_pthread_system_supported=no
12786 else
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <pthread.h>
12794 void *foo(void *parm) {
12795 return NULL;
12797 main() {
12798 pthread_attr_t attr;
12799 pthread_t id;
12800 if (pthread_attr_init(&attr)) exit(-1);
12801 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12802 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12803 exit(0);
12805 _ACEOF
12806 rm -f conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_pthread_system_supported=yes
12818 else
12819 echo "$as_me: program exited with status $ac_status" >&5
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ( exit $ac_status )
12824 ac_cv_pthread_system_supported=no
12826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12831 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12832 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12833 if test "$ac_cv_pthread_system_supported" = "yes"; then
12835 cat >>confdefs.h <<\_ACEOF
12836 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12837 _ACEOF
12841 for ac_func in pthread_sigmask
12843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_var+set}\" = set"; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12857 #define $ac_func innocuous_$ac_func
12859 /* System header to define __stub macros and hopefully few prototypes,
12860 which can conflict with char $ac_func (); below.
12861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 <limits.h> exists even on freestanding compilers. */
12864 #ifdef __STDC__
12865 # include <limits.h>
12866 #else
12867 # include <assert.h>
12868 #endif
12870 #undef $ac_func
12872 /* Override any gcc2 internal prototype to avoid an error. */
12873 #ifdef __cplusplus
12874 extern "C"
12876 #endif
12877 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */
12879 char $ac_func ();
12880 /* The GNU C library defines this for functions which it implements
12881 to always fail with ENOSYS. Some functions are actually named
12882 something starting with __ and the normal name is an alias. */
12883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12884 choke me
12885 #else
12886 char (*f) () = $ac_func;
12887 #endif
12888 #ifdef __cplusplus
12890 #endif
12893 main ()
12895 return f != $ac_func;
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest$ac_exeext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_var=yes"
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 eval "$as_ac_var=no"
12929 rm -f conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12934 if test `eval echo '${'$as_ac_var'}'` = yes; then
12935 cat >>confdefs.h <<_ACEOF
12936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12937 _ACEOF
12938 case $ac_sys_system in
12939 CYGWIN*)
12941 cat >>confdefs.h <<\_ACEOF
12942 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12943 _ACEOF
12946 esac
12948 done
12953 # Check for enable-ipv6
12956 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12957 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12958 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12959 if test "${enable_ipv6+set}" = set; then
12960 enableval="$enable_ipv6"
12961 case "$enableval" in
12963 echo "$as_me:$LINENO: result: no" >&5
12964 echo "${ECHO_T}no" >&6
12965 ipv6=no
12967 *) echo "$as_me:$LINENO: result: yes" >&5
12968 echo "${ECHO_T}yes" >&6
12969 cat >>confdefs.h <<\_ACEOF
12970 #define ENABLE_IPV6 1
12971 _ACEOF
12973 ipv6=yes
12975 esac
12976 else
12978 if test "$cross_compiling" = yes; then
12979 echo "$as_me:$LINENO: result: no" >&5
12980 echo "${ECHO_T}no" >&6
12981 ipv6=no
12983 else
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 /* AF_INET6 available check */
12991 #include <sys/types.h>
12992 #include <sys/socket.h>
12993 main()
12995 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12996 exit(1);
12997 else
12998 exit(0);
13001 _ACEOF
13002 rm -f conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 echo "$as_me:$LINENO: result: yes" >&5
13014 echo "${ECHO_T}yes" >&6
13015 ipv6=yes
13016 else
13017 echo "$as_me: program exited with status $ac_status" >&5
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ( exit $ac_status )
13022 echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6
13024 ipv6=no
13026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13029 if test "$ipv6" = "yes"; then
13030 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13031 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 #include <sys/types.h>
13039 #include <netinet/in.h>
13041 main ()
13043 struct sockaddr_in6 x;
13044 x.sin6_scope_id;
13046 return 0;
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6
13073 ipv6=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6
13080 ipv6=no
13082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 if test "$ipv6" = "yes"; then
13086 cat >>confdefs.h <<\_ACEOF
13087 #define ENABLE_IPV6 1
13088 _ACEOF
13094 ipv6type=unknown
13095 ipv6lib=none
13096 ipv6trylibc=no
13098 if test "$ipv6" = "yes"; then
13099 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13100 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13101 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13103 case $i in
13104 inria)
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #include <netinet/in.h>
13113 #ifdef IPV6_INRIA_VERSION
13115 #endif
13116 _ACEOF
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 $EGREP "yes" >/dev/null 2>&1; then
13119 ipv6type=$i
13121 rm -f conftest*
13124 kame)
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 #include <netinet/in.h>
13133 #ifdef __KAME__
13135 #endif
13136 _ACEOF
13137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13138 $EGREP "yes" >/dev/null 2>&1; then
13139 ipv6type=$i;
13140 ipv6lib=inet6
13141 ipv6libdir=/usr/local/v6/lib
13142 ipv6trylibc=yes
13144 rm -f conftest*
13147 linux-glibc)
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 #include <features.h>
13156 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13158 #endif
13159 _ACEOF
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev/null 2>&1; then
13162 ipv6type=$i;
13163 ipv6trylibc=yes
13165 rm -f conftest*
13168 linux-inet6)
13169 if test -d /usr/inet6; then
13170 ipv6type=$i
13171 ipv6lib=inet6
13172 ipv6libdir=/usr/inet6/lib
13173 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13176 solaris)
13177 if test -f /etc/netconfig; then
13178 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13179 ipv6type=$i
13180 ipv6trylibc=yes
13184 toshiba)
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 #include <sys/param.h>
13193 #ifdef _TOSHIBA_INET6
13195 #endif
13196 _ACEOF
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "yes" >/dev/null 2>&1; then
13199 ipv6type=$i;
13200 ipv6lib=inet6;
13201 ipv6libdir=/usr/local/v6/lib
13203 rm -f conftest*
13206 v6d)
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13214 #include </usr/local/v6/include/sys/v6config.h>
13215 #ifdef __V6D__
13217 #endif
13218 _ACEOF
13219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13220 $EGREP "yes" >/dev/null 2>&1; then
13221 ipv6type=$i;
13222 ipv6lib=v6;
13223 ipv6libdir=/usr/local/v6/lib;
13224 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13226 rm -f conftest*
13229 zeta)
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h. */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13237 #include <sys/param.h>
13238 #ifdef _ZETA_MINAMI_INET6
13240 #endif
13241 _ACEOF
13242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13243 $EGREP "yes" >/dev/null 2>&1; then
13244 ipv6type=$i;
13245 ipv6lib=inet6;
13246 ipv6libdir=/usr/local/v6/lib
13248 rm -f conftest*
13251 esac
13252 if test "$ipv6type" != "unknown"; then
13253 break
13255 done
13256 echo "$as_me:$LINENO: result: $ipv6type" >&5
13257 echo "${ECHO_T}$ipv6type" >&6
13260 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13261 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13262 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13263 echo "using lib$ipv6lib"
13264 else
13265 if test $ipv6trylibc = "yes"; then
13266 echo "using libc"
13267 else
13268 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13269 echo "You need to fetch lib$ipv6lib.a from appropriate"
13270 echo 'ipv6 kit and compile beforehand.'
13271 exit 1
13276 # Check for --with-doc-strings
13277 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13278 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13280 # Check whether --with-doc-strings or --without-doc-strings was given.
13281 if test "${with_doc_strings+set}" = set; then
13282 withval="$with_doc_strings"
13286 if test -z "$with_doc_strings"
13287 then with_doc_strings="yes"
13289 if test "$with_doc_strings" != "no"
13290 then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define WITH_DOC_STRINGS 1
13294 _ACEOF
13297 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13298 echo "${ECHO_T}$with_doc_strings" >&6
13300 # Check for Python-specific malloc support
13301 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13302 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13304 # Check whether --with-tsc or --without-tsc was given.
13305 if test "${with_tsc+set}" = set; then
13306 withval="$with_tsc"
13308 if test "$withval" != no
13309 then
13311 cat >>confdefs.h <<\_ACEOF
13312 #define WITH_TSC 1
13313 _ACEOF
13315 echo "$as_me:$LINENO: result: yes" >&5
13316 echo "${ECHO_T}yes" >&6
13317 else echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13320 else
13321 echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6
13325 # Check for Python-specific malloc support
13326 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13327 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13329 # Check whether --with-pymalloc or --without-pymalloc was given.
13330 if test "${with_pymalloc+set}" = set; then
13331 withval="$with_pymalloc"
13335 if test -z "$with_pymalloc"
13336 then with_pymalloc="yes"
13338 if test "$with_pymalloc" != "no"
13339 then
13341 cat >>confdefs.h <<\_ACEOF
13342 #define WITH_PYMALLOC 1
13343 _ACEOF
13346 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13347 echo "${ECHO_T}$with_pymalloc" >&6
13349 # Check for --with-wctype-functions
13350 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13351 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13353 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13354 if test "${with_wctype_functions+set}" = set; then
13355 withval="$with_wctype_functions"
13357 if test "$withval" != no
13358 then
13360 cat >>confdefs.h <<\_ACEOF
13361 #define WANT_WCTYPE_FUNCTIONS 1
13362 _ACEOF
13364 echo "$as_me:$LINENO: result: yes" >&5
13365 echo "${ECHO_T}yes" >&6
13366 else echo "$as_me:$LINENO: result: no" >&5
13367 echo "${ECHO_T}no" >&6
13369 else
13370 echo "$as_me:$LINENO: result: no" >&5
13371 echo "${ECHO_T}no" >&6
13374 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13376 DLINCLDIR=.
13378 # the dlopen() function means we might want to use dynload_shlib.o. some
13379 # platforms, such as AIX, have dlopen(), but don't want to use it.
13381 for ac_func in dlopen
13383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384 echo "$as_me:$LINENO: checking for $ac_func" >&5
13385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13386 if eval "test \"\${$as_ac_var+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13397 #define $ac_func innocuous_$ac_func
13399 /* System header to define __stub macros and hopefully few prototypes,
13400 which can conflict with char $ac_func (); below.
13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 <limits.h> exists even on freestanding compilers. */
13404 #ifdef __STDC__
13405 # include <limits.h>
13406 #else
13407 # include <assert.h>
13408 #endif
13410 #undef $ac_func
13412 /* Override any gcc2 internal prototype to avoid an error. */
13413 #ifdef __cplusplus
13414 extern "C"
13416 #endif
13417 /* We use char because int might match the return type of a gcc2
13418 builtin and then its argument prototype would still apply. */
13419 char $ac_func ();
13420 /* The GNU C library defines this for functions which it implements
13421 to always fail with ENOSYS. Some functions are actually named
13422 something starting with __ and the normal name is an alias. */
13423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424 choke me
13425 #else
13426 char (*f) () = $ac_func;
13427 #endif
13428 #ifdef __cplusplus
13430 #endif
13433 main ()
13435 return f != $ac_func;
13437 return 0;
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 eval "$as_ac_var=yes"
13463 else
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 eval "$as_ac_var=no"
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13474 if test `eval echo '${'$as_ac_var'}'` = yes; then
13475 cat >>confdefs.h <<_ACEOF
13476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 _ACEOF
13480 done
13483 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13484 # loading of modules.
13486 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13487 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13488 if test -z "$DYNLOADFILE"
13489 then
13490 case $ac_sys_system/$ac_sys_release in
13491 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13492 if test "$ac_cv_func_dlopen" = yes
13493 then DYNLOADFILE="dynload_shlib.o"
13494 else DYNLOADFILE="dynload_aix.o"
13497 BeOS*) DYNLOADFILE="dynload_beos.o";;
13498 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13499 Darwin/*) DYNLOADFILE="dynload_next.o";;
13500 atheos*) DYNLOADFILE="dynload_atheos.o";;
13502 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13503 # out any dynamic loading
13504 if test "$ac_cv_func_dlopen" = yes
13505 then DYNLOADFILE="dynload_shlib.o"
13506 else DYNLOADFILE="dynload_stub.o"
13509 esac
13511 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13512 echo "${ECHO_T}$DYNLOADFILE" >&6
13513 if test "$DYNLOADFILE" != "dynload_stub.o"
13514 then
13516 cat >>confdefs.h <<\_ACEOF
13517 #define HAVE_DYNAMIC_LOADING 1
13518 _ACEOF
13522 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13525 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13526 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13527 if test -z "$MACHDEP_OBJS"
13528 then
13529 MACHDEP_OBJS=$extra_machdep_objs
13530 else
13531 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
13533 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13534 echo "${ECHO_T}MACHDEP_OBJS" >&6
13536 # checks for library functions
13611 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
13612 execv fork fpathconf ftime ftruncate \
13613 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13614 getpriority getpwent getspnam getspent getsid getwd \
13615 kill killpg lchown lstat mkfifo mknod mktime \
13616 mremap nice pathconf pause plock poll pthread_init \
13617 putenv readlink realpath \
13618 select setegid seteuid setgid \
13619 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13620 sigaction siginterrupt sigrelse strftime \
13621 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
13622 truncate uname unsetenv utimes waitpid wcscoll _getpty
13624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13625 echo "$as_me:$LINENO: checking for $ac_func" >&5
13626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_var+set}\" = set"; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13638 #define $ac_func innocuous_$ac_func
13640 /* System header to define __stub macros and hopefully few prototypes,
13641 which can conflict with char $ac_func (); below.
13642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13643 <limits.h> exists even on freestanding compilers. */
13645 #ifdef __STDC__
13646 # include <limits.h>
13647 #else
13648 # include <assert.h>
13649 #endif
13651 #undef $ac_func
13653 /* Override any gcc2 internal prototype to avoid an error. */
13654 #ifdef __cplusplus
13655 extern "C"
13657 #endif
13658 /* We use char because int might match the return type of a gcc2
13659 builtin and then its argument prototype would still apply. */
13660 char $ac_func ();
13661 /* The GNU C library defines this for functions which it implements
13662 to always fail with ENOSYS. Some functions are actually named
13663 something starting with __ and the normal name is an alias. */
13664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13665 choke me
13666 #else
13667 char (*f) () = $ac_func;
13668 #endif
13669 #ifdef __cplusplus
13671 #endif
13674 main ()
13676 return f != $ac_func;
13678 return 0;
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 eval "$as_ac_var=yes"
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 eval "$as_ac_var=no"
13710 rm -f conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13715 if test `eval echo '${'$as_ac_var'}'` = yes; then
13716 cat >>confdefs.h <<_ACEOF
13717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13718 _ACEOF
13721 done
13724 # For some functions, having a definition is not sufficient, since
13725 # we want to take their address.
13726 echo "$as_me:$LINENO: checking for chroot" >&5
13727 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h. */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 #include <unistd.h>
13736 main ()
13738 void *x=chroot
13740 return 0;
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745 (eval $ac_compile) 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag"
13753 || test ! -s conftest.err'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13766 cat >>confdefs.h <<\_ACEOF
13767 #define HAVE_CHROOT 1
13768 _ACEOF
13770 echo "$as_me:$LINENO: result: yes" >&5
13771 echo "${ECHO_T}yes" >&6
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 echo "$as_me:$LINENO: result: no" >&5
13777 echo "${ECHO_T}no" >&6
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13781 echo "$as_me:$LINENO: checking for link" >&5
13782 echo $ECHO_N "checking for link... $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <unistd.h>
13791 main ()
13793 void *x=link
13795 return 0;
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13821 cat >>confdefs.h <<\_ACEOF
13822 #define HAVE_LINK 1
13823 _ACEOF
13825 echo "$as_me:$LINENO: result: yes" >&5
13826 echo "${ECHO_T}yes" >&6
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 echo "$as_me:$LINENO: result: no" >&5
13832 echo "${ECHO_T}no" >&6
13835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me:$LINENO: checking for symlink" >&5
13837 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h. */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <unistd.h>
13846 main ()
13848 void *x=symlink
13850 return 0;
13852 _ACEOF
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_c_werror_flag"
13863 || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest.$ac_objext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_SYMLINK 1
13878 _ACEOF
13880 echo "$as_me:$LINENO: result: yes" >&5
13881 echo "${ECHO_T}yes" >&6
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13891 echo "$as_me:$LINENO: checking for fchdir" >&5
13892 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
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 #include <unistd.h>
13901 main ()
13903 void *x=fchdir
13905 return 0;
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>conftest.er1
13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag"
13918 || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13931 cat >>confdefs.h <<\_ACEOF
13932 #define HAVE_FCHDIR 1
13933 _ACEOF
13935 echo "$as_me:$LINENO: result: yes" >&5
13936 echo "${ECHO_T}yes" >&6
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6
13945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13946 echo "$as_me:$LINENO: checking for fsync" >&5
13947 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <unistd.h>
13956 main ()
13958 void *x=fsync
13960 return 0;
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965 (eval $ac_compile) 2>conftest.er1
13966 ac_status=$?
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -z "$ac_c_werror_flag"
13973 || test ! -s conftest.err'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; } &&
13979 { ac_try='test -s conftest.$ac_objext'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_FSYNC 1
13988 _ACEOF
13990 echo "$as_me:$LINENO: result: yes" >&5
13991 echo "${ECHO_T}yes" >&6
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14001 echo "$as_me:$LINENO: checking for fdatasync" >&5
14002 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <unistd.h>
14011 main ()
14013 void *x=fdatasync
14015 return 0;
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14041 cat >>confdefs.h <<\_ACEOF
14042 #define HAVE_FDATASYNC 1
14043 _ACEOF
14045 echo "$as_me:$LINENO: result: yes" >&5
14046 echo "${ECHO_T}yes" >&6
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 echo "$as_me:$LINENO: result: no" >&5
14052 echo "${ECHO_T}no" >&6
14055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 # On some systems (eg. FreeBSD 5), we would find a definition of the
14058 # functions ctermid_r, setgroups in the library, but no prototype
14059 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14060 # address to avoid compiler warnings and potential miscompilations
14061 # because of the missing prototypes.
14063 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14064 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 #include "confdefs.h"
14073 #include <stdio.h>
14076 main ()
14078 void* p = ctermid_r
14080 return 0;
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_CTERMID_R 1
14108 _ACEOF
14110 echo "$as_me:$LINENO: result: yes" >&5
14111 echo "${ECHO_T}yes" >&6
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122 echo "$as_me:$LINENO: checking for flock" >&5
14123 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14131 #include "confdefs.h"
14132 #include <sys/file.h>
14135 main ()
14137 void* p = flock
14139 return 0;
14141 _ACEOF
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_FLOCK 1
14167 _ACEOF
14169 echo "$as_me:$LINENO: result: yes" >&5
14170 echo "${ECHO_T}yes" >&6
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6
14179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14181 echo "$as_me:$LINENO: checking for getpagesize" >&5
14182 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 #include "confdefs.h"
14191 #include <unistd.h>
14194 main ()
14196 void* p = getpagesize
14198 return 0;
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_GETPAGESIZE 1
14226 _ACEOF
14228 echo "$as_me:$LINENO: result: yes" >&5
14229 echo "${ECHO_T}yes" >&6
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6
14238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240 for ac_prog in true
14242 # Extract the first word of "$ac_prog", so it can be a program name with args.
14243 set dummy $ac_prog; ac_word=$2
14244 echo "$as_me:$LINENO: checking for $ac_word" >&5
14245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14246 if test "${ac_cv_prog_TRUE+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249 if test -n "$TRUE"; then
14250 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_TRUE="$ac_prog"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14263 done
14264 done
14268 TRUE=$ac_cv_prog_TRUE
14269 if test -n "$TRUE"; then
14270 echo "$as_me:$LINENO: result: $TRUE" >&5
14271 echo "${ECHO_T}$TRUE" >&6
14272 else
14273 echo "$as_me:$LINENO: result: no" >&5
14274 echo "${ECHO_T}no" >&6
14277 test -n "$TRUE" && break
14278 done
14279 test -n "$TRUE" || TRUE="/bin/true"
14282 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14283 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14284 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lc $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302 char inet_aton ();
14304 main ()
14306 inet_aton ();
14308 return 0;
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
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); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_lib_c_inet_aton=yes
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_cv_lib_c_inet_aton=no
14340 rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14345 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14346 if test $ac_cv_lib_c_inet_aton = yes; then
14347 $ac_cv_prog_TRUE
14348 else
14350 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14351 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14352 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355 ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-lresolv $LIBS"
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14364 /* Override any gcc2 internal prototype to avoid an error. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370 char inet_aton ();
14372 main ()
14374 inet_aton ();
14376 return 0;
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -z "$ac_c_werror_flag"
14389 || test ! -s conftest.err'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_lib_resolv_inet_aton=yes
14402 else
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_cv_lib_resolv_inet_aton=no
14408 rm -f conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14412 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14413 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14414 if test $ac_cv_lib_resolv_inet_aton = yes; then
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_LIBRESOLV 1
14417 _ACEOF
14419 LIBS="-lresolv $LIBS"
14427 echo "$as_me:$LINENO: checking for hstrerror" >&5
14428 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 #include "confdefs.h"
14437 #include <netdb.h>
14440 main ()
14442 void* p = hstrerror; hstrerror(0)
14444 return 0;
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449 (eval $ac_link) 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag"
14457 || test ! -s conftest.err'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest$ac_exeext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14470 cat >>confdefs.h <<\_ACEOF
14471 #define HAVE_HSTRERROR 1
14472 _ACEOF
14474 echo "$as_me:$LINENO: result: yes" >&5
14475 echo "${ECHO_T}yes" >&6
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6
14484 rm -f conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14487 echo "$as_me:$LINENO: checking for inet_aton" >&5
14488 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 #include "confdefs.h"
14497 #include <sys/socket.h>
14498 #include <netinet/in.h>
14499 #include <arpa/inet.h>
14502 main ()
14504 void* p = inet_aton;inet_aton(0,0)
14506 return 0;
14508 _ACEOF
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511 (eval $ac_link) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_INET_ATON 1
14534 _ACEOF
14536 echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 echo "$as_me:$LINENO: result: no" >&5
14543 echo "${ECHO_T}no" >&6
14546 rm -f conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14549 echo "$as_me:$LINENO: checking for inet_pton" >&5
14550 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 #include "confdefs.h"
14559 #include <sys/types.h>
14560 #include <sys/socket.h>
14561 #include <netinet/in.h>
14562 #include <arpa/inet.h>
14565 main ()
14567 void* p = inet_pton
14569 return 0;
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14595 cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_INET_PTON 1
14597 _ACEOF
14599 echo "$as_me:$LINENO: result: yes" >&5
14600 echo "${ECHO_T}yes" >&6
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611 # On some systems, setgroups is in unistd.h, on others, in grp.h
14612 echo "$as_me:$LINENO: checking for setgroups" >&5
14613 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 #include "confdefs.h"
14622 #include <unistd.h>
14623 #ifdef HAVE_GRP_H
14624 #include <grp.h>
14625 #endif
14628 main ()
14630 void* p = setgroups
14632 return 0;
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_SETGROUPS 1
14660 _ACEOF
14662 echo "$as_me:$LINENO: result: yes" >&5
14663 echo "${ECHO_T}yes" >&6
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674 # check for openpty and forkpty
14677 for ac_func in openpty
14679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14680 echo "$as_me:$LINENO: checking for $ac_func" >&5
14681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14682 if eval "test \"\${$as_ac_var+set}\" = set"; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14693 #define $ac_func innocuous_$ac_func
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char $ac_func (); below.
14697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14698 <limits.h> exists even on freestanding compilers. */
14700 #ifdef __STDC__
14701 # include <limits.h>
14702 #else
14703 # include <assert.h>
14704 #endif
14706 #undef $ac_func
14708 /* Override any gcc2 internal prototype to avoid an error. */
14709 #ifdef __cplusplus
14710 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14715 char $ac_func ();
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14720 choke me
14721 #else
14722 char (*f) () = $ac_func;
14723 #endif
14724 #ifdef __cplusplus
14726 #endif
14729 main ()
14731 return f != $ac_func;
14733 return 0;
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>conftest.er1
14739 ac_status=$?
14740 grep -v '^ *+' conftest.er1 >conftest.err
14741 rm -f conftest.er1
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -z "$ac_c_werror_flag"
14746 || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest$ac_exeext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 eval "$as_ac_var=yes"
14759 else
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 eval "$as_ac_var=no"
14765 rm -f conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14773 _ACEOF
14775 else
14776 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14777 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14778 if test "${ac_cv_lib_util_openpty+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781 ac_check_lib_save_LIBS=$LIBS
14782 LIBS="-lutil $LIBS"
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14790 /* Override any gcc2 internal prototype to avoid an error. */
14791 #ifdef __cplusplus
14792 extern "C"
14793 #endif
14794 /* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14796 char openpty ();
14798 main ()
14800 openpty ();
14802 return 0;
14804 _ACEOF
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_lib_util_openpty=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_util_openpty=no
14834 rm -f conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS=$ac_check_lib_save_LIBS
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14839 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14840 if test $ac_cv_lib_util_openpty = yes; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_OPENPTY 1
14843 _ACEOF
14844 LIBS="$LIBS -lutil"
14845 else
14846 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
14847 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
14848 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 ac_check_lib_save_LIBS=$LIBS
14852 LIBS="-lbsd $LIBS"
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14860 /* Override any gcc2 internal prototype to avoid an error. */
14861 #ifdef __cplusplus
14862 extern "C"
14863 #endif
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866 char openpty ();
14868 main ()
14870 openpty ();
14872 return 0;
14874 _ACEOF
14875 rm -f conftest.$ac_objext conftest$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag"
14885 || test ! -s conftest.err'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest$ac_exeext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_lib_bsd_openpty=yes
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_cv_lib_bsd_openpty=no
14904 rm -f conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LIBS=$ac_check_lib_save_LIBS
14908 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
14909 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
14910 if test $ac_cv_lib_bsd_openpty = yes; then
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_OPENPTY 1
14913 _ACEOF
14914 LIBS="$LIBS -lbsd"
14922 done
14925 for ac_func in forkpty
14927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14928 echo "$as_me:$LINENO: checking for $ac_func" >&5
14929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14930 if eval "test \"\${$as_ac_var+set}\" = set"; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14941 #define $ac_func innocuous_$ac_func
14943 /* System header to define __stub macros and hopefully few prototypes,
14944 which can conflict with char $ac_func (); below.
14945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14946 <limits.h> exists even on freestanding compilers. */
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14954 #undef $ac_func
14956 /* Override any gcc2 internal prototype to avoid an error. */
14957 #ifdef __cplusplus
14958 extern "C"
14960 #endif
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14963 char $ac_func ();
14964 /* The GNU C library defines this for functions which it implements
14965 to always fail with ENOSYS. Some functions are actually named
14966 something starting with __ and the normal name is an alias. */
14967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14968 choke me
14969 #else
14970 char (*f) () = $ac_func;
14971 #endif
14972 #ifdef __cplusplus
14974 #endif
14977 main ()
14979 return f != $ac_func;
14981 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 eval "$as_ac_var=yes"
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 eval "$as_ac_var=no"
15013 rm -f conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15018 if test `eval echo '${'$as_ac_var'}'` = yes; then
15019 cat >>confdefs.h <<_ACEOF
15020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15021 _ACEOF
15023 else
15024 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15025 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15026 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 ac_check_lib_save_LIBS=$LIBS
15030 LIBS="-lutil $LIBS"
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15038 /* Override any gcc2 internal prototype to avoid an error. */
15039 #ifdef __cplusplus
15040 extern "C"
15041 #endif
15042 /* We use char because int might match the return type of a gcc2
15043 builtin and then its argument prototype would still apply. */
15044 char forkpty ();
15046 main ()
15048 forkpty ();
15050 return 0;
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055 (eval $ac_link) 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -z "$ac_c_werror_flag"
15063 || test ! -s conftest.err'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest$ac_exeext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_cv_lib_util_forkpty=yes
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_cv_lib_util_forkpty=no
15082 rm -f conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
15084 LIBS=$ac_check_lib_save_LIBS
15086 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15087 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15088 if test $ac_cv_lib_util_forkpty = yes; then
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_FORKPTY 1
15091 _ACEOF
15092 LIBS="$LIBS -lutil"
15093 else
15094 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15095 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15096 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 ac_check_lib_save_LIBS=$LIBS
15100 LIBS="-lbsd $LIBS"
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any gcc2 internal prototype to avoid an error. */
15109 #ifdef __cplusplus
15110 extern "C"
15111 #endif
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char forkpty ();
15116 main ()
15118 forkpty ();
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_lib_bsd_forkpty=yes
15146 else
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_bsd_forkpty=no
15152 rm -f conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15156 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15157 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15158 if test $ac_cv_lib_bsd_forkpty = yes; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_FORKPTY 1
15161 _ACEOF
15162 LIBS="$LIBS -lbsd"
15170 done
15173 # check for long file support functions
15180 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15196 #define $ac_func innocuous_$ac_func
15198 /* System header to define __stub macros and hopefully few prototypes,
15199 which can conflict with char $ac_func (); below.
15200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15201 <limits.h> exists even on freestanding compilers. */
15203 #ifdef __STDC__
15204 # include <limits.h>
15205 #else
15206 # include <assert.h>
15207 #endif
15209 #undef $ac_func
15211 /* Override any gcc2 internal prototype to avoid an error. */
15212 #ifdef __cplusplus
15213 extern "C"
15215 #endif
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char $ac_func ();
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15223 choke me
15224 #else
15225 char (*f) () = $ac_func;
15226 #endif
15227 #ifdef __cplusplus
15229 #endif
15232 main ()
15234 return f != $ac_func;
15236 return 0;
15238 _ACEOF
15239 rm -f conftest.$ac_objext conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 eval "$as_ac_var=yes"
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15266 eval "$as_ac_var=no"
15268 rm -f conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 _ACEOF
15279 done
15287 for ac_func in dup2 getcwd strdup strerror memmove
15289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15290 echo "$as_me:$LINENO: checking for $ac_func" >&5
15291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_var+set}\" = set"; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h. */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15303 #define $ac_func innocuous_$ac_func
15305 /* System header to define __stub macros and hopefully few prototypes,
15306 which can conflict with char $ac_func (); below.
15307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15308 <limits.h> exists even on freestanding compilers. */
15310 #ifdef __STDC__
15311 # include <limits.h>
15312 #else
15313 # include <assert.h>
15314 #endif
15316 #undef $ac_func
15318 /* Override any gcc2 internal prototype to avoid an error. */
15319 #ifdef __cplusplus
15320 extern "C"
15322 #endif
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char $ac_func ();
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 choke me
15331 #else
15332 char (*f) () = $ac_func;
15333 #endif
15334 #ifdef __cplusplus
15336 #endif
15339 main ()
15341 return f != $ac_func;
15343 return 0;
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest$ac_exeext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 eval "$as_ac_var=yes"
15369 else
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 eval "$as_ac_var=no"
15375 rm -f conftest.err conftest.$ac_objext \
15376 conftest$ac_exeext conftest.$ac_ext
15378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15380 if test `eval echo '${'$as_ac_var'}'` = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15383 _ACEOF
15385 else
15386 case $LIBOBJS in
15387 "$ac_func.$ac_objext" | \
15388 *" $ac_func.$ac_objext" | \
15389 "$ac_func.$ac_objext "* | \
15390 *" $ac_func.$ac_objext "* ) ;;
15391 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15392 esac
15395 done
15399 for ac_func in getpgrp
15401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15402 echo "$as_me:$LINENO: checking for $ac_func" >&5
15403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_var+set}\" = set"; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15415 #define $ac_func innocuous_$ac_func
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char $ac_func (); below.
15419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420 <limits.h> exists even on freestanding compilers. */
15422 #ifdef __STDC__
15423 # include <limits.h>
15424 #else
15425 # include <assert.h>
15426 #endif
15428 #undef $ac_func
15430 /* Override any gcc2 internal prototype to avoid an error. */
15431 #ifdef __cplusplus
15432 extern "C"
15434 #endif
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15437 char $ac_func ();
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15442 choke me
15443 #else
15444 char (*f) () = $ac_func;
15445 #endif
15446 #ifdef __cplusplus
15448 #endif
15451 main ()
15453 return f != $ac_func;
15455 return 0;
15457 _ACEOF
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>conftest.er1
15461 ac_status=$?
15462 grep -v '^ *+' conftest.er1 >conftest.err
15463 rm -f conftest.er1
15464 cat conftest.err >&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try='test -z "$ac_c_werror_flag"
15468 || test ! -s conftest.err'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 eval "$as_ac_var=yes"
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 eval "$as_ac_var=no"
15487 rm -f conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15492 if test `eval echo '${'$as_ac_var'}'` = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15495 _ACEOF
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <unistd.h>
15504 main ()
15506 getpgrp(0);
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define GETPGRP_HAVE_ARG 1
15536 _ACEOF
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15547 done
15550 for ac_func in setpgrp
15552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15553 echo "$as_me:$LINENO: checking for $ac_func" >&5
15554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15555 if eval "test \"\${$as_ac_var+set}\" = set"; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15566 #define $ac_func innocuous_$ac_func
15568 /* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func (); below.
15570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15571 <limits.h> exists even on freestanding compilers. */
15573 #ifdef __STDC__
15574 # include <limits.h>
15575 #else
15576 # include <assert.h>
15577 #endif
15579 #undef $ac_func
15581 /* Override any gcc2 internal prototype to avoid an error. */
15582 #ifdef __cplusplus
15583 extern "C"
15585 #endif
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15588 char $ac_func ();
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15593 choke me
15594 #else
15595 char (*f) () = $ac_func;
15596 #endif
15597 #ifdef __cplusplus
15599 #endif
15602 main ()
15604 return f != $ac_func;
15606 return 0;
15608 _ACEOF
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611 (eval $ac_link) 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest$ac_exeext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 eval "$as_ac_var=yes"
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 eval "$as_ac_var=no"
15638 rm -f conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15643 if test `eval echo '${'$as_ac_var'}'` = yes; then
15644 cat >>confdefs.h <<_ACEOF
15645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15646 _ACEOF
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <unistd.h>
15655 main ()
15657 setpgrp(0,0);
15659 return 0;
15661 _ACEOF
15662 rm -f conftest.$ac_objext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664 (eval $ac_compile) 2>conftest.er1
15665 ac_status=$?
15666 grep -v '^ *+' conftest.er1 >conftest.err
15667 rm -f conftest.er1
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -z "$ac_c_werror_flag"
15672 || test ! -s conftest.err'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try='test -s conftest.$ac_objext'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; }; then
15685 cat >>confdefs.h <<\_ACEOF
15686 #define SETPGRP_HAVE_ARG 1
15687 _ACEOF
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15698 done
15701 for ac_func in gettimeofday
15703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15704 echo "$as_me:$LINENO: checking for $ac_func" >&5
15705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15706 if eval "test \"\${$as_ac_var+set}\" = set"; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h. */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15717 #define $ac_func innocuous_$ac_func
15719 /* System header to define __stub macros and hopefully few prototypes,
15720 which can conflict with char $ac_func (); below.
15721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15722 <limits.h> exists even on freestanding compilers. */
15724 #ifdef __STDC__
15725 # include <limits.h>
15726 #else
15727 # include <assert.h>
15728 #endif
15730 #undef $ac_func
15732 /* Override any gcc2 internal prototype to avoid an error. */
15733 #ifdef __cplusplus
15734 extern "C"
15736 #endif
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char $ac_func ();
15740 /* The GNU C library defines this for functions which it implements
15741 to always fail with ENOSYS. Some functions are actually named
15742 something starting with __ and the normal name is an alias. */
15743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15744 choke me
15745 #else
15746 char (*f) () = $ac_func;
15747 #endif
15748 #ifdef __cplusplus
15750 #endif
15753 main ()
15755 return f != $ac_func;
15757 return 0;
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762 (eval $ac_link) 2>conftest.er1
15763 ac_status=$?
15764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try='test -z "$ac_c_werror_flag"
15770 || test ! -s conftest.err'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest$ac_exeext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 eval "$as_ac_var=yes"
15783 else
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 eval "$as_ac_var=no"
15789 rm -f conftest.err conftest.$ac_objext \
15790 conftest$ac_exeext conftest.$ac_ext
15792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15794 if test `eval echo '${'$as_ac_var'}'` = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15797 _ACEOF
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 #include <sys/time.h>
15806 main ()
15808 gettimeofday((struct timeval*)0,(struct timezone*)0);
15810 return 0;
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815 (eval $ac_compile) 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag"
15823 || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15841 cat >>confdefs.h <<\_ACEOF
15842 #define GETTIMEOFDAY_NO_TZ 1
15843 _ACEOF
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15850 done
15853 echo "$as_me:$LINENO: checking for major" >&5
15854 echo $ECHO_N "checking for major... $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h. */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15862 #if defined(MAJOR_IN_MKDEV)
15863 #include <sys/mkdev.h>
15864 #elif defined(MAJOR_IN_SYSMACROS)
15865 #include <sys/sysmacros.h>
15866 #else
15867 #include <sys/types.h>
15868 #endif
15871 main ()
15874 makedev(major(0),minor(0));
15877 return 0;
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882 (eval $ac_link) 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15904 cat >>confdefs.h <<\_ACEOF
15905 #define HAVE_DEVICE_MACROS 1
15906 _ACEOF
15908 echo "$as_me:$LINENO: result: yes" >&5
15909 echo "${ECHO_T}yes" >&6
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15916 echo "$as_me:$LINENO: result: no" >&5
15917 echo "${ECHO_T}no" >&6
15920 rm -f conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15923 # On OSF/1 V5.1, getaddrinfo is available, but a define
15924 # for [no]getaddrinfo in netdb.h.
15925 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15926 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 #include <sys/types.h>
15935 #include <sys/socket.h>
15936 #include <netdb.h>
15937 #include <stdio.h>
15940 main ()
15943 getaddrinfo(NULL, NULL, NULL, NULL);
15946 return 0;
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15972 echo "$as_me:$LINENO: result: yes" >&5
15973 echo "${ECHO_T}yes" >&6
15974 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15975 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15976 if test "$cross_compiling" = yes; then
15977 echo "$as_me:$LINENO: result: buggy" >&5
15978 echo "${ECHO_T}buggy" >&6
15979 buggygetaddrinfo=yes
15980 else
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h. */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15988 #include <sys/types.h>
15989 #include <netdb.h>
15990 #include <string.h>
15991 #include <sys/socket.h>
15992 #include <netinet/in.h>
15994 main()
15996 int passive, gaierr, inet4 = 0, inet6 = 0;
15997 struct addrinfo hints, *ai, *aitop;
15998 char straddr[INET6_ADDRSTRLEN], strport[16];
16000 for (passive = 0; passive <= 1; passive++) {
16001 memset(&hints, 0, sizeof(hints));
16002 hints.ai_family = AF_UNSPEC;
16003 hints.ai_flags = passive ? AI_PASSIVE : 0;
16004 hints.ai_socktype = SOCK_STREAM;
16005 hints.ai_protocol = IPPROTO_TCP;
16006 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16007 (void)gai_strerror(gaierr);
16008 goto bad;
16010 for (ai = aitop; ai; ai = ai->ai_next) {
16011 if (ai->ai_addr == NULL ||
16012 ai->ai_addrlen == 0 ||
16013 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16014 straddr, sizeof(straddr), strport, sizeof(strport),
16015 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16016 goto bad;
16018 switch (ai->ai_family) {
16019 case AF_INET:
16020 if (strcmp(strport, "54321") != 0) {
16021 goto bad;
16023 if (passive) {
16024 if (strcmp(straddr, "0.0.0.0") != 0) {
16025 goto bad;
16027 } else {
16028 if (strcmp(straddr, "127.0.0.1") != 0) {
16029 goto bad;
16032 inet4++;
16033 break;
16034 case AF_INET6:
16035 if (strcmp(strport, "54321") != 0) {
16036 goto bad;
16038 if (passive) {
16039 if (strcmp(straddr, "::") != 0) {
16040 goto bad;
16042 } else {
16043 if (strcmp(straddr, "::1") != 0) {
16044 goto bad;
16047 inet6++;
16048 break;
16049 case AF_UNSPEC:
16050 goto bad;
16051 break;
16052 default:
16053 /* another family support? */
16054 break;
16059 if (!(inet4 == 0 || inet4 == 2))
16060 goto bad;
16061 if (!(inet6 == 0 || inet6 == 2))
16062 goto bad;
16064 if (aitop)
16065 freeaddrinfo(aitop);
16066 exit(0);
16068 bad:
16069 if (aitop)
16070 freeaddrinfo(aitop);
16071 exit(1);
16074 _ACEOF
16075 rm -f conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 echo "$as_me:$LINENO: result: good" >&5
16087 echo "${ECHO_T}good" >&6
16088 buggygetaddrinfo=no
16089 else
16090 echo "$as_me: program exited with status $ac_status" >&5
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ( exit $ac_status )
16095 echo "$as_me:$LINENO: result: buggy" >&5
16096 echo "${ECHO_T}buggy" >&6
16097 buggygetaddrinfo=yes
16099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16106 echo "$as_me:$LINENO: result: no" >&5
16107 echo "${ECHO_T}no" >&6
16108 buggygetaddrinfo=yes
16111 rm -f conftest.err conftest.$ac_objext \
16112 conftest$ac_exeext conftest.$ac_ext
16114 if test "$buggygetaddrinfo" = "yes"; then
16115 if test "$ipv6" = "yes"; then
16116 echo 'Fatal: You must get working getaddrinfo() function.'
16117 echo ' or you can specify "--disable-ipv6"'.
16118 exit 1
16120 else
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_GETADDRINFO 1
16124 _ACEOF
16128 for ac_func in getnameinfo
16130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16131 echo "$as_me:$LINENO: checking for $ac_func" >&5
16132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16133 if eval "test \"\${$as_ac_var+set}\" = set"; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 else
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16144 #define $ac_func innocuous_$ac_func
16146 /* System header to define __stub macros and hopefully few prototypes,
16147 which can conflict with char $ac_func (); below.
16148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16149 <limits.h> exists even on freestanding compilers. */
16151 #ifdef __STDC__
16152 # include <limits.h>
16153 #else
16154 # include <assert.h>
16155 #endif
16157 #undef $ac_func
16159 /* Override any gcc2 internal prototype to avoid an error. */
16160 #ifdef __cplusplus
16161 extern "C"
16163 #endif
16164 /* We use char because int might match the return type of a gcc2
16165 builtin and then its argument prototype would still apply. */
16166 char $ac_func ();
16167 /* The GNU C library defines this for functions which it implements
16168 to always fail with ENOSYS. Some functions are actually named
16169 something starting with __ and the normal name is an alias. */
16170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16171 choke me
16172 #else
16173 char (*f) () = $ac_func;
16174 #endif
16175 #ifdef __cplusplus
16177 #endif
16180 main ()
16182 return f != $ac_func;
16184 return 0;
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 eval "$as_ac_var=yes"
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 eval "$as_ac_var=no"
16216 rm -f conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16224 _ACEOF
16227 done
16230 # checks for structures
16231 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16232 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16233 if test "${ac_cv_header_time+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h. */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 #include <sys/types.h>
16243 #include <sys/time.h>
16244 #include <time.h>
16247 main ()
16249 if ((struct tm *) 0)
16250 return 0;
16252 return 0;
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_header_time=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_cv_header_time=no
16284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16286 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16287 echo "${ECHO_T}$ac_cv_header_time" >&6
16288 if test $ac_cv_header_time = yes; then
16290 cat >>confdefs.h <<\_ACEOF
16291 #define TIME_WITH_SYS_TIME 1
16292 _ACEOF
16296 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16297 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16298 if test "${ac_cv_struct_tm+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <sys/types.h>
16308 #include <time.h>
16311 main ()
16313 struct tm *tp; tp->tm_sec;
16315 return 0;
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_struct_tm=time.h
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 ac_cv_struct_tm=sys/time.h
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16349 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16350 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16351 if test $ac_cv_struct_tm = sys/time.h; then
16353 cat >>confdefs.h <<\_ACEOF
16354 #define TM_IN_SYS_TIME 1
16355 _ACEOF
16359 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16360 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16361 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h. */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <sys/types.h>
16371 #include <$ac_cv_struct_tm>
16375 main ()
16377 static struct tm ac_aggr;
16378 if (ac_aggr.tm_zone)
16379 return 0;
16381 return 0;
16383 _ACEOF
16384 rm -f conftest.$ac_objext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16386 (eval $ac_compile) 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -z "$ac_c_werror_flag"
16394 || test ! -s conftest.err'
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_cv_member_struct_tm_tm_zone=yes
16407 else
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 cat >conftest.$ac_ext <<_ACEOF
16412 /* confdefs.h. */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <sys/types.h>
16418 #include <$ac_cv_struct_tm>
16422 main ()
16424 static struct tm ac_aggr;
16425 if (sizeof ac_aggr.tm_zone)
16426 return 0;
16428 return 0;
16430 _ACEOF
16431 rm -f conftest.$ac_objext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16433 (eval $ac_compile) 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag"
16441 || test ! -s conftest.err'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_member_struct_tm_tm_zone=yes
16454 else
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_cv_member_struct_tm_tm_zone=no
16460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16465 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16466 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16468 cat >>confdefs.h <<_ACEOF
16469 #define HAVE_STRUCT_TM_TM_ZONE 1
16470 _ACEOF
16475 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16477 cat >>confdefs.h <<\_ACEOF
16478 #define HAVE_TM_ZONE 1
16479 _ACEOF
16481 else
16482 echo "$as_me:$LINENO: checking for tzname" >&5
16483 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16484 if test "${ac_cv_var_tzname+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 #include <time.h>
16494 #ifndef tzname /* For SGI. */
16495 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16496 #endif
16499 main ()
16501 atoi(*tzname);
16503 return 0;
16505 _ACEOF
16506 rm -f conftest.$ac_objext conftest$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_var_tzname=yes
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_var_tzname=no
16535 rm -f conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16538 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16539 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16540 if test $ac_cv_var_tzname = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define HAVE_TZNAME 1
16544 _ACEOF
16549 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16550 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16551 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h. */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16562 main ()
16564 static struct stat ac_aggr;
16565 if (ac_aggr.st_rdev)
16566 return 0;
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_member_struct_stat_st_rdev=yes
16594 else
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h. */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 $ac_includes_default
16606 main ()
16608 static struct stat ac_aggr;
16609 if (sizeof ac_aggr.st_rdev)
16610 return 0;
16612 return 0;
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag"
16625 || test ! -s conftest.err'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 ac_cv_member_struct_stat_st_rdev=yes
16638 else
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 ac_cv_member_struct_stat_st_rdev=no
16644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16648 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16652 cat >>confdefs.h <<_ACEOF
16653 #define HAVE_STRUCT_STAT_ST_RDEV 1
16654 _ACEOF
16659 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16660 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16661 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16672 main ()
16674 static struct stat ac_aggr;
16675 if (ac_aggr.st_blksize)
16676 return 0;
16678 return 0;
16680 _ACEOF
16681 rm -f conftest.$ac_objext
16682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16683 (eval $ac_compile) 2>conftest.er1
16684 ac_status=$?
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } &&
16690 { ac_try='test -z "$ac_c_werror_flag"
16691 || test ! -s conftest.err'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_member_struct_stat_st_blksize=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 $ac_includes_default
16716 main ()
16718 static struct stat ac_aggr;
16719 if (sizeof ac_aggr.st_blksize)
16720 return 0;
16722 return 0;
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest.$ac_objext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_member_struct_stat_st_blksize=yes
16748 else
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_member_struct_stat_st_blksize=no
16754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16759 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16760 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16762 cat >>confdefs.h <<_ACEOF
16763 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16764 _ACEOF
16769 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16770 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16771 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16782 main ()
16784 static struct stat ac_aggr;
16785 if (ac_aggr.st_flags)
16786 return 0;
16788 return 0;
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
16800 { ac_try='test -z "$ac_c_werror_flag"
16801 || test ! -s conftest.err'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest.$ac_objext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_member_struct_stat_st_flags=yes
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h. */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 $ac_includes_default
16826 main ()
16828 static struct stat ac_aggr;
16829 if (sizeof ac_aggr.st_flags)
16830 return 0;
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_member_struct_stat_st_flags=yes
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 ac_cv_member_struct_stat_st_flags=no
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16868 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16869 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16870 if test $ac_cv_member_struct_stat_st_flags = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16874 _ACEOF
16879 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16880 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16881 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 $ac_includes_default
16892 main ()
16894 static struct stat ac_aggr;
16895 if (ac_aggr.st_gen)
16896 return 0;
16898 return 0;
16900 _ACEOF
16901 rm -f conftest.$ac_objext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_member_struct_stat_st_gen=yes
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 $ac_includes_default
16936 main ()
16938 static struct stat ac_aggr;
16939 if (sizeof ac_aggr.st_gen)
16940 return 0;
16942 return 0;
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -z "$ac_c_werror_flag"
16955 || test ! -s conftest.err'
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); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_cv_member_struct_stat_st_gen=yes
16968 else
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_cv_member_struct_stat_st_gen=no
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16979 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16980 if test $ac_cv_member_struct_stat_st_gen = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STRUCT_STAT_ST_GEN 1
16984 _ACEOF
16989 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16990 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17002 main ()
17004 static struct stat ac_aggr;
17005 if (ac_aggr.st_birthtime)
17006 return 0;
17008 return 0;
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest.$ac_objext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_member_struct_stat_st_birthtime=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 $ac_includes_default
17046 main ()
17048 static struct stat ac_aggr;
17049 if (sizeof ac_aggr.st_birthtime)
17050 return 0;
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057 (eval $ac_compile) 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_member_struct_stat_st_birthtime=yes
17078 else
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 ac_cv_member_struct_stat_st_birthtime=no
17084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17089 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17090 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17094 _ACEOF
17099 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17100 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17101 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104 cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h. */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 $ac_includes_default
17112 main ()
17114 static struct stat ac_aggr;
17115 if (ac_aggr.st_blocks)
17116 return 0;
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_member_struct_stat_st_blocks=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17156 main ()
17158 static struct stat ac_aggr;
17159 if (sizeof ac_aggr.st_blocks)
17160 return 0;
17162 return 0;
17164 _ACEOF
17165 rm -f conftest.$ac_objext
17166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17167 (eval $ac_compile) 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag"
17175 || test ! -s conftest.err'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest.$ac_objext'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_member_struct_stat_st_blocks=yes
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_cv_member_struct_stat_st_blocks=no
17194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17200 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17204 _ACEOF
17207 cat >>confdefs.h <<\_ACEOF
17208 #define HAVE_ST_BLOCKS 1
17209 _ACEOF
17211 else
17212 case $LIBOBJS in
17213 "fileblocks.$ac_objext" | \
17214 *" fileblocks.$ac_objext" | \
17215 "fileblocks.$ac_objext "* | \
17216 *" fileblocks.$ac_objext "* ) ;;
17217 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17218 esac
17224 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17225 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17226 if test "${ac_cv_header_time_altzone+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <time.h>
17237 main ()
17239 return altzone;
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag"
17254 || test ! -s conftest.err'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_header_time_altzone=yes
17267 else
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_header_time_altzone=no
17273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17277 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17278 if test $ac_cv_header_time_altzone = yes; then
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_ALTZONE 1
17282 _ACEOF
17286 was_it_defined=no
17287 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17288 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17296 #include <sys/types.h>
17297 #include <sys/select.h>
17298 #include <sys/time.h>
17301 main ()
17305 return 0;
17307 _ACEOF
17308 rm -f conftest.$ac_objext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310 (eval $ac_compile) 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest.$ac_objext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17332 cat >>confdefs.h <<\_ACEOF
17333 #define SYS_SELECT_WITH_SYS_TIME 1
17334 _ACEOF
17336 was_it_defined=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17345 echo "${ECHO_T}$was_it_defined" >&6
17347 echo "$as_me:$LINENO: checking for addrinfo" >&5
17348 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17349 if test "${ac_cv_struct_addrinfo+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h. */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 # include <netdb.h>
17361 main ()
17363 struct addrinfo a
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest.$ac_objext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_struct_addrinfo=yes
17391 else
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 ac_cv_struct_addrinfo=no
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17400 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17401 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17402 if test $ac_cv_struct_addrinfo = yes; then
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_ADDRINFO 1
17406 _ACEOF
17410 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17411 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17412 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 # include <sys/types.h>
17423 # include <sys/socket.h>
17425 main ()
17427 struct sockaddr_storage s
17429 return 0;
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_struct_sockaddr_storage=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_struct_sockaddr_storage=no
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17465 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17466 if test $ac_cv_struct_sockaddr_storage = yes; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define HAVE_SOCKADDR_STORAGE 1
17470 _ACEOF
17474 # checks for compiler characteristics
17477 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17478 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17479 if test "${ac_cv_c_char_unsigned+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17490 main ()
17492 static int test_array [1 - 2 * !(((char) -1) < 0)];
17493 test_array [0] = 0
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_c_char_unsigned=no
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_c_char_unsigned=yes
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17531 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17532 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17533 cat >>confdefs.h <<\_ACEOF
17534 #define __CHAR_UNSIGNED__ 1
17535 _ACEOF
17539 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17540 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17541 if test "${ac_cv_c_const+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17552 main ()
17554 /* FIXME: Include the comments suggested by Paul. */
17555 #ifndef __cplusplus
17556 /* Ultrix mips cc rejects this. */
17557 typedef int charset[2];
17558 const charset x;
17559 /* SunOS 4.1.1 cc rejects this. */
17560 char const *const *ccp;
17561 char **p;
17562 /* NEC SVR4.0.2 mips cc rejects this. */
17563 struct point {int x, y;};
17564 static struct point const zero = {0,0};
17565 /* AIX XL C 1.02.0.0 rejects this.
17566 It does not let you subtract one const X* pointer from another in
17567 an arm of an if-expression whose if-part is not a constant
17568 expression */
17569 const char *g = "string";
17570 ccp = &g + (g ? g-g : 0);
17571 /* HPUX 7.0 cc rejects these. */
17572 ++ccp;
17573 p = (char**) ccp;
17574 ccp = (char const *const *) p;
17575 { /* SCO 3.2v4 cc rejects this. */
17576 char *t;
17577 char const *s = 0 ? (char *) 0 : (char const *) 0;
17579 *t++ = 0;
17581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17582 int x[] = {25, 17};
17583 const int *foo = &x[0];
17584 ++foo;
17586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17587 typedef const int *iptr;
17588 iptr p = 0;
17589 ++p;
17591 { /* AIX XL C 1.02.0.0 rejects this saying
17592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17593 struct s { int j; const int *ap[3]; };
17594 struct s *b; b->j = 5;
17596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17597 const int foo = 10;
17599 #endif
17602 return 0;
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 ac_cv_c_const=yes
17628 else
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 ac_cv_c_const=no
17634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17636 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17637 echo "${ECHO_T}$ac_cv_c_const" >&6
17638 if test $ac_cv_c_const = no; then
17640 cat >>confdefs.h <<\_ACEOF
17641 #define const
17642 _ACEOF
17647 works=no
17648 echo "$as_me:$LINENO: checking for working volatile" >&5
17649 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17658 main ()
17660 volatile int x; x = 0;
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667 (eval $ac_compile) 2>conftest.er1
17668 ac_status=$?
17669 grep -v '^ *+' conftest.er1 >conftest.err
17670 rm -f conftest.er1
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try='test -z "$ac_c_werror_flag"
17675 || test ! -s conftest.err'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 works=yes
17688 else
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17693 cat >>confdefs.h <<\_ACEOF
17694 #define volatile
17695 _ACEOF
17699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $works" >&5
17701 echo "${ECHO_T}$works" >&6
17703 works=no
17704 echo "$as_me:$LINENO: checking for working signed char" >&5
17705 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17714 main ()
17716 signed char c;
17718 return 0;
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>conftest.er1
17724 ac_status=$?
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
17730 { ac_try='test -z "$ac_c_werror_flag"
17731 || test ! -s conftest.err'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try='test -s conftest.$ac_objext'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 works=yes
17744 else
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17749 cat >>confdefs.h <<\_ACEOF
17750 #define signed
17751 _ACEOF
17755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17756 echo "$as_me:$LINENO: result: $works" >&5
17757 echo "${ECHO_T}$works" >&6
17759 have_prototypes=no
17760 echo "$as_me:$LINENO: checking for prototypes" >&5
17761 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 int foo(int x) { return 0; }
17770 main ()
17772 return foo(10);
17774 return 0;
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>conftest.er1
17780 ac_status=$?
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
17786 { ac_try='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest.$ac_objext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17801 cat >>confdefs.h <<\_ACEOF
17802 #define HAVE_PROTOTYPES 1
17803 _ACEOF
17805 have_prototypes=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17813 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17814 echo "${ECHO_T}$have_prototypes" >&6
17816 works=no
17817 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17818 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 #include <stdarg.h>
17827 int foo(int x, ...) {
17828 va_list va;
17829 va_start(va, x);
17830 va_arg(va, int);
17831 va_arg(va, char *);
17832 va_arg(va, double);
17833 return 0;
17837 main ()
17839 return foo(10, "", 3.14);
17841 return 0;
17843 _ACEOF
17844 rm -f conftest.$ac_objext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846 (eval $ac_compile) 2>conftest.er1
17847 ac_status=$?
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_STDARG_PROTOTYPES 1
17870 _ACEOF
17872 works=yes
17874 else
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17880 echo "$as_me:$LINENO: result: $works" >&5
17881 echo "${ECHO_T}$works" >&6
17883 # check for socketpair
17884 echo "$as_me:$LINENO: checking for socketpair" >&5
17885 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17893 #include <sys/types.h>
17894 #include <sys/socket.h>
17897 main ()
17899 void *x=socketpair
17901 return 0;
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17906 (eval $ac_compile) 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest.$ac_objext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17927 cat >>confdefs.h <<\_ACEOF
17928 #define HAVE_SOCKETPAIR 1
17929 _ACEOF
17931 echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 echo "$as_me:$LINENO: result: no" >&5
17938 echo "${ECHO_T}no" >&6
17941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 # check if sockaddr has sa_len member
17944 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17945 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 #include <sys/types.h>
17953 #include <sys/socket.h>
17955 main ()
17957 struct sockaddr x;
17958 x.sa_len = 0;
17960 return 0;
17962 _ACEOF
17963 rm -f conftest.$ac_objext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 echo "$as_me:$LINENO: result: yes" >&5
17986 echo "${ECHO_T}yes" >&6
17988 cat >>confdefs.h <<\_ACEOF
17989 #define HAVE_SOCKADDR_SA_LEN 1
17990 _ACEOF
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 echo "$as_me:$LINENO: result: no" >&5
17997 echo "${ECHO_T}no" >&6
17999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18001 va_list_is_array=no
18002 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18003 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 #ifdef HAVE_STDARG_PROTOTYPES
18012 #include <stdarg.h>
18013 #else
18014 #include <varargs.h>
18015 #endif
18018 main ()
18020 va_list list1, list2; list1 = list2;
18022 return 0;
18024 _ACEOF
18025 rm -f conftest.$ac_objext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18027 (eval $ac_compile) 2>conftest.er1
18028 ac_status=$?
18029 grep -v '^ *+' conftest.er1 >conftest.err
18030 rm -f conftest.er1
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag"
18035 || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest.$ac_objext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18048 else
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18054 cat >>confdefs.h <<\_ACEOF
18055 #define VA_LIST_IS_ARRAY 1
18056 _ACEOF
18058 va_list_is_array=yes
18061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18063 echo "${ECHO_T}$va_list_is_array" >&6
18065 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18069 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18070 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18071 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h. */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18082 #define gethostbyname_r innocuous_gethostbyname_r
18084 /* System header to define __stub macros and hopefully few prototypes,
18085 which can conflict with char gethostbyname_r (); below.
18086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18087 <limits.h> exists even on freestanding compilers. */
18089 #ifdef __STDC__
18090 # include <limits.h>
18091 #else
18092 # include <assert.h>
18093 #endif
18095 #undef gethostbyname_r
18097 /* Override any gcc2 internal prototype to avoid an error. */
18098 #ifdef __cplusplus
18099 extern "C"
18101 #endif
18102 /* We use char because int might match the return type of a gcc2
18103 builtin and then its argument prototype would still apply. */
18104 char gethostbyname_r ();
18105 /* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18109 choke me
18110 #else
18111 char (*f) () = gethostbyname_r;
18112 #endif
18113 #ifdef __cplusplus
18115 #endif
18118 main ()
18120 return f != gethostbyname_r;
18122 return 0;
18124 _ACEOF
18125 rm -f conftest.$ac_objext conftest$ac_exeext
18126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18127 (eval $ac_link) 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag"
18135 || test ! -s conftest.err'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest$ac_exeext'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_cv_func_gethostbyname_r=yes
18148 else
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 ac_cv_func_gethostbyname_r=no
18154 rm -f conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18157 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18158 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18159 if test $ac_cv_func_gethostbyname_r = yes; then
18161 cat >>confdefs.h <<\_ACEOF
18162 #define HAVE_GETHOSTBYNAME_R 1
18163 _ACEOF
18165 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18166 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18167 OLD_CFLAGS=$CFLAGS
18168 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18176 # include <netdb.h>
18179 main ()
18182 char *name;
18183 struct hostent *he, *res;
18184 char buffer[2048];
18185 int buflen = 2048;
18186 int h_errnop;
18188 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18191 return 0;
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE_GETHOSTBYNAME_R 1
18219 _ACEOF
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18224 _ACEOF
18226 echo "$as_me:$LINENO: result: yes" >&5
18227 echo "${ECHO_T}yes" >&6
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18234 echo "$as_me:$LINENO: result: no" >&5
18235 echo "${ECHO_T}no" >&6
18236 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18237 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18245 # include <netdb.h>
18248 main ()
18251 char *name;
18252 struct hostent *he;
18253 char buffer[2048];
18254 int buflen = 2048;
18255 int h_errnop;
18257 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18260 return 0;
18262 _ACEOF
18263 rm -f conftest.$ac_objext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try='test -z "$ac_c_werror_flag"
18273 || test ! -s conftest.err'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest.$ac_objext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE_GETHOSTBYNAME_R 1
18288 _ACEOF
18291 cat >>confdefs.h <<\_ACEOF
18292 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18293 _ACEOF
18295 echo "$as_me:$LINENO: result: yes" >&5
18296 echo "${ECHO_T}yes" >&6
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18303 echo "$as_me:$LINENO: result: no" >&5
18304 echo "${ECHO_T}no" >&6
18305 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18306 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h. */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 # include <netdb.h>
18317 main ()
18320 char *name;
18321 struct hostent *he;
18322 struct hostent_data data;
18324 (void) gethostbyname_r(name, he, &data);
18327 return 0;
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_GETHOSTBYNAME_R 1
18355 _ACEOF
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18360 _ACEOF
18362 echo "$as_me:$LINENO: result: yes" >&5
18363 echo "${ECHO_T}yes" >&6
18365 else
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18370 echo "$as_me:$LINENO: result: no" >&5
18371 echo "${ECHO_T}no" >&6
18374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18381 CFLAGS=$OLD_CFLAGS
18383 else
18386 for ac_func in gethostbyname
18388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 echo "$as_me:$LINENO: checking for $ac_func" >&5
18390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18391 if eval "test \"\${$as_ac_var+set}\" = set"; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
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. */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402 #define $ac_func innocuous_$ac_func
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18409 #ifdef __STDC__
18410 # include <limits.h>
18411 #else
18412 # include <assert.h>
18413 #endif
18415 #undef $ac_func
18417 /* Override any gcc2 internal prototype to avoid an error. */
18418 #ifdef __cplusplus
18419 extern "C"
18421 #endif
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18424 char $ac_func ();
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18429 choke me
18430 #else
18431 char (*f) () = $ac_func;
18432 #endif
18433 #ifdef __cplusplus
18435 #endif
18438 main ()
18440 return f != $ac_func;
18442 return 0;
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag"
18455 || test ! -s conftest.err'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 eval "$as_ac_var=yes"
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 eval "$as_ac_var=no"
18474 rm -f conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
18477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18479 if test `eval echo '${'$as_ac_var'}'` = yes; then
18480 cat >>confdefs.h <<_ACEOF
18481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18482 _ACEOF
18485 done
18496 # checks for system services
18497 # (none yet)
18499 # Linux requires this for correct f.p. operations
18500 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18501 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18502 if test "${ac_cv_func___fpu_control+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18513 #define __fpu_control innocuous___fpu_control
18515 /* System header to define __stub macros and hopefully few prototypes,
18516 which can conflict with char __fpu_control (); below.
18517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18518 <limits.h> exists even on freestanding compilers. */
18520 #ifdef __STDC__
18521 # include <limits.h>
18522 #else
18523 # include <assert.h>
18524 #endif
18526 #undef __fpu_control
18528 /* Override any gcc2 internal prototype to avoid an error. */
18529 #ifdef __cplusplus
18530 extern "C"
18532 #endif
18533 /* We use char because int might match the return type of a gcc2
18534 builtin and then its argument prototype would still apply. */
18535 char __fpu_control ();
18536 /* The GNU C library defines this for functions which it implements
18537 to always fail with ENOSYS. Some functions are actually named
18538 something starting with __ and the normal name is an alias. */
18539 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18540 choke me
18541 #else
18542 char (*f) () = __fpu_control;
18543 #endif
18544 #ifdef __cplusplus
18546 #endif
18549 main ()
18551 return f != __fpu_control;
18553 return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18558 (eval $ac_link) 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try='test -z "$ac_c_werror_flag"
18566 || test ! -s conftest.err'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_func___fpu_control=yes
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_cv_func___fpu_control=no
18585 rm -f conftest.err conftest.$ac_objext \
18586 conftest$ac_exeext conftest.$ac_ext
18588 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18589 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18590 if test $ac_cv_func___fpu_control = yes; then
18592 else
18594 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18595 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18596 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599 ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lieee $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18608 /* Override any gcc2 internal prototype to avoid an error. */
18609 #ifdef __cplusplus
18610 extern "C"
18611 #endif
18612 /* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
18614 char __fpu_control ();
18616 main ()
18618 __fpu_control ();
18620 return 0;
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_c_werror_flag"
18633 || test ! -s conftest.err'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_lib_ieee___fpu_control=yes
18646 else
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_lib_ieee___fpu_control=no
18652 rm -f conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18656 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18657 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18658 if test $ac_cv_lib_ieee___fpu_control = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define HAVE_LIBIEEE 1
18661 _ACEOF
18663 LIBS="-lieee $LIBS"
18671 # Check for --with-fpectl
18672 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18673 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18675 # Check whether --with-fpectl or --without-fpectl was given.
18676 if test "${with_fpectl+set}" = set; then
18677 withval="$with_fpectl"
18679 if test "$withval" != no
18680 then
18682 cat >>confdefs.h <<\_ACEOF
18683 #define WANT_SIGFPE_HANDLER 1
18684 _ACEOF
18686 echo "$as_me:$LINENO: result: yes" >&5
18687 echo "${ECHO_T}yes" >&6
18688 else echo "$as_me:$LINENO: result: no" >&5
18689 echo "${ECHO_T}no" >&6
18691 else
18692 echo "$as_me:$LINENO: result: no" >&5
18693 echo "${ECHO_T}no" >&6
18696 # check for --with-libm=...
18698 case $ac_sys_system in
18699 Darwin) ;;
18700 BeOS) ;;
18701 *) LIBM=-lm
18702 esac
18703 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18704 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18706 # Check whether --with-libm or --without-libm was given.
18707 if test "${with_libm+set}" = set; then
18708 withval="$with_libm"
18710 if test "$withval" = no
18711 then LIBM=
18712 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18713 echo "${ECHO_T}force LIBM empty" >&6
18714 elif test "$withval" != yes
18715 then LIBM=$withval
18716 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18717 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18718 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18719 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18720 { (exit 1); exit 1; }; }
18722 else
18723 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18724 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18727 # check for --with-libc=...
18729 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18730 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18732 # Check whether --with-libc or --without-libc was given.
18733 if test "${with_libc+set}" = set; then
18734 withval="$with_libc"
18736 if test "$withval" = no
18737 then LIBC=
18738 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18739 echo "${ECHO_T}force LIBC empty" >&6
18740 elif test "$withval" != yes
18741 then LIBC=$withval
18742 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18743 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18744 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18745 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18746 { (exit 1); exit 1; }; }
18748 else
18749 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18750 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18753 # check for hypot() in math library
18754 LIBS_SAVE=$LIBS
18755 LIBS="$LIBS $LIBM"
18757 for ac_func in hypot
18759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18762 if eval "test \"\${$as_ac_var+set}\" = set"; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18780 #ifdef __STDC__
18781 # include <limits.h>
18782 #else
18783 # include <assert.h>
18784 #endif
18786 #undef $ac_func
18788 /* Override any gcc2 internal prototype to avoid an error. */
18789 #ifdef __cplusplus
18790 extern "C"
18792 #endif
18793 /* We use char because int might match the return type of a gcc2
18794 builtin and then its argument prototype would still apply. */
18795 char $ac_func ();
18796 /* The GNU C library defines this for functions which it implements
18797 to always fail with ENOSYS. Some functions are actually named
18798 something starting with __ and the normal name is an alias. */
18799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18800 choke me
18801 #else
18802 char (*f) () = $ac_func;
18803 #endif
18804 #ifdef __cplusplus
18806 #endif
18809 main ()
18811 return f != $ac_func;
18813 return 0;
18815 _ACEOF
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818 (eval $ac_link) 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 eval "$as_ac_var=yes"
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 eval "$as_ac_var=no"
18845 rm -f conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18850 if test `eval echo '${'$as_ac_var'}'` = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18853 _ACEOF
18855 else
18856 case $LIBOBJS in
18857 "$ac_func.$ac_objext" | \
18858 *" $ac_func.$ac_objext" | \
18859 "$ac_func.$ac_objext "* | \
18860 *" $ac_func.$ac_objext "* ) ;;
18861 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18862 esac
18865 done
18868 LIBS=$LIBS_SAVE
18870 # check for wchar.h
18871 if test "${ac_cv_header_wchar_h+set}" = set; then
18872 echo "$as_me:$LINENO: checking for wchar.h" >&5
18873 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18874 if test "${ac_cv_header_wchar_h+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18878 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18879 else
18880 # Is the header compilable?
18881 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18882 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h. */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 $ac_includes_default
18890 #include <wchar.h>
18891 _ACEOF
18892 rm -f conftest.$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894 (eval $ac_compile) 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag"
18902 || test ! -s conftest.err'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_header_compiler=yes
18915 else
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_header_compiler=no
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18923 echo "${ECHO_T}$ac_header_compiler" >&6
18925 # Is the header present?
18926 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18927 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h. */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 #include <wchar.h>
18935 _ACEOF
18936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } >/dev/null; then
18944 if test -s conftest.err; then
18945 ac_cpp_err=$ac_c_preproc_warn_flag
18946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18947 else
18948 ac_cpp_err=
18950 else
18951 ac_cpp_err=yes
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ac_header_preproc=no
18961 rm -f conftest.err conftest.$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18967 yes:no: )
18968 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18971 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18972 ac_header_preproc=yes
18974 no:yes:* )
18975 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18976 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18978 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18980 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18982 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18984 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18986 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18988 cat <<\_ASBOX
18989 ## ------------------------------------------------ ##
18990 ## Report this to http://www.python.org/python-bugs ##
18991 ## ------------------------------------------------ ##
18992 _ASBOX
18994 sed "s/^/$as_me: WARNING: /" >&2
18996 esac
18997 echo "$as_me:$LINENO: checking for wchar.h" >&5
18998 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18999 if test "${ac_cv_header_wchar_h+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002 ac_cv_header_wchar_h=$ac_header_preproc
19004 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19008 if test $ac_cv_header_wchar_h = yes; then
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_WCHAR_H 1
19013 _ACEOF
19015 wchar_h="yes"
19017 else
19018 wchar_h="no"
19024 # determine wchar_t size
19025 if test "$wchar_h" = yes
19026 then
19027 echo "$as_me:$LINENO: checking for wchar_t" >&5
19028 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19029 if test "${ac_cv_type_wchar_t+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 #include <wchar.h>
19041 main ()
19043 if ((wchar_t *) 0)
19044 return 0;
19045 if (sizeof (wchar_t))
19046 return 0;
19048 return 0;
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_type_wchar_t=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_type_wchar_t=no
19080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19083 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19085 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19086 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19087 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090 if test "$ac_cv_type_wchar_t" = yes; then
19091 # The cast to unsigned long works around a bug in the HP C Compiler
19092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19094 # This bug is HP SR number 8606223364.
19095 if test "$cross_compiling" = yes; then
19096 # Depending upon the size, compute the lo and hi bounds.
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h. */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103 #include <wchar.h>
19106 main ()
19108 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19109 test_array [0] = 0
19112 return 0;
19114 _ACEOF
19115 rm -f conftest.$ac_objext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19117 (eval $ac_compile) 2>conftest.er1
19118 ac_status=$?
19119 grep -v '^ *+' conftest.er1 >conftest.err
19120 rm -f conftest.er1
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -z "$ac_c_werror_flag"
19125 || test ! -s conftest.err'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; } &&
19131 { ac_try='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_lo=0 ac_mid=0
19138 while :; do
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <wchar.h>
19148 main ()
19150 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19151 test_array [0] = 0
19154 return 0;
19156 _ACEOF
19157 rm -f conftest.$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_hi=$ac_mid; break
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_lo=`expr $ac_mid + 1`
19185 if test $ac_lo -le $ac_mid; then
19186 ac_lo= ac_hi=
19187 break
19189 ac_mid=`expr 2 '*' $ac_mid + 1`
19191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19192 done
19193 else
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 cat >conftest.$ac_ext <<_ACEOF
19198 /* confdefs.h. */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 #include <wchar.h>
19206 main ()
19208 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19209 test_array [0] = 0
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_hi=-1 ac_mid=-1
19238 while :; do
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <wchar.h>
19248 main ()
19250 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19251 test_array [0] = 0
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_lo=$ac_mid; break
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_hi=`expr '(' $ac_mid ')' - 1`
19285 if test $ac_mid -le $ac_hi; then
19286 ac_lo= ac_hi=
19287 break
19289 ac_mid=`expr 2 '*' $ac_mid`
19291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19292 done
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_lo= ac_hi=
19299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302 # Binary search between lo and hi bounds.
19303 while test "x$ac_lo" != "x$ac_hi"; do
19304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 #include <wchar.h>
19314 main ()
19316 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19317 test_array [0] = 0
19320 return 0;
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_hi=$ac_mid
19346 else
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_lo=`expr '(' $ac_mid ')' + 1`
19352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19353 done
19354 case $ac_lo in
19355 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19357 See \`config.log' for more details." >&5
19358 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19359 See \`config.log' for more details." >&2;}
19360 { (exit 1); exit 1; }; } ;;
19361 esac
19362 else
19363 if test "$cross_compiling" = yes; then
19364 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19365 See \`config.log' for more details." >&5
19366 echo "$as_me: error: cannot run test program while cross compiling
19367 See \`config.log' for more details." >&2;}
19368 { (exit 1); exit 1; }; }
19369 else
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h. */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 #include <wchar.h>
19378 long longval () { return (long) (sizeof (wchar_t)); }
19379 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19380 #include <stdio.h>
19381 #include <stdlib.h>
19383 main ()
19386 FILE *f = fopen ("conftest.val", "w");
19387 if (! f)
19388 exit (1);
19389 if (((long) (sizeof (wchar_t))) < 0)
19391 long i = longval ();
19392 if (i != ((long) (sizeof (wchar_t))))
19393 exit (1);
19394 fprintf (f, "%ld\n", i);
19396 else
19398 unsigned long i = ulongval ();
19399 if (i != ((long) (sizeof (wchar_t))))
19400 exit (1);
19401 fprintf (f, "%lu\n", i);
19403 exit (ferror (f) || fclose (f) != 0);
19406 return 0;
19408 _ACEOF
19409 rm -f conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_sizeof_wchar_t=`cat conftest.val`
19421 else
19422 echo "$as_me: program exited with status $ac_status" >&5
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ( exit $ac_status )
19427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19428 See \`config.log' for more details." >&5
19429 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19430 See \`config.log' for more details." >&2;}
19431 { (exit 1); exit 1; }; }
19433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19436 rm -f conftest.val
19437 else
19438 ac_cv_sizeof_wchar_t=0
19441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19442 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19443 cat >>confdefs.h <<_ACEOF
19444 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19445 _ACEOF
19450 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19451 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19452 have_ucs4_tcl=no
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 #include <tcl.h>
19461 #if TCL_UTF_MAX != 6
19462 # error "NOT UCS4_TCL"
19463 #endif
19465 main ()
19469 return 0;
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_UCS4_TCL 1
19498 _ACEOF
19500 have_ucs4_tcl=yes
19502 else
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19508 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19509 echo "${ECHO_T}$have_ucs4_tcl" >&6
19511 # check whether wchar_t is signed or not
19512 if test "$wchar_h" = yes
19513 then
19514 # check whether wchar_t is signed or not
19515 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19516 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19517 if test "${ac_cv_wchar_t_signed+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19521 if test "$cross_compiling" = yes; then
19522 ac_cv_wchar_t_signed=yes
19523 else
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h. */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19531 #include <wchar.h>
19532 int main()
19534 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19537 _ACEOF
19538 rm -f conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_wchar_t_signed=yes
19550 else
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ( exit $ac_status )
19556 ac_cv_wchar_t_signed=no
19558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19563 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19566 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19567 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19568 # Check whether --enable-unicode or --disable-unicode was given.
19569 if test "${enable_unicode+set}" = set; then
19570 enableval="$enable_unicode"
19572 else
19573 enable_unicode=yes
19576 if test $enable_unicode = yes
19577 then
19578 # Without any arguments, Py_UNICODE defaults to two-byte mode
19579 case "$have_ucs4_tcl" in
19580 yes) enable_unicode="ucs4"
19582 *) enable_unicode="ucs2"
19584 esac
19589 case "$enable_unicode" in
19590 ucs2) unicode_size="2"
19591 cat >>confdefs.h <<\_ACEOF
19592 #define Py_UNICODE_SIZE 2
19593 _ACEOF
19596 ucs4) unicode_size="4"
19597 cat >>confdefs.h <<\_ACEOF
19598 #define Py_UNICODE_SIZE 4
19599 _ACEOF
19602 esac
19608 if test "$enable_unicode" = "no"
19609 then
19610 UNICODE_OBJS=""
19611 echo "$as_me:$LINENO: result: not used" >&5
19612 echo "${ECHO_T}not used" >&6
19613 else
19614 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
19616 cat >>confdefs.h <<\_ACEOF
19617 #define Py_USING_UNICODE 1
19618 _ACEOF
19621 # wchar_t is only usable if it maps to an unsigned type
19622 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19623 -a "$ac_cv_wchar_t_signed" = "no"
19624 then
19625 PY_UNICODE_TYPE="wchar_t"
19627 cat >>confdefs.h <<\_ACEOF
19628 #define HAVE_USABLE_WCHAR_T 1
19629 _ACEOF
19631 cat >>confdefs.h <<\_ACEOF
19632 #define PY_UNICODE_TYPE wchar_t
19633 _ACEOF
19635 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19636 then
19637 PY_UNICODE_TYPE="unsigned short"
19638 cat >>confdefs.h <<\_ACEOF
19639 #define PY_UNICODE_TYPE unsigned short
19640 _ACEOF
19642 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19643 then
19644 PY_UNICODE_TYPE="unsigned long"
19645 cat >>confdefs.h <<\_ACEOF
19646 #define PY_UNICODE_TYPE unsigned long
19647 _ACEOF
19649 else
19650 PY_UNICODE_TYPE="no type found"
19652 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19653 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19656 # check for endianness
19657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19659 if test "${ac_cv_c_bigendian+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662 # See if sys/param.h defines the BYTE_ORDER macro.
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <sys/types.h>
19670 #include <sys/param.h>
19673 main ()
19675 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19676 bogus endian macros
19677 #endif
19680 return 0;
19682 _ACEOF
19683 rm -f conftest.$ac_objext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19685 (eval $ac_compile) 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 # It does; now see whether it defined to BIG_ENDIAN or not.
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <sys/types.h>
19713 #include <sys/param.h>
19716 main ()
19718 #if BYTE_ORDER != BIG_ENDIAN
19719 not big endian
19720 #endif
19723 return 0;
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_c_bigendian=yes
19749 else
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_cv_c_bigendian=no
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 # It does not; compile a test program.
19761 if test "$cross_compiling" = yes; then
19762 # try to guess the endianness by grepping values into an object file
19763 ac_cv_c_bigendian=unknown
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19771 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19772 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19773 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19774 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19775 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19777 main ()
19779 _ascii (); _ebcdic ();
19781 return 0;
19783 _ACEOF
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19807 ac_cv_c_bigendian=yes
19809 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19810 if test "$ac_cv_c_bigendian" = unknown; then
19811 ac_cv_c_bigendian=no
19812 else
19813 # finding both strings is unlikely to happen, but who knows?
19814 ac_cv_c_bigendian=unknown
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19823 else
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19831 main ()
19833 /* Are we little or big endian? From Harbison&Steele. */
19834 union
19836 long l;
19837 char c[sizeof (long)];
19838 } u;
19839 u.l = 1;
19840 exit (u.c[sizeof (long) - 1] == 1);
19842 _ACEOF
19843 rm -f conftest$ac_exeext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845 (eval $ac_link) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_cv_c_bigendian=no
19855 else
19856 echo "$as_me: program exited with status $ac_status" >&5
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ( exit $ac_status )
19861 ac_cv_c_bigendian=yes
19863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19868 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19869 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19870 case $ac_cv_c_bigendian in
19871 yes)
19873 cat >>confdefs.h <<\_ACEOF
19874 #define WORDS_BIGENDIAN 1
19875 _ACEOF
19880 { { echo "$as_me:$LINENO: error: unknown endianness
19881 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19882 echo "$as_me: error: unknown endianness
19883 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19884 { (exit 1); exit 1; }; } ;;
19885 esac
19888 # Check whether right shifting a negative integer extends the sign bit
19889 # or fills with zeros (like the Cray J90, according to Tim Peters).
19890 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19891 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19892 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 else
19896 if test "$cross_compiling" = yes; then
19897 ac_cv_rshift_extends_sign=yes
19898 else
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19906 int main()
19908 exit(((-1)>>3 == -1) ? 0 : 1);
19911 _ACEOF
19912 rm -f conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_rshift_extends_sign=yes
19924 else
19925 echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ( exit $ac_status )
19930 ac_cv_rshift_extends_sign=no
19932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19937 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19938 if test "$ac_cv_rshift_extends_sign" = no
19939 then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19943 _ACEOF
19947 # check for getc_unlocked and related locking functions
19948 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19949 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19950 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 #include <stdio.h>
19962 main ()
19965 FILE *f = fopen("/dev/null", "r");
19966 flockfile(f);
19967 getc_unlocked(f);
19968 funlockfile(f);
19971 return 0;
19973 _ACEOF
19974 rm -f conftest.$ac_objext conftest$ac_exeext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19976 (eval $ac_link) 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19996 ac_cv_have_getc_unlocked=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_have_getc_unlocked=no
20003 rm -f conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20007 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20008 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20009 if test "$ac_cv_have_getc_unlocked" = yes
20010 then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_GETC_UNLOCKED 1
20014 _ACEOF
20018 # check where readline lives
20020 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20021 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20022 if test "${ac_cv_lib_readline_readline+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025 ac_check_lib_save_LIBS=$LIBS
20026 LIBS="-lreadline $LIBS"
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 /* Override any gcc2 internal prototype to avoid an error. */
20035 #ifdef __cplusplus
20036 extern "C"
20037 #endif
20038 /* We use char because int might match the return type of a gcc2
20039 builtin and then its argument prototype would still apply. */
20040 char readline ();
20042 main ()
20044 readline ();
20046 return 0;
20048 _ACEOF
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051 (eval $ac_link) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest$ac_exeext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 ac_cv_lib_readline_readline=yes
20072 else
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_cv_lib_readline_readline=no
20078 rm -f conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext conftest.$ac_ext
20080 LIBS=$ac_check_lib_save_LIBS
20082 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20083 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20084 if test $ac_cv_lib_readline_readline = yes; then
20085 cat >>confdefs.h <<_ACEOF
20086 #define HAVE_LIBREADLINE 1
20087 _ACEOF
20089 LIBS="-lreadline $LIBS"
20093 if test "$ac_cv_have_readline_readline" = no
20094 then
20096 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20097 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20098 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101 ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-ltermcap $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 /* Override any gcc2 internal prototype to avoid an error. */
20111 #ifdef __cplusplus
20112 extern "C"
20113 #endif
20114 /* We use char because int might match the return type of a gcc2
20115 builtin and then its argument prototype would still apply. */
20116 char readline ();
20118 main ()
20120 readline ();
20122 return 0;
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20127 (eval $ac_link) 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest$ac_exeext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_lib_termcap_readline=yes
20148 else
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_cv_lib_termcap_readline=no
20154 rm -f conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20156 LIBS=$ac_check_lib_save_LIBS
20158 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20159 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20160 if test $ac_cv_lib_termcap_readline = yes; then
20161 cat >>confdefs.h <<_ACEOF
20162 #define HAVE_LIBTERMCAP 1
20163 _ACEOF
20165 LIBS="-ltermcap $LIBS"
20171 # check for readline 2.1
20172 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20173 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20174 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lreadline $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any gcc2 internal prototype to avoid an error. */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 /* We use char because int might match the return type of a gcc2
20191 builtin and then its argument prototype would still apply. */
20192 char rl_callback_handler_install ();
20194 main ()
20196 rl_callback_handler_install ();
20198 return 0;
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag"
20211 || test ! -s conftest.err'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_cv_lib_readline_rl_callback_handler_install=yes
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_lib_readline_rl_callback_handler_install=no
20230 rm -f conftest.err conftest.$ac_objext \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20235 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20236 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20238 cat >>confdefs.h <<\_ACEOF
20239 #define HAVE_RL_CALLBACK 1
20240 _ACEOF
20245 # check for readline 2.2
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <readline/readline.h>
20253 _ACEOF
20254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } >/dev/null; then
20262 if test -s conftest.err; then
20263 ac_cpp_err=$ac_c_preproc_warn_flag
20264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20265 else
20266 ac_cpp_err=
20268 else
20269 ac_cpp_err=yes
20271 if test -z "$ac_cpp_err"; then
20272 have_readline=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 have_readline=no
20279 rm -f conftest.err conftest.$ac_ext
20280 if test $have_readline = yes
20281 then
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <readline/readline.h>
20290 _ACEOF
20291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20292 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20296 _ACEOF
20299 rm -f conftest*
20303 # check for readline 4.0
20304 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20305 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20306 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lreadline $LIBS"
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h. */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* Override any gcc2 internal prototype to avoid an error. */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 /* We use char because int might match the return type of a gcc2
20323 builtin and then its argument prototype would still apply. */
20324 char rl_pre_input_hook ();
20326 main ()
20328 rl_pre_input_hook ();
20330 return 0;
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335 (eval $ac_link) 2>conftest.er1
20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag"
20343 || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest$ac_exeext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_lib_readline_rl_pre_input_hook=yes
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_readline_rl_pre_input_hook=no
20362 rm -f conftest.err conftest.$ac_objext \
20363 conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_check_lib_save_LIBS
20366 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20367 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20368 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20370 cat >>confdefs.h <<\_ACEOF
20371 #define HAVE_RL_PRE_INPUT_HOOK 1
20372 _ACEOF
20377 # check for readline 4.2
20378 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20379 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20380 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383 ac_check_lib_save_LIBS=$LIBS
20384 LIBS="-lreadline $LIBS"
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h. */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 /* Override any gcc2 internal prototype to avoid an error. */
20393 #ifdef __cplusplus
20394 extern "C"
20395 #endif
20396 /* We use char because int might match the return type of a gcc2
20397 builtin and then its argument prototype would still apply. */
20398 char rl_completion_matches ();
20400 main ()
20402 rl_completion_matches ();
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext conftest$ac_exeext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20409 (eval $ac_link) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_lib_readline_rl_completion_matches=yes
20430 else
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_cv_lib_readline_rl_completion_matches=no
20436 rm -f conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20438 LIBS=$ac_check_lib_save_LIBS
20440 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20441 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20442 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_RL_COMPLETION_MATCHES 1
20446 _ACEOF
20451 # also in readline 4.2
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 #include <readline/readline.h>
20459 _ACEOF
20460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev/null; then
20468 if test -s conftest.err; then
20469 ac_cpp_err=$ac_c_preproc_warn_flag
20470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20471 else
20472 ac_cpp_err=
20474 else
20475 ac_cpp_err=yes
20477 if test -z "$ac_cpp_err"; then
20478 have_readline=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 have_readline=no
20485 rm -f conftest.err conftest.$ac_ext
20486 if test $have_readline = yes
20487 then
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <readline/readline.h>
20496 _ACEOF
20497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20498 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20500 cat >>confdefs.h <<\_ACEOF
20501 #define HAVE_RL_CATCH_SIGNAL 1
20502 _ACEOF
20505 rm -f conftest*
20509 echo "$as_me:$LINENO: checking for broken nice()" >&5
20510 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20511 if test "${ac_cv_broken_nice+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20515 if test "$cross_compiling" = yes; then
20516 ac_cv_broken_nice=no
20517 else
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h. */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20525 int main()
20527 int val1 = nice(1);
20528 if (val1 != -1 && val1 == nice(2))
20529 exit(0);
20530 exit(1);
20533 _ACEOF
20534 rm -f conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 ac_cv_broken_nice=yes
20546 else
20547 echo "$as_me: program exited with status $ac_status" >&5
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ( exit $ac_status )
20552 ac_cv_broken_nice=no
20554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20558 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20559 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20560 if test "$ac_cv_broken_nice" = yes
20561 then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_BROKEN_NICE 1
20565 _ACEOF
20569 echo "$as_me:$LINENO: checking for broken poll()" >&5
20570 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20571 if test "$cross_compiling" = yes; then
20572 ac_cv_broken_poll=no
20573 else
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h. */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20581 #include <poll.h>
20583 int main (void)
20585 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20587 close (42);
20589 int poll_test = poll (&poll_struct, 1, 0);
20591 if (poll_test < 0)
20593 exit(0);
20595 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20597 exit(0);
20599 else
20601 exit(1);
20605 _ACEOF
20606 rm -f conftest$ac_exeext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608 (eval $ac_link) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_cv_broken_poll=yes
20618 else
20619 echo "$as_me: program exited with status $ac_status" >&5
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ( exit $ac_status )
20624 ac_cv_broken_poll=no
20626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20628 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20629 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20630 if test "$ac_cv_broken_poll" = yes
20631 then
20633 cat >>confdefs.h <<\_ACEOF
20634 #define HAVE_BROKEN_POLL 1
20635 _ACEOF
20639 # Before we can test tzset, we need to check if struct tm has a tm_zone
20640 # (which is not required by ISO C or UNIX spec) and/or if we support
20641 # tzname[]
20642 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20643 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20644 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <sys/types.h>
20654 #include <$ac_cv_struct_tm>
20658 main ()
20660 static struct tm ac_aggr;
20661 if (ac_aggr.tm_zone)
20662 return 0;
20664 return 0;
20666 _ACEOF
20667 rm -f conftest.$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20670 ac_status=$?
20671 grep -v '^ *+' conftest.er1 >conftest.err
20672 rm -f conftest.er1
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_member_struct_tm_tm_zone=yes
20690 else
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <sys/types.h>
20701 #include <$ac_cv_struct_tm>
20705 main ()
20707 static struct tm ac_aggr;
20708 if (sizeof ac_aggr.tm_zone)
20709 return 0;
20711 return 0;
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_member_struct_tm_tm_zone=yes
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ac_cv_member_struct_tm_tm_zone=no
20743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_STRUCT_TM_TM_ZONE 1
20753 _ACEOF
20758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_TM_ZONE 1
20762 _ACEOF
20764 else
20765 echo "$as_me:$LINENO: checking for tzname" >&5
20766 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20767 if test "${ac_cv_var_tzname+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <time.h>
20777 #ifndef tzname /* For SGI. */
20778 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20779 #endif
20782 main ()
20784 atoi(*tzname);
20786 return 0;
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20791 (eval $ac_link) 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_var_tzname=yes
20812 else
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_cv_var_tzname=no
20818 rm -f conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20822 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20823 if test $ac_cv_var_tzname = yes; then
20825 cat >>confdefs.h <<\_ACEOF
20826 #define HAVE_TZNAME 1
20827 _ACEOF
20833 # check tzset(3) exists and works like we expect it to
20834 echo "$as_me:$LINENO: checking for working tzset()" >&5
20835 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20836 if test "${ac_cv_working_tzset+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20840 if test "$cross_compiling" = yes; then
20841 ac_cv_working_tzset=no
20842 else
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h. */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20850 #include <stdlib.h>
20851 #include <time.h>
20852 #include <string.h>
20854 #if HAVE_TZNAME
20855 extern char *tzname[];
20856 #endif
20858 int main()
20860 /* Note that we need to ensure that not only does tzset(3)
20861 do 'something' with localtime, but it works as documented
20862 in the library reference and as expected by the test suite.
20863 This includes making sure that tzname is set properly if
20864 tm->tm_zone does not exist since it is the alternative way
20865 of getting timezone info.
20867 Red Hat 6.2 doesn't understand the southern hemisphere
20868 after New Year's Day.
20871 time_t groundhogday = 1044144000; /* GMT-based */
20872 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20874 putenv("TZ=UTC+0");
20875 tzset();
20876 if (localtime(&groundhogday)->tm_hour != 0)
20877 exit(1);
20878 #if HAVE_TZNAME
20879 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20880 if (strcmp(tzname[0], "UTC") ||
20881 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20882 exit(1);
20883 #endif
20885 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20886 tzset();
20887 if (localtime(&groundhogday)->tm_hour != 19)
20888 exit(1);
20889 #if HAVE_TZNAME
20890 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20891 exit(1);
20892 #endif
20894 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20895 tzset();
20896 if (localtime(&groundhogday)->tm_hour != 11)
20897 exit(1);
20898 #if HAVE_TZNAME
20899 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20900 exit(1);
20901 #endif
20903 #if HAVE_STRUCT_TM_TM_ZONE
20904 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20905 exit(1);
20906 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20907 exit(1);
20908 #endif
20910 exit(0);
20913 _ACEOF
20914 rm -f conftest$ac_exeext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20916 (eval $ac_link) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ac_cv_working_tzset=yes
20926 else
20927 echo "$as_me: program exited with status $ac_status" >&5
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ( exit $ac_status )
20932 ac_cv_working_tzset=no
20934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20938 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20939 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20940 if test "$ac_cv_working_tzset" = yes
20941 then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_WORKING_TZSET 1
20945 _ACEOF
20949 # Look for subsecond timestamps in struct stat
20950 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20951 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20952 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/stat.h>
20963 main ()
20966 struct stat st;
20967 st.st_mtim.tv_nsec = 1;
20970 return 0;
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_stat_tv_nsec=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_cv_stat_tv_nsec=no
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21006 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21007 if test "$ac_cv_stat_tv_nsec" = yes
21008 then
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_STAT_TV_NSEC 1
21012 _ACEOF
21016 # Look for BSD style subsecond timestamps in struct stat
21017 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21018 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21019 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <sys/stat.h>
21030 main ()
21033 struct stat st;
21034 st.st_mtimespec.tv_nsec = 1;
21037 return 0;
21039 _ACEOF
21040 rm -f conftest.$ac_objext
21041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21042 (eval $ac_compile) 2>conftest.er1
21043 ac_status=$?
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -z "$ac_c_werror_flag"
21050 || test ! -s conftest.err'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest.$ac_objext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_stat_tv_nsec2=yes
21063 else
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_stat_tv_nsec2=no
21069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21072 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21073 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21074 if test "$ac_cv_stat_tv_nsec2" = yes
21075 then
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_STAT_TV_NSEC2 1
21079 _ACEOF
21083 # On HP/UX 11.0, mvwdelch is a block with a return statement
21084 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21085 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21086 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <curses.h>
21097 main ()
21100 int rtn;
21101 rtn = mvwdelch(0,0,0);
21104 return 0;
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_mvwdelch_is_expression=yes
21130 else
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ac_cv_mvwdelch_is_expression=no
21136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21140 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21142 if test "$ac_cv_mvwdelch_is_expression" = yes
21143 then
21145 cat >>confdefs.h <<\_ACEOF
21146 #define MVWDELCH_IS_EXPRESSION 1
21147 _ACEOF
21151 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21152 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21153 if test "${ac_cv_window_has_flags+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <curses.h>
21164 main ()
21167 WINDOW *w;
21168 w->_flags = 0;
21171 return 0;
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_window_has_flags=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 ac_cv_window_has_flags=no
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21207 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21210 if test "$ac_cv_window_has_flags" = yes
21211 then
21213 cat >>confdefs.h <<\_ACEOF
21214 #define WINDOW_HAS_FLAGS 1
21215 _ACEOF
21219 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21220 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21222 if test -e /dev/ptmx
21223 then
21224 echo "$as_me:$LINENO: result: yes" >&5
21225 echo "${ECHO_T}yes" >&6
21227 cat >>confdefs.h <<\_ACEOF
21228 #define HAVE_DEV_PTMX 1
21229 _ACEOF
21231 else
21232 echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6
21236 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21237 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21239 if test -e /dev/ptc
21240 then
21241 echo "$as_me:$LINENO: result: yes" >&5
21242 echo "${ECHO_T}yes" >&6
21244 cat >>confdefs.h <<\_ACEOF
21245 #define HAVE_DEV_PTC 1
21246 _ACEOF
21248 else
21249 echo "$as_me:$LINENO: result: no" >&5
21250 echo "${ECHO_T}no" >&6
21253 echo "$as_me:$LINENO: checking for socklen_t" >&5
21254 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21255 if test "${ac_cv_type_socklen_t+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21265 #ifdef HAVE_SYS_TYPES_H
21266 #include <sys/types.h>
21267 #endif
21268 #ifdef HAVE_SYS_SOCKET_H
21269 #include <sys/socket.h>
21270 #endif
21274 main ()
21276 if ((socklen_t *) 0)
21277 return 0;
21278 if (sizeof (socklen_t))
21279 return 0;
21281 return 0;
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286 (eval $ac_compile) 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try='test -z "$ac_c_werror_flag"
21294 || test ! -s conftest.err'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try='test -s conftest.$ac_objext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_type_socklen_t=yes
21307 else
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_type_socklen_t=no
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21316 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21317 if test $ac_cv_type_socklen_t = yes; then
21319 else
21321 cat >>confdefs.h <<\_ACEOF
21322 #define socklen_t int
21323 _ACEOF
21330 for h in `(cd $srcdir;echo Python/thread_*.h)`
21332 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21333 done
21336 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21337 echo "$as_me:$LINENO: checking for build directories" >&5
21338 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21339 for dir in $SRCDIRS; do
21340 if test ! -d $dir; then
21341 mkdir $dir
21343 done
21344 echo "$as_me:$LINENO: result: done" >&5
21345 echo "${ECHO_T}done" >&6
21347 # generate output files
21348 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21350 cat >confcache <<\_ACEOF
21351 # This file is a shell script that caches the results of configure
21352 # tests run on this system so they can be shared between configure
21353 # scripts and configure runs, see configure's option --config-cache.
21354 # It is not useful on other systems. If it contains results you don't
21355 # want to keep, you may remove or edit it.
21357 # config.status only pays attention to the cache file if you give it
21358 # the --recheck option to rerun configure.
21360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21362 # following values.
21364 _ACEOF
21366 # The following way of writing the cache mishandles newlines in values,
21367 # but we know of no workaround that is simple, portable, and efficient.
21368 # So, don't put newlines in cache variables' values.
21369 # Ultrix sh set writes to stderr and can't be redirected directly,
21370 # and sets the high bit in the cache file unless we assign to the vars.
21372 (set) 2>&1 |
21373 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21374 *ac_space=\ *)
21375 # `set' does not quote correctly, so add quotes (double-quote
21376 # substitution turns \\\\ into \\, and sed turns \\ into \).
21377 sed -n \
21378 "s/'/'\\\\''/g;
21379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21382 # `set' quotes correctly as required by POSIX, so do not add quotes.
21383 sed -n \
21384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21386 esac;
21388 sed '
21389 t clear
21390 : clear
21391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21392 t end
21393 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21394 : end' >>confcache
21395 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21396 if test -w $cache_file; then
21397 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21398 cat confcache >$cache_file
21399 else
21400 echo "not updating unwritable cache $cache_file"
21403 rm -f confcache
21405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21406 # Let make expand exec_prefix.
21407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21411 # trailing colons and then remove the whole line if VPATH becomes empty
21412 # (actually we leave an empty line to preserve line numbers).
21413 if test "x$srcdir" = x.; then
21414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21415 s/:*\$(srcdir):*/:/;
21416 s/:*\${srcdir}:*/:/;
21417 s/:*@srcdir@:*/:/;
21418 s/^\([^=]*=[ ]*\):*/\1/;
21419 s/:*$//;
21420 s/^[^=]*=[ ]*$//;
21424 DEFS=-DHAVE_CONFIG_H
21426 ac_libobjs=
21427 ac_ltlibobjs=
21428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21429 # 1. Remove the extension, and $U if already installed.
21430 ac_i=`echo "$ac_i" |
21431 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21432 # 2. Add them.
21433 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21434 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21435 done
21436 LIBOBJS=$ac_libobjs
21438 LTLIBOBJS=$ac_ltlibobjs
21442 : ${CONFIG_STATUS=./config.status}
21443 ac_clean_files_save=$ac_clean_files
21444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21445 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21446 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21447 cat >$CONFIG_STATUS <<_ACEOF
21448 #! $SHELL
21449 # Generated by $as_me.
21450 # Run this file to recreate the current configuration.
21451 # Compiler output produced by configure, useful for debugging
21452 # configure, is in config.log if it exists.
21454 debug=false
21455 ac_cs_recheck=false
21456 ac_cs_silent=false
21457 SHELL=\${CONFIG_SHELL-$SHELL}
21458 _ACEOF
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 ## --------------------- ##
21462 ## M4sh Initialization. ##
21463 ## --------------------- ##
21465 # Be Bourne compatible
21466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21467 emulate sh
21468 NULLCMD=:
21469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21470 # is contrary to our usage. Disable this feature.
21471 alias -g '${1+"$@"}'='"$@"'
21472 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21473 set -o posix
21475 DUALCASE=1; export DUALCASE # for MKS sh
21477 # Support unset when possible.
21478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21479 as_unset=unset
21480 else
21481 as_unset=false
21485 # Work around bugs in pre-3.0 UWIN ksh.
21486 $as_unset ENV MAIL MAILPATH
21487 PS1='$ '
21488 PS2='> '
21489 PS4='+ '
21491 # NLS nuisances.
21492 for as_var in \
21493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495 LC_TELEPHONE LC_TIME
21497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498 eval $as_var=C; export $as_var
21499 else
21500 $as_unset $as_var
21502 done
21504 # Required to use basename.
21505 if expr a : '\(a\)' >/dev/null 2>&1; then
21506 as_expr=expr
21507 else
21508 as_expr=false
21511 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21512 as_basename=basename
21513 else
21514 as_basename=false
21518 # Name of the executable.
21519 as_me=`$as_basename "$0" ||
21520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21521 X"$0" : 'X\(//\)$' \| \
21522 X"$0" : 'X\(/\)$' \| \
21523 . : '\(.\)' 2>/dev/null ||
21524 echo X/"$0" |
21525 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21526 /^X\/\(\/\/\)$/{ s//\1/; q; }
21527 /^X\/\(\/\).*/{ s//\1/; q; }
21528 s/.*/./; q'`
21531 # PATH needs CR, and LINENO needs CR and PATH.
21532 # Avoid depending upon Character Ranges.
21533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21536 as_cr_digits='0123456789'
21537 as_cr_alnum=$as_cr_Letters$as_cr_digits
21539 # The user is always right.
21540 if test "${PATH_SEPARATOR+set}" != set; then
21541 echo "#! /bin/sh" >conf$$.sh
21542 echo "exit 0" >>conf$$.sh
21543 chmod +x conf$$.sh
21544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21545 PATH_SEPARATOR=';'
21546 else
21547 PATH_SEPARATOR=:
21549 rm -f conf$$.sh
21553 as_lineno_1=$LINENO
21554 as_lineno_2=$LINENO
21555 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21556 test "x$as_lineno_1" != "x$as_lineno_2" &&
21557 test "x$as_lineno_3" = "x$as_lineno_2" || {
21558 # Find who we are. Look in the path if we contain no path at all
21559 # relative or not.
21560 case $0 in
21561 *[\\/]* ) as_myself=$0 ;;
21562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21565 IFS=$as_save_IFS
21566 test -z "$as_dir" && as_dir=.
21567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21568 done
21571 esac
21572 # We did not find ourselves, most probably we were run as `sh COMMAND'
21573 # in which case we are not to be found in the path.
21574 if test "x$as_myself" = x; then
21575 as_myself=$0
21577 if test ! -f "$as_myself"; then
21578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21580 { (exit 1); exit 1; }; }
21582 case $CONFIG_SHELL in
21584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21587 IFS=$as_save_IFS
21588 test -z "$as_dir" && as_dir=.
21589 for as_base in sh bash ksh sh5; do
21590 case $as_dir in
21592 if ("$as_dir/$as_base" -c '
21593 as_lineno_1=$LINENO
21594 as_lineno_2=$LINENO
21595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21596 test "x$as_lineno_1" != "x$as_lineno_2" &&
21597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21598 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21599 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21600 CONFIG_SHELL=$as_dir/$as_base
21601 export CONFIG_SHELL
21602 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21603 fi;;
21604 esac
21605 done
21606 done
21608 esac
21610 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21611 # uniformly replaced by the line number. The first 'sed' inserts a
21612 # line-number line before each line; the second 'sed' does the real
21613 # work. The second script uses 'N' to pair each line-number line
21614 # with the numbered line, and appends trailing '-' during
21615 # substitution so that $LINENO is not a special case at line end.
21616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21618 sed '=' <$as_myself |
21619 sed '
21621 s,$,-,
21622 : loop
21623 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21624 t loop
21625 s,-$,,
21626 s,^['$as_cr_digits']*\n,,
21627 ' >$as_me.lineno &&
21628 chmod +x $as_me.lineno ||
21629 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21630 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21631 { (exit 1); exit 1; }; }
21633 # Don't try to exec as it changes $[0], causing all sort of problems
21634 # (the dirname of $[0] is not the place where we might find the
21635 # original and so on. Autoconf is especially sensible to this).
21636 . ./$as_me.lineno
21637 # Exit status is that of the last command.
21638 exit
21642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21643 *c*,-n*) ECHO_N= ECHO_C='
21644 ' ECHO_T=' ' ;;
21645 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21646 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21647 esac
21649 if expr a : '\(a\)' >/dev/null 2>&1; then
21650 as_expr=expr
21651 else
21652 as_expr=false
21655 rm -f conf$$ conf$$.exe conf$$.file
21656 echo >conf$$.file
21657 if ln -s conf$$.file conf$$ 2>/dev/null; then
21658 # We could just check for DJGPP; but this test a) works b) is more generic
21659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21660 if test -f conf$$.exe; then
21661 # Don't use ln at all; we don't have any links
21662 as_ln_s='cp -p'
21663 else
21664 as_ln_s='ln -s'
21666 elif ln conf$$.file conf$$ 2>/dev/null; then
21667 as_ln_s=ln
21668 else
21669 as_ln_s='cp -p'
21671 rm -f conf$$ conf$$.exe conf$$.file
21673 if mkdir -p . 2>/dev/null; then
21674 as_mkdir_p=:
21675 else
21676 test -d ./-p && rmdir ./-p
21677 as_mkdir_p=false
21680 as_executable_p="test -f"
21682 # Sed expression to map a string onto a valid CPP name.
21683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21685 # Sed expression to map a string onto a valid variable name.
21686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21689 # IFS
21690 # We need space, tab and new line, in precisely that order.
21691 as_nl='
21693 IFS=" $as_nl"
21695 # CDPATH.
21696 $as_unset CDPATH
21698 exec 6>&1
21700 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21701 # report actual input values of CONFIG_FILES etc. instead of their
21702 # values after options handling. Logging --version etc. is OK.
21703 exec 5>>config.log
21705 echo
21706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21707 ## Running $as_me. ##
21708 _ASBOX
21709 } >&5
21710 cat >&5 <<_CSEOF
21712 This file was extended by python $as_me 2.5, which was
21713 generated by GNU Autoconf 2.59. Invocation command line was
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21719 $ $0 $@
21721 _CSEOF
21722 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21723 echo >&5
21724 _ACEOF
21726 # Files that config.status was made for.
21727 if test -n "$ac_config_files"; then
21728 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21731 if test -n "$ac_config_headers"; then
21732 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21735 if test -n "$ac_config_links"; then
21736 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21739 if test -n "$ac_config_commands"; then
21740 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21743 cat >>$CONFIG_STATUS <<\_ACEOF
21745 ac_cs_usage="\
21746 \`$as_me' instantiates files from templates according to the
21747 current configuration.
21749 Usage: $0 [OPTIONS] [FILE]...
21751 -h, --help print this help, then exit
21752 -V, --version print version number, then exit
21753 -q, --quiet do not print progress messages
21754 -d, --debug don't remove temporary files
21755 --recheck update $as_me by reconfiguring in the same conditions
21756 --file=FILE[:TEMPLATE]
21757 instantiate the configuration file FILE
21758 --header=FILE[:TEMPLATE]
21759 instantiate the configuration header FILE
21761 Configuration files:
21762 $config_files
21764 Configuration headers:
21765 $config_headers
21767 Report bugs to <bug-autoconf@gnu.org>."
21768 _ACEOF
21770 cat >>$CONFIG_STATUS <<_ACEOF
21771 ac_cs_version="\\
21772 python config.status 2.5
21773 configured by $0, generated by GNU Autoconf 2.59,
21774 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21776 Copyright (C) 2003 Free Software Foundation, Inc.
21777 This config.status script is free software; the Free Software Foundation
21778 gives unlimited permission to copy, distribute and modify it."
21779 srcdir=$srcdir
21780 INSTALL="$INSTALL"
21781 _ACEOF
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21784 # If no file are specified by the user, then we need to provide default
21785 # value. By we need to know if files were specified by the user.
21786 ac_need_defaults=:
21787 while test $# != 0
21789 case $1 in
21790 --*=*)
21791 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21792 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21793 ac_shift=:
21796 ac_option=$1
21797 ac_optarg=$2
21798 ac_shift=shift
21800 *) # This is not an option, so the user has probably given explicit
21801 # arguments.
21802 ac_option=$1
21803 ac_need_defaults=false;;
21804 esac
21806 case $ac_option in
21807 # Handling of the options.
21808 _ACEOF
21809 cat >>$CONFIG_STATUS <<\_ACEOF
21810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21811 ac_cs_recheck=: ;;
21812 --version | --vers* | -V )
21813 echo "$ac_cs_version"; exit 0 ;;
21814 --he | --h)
21815 # Conflict between --help and --header
21816 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21817 Try \`$0 --help' for more information." >&5
21818 echo "$as_me: error: ambiguous option: $1
21819 Try \`$0 --help' for more information." >&2;}
21820 { (exit 1); exit 1; }; };;
21821 --help | --hel | -h )
21822 echo "$ac_cs_usage"; exit 0 ;;
21823 --debug | --d* | -d )
21824 debug=: ;;
21825 --file | --fil | --fi | --f )
21826 $ac_shift
21827 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21828 ac_need_defaults=false;;
21829 --header | --heade | --head | --hea )
21830 $ac_shift
21831 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21832 ac_need_defaults=false;;
21833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21835 ac_cs_silent=: ;;
21837 # This is an error.
21838 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21839 Try \`$0 --help' for more information." >&5
21840 echo "$as_me: error: unrecognized option: $1
21841 Try \`$0 --help' for more information." >&2;}
21842 { (exit 1); exit 1; }; } ;;
21844 *) ac_config_targets="$ac_config_targets $1" ;;
21846 esac
21847 shift
21848 done
21850 ac_configure_extra_args=
21852 if $ac_cs_silent; then
21853 exec 6>/dev/null
21854 ac_configure_extra_args="$ac_configure_extra_args --silent"
21857 _ACEOF
21858 cat >>$CONFIG_STATUS <<_ACEOF
21859 if \$ac_cs_recheck; then
21860 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21861 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21864 _ACEOF
21870 cat >>$CONFIG_STATUS <<\_ACEOF
21871 for ac_config_target in $ac_config_targets
21873 case "$ac_config_target" in
21874 # Handling of arguments.
21875 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
21876 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
21877 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
21878 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21879 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21880 { (exit 1); exit 1; }; };;
21881 esac
21882 done
21884 # If the user did not use the arguments to specify the items to instantiate,
21885 # then the envvar interface is used. Set only those that are not.
21886 # We use the long form for the default assignment because of an extremely
21887 # bizarre bug on SunOS 4.1.3.
21888 if $ac_need_defaults; then
21889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21893 # Have a temporary directory for convenience. Make it in the build tree
21894 # simply because there is no reason to put it here, and in addition,
21895 # creating and moving files from /tmp can sometimes cause problems.
21896 # Create a temporary directory, and hook for its removal unless debugging.
21897 $debug ||
21899 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21900 trap '{ (exit 1); exit 1; }' 1 2 13 15
21903 # Create a (secure) tmp directory for tmp files.
21906 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21907 test -n "$tmp" && test -d "$tmp"
21908 } ||
21910 tmp=./confstat$$-$RANDOM
21911 (umask 077 && mkdir $tmp)
21912 } ||
21914 echo "$me: cannot create a temporary directory in ." >&2
21915 { (exit 1); exit 1; }
21918 _ACEOF
21920 cat >>$CONFIG_STATUS <<_ACEOF
21923 # CONFIG_FILES section.
21926 # No need to generate the scripts if there are no CONFIG_FILES.
21927 # This happens for instance when ./config.status config.h
21928 if test -n "\$CONFIG_FILES"; then
21929 # Protect against being on the right side of a sed subst in config.status.
21930 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21931 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21932 s,@SHELL@,$SHELL,;t t
21933 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21934 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21935 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21936 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21937 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21938 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21939 s,@exec_prefix@,$exec_prefix,;t t
21940 s,@prefix@,$prefix,;t t
21941 s,@program_transform_name@,$program_transform_name,;t t
21942 s,@bindir@,$bindir,;t t
21943 s,@sbindir@,$sbindir,;t t
21944 s,@libexecdir@,$libexecdir,;t t
21945 s,@datadir@,$datadir,;t t
21946 s,@sysconfdir@,$sysconfdir,;t t
21947 s,@sharedstatedir@,$sharedstatedir,;t t
21948 s,@localstatedir@,$localstatedir,;t t
21949 s,@libdir@,$libdir,;t t
21950 s,@includedir@,$includedir,;t t
21951 s,@oldincludedir@,$oldincludedir,;t t
21952 s,@infodir@,$infodir,;t t
21953 s,@mandir@,$mandir,;t t
21954 s,@build_alias@,$build_alias,;t t
21955 s,@host_alias@,$host_alias,;t t
21956 s,@target_alias@,$target_alias,;t t
21957 s,@DEFS@,$DEFS,;t t
21958 s,@ECHO_C@,$ECHO_C,;t t
21959 s,@ECHO_N@,$ECHO_N,;t t
21960 s,@ECHO_T@,$ECHO_T,;t t
21961 s,@LIBS@,$LIBS,;t t
21962 s,@VERSION@,$VERSION,;t t
21963 s,@SOVERSION@,$SOVERSION,;t t
21964 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21965 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21966 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21967 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21968 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21969 s,@MACHDEP@,$MACHDEP,;t t
21970 s,@SGI_ABI@,$SGI_ABI,;t t
21971 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21972 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21973 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21974 s,@CXX@,$CXX,;t t
21975 s,@MAINOBJ@,$MAINOBJ,;t t
21976 s,@EXEEXT@,$EXEEXT,;t t
21977 s,@CC@,$CC,;t t
21978 s,@CFLAGS@,$CFLAGS,;t t
21979 s,@LDFLAGS@,$LDFLAGS,;t t
21980 s,@CPPFLAGS@,$CPPFLAGS,;t t
21981 s,@ac_ct_CC@,$ac_ct_CC,;t t
21982 s,@OBJEXT@,$OBJEXT,;t t
21983 s,@CPP@,$CPP,;t t
21984 s,@EGREP@,$EGREP,;t t
21985 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21986 s,@LIBRARY@,$LIBRARY,;t t
21987 s,@LDLIBRARY@,$LDLIBRARY,;t t
21988 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21989 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21990 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21991 s,@INSTSONAME@,$INSTSONAME,;t t
21992 s,@RUNSHARED@,$RUNSHARED,;t t
21993 s,@LINKCC@,$LINKCC,;t t
21994 s,@RANLIB@,$RANLIB,;t t
21995 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21996 s,@AR@,$AR,;t t
21997 s,@SVNVERSION@,$SVNVERSION,;t t
21998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22001 s,@LN@,$LN,;t t
22002 s,@OPT@,$OPT,;t t
22003 s,@BASECFLAGS@,$BASECFLAGS,;t t
22004 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22005 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22006 s,@SO@,$SO,;t t
22007 s,@LDSHARED@,$LDSHARED,;t t
22008 s,@BLDSHARED@,$BLDSHARED,;t t
22009 s,@CCSHARED@,$CCSHARED,;t t
22010 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22011 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22012 s,@SHLIBS@,$SHLIBS,;t t
22013 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22014 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22015 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22016 s,@LDLAST@,$LDLAST,;t t
22017 s,@THREADOBJ@,$THREADOBJ,;t t
22018 s,@DLINCLDIR@,$DLINCLDIR,;t t
22019 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22020 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22021 s,@TRUE@,$TRUE,;t t
22022 s,@LIBOBJS@,$LIBOBJS,;t t
22023 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22024 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22025 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22026 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22027 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22028 s,@LIBM@,$LIBM,;t t
22029 s,@LIBC@,$LIBC,;t t
22030 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22031 s,@THREADHEADERS@,$THREADHEADERS,;t t
22032 s,@SRCDIRS@,$SRCDIRS,;t t
22033 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22034 CEOF
22036 _ACEOF
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039 # Split the substitutions into bite-sized pieces for seds with
22040 # small command number limits, like on Digital OSF/1 and HP-UX.
22041 ac_max_sed_lines=48
22042 ac_sed_frag=1 # Number of current file.
22043 ac_beg=1 # First line for current file.
22044 ac_end=$ac_max_sed_lines # Line after last line for current file.
22045 ac_more_lines=:
22046 ac_sed_cmds=
22047 while $ac_more_lines; do
22048 if test $ac_beg -gt 1; then
22049 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22050 else
22051 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22053 if test ! -s $tmp/subs.frag; then
22054 ac_more_lines=false
22055 else
22056 # The purpose of the label and of the branching condition is to
22057 # speed up the sed processing (if there are no `@' at all, there
22058 # is no need to browse any of the substitutions).
22059 # These are the two extra sed commands mentioned above.
22060 (echo ':t
22061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22062 if test -z "$ac_sed_cmds"; then
22063 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22064 else
22065 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22067 ac_sed_frag=`expr $ac_sed_frag + 1`
22068 ac_beg=$ac_end
22069 ac_end=`expr $ac_end + $ac_max_sed_lines`
22071 done
22072 if test -z "$ac_sed_cmds"; then
22073 ac_sed_cmds=cat
22075 fi # test -n "$CONFIG_FILES"
22077 _ACEOF
22078 cat >>$CONFIG_STATUS <<\_ACEOF
22079 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22081 case $ac_file in
22082 - | *:- | *:-:* ) # input from stdin
22083 cat >$tmp/stdin
22084 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22086 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22088 * ) ac_file_in=$ac_file.in ;;
22089 esac
22091 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22092 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22094 X"$ac_file" : 'X\(//\)[^/]' \| \
22095 X"$ac_file" : 'X\(//\)$' \| \
22096 X"$ac_file" : 'X\(/\)' \| \
22097 . : '\(.\)' 2>/dev/null ||
22098 echo X"$ac_file" |
22099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22101 /^X\(\/\/\)$/{ s//\1/; q; }
22102 /^X\(\/\).*/{ s//\1/; q; }
22103 s/.*/./; q'`
22104 { if $as_mkdir_p; then
22105 mkdir -p "$ac_dir"
22106 else
22107 as_dir="$ac_dir"
22108 as_dirs=
22109 while test ! -d "$as_dir"; do
22110 as_dirs="$as_dir $as_dirs"
22111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22113 X"$as_dir" : 'X\(//\)[^/]' \| \
22114 X"$as_dir" : 'X\(//\)$' \| \
22115 X"$as_dir" : 'X\(/\)' \| \
22116 . : '\(.\)' 2>/dev/null ||
22117 echo X"$as_dir" |
22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22120 /^X\(\/\/\)$/{ s//\1/; q; }
22121 /^X\(\/\).*/{ s//\1/; q; }
22122 s/.*/./; q'`
22123 done
22124 test ! -n "$as_dirs" || mkdir $as_dirs
22125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22127 { (exit 1); exit 1; }; }; }
22129 ac_builddir=.
22131 if test "$ac_dir" != .; then
22132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22133 # A "../" for each directory in $ac_dir_suffix.
22134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22135 else
22136 ac_dir_suffix= ac_top_builddir=
22139 case $srcdir in
22140 .) # No --srcdir option. We are building in place.
22141 ac_srcdir=.
22142 if test -z "$ac_top_builddir"; then
22143 ac_top_srcdir=.
22144 else
22145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22146 fi ;;
22147 [\\/]* | ?:[\\/]* ) # Absolute path.
22148 ac_srcdir=$srcdir$ac_dir_suffix;
22149 ac_top_srcdir=$srcdir ;;
22150 *) # Relative path.
22151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22153 esac
22155 # Do not use `cd foo && pwd` to compute absolute paths, because
22156 # the directories may not exist.
22157 case `pwd` in
22158 .) ac_abs_builddir="$ac_dir";;
22160 case "$ac_dir" in
22161 .) ac_abs_builddir=`pwd`;;
22162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22164 esac;;
22165 esac
22166 case $ac_abs_builddir in
22167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22169 case ${ac_top_builddir}. in
22170 .) ac_abs_top_builddir=$ac_abs_builddir;;
22171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22173 esac;;
22174 esac
22175 case $ac_abs_builddir in
22176 .) ac_abs_srcdir=$ac_srcdir;;
22178 case $ac_srcdir in
22179 .) ac_abs_srcdir=$ac_abs_builddir;;
22180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22182 esac;;
22183 esac
22184 case $ac_abs_builddir in
22185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22187 case $ac_top_srcdir in
22188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22191 esac;;
22192 esac
22195 case $INSTALL in
22196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22197 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22198 esac
22200 if test x"$ac_file" != x-; then
22201 { echo "$as_me:$LINENO: creating $ac_file" >&5
22202 echo "$as_me: creating $ac_file" >&6;}
22203 rm -f "$ac_file"
22205 # Let's still pretend it is `configure' which instantiates (i.e., don't
22206 # use $as_me), people would be surprised to read:
22207 # /* config.h. Generated by config.status. */
22208 if test x"$ac_file" = x-; then
22209 configure_input=
22210 else
22211 configure_input="$ac_file. "
22213 configure_input=$configure_input"Generated from `echo $ac_file_in |
22214 sed 's,.*/,,'` by configure."
22216 # First look for the input files in the build tree, otherwise in the
22217 # src tree.
22218 ac_file_inputs=`IFS=:
22219 for f in $ac_file_in; do
22220 case $f in
22221 -) echo $tmp/stdin ;;
22222 [\\/$]*)
22223 # Absolute (can't be DOS-style, as IFS=:)
22224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22225 echo "$as_me: error: cannot find input file: $f" >&2;}
22226 { (exit 1); exit 1; }; }
22227 echo "$f";;
22228 *) # Relative
22229 if test -f "$f"; then
22230 # Build tree
22231 echo "$f"
22232 elif test -f "$srcdir/$f"; then
22233 # Source tree
22234 echo "$srcdir/$f"
22235 else
22236 # /dev/null tree
22237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22238 echo "$as_me: error: cannot find input file: $f" >&2;}
22239 { (exit 1); exit 1; }; }
22240 fi;;
22241 esac
22242 done` || { (exit 1); exit 1; }
22243 _ACEOF
22244 cat >>$CONFIG_STATUS <<_ACEOF
22245 sed "$ac_vpsub
22246 $extrasub
22247 _ACEOF
22248 cat >>$CONFIG_STATUS <<\_ACEOF
22250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22251 s,@configure_input@,$configure_input,;t t
22252 s,@srcdir@,$ac_srcdir,;t t
22253 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22254 s,@top_srcdir@,$ac_top_srcdir,;t t
22255 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22256 s,@builddir@,$ac_builddir,;t t
22257 s,@abs_builddir@,$ac_abs_builddir,;t t
22258 s,@top_builddir@,$ac_top_builddir,;t t
22259 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22260 s,@INSTALL@,$ac_INSTALL,;t t
22261 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22262 rm -f $tmp/stdin
22263 if test x"$ac_file" != x-; then
22264 mv $tmp/out $ac_file
22265 else
22266 cat $tmp/out
22267 rm -f $tmp/out
22270 done
22271 _ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22275 # CONFIG_HEADER section.
22278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22281 # ac_d sets the value in "#define NAME VALUE" lines.
22282 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22283 ac_dB='[ ].*$,\1#\2'
22284 ac_dC=' '
22285 ac_dD=',;t'
22286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22287 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22288 ac_uB='$,\1#\2define\3'
22289 ac_uC=' '
22290 ac_uD=',;t'
22292 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22294 case $ac_file in
22295 - | *:- | *:-:* ) # input from stdin
22296 cat >$tmp/stdin
22297 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22298 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22299 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22301 * ) ac_file_in=$ac_file.in ;;
22302 esac
22304 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22305 echo "$as_me: creating $ac_file" >&6;}
22307 # First look for the input files in the build tree, otherwise in the
22308 # src tree.
22309 ac_file_inputs=`IFS=:
22310 for f in $ac_file_in; do
22311 case $f in
22312 -) echo $tmp/stdin ;;
22313 [\\/$]*)
22314 # Absolute (can't be DOS-style, as IFS=:)
22315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22316 echo "$as_me: error: cannot find input file: $f" >&2;}
22317 { (exit 1); exit 1; }; }
22318 # Do quote $f, to prevent DOS paths from being IFS'd.
22319 echo "$f";;
22320 *) # Relative
22321 if test -f "$f"; then
22322 # Build tree
22323 echo "$f"
22324 elif test -f "$srcdir/$f"; then
22325 # Source tree
22326 echo "$srcdir/$f"
22327 else
22328 # /dev/null tree
22329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22330 echo "$as_me: error: cannot find input file: $f" >&2;}
22331 { (exit 1); exit 1; }; }
22332 fi;;
22333 esac
22334 done` || { (exit 1); exit 1; }
22335 # Remove the trailing spaces.
22336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22338 _ACEOF
22340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22341 # `conftest.undefs', that substitutes the proper values into
22342 # config.h.in to produce config.h. The first handles `#define'
22343 # templates, and the second `#undef' templates.
22344 # And first: Protect against being on the right side of a sed subst in
22345 # config.status. Protect against being in an unquoted here document
22346 # in config.status.
22347 rm -f conftest.defines conftest.undefs
22348 # Using a here document instead of a string reduces the quoting nightmare.
22349 # Putting comments in sed scripts is not portable.
22351 # `end' is used to avoid that the second main sed command (meant for
22352 # 0-ary CPP macros) applies to n-ary macro definitions.
22353 # See the Autoconf documentation for `clear'.
22354 cat >confdef2sed.sed <<\_ACEOF
22355 s/[\\&,]/\\&/g
22356 s,[\\$`],\\&,g
22357 t clear
22358 : clear
22359 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22360 t end
22361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22362 : end
22363 _ACEOF
22364 # If some macros were called several times there might be several times
22365 # the same #defines, which is useless. Nevertheless, we may not want to
22366 # sort them, since we want the *last* AC-DEFINE to be honored.
22367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22369 rm -f confdef2sed.sed
22371 # This sed command replaces #undef with comments. This is necessary, for
22372 # example, in the case of _POSIX_SOURCE, which is predefined and required
22373 # on some systems where configure will not decide to define it.
22374 cat >>conftest.undefs <<\_ACEOF
22375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22376 _ACEOF
22378 # Break up conftest.defines because some shells have a limit on the size
22379 # of here documents, and old seds have small limits too (100 cmds).
22380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22381 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22383 echo ' :' >>$CONFIG_STATUS
22384 rm -f conftest.tail
22385 while grep . conftest.defines >/dev/null
22387 # Write a limited-size here document to $tmp/defines.sed.
22388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22389 # Speed up: don't consider the non `#define' lines.
22390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22391 # Work around the forget-to-reset-the-flag bug.
22392 echo 't clr' >>$CONFIG_STATUS
22393 echo ': clr' >>$CONFIG_STATUS
22394 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22395 echo 'CEOF
22396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22397 rm -f $tmp/in
22398 mv $tmp/out $tmp/in
22399 ' >>$CONFIG_STATUS
22400 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22401 rm -f conftest.defines
22402 mv conftest.tail conftest.defines
22403 done
22404 rm -f conftest.defines
22405 echo ' fi # grep' >>$CONFIG_STATUS
22406 echo >>$CONFIG_STATUS
22408 # Break up conftest.undefs because some shells have a limit on the size
22409 # of here documents, and old seds have small limits too (100 cmds).
22410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22411 rm -f conftest.tail
22412 while grep . conftest.undefs >/dev/null
22414 # Write a limited-size here document to $tmp/undefs.sed.
22415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22416 # Speed up: don't consider the non `#undef'
22417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22418 # Work around the forget-to-reset-the-flag bug.
22419 echo 't clr' >>$CONFIG_STATUS
22420 echo ': clr' >>$CONFIG_STATUS
22421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22422 echo 'CEOF
22423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22424 rm -f $tmp/in
22425 mv $tmp/out $tmp/in
22426 ' >>$CONFIG_STATUS
22427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22428 rm -f conftest.undefs
22429 mv conftest.tail conftest.undefs
22430 done
22431 rm -f conftest.undefs
22433 cat >>$CONFIG_STATUS <<\_ACEOF
22434 # Let's still pretend it is `configure' which instantiates (i.e., don't
22435 # use $as_me), people would be surprised to read:
22436 # /* config.h. Generated by config.status. */
22437 if test x"$ac_file" = x-; then
22438 echo "/* Generated by configure. */" >$tmp/config.h
22439 else
22440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22442 cat $tmp/in >>$tmp/config.h
22443 rm -f $tmp/in
22444 if test x"$ac_file" != x-; then
22445 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22447 echo "$as_me: $ac_file is unchanged" >&6;}
22448 else
22449 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$ac_file" : 'X\(//\)[^/]' \| \
22452 X"$ac_file" : 'X\(//\)$' \| \
22453 X"$ac_file" : 'X\(/\)' \| \
22454 . : '\(.\)' 2>/dev/null ||
22455 echo X"$ac_file" |
22456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22458 /^X\(\/\/\)$/{ s//\1/; q; }
22459 /^X\(\/\).*/{ s//\1/; q; }
22460 s/.*/./; q'`
22461 { if $as_mkdir_p; then
22462 mkdir -p "$ac_dir"
22463 else
22464 as_dir="$ac_dir"
22465 as_dirs=
22466 while test ! -d "$as_dir"; do
22467 as_dirs="$as_dir $as_dirs"
22468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470 X"$as_dir" : 'X\(//\)[^/]' \| \
22471 X"$as_dir" : 'X\(//\)$' \| \
22472 X"$as_dir" : 'X\(/\)' \| \
22473 . : '\(.\)' 2>/dev/null ||
22474 echo X"$as_dir" |
22475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22477 /^X\(\/\/\)$/{ s//\1/; q; }
22478 /^X\(\/\).*/{ s//\1/; q; }
22479 s/.*/./; q'`
22480 done
22481 test ! -n "$as_dirs" || mkdir $as_dirs
22482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22484 { (exit 1); exit 1; }; }; }
22486 rm -f $ac_file
22487 mv $tmp/config.h $ac_file
22489 else
22490 cat $tmp/config.h
22491 rm -f $tmp/config.h
22493 done
22494 _ACEOF
22496 cat >>$CONFIG_STATUS <<\_ACEOF
22498 { (exit 0); exit 0; }
22499 _ACEOF
22500 chmod +x $CONFIG_STATUS
22501 ac_clean_files=$ac_clean_files_save
22504 # configure is writing to config.log, and then calls config.status.
22505 # config.status does its own redirection, appending to config.log.
22506 # Unfortunately, on DOS this fails, as config.log is still kept open
22507 # by configure, so config.status won't be able to write to it; its
22508 # output is simply discarded. So we exec the FD to /dev/null,
22509 # effectively closing config.log, so it can be properly (re)opened and
22510 # appended to by config.status. When coming back to configure, we
22511 # need to make the FD available again.
22512 if test "$no_create" != yes; then
22513 ac_cs_success=:
22514 ac_config_status_args=
22515 test "$silent" = yes &&
22516 ac_config_status_args="$ac_config_status_args --quiet"
22517 exec 5>/dev/null
22518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22519 exec 5>>config.log
22520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22521 # would make configure fail if this is the last instruction.
22522 $ac_cs_success || { (exit 1); exit 1; }
22526 echo "creating Setup"
22527 if test ! -f Modules/Setup
22528 then
22529 cp $srcdir/Modules/Setup.dist Modules/Setup
22532 echo "creating Setup.local"
22533 if test ! -f Modules/Setup.local
22534 then
22535 echo "# Edit this file for local setup changes" >Modules/Setup.local
22538 echo "creating Makefile"
22539 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
22540 -s Modules Modules/Setup.config \
22541 Modules/Setup.local Modules/Setup
22542 mv config.c Modules