Don't abbreviate ABS, use long name ABSOLUTE.
[python.git] / configure
blob7151b2e988dacf32eacfdf8bc0c616720c5d1968
1 #! /bin/sh
2 # From configure.in Revision: 43158 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[012345678])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1517 # has no effect, don't bother defineing them
1518 Darwin/[78].*)
1519 define_xopen_source=no
1522 esac
1524 if test $define_xopen_source = yes
1525 then
1526 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1527 # defined precisely as g++ defines it
1528 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1529 # compiler
1530 case $ac_sys_system/$ac_sys_release in
1531 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1533 cat >>confdefs.h <<\_ACEOF
1534 #define _XOPEN_SOURCE 500
1535 _ACEOF
1540 cat >>confdefs.h <<\_ACEOF
1541 #define _XOPEN_SOURCE 600
1542 _ACEOF
1545 esac
1547 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1548 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1549 # several APIs are not declared. Since this is also needed in some
1550 # cases for HP-UX, we define it globally.
1551 # except for Solaris 10, where it must not be defined,
1552 # as it implies XPG4.2
1553 case $ac_sys_system/$ac_sys_release in
1554 SunOS/5.10)
1558 cat >>confdefs.h <<\_ACEOF
1559 #define _XOPEN_SOURCE_EXTENDED 1
1560 _ACEOF
1563 esac
1566 cat >>confdefs.h <<\_ACEOF
1567 #define _POSIX_C_SOURCE 200112L
1568 _ACEOF
1574 # SGI compilers allow the specification of the both the ABI and the
1575 # ISA on the command line. Depending on the values of these switches,
1576 # different and often incompatable code will be generated.
1578 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1579 # thus supply support for various ABI/ISA combinations. The MACHDEP
1580 # variable is also adjusted.
1583 if test ! -z "$SGI_ABI"
1584 then
1585 CC="cc $SGI_ABI"
1586 LDFLAGS="$SGI_ABI $LDFLAGS"
1587 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1589 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1590 echo "${ECHO_T}$MACHDEP" >&6
1592 # And add extra plat-mac for darwin
1595 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1596 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1597 if test -z "$EXTRAPLATDIR"
1598 then
1599 case $MACHDEP in
1600 darwin)
1601 EXTRAPLATDIR="\$(PLATMACDIRS)"
1602 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1605 EXTRAPLATDIR=""
1606 EXTRAMACHDEPPATH=""
1608 esac
1610 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1611 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1613 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1614 # it may influence the way we can build extensions, so distutils
1615 # needs to check it
1617 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1619 # checks for alternative programs
1621 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1622 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1623 # just to get things to compile and link. Users are free to override OPT
1624 # when running configure or make. The build should not break if they do.
1625 # BASECFLAGS should generally not be messed with, however.
1627 # XXX shouldn't some/most/all of this code be merged with the stuff later
1628 # on that fiddles with OPT and BASECFLAGS?
1629 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1630 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1632 # Check whether --with-gcc or --without-gcc was given.
1633 if test "${with_gcc+set}" = set; then
1634 withval="$with_gcc"
1636 case $withval in
1637 no) CC=cc
1638 without_gcc=yes;;
1639 yes) CC=gcc
1640 without_gcc=no;;
1641 *) CC=$withval
1642 without_gcc=$withval;;
1643 esac
1644 else
1646 case $ac_sys_system in
1647 AIX*) CC=cc_r
1648 without_gcc=;;
1649 BeOS*)
1650 case $BE_HOST_CPU in
1651 ppc)
1652 CC=mwcc
1653 without_gcc=yes
1654 BASECFLAGS="$BASECFLAGS -export pragma"
1655 OPT="$OPT -O"
1656 LDFLAGS="$LDFLAGS -nodup"
1658 x86)
1659 CC=gcc
1660 without_gcc=no
1661 OPT="$OPT -O"
1664 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1665 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1666 { (exit 1); exit 1; }; }
1668 esac
1669 AR="\$(srcdir)/Modules/ar_beos"
1670 RANLIB=:
1672 Monterey*)
1673 RANLIB=:
1674 without_gcc=;;
1675 *) without_gcc=no;;
1676 esac
1678 echo "$as_me:$LINENO: result: $without_gcc" >&5
1679 echo "${ECHO_T}$without_gcc" >&6
1683 MAINOBJ=python.o
1684 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1685 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1687 # Check whether --with-cxx or --without-cxx was given.
1688 if test "${with_cxx+set}" = set; then
1689 withval="$with_cxx"
1691 check_cxx=no
1692 case $withval in
1693 no) CXX=
1694 with_cxx=no;;
1695 *) CXX=$withval
1696 MAINOBJ=ccpython.o
1697 with_cxx=$withval;;
1698 esac
1699 else
1701 with_cxx=no
1702 check_cxx=yes
1705 echo "$as_me:$LINENO: result: $with_cxx" >&5
1706 echo "${ECHO_T}$with_cxx" >&6
1708 if test "$with_cxx" = "yes"
1709 then
1710 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1711 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1712 { (exit 1); exit 1; }; }
1718 if test "$check_cxx" = "yes"
1719 then
1720 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CXX+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$CXX"; then
1730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CXX="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 CXX=$ac_cv_prog_CXX
1749 if test -n "$CXX"; then
1750 echo "$as_me:$LINENO: result: $CXX" >&5
1751 echo "${ECHO_T}$CXX" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$CXX" && break
1758 done
1759 test -n "$CXX" || CXX="notfound"
1761 if test "$CXX" = "notfound"
1762 then
1763 CXX=
1764 else
1765 ac_ext=cc
1766 ac_cpp='$CXXCPP $CPPFLAGS'
1767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1791 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C++ compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1848 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C++ compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 # If the user switches compilers, we can't believe the cache
1934 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1935 then
1936 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&5
1938 echo "$as_me: error: cached CC is different -- throw away $cache_file
1939 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1940 { (exit 1); exit 1; }; }
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1970 done
1971 done
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1986 ac_ct_CC=$CC
1987 # Extract the first word of "gcc", so it can be a program name with args.
1988 set dummy gcc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC="gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 CC=$ac_ct_CC
2023 else
2024 CC="$ac_cv_prog_CC"
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="${ac_tool_prefix}cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_CC"; then
2066 ac_ct_CC=$CC
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC="cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2097 else
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 CC=$ac_ct_CC
2103 else
2104 CC="$ac_cv_prog_CC"
2108 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 ac_prog_rejected=no
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128 ac_prog_rejected=yes
2129 continue
2131 ac_cv_prog_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy $ac_cv_prog_CC
2141 shift
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2146 shift
2147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154 echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2156 else
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 for ac_prog in cl
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2187 done
2188 done
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$CC" && break
2202 done
2204 if test -z "$CC"; then
2205 ac_ct_CC=$CC
2206 for ac_prog in cl
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_ac_ct_CC="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237 echo "${ECHO_T}$ac_ct_CC" >&6
2238 else
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$ac_ct_CC" && break
2244 done
2246 CC=$ac_ct_CC
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO:" \
2260 "checking for C compiler version" >&5
2261 ac_compiler=`set X $ac_compile; echo $2`
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263 (eval $ac_compiler --version </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268 (eval $ac_compiler -v </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273 (eval $ac_compiler -V </dev/null >&5) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2290 return 0;
2292 _ACEOF
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2297 # of exeext.
2298 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302 (eval $ac_link_default) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Find the output, starting from the most likely. This scheme is
2307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # resort.
2310 # Be careful to initialize this variable, since it used to be cached.
2311 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2312 ac_cv_exeext=
2313 # b.out is created by i960 compilers.
2314 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316 test -f "$ac_file" || continue
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2320 conftest.$ac_ext )
2321 # This is the source file.
2323 [ab].out )
2324 # We found the default executable, but exeext='' is most
2325 # certainly right.
2326 break;;
2327 *.* )
2328 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 # FIXME: I believe we export ac_cv_exeext for Libtool,
2330 # but it would be cool to find out if it's true. Does anybody
2331 # maintain Libtool? --akim.
2332 export ac_cv_exeext
2333 break;;
2335 break;;
2336 esac
2337 done
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }
2349 ac_exeext=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 cross_compiling=no
2367 else
2368 if test "$cross_compiling" = maybe; then
2369 cross_compiling=yes
2370 else
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385 ac_clean_files=$ac_clean_files_save
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6
2393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2403 # `rm'.
2404 for ac_file in conftest.exe conftest conftest.*; do
2405 test -f "$ac_file" || continue
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409 export ac_cv_exeext
2410 break;;
2411 * ) break;;
2412 esac
2413 done
2414 else
2415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2422 rm -f conftest$ac_cv_exeext
2423 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424 echo "${ECHO_T}$ac_cv_exeext" >&6
2426 rm -f conftest.$ac_ext
2427 EXEEXT=$ac_cv_exeext
2428 ac_exeext=$EXEEXT
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2459 break;;
2460 esac
2461 done
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT=$ac_cv_objext
2478 ac_objext=$OBJEXT
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2494 #ifndef __GNUC__
2495 choke me
2496 #endif
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 ac_compiler_gnu=yes
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 ac_compiler_gnu=no
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS=${CFLAGS+set}
2539 ac_save_CFLAGS=$CFLAGS
2540 CFLAGS="-g"
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_prog_cc_g=yes
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 ac_cv_prog_cc_g=no
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2598 CFLAGS="-g -O2"
2599 else
2600 CFLAGS="-g"
2602 else
2603 if test "$GCC" = yes; then
2604 CFLAGS="-O2"
2605 else
2606 CFLAGS=
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #include <stdarg.h>
2623 #include <stdio.h>
2624 #include <sys/types.h>
2625 #include <sys/stat.h>
2626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2627 struct buf { int x; };
2628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2629 static char *e (p, i)
2630 char **p;
2631 int i;
2633 return p[i];
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2637 char *s;
2638 va_list v;
2639 va_start (v,p);
2640 s = g (p, va_arg (v,int));
2641 va_end (v);
2642 return s;
2645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2646 function prototypes and stuff, but not '\xHH' hex character constants.
2647 These don't provoke an error unfortunately, instead are silently treated
2648 as 'x'. The following induces an error, until -std1 is added to get
2649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2650 array size at least. It's necessary to write '\x00'==0 to get something
2651 that's true only with -std1. */
2652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654 int test (int i, double x);
2655 struct s1 {int (*f) (int a);};
2656 struct s2 {int (*f) (double a);};
2657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2658 int argc;
2659 char **argv;
2661 main ()
2663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2665 return 0;
2667 _ACEOF
2668 # Don't try gcc -ansi; that turns off useful extensions and
2669 # breaks some systems' header files.
2670 # AIX -qlanglvl=ansi
2671 # Ultrix and OSF/1 -std1
2672 # HP-UX 10.20 and later -Ae
2673 # HP-UX older versions -Aa -D_HPUX_SOURCE
2674 # SVR4 -Xc -D__EXTENSIONS__
2675 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677 CC="$ac_save_CC $ac_arg"
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_stdc=$ac_arg
2701 break
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2707 rm -f conftest.err conftest.$ac_objext
2708 done
2709 rm -f conftest.$ac_ext conftest.$ac_objext
2710 CC=$ac_save_CC
2714 case "x$ac_cv_prog_cc_stdc" in
2715 x|xno)
2716 echo "$as_me:$LINENO: result: none needed" >&5
2717 echo "${ECHO_T}none needed" >&6 ;;
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2721 CC="$CC $ac_cv_prog_cc_stdc" ;;
2722 esac
2724 # Some people use a C++ compiler to compile C. Since we use `exit',
2725 # in C++ we need to declare it. In case someone uses the same compiler
2726 # for both compiling C and C++ we need to have the C++ compiler decide
2727 # the declaration of exit, since it's the most demanding environment.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #ifndef __cplusplus
2730 choke me
2731 #endif
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration in \
2756 '' \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2761 'void exit (int);'
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769 $ac_declaration
2770 #include <stdlib.h>
2772 main ()
2774 exit (42);
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 continue
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2817 main ()
2819 exit (42);
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 break
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 done
2854 rm -f conftest*
2855 if test -n "$ac_declaration"; then
2856 echo '#ifdef __cplusplus' >>confdefs.h
2857 echo $ac_declaration >>confdefs.h
2858 echo '#endif' >>confdefs.h
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 # checks for UNIX variants that set C preprocessor variables
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885 CPP=
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914 Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927 else
2928 ac_cpp_err=
2930 else
2931 ac_cpp_err=yes
2933 if test -z "$ac_cpp_err"; then
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2940 continue
2942 rm -f conftest.err conftest.$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 else
2966 ac_cpp_err=
2968 else
2969 ac_cpp_err=yes
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2973 continue
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2982 rm -f conftest.err conftest.$ac_ext
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988 break
2991 done
2992 ac_cv_prog_CPP=$CPP
2995 CPP=$ac_cv_prog_CPP
2996 else
2997 ac_cv_prog_CPP=$CPP
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 else
3035 ac_cpp_err=
3037 else
3038 ac_cpp_err=yes
3040 if test -z "$ac_cpp_err"; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3047 continue
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 else
3073 ac_cpp_err=
3075 else
3076 ac_cpp_err=yes
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3080 continue
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3089 rm -f conftest.err conftest.$ac_ext
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3096 else
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3117 then ac_cv_prog_egrep='grep -E'
3118 else ac_cv_prog_egrep='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for AIX" >&5
3128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #ifdef _AIX
3137 #endif
3139 _ACEOF
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 $EGREP "yes" >/dev/null 2>&1; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144 cat >>confdefs.h <<\_ACEOF
3145 #define _ALL_SOURCE 1
3146 _ACEOF
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3152 rm -f conftest*
3156 # Check for unsupported systems
3157 case $ac_sys_system/$ac_sys_release in
3158 Linux*/1*)
3159 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3160 echo See README for details.
3161 exit 1;;
3162 esac
3165 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3166 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3168 # Check whether --with-suffix or --without-suffix was given.
3169 if test "${with_suffix+set}" = set; then
3170 withval="$with_suffix"
3172 case $withval in
3173 no) EXEEXT=;;
3174 yes) EXEEXT=.exe;;
3175 *) EXEEXT=$withval;;
3176 esac
3178 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3179 echo "${ECHO_T}$EXEEXT" >&6
3181 # Test whether we're running on a non-case-sensitive system, in which
3182 # case we give a warning if no ext is given
3184 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3185 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3186 if test ! -d CaseSensitiveTestDir; then
3187 mkdir CaseSensitiveTestDir
3190 if test -d casesensitivetestdir
3191 then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193 echo "${ECHO_T}yes" >&6
3194 BUILDEXEEXT=.exe
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 BUILDEXEEXT=$EXEEXT
3200 rmdir CaseSensitiveTestDir
3202 case $MACHDEP in
3203 bsdos*)
3204 case $CC in
3205 gcc) CC="$CC -D_HAVE_BSDI";;
3206 esac;;
3207 esac
3209 case $ac_sys_system in
3210 hp*|HP*)
3211 case $CC in
3212 cc|*/cc) CC="$CC -Ae";;
3213 esac;;
3214 Monterey*)
3215 case $CC in
3216 cc) CC="$CC -Wl,-Bexport";;
3217 esac;;
3218 SunOS*)
3219 # Some functions have a prototype only with that define, e.g. confstr
3221 cat >>confdefs.h <<\_ACEOF
3222 #define __EXTENSIONS__ 1
3223 _ACEOF
3226 esac
3230 echo "$as_me:$LINENO: checking LIBRARY" >&5
3231 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3232 if test -z "$LIBRARY"
3233 then
3234 LIBRARY='libpython$(VERSION).a'
3236 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3237 echo "${ECHO_T}$LIBRARY" >&6
3239 # LDLIBRARY is the name of the library to link against (as opposed to the
3240 # name of the library into which to insert object files). BLDLIBRARY is also
3241 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3242 # is blank as the main program is not linked directly against LDLIBRARY.
3243 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3244 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3245 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3246 # DLLLIBRARY is the shared (i.e., DLL) library.
3248 # RUNSHARED is used to run shared python without installed libraries
3250 # INSTSONAME is the name of the shared library that will be use to install
3251 # on the system - some systems like version suffix, others don't
3258 LDLIBRARY="$LIBRARY"
3259 BLDLIBRARY='$(LDLIBRARY)'
3260 INSTSONAME='$(LDLIBRARY)'
3261 DLLLIBRARY=''
3262 LDLIBRARYDIR=''
3263 RUNSHARED=''
3265 # LINKCC is the command that links the python executable -- default is $(CC).
3266 # If CXX is set, and if it is needed to link a main function that was
3267 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3268 # python might then depend on the C++ runtime
3269 # This is altered for AIX in order to build the export list before
3270 # linking.
3272 echo "$as_me:$LINENO: checking LINKCC" >&5
3273 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3274 if test -z "$LINKCC"
3275 then
3276 if test -z "$CXX"; then
3277 LINKCC="\$(PURIFY) \$(CC)"
3278 else
3279 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3280 $CXX -c conftest_a.cc # 2>&5
3281 echo 'void foo(){}' > conftest_b.$ac_ext
3282 $CC -c conftest_b.$ac_ext # 2>&5
3283 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3284 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3285 then
3286 LINKCC="\$(PURIFY) \$(CC)"
3287 else
3288 LINKCC="\$(PURIFY) \$(CXX)"
3290 rm -fr conftest*
3292 case $ac_sys_system in
3293 AIX*)
3294 exp_extra="\"\""
3295 if test $ac_sys_release -ge 5 -o \
3296 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 exp_extra="."
3299 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3300 Monterey64*)
3301 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3302 esac
3304 echo "$as_me:$LINENO: result: $LINKCC" >&5
3305 echo "${ECHO_T}$LINKCC" >&6
3307 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3308 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311 enableval="$enable_shared"
3315 if test -z "$enable_shared"
3316 then
3317 case $ac_sys_system in
3318 CYGWIN* | atheos*)
3319 enable_shared="yes";;
3321 enable_shared="no";;
3322 esac
3324 echo "$as_me:$LINENO: result: $enable_shared" >&5
3325 echo "${ECHO_T}$enable_shared" >&6
3327 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3328 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3329 # Check whether --enable-profiling or --disable-profiling was given.
3330 if test "${enable_profiling+set}" = set; then
3331 enableval="$enable_profiling"
3332 ac_save_cc="$CC"
3333 CC="$CC -pg"
3334 if test "$cross_compiling" = yes; then
3335 ac_enable_profiling="no"
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 int main() { return 0; }
3344 _ACEOF
3345 rm -f conftest$ac_exeext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347 (eval $ac_link) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_enable_profiling="yes"
3357 else
3358 echo "$as_me: program exited with status $ac_status" >&5
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ( exit $ac_status )
3363 ac_enable_profiling="no"
3365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3367 CC="$ac_save_cc"
3369 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3370 echo "${ECHO_T}$ac_enable_profiling" >&6
3372 case "$ac_enable_profiling" in
3373 "yes")
3374 BASECFLAGS="-pg $BASECFLAGS"
3375 LDFLAGS="-pg $LDFLAGS"
3377 esac
3379 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3380 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3382 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3383 # library that we build, but we do not want to link against it (we
3384 # will find it with a -framework option). For this reason there is an
3385 # extra variable BLDLIBRARY against which Python and the extension
3386 # modules are linked, BLDLIBRARY. This is normally the same as
3387 # LDLIBRARY, but empty for MacOSX framework builds.
3388 if test "$enable_framework"
3389 then
3390 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3391 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY=''
3393 else
3394 BLDLIBRARY='$(LDLIBRARY)'
3397 # Other platforms follow
3398 if test $enable_shared = "yes"; then
3400 cat >>confdefs.h <<\_ACEOF
3401 #define Py_ENABLE_SHARED 1
3402 _ACEOF
3404 case $ac_sys_system in
3405 BeOS*)
3406 LDLIBRARY='libpython$(VERSION).so'
3408 CYGWIN*)
3409 LDLIBRARY='libpython$(VERSION).dll.a'
3410 DLLLIBRARY='libpython$(VERSION).dll'
3412 SunOS*)
3413 LDLIBRARY='libpython$(VERSION).so'
3414 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3415 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3416 INSTSONAME="$LDLIBRARY".$SOVERSION
3418 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3419 LDLIBRARY='libpython$(VERSION).so'
3420 BLDLIBRARY='-L. -lpython$(VERSION)'
3421 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3422 case $ac_sys_system in
3423 FreeBSD*)
3424 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3426 esac
3427 INSTSONAME="$LDLIBRARY".$SOVERSION
3429 hp*|HP*)
3430 LDLIBRARY='libpython$(VERSION).sl'
3431 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3432 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3434 OSF*)
3435 LDLIBRARY='libpython$(VERSION).so'
3436 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3437 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3439 atheos*)
3440 LDLIBRARY='libpython$(VERSION).so'
3441 BLDLIBRARY='-L. -lpython$(VERSION)'
3442 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 esac
3445 else # shared is disabled
3446 case $ac_sys_system in
3447 CYGWIN*)
3448 BLDLIBRARY='$(LIBRARY)'
3449 LDLIBRARY='libpython$(VERSION).dll.a'
3451 esac
3454 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3455 echo "${ECHO_T}$LDLIBRARY" >&6
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_RANLIB+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test -n "$RANLIB"; then
3466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3484 RANLIB=$ac_cv_prog_RANLIB
3485 if test -n "$RANLIB"; then
3486 echo "$as_me:$LINENO: result: $RANLIB" >&5
3487 echo "${ECHO_T}$RANLIB" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_RANLIB"; then
3495 ac_ct_RANLIB=$RANLIB
3496 # Extract the first word of "ranlib", so it can be a program name with args.
3497 set dummy ranlib; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_RANLIB"; then
3504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_RANLIB="ranlib"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3520 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3524 if test -n "$ac_ct_RANLIB"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3526 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 else
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 RANLIB=$ac_ct_RANLIB
3533 else
3534 RANLIB="$ac_cv_prog_RANLIB"
3538 for ac_prog in ar aal
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_AR+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test -n "$AR"; then
3548 ac_cv_prog_AR="$AR" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AR="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3566 AR=$ac_cv_prog_AR
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$AR" && break
3576 done
3577 test -n "$AR" || AR="ar"
3581 # Extract the first word of "svnversion", so it can be a program name with args.
3582 set dummy svnversion; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$SVNVERSION"; then
3589 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_SVNVERSION="found"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3607 SVNVERSION=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3617 then
3618 SVNVERSION="svnversion \$(srcdir)"
3619 else
3620 SVNVERSION="echo exported"
3623 case $MACHDEP in
3624 bsdos*|hp*|HP*)
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3627 then
3628 INSTALL="${srcdir}/install-sh -c"
3630 esac
3631 ac_aux_dir=
3632 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3633 if test -f $ac_dir/install-sh; then
3634 ac_aux_dir=$ac_dir
3635 ac_install_sh="$ac_aux_dir/install-sh -c"
3636 break
3637 elif test -f $ac_dir/install.sh; then
3638 ac_aux_dir=$ac_dir
3639 ac_install_sh="$ac_aux_dir/install.sh -c"
3640 break
3641 elif test -f $ac_dir/shtool; then
3642 ac_aux_dir=$ac_dir
3643 ac_install_sh="$ac_aux_dir/shtool install -c"
3644 break
3646 done
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3662 # AIX /bin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681 case $as_dir/ in
3682 ./ | .// | /cC/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3685 /usr/ucb/* ) ;;
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3701 else
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3706 done
3707 done
3709 esac
3710 done
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL=$ac_cv_path_install
3716 else
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3740 BeOS*) LN="ln -s";;
3741 CYGWIN*) LN="ln -s";;
3742 atheos*) LN="ln -s";;
3743 *) LN=ln;;
3744 esac
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval="$with_pydebug"
3755 if test "$withval" != no
3756 then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define Py_DEBUG 1
3760 _ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3764 Py_DEBUG='true'
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # user set OPT.
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3789 if test -z "$OPT"
3790 then
3791 case $GCC in
3792 yes)
3793 case $ac_cv_prog_cc_g in
3794 yes)
3795 if test "$Py_DEBUG" = 'true' ; then
3796 # Optimization messes up debuggers, so turn it off for
3797 # debug builds.
3798 OPT="-g -Wall -Wstrict-prototypes"
3799 else
3800 OPT="-g -O3 -Wall -Wstrict-prototypes"
3804 OPT="-O3 -Wall -Wstrict-prototypes"
3806 esac
3807 case $ac_sys_system in
3808 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3810 esac
3814 OPT="-O"
3816 esac
3818 # The current (beta) Monterey compiler dies with optimizations
3819 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3820 case $ac_sys_system in
3821 Monterey*)
3822 OPT=""
3824 esac
3829 # tweak BASECFLAGS based on compiler and platform
3830 case $GCC in
3831 yes)
3832 # Python violates C99 rules, by casting between incompatible
3833 # pointer types. GCC may generate bad code as a result of that,
3834 # so use -fno-strict-aliasing if supported.
3835 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3836 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3837 ac_save_cc="$CC"
3838 CC="$CC -fno-strict-aliasing"
3839 if test "$cross_compiling" = yes; then
3840 ac_cv_no_strict_aliasing_ok=no
3841 else
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 int main() { return 0; }
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_no_strict_aliasing_ok=yes
3862 else
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ( exit $ac_status )
3868 ac_cv_no_strict_aliasing_ok=no
3870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3872 CC="$ac_save_cc"
3873 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3874 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3875 if test $ac_cv_no_strict_aliasing_ok = yes
3876 then
3877 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3879 case $ac_sys_system in
3880 SCO_SV*)
3881 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3883 # is there any other compiler on Darwin besides gcc?
3884 Darwin*)
3885 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3887 OSF*)
3888 BASECFLAGS="$BASECFLAGS -mieee"
3890 esac
3894 case $ac_sys_system in
3895 OpenUNIX*|UnixWare*)
3896 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3898 OSF*)
3899 BASECFLAGS="$BASECFLAGS -ieee -std"
3901 SCO_SV*)
3902 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3904 esac
3906 esac
3908 if test "$Py_DEBUG" = 'true'; then
3910 else
3911 OPT="-DNDEBUG $OPT"
3914 if test "$ac_arch_flags"
3915 then
3916 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3919 # disable check for icc since it seems to pass, but generates a warning
3920 if test "$CC" = icc
3921 then
3922 ac_cv_opt_olimit_ok=no
3925 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3926 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3927 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 ac_save_cc="$CC"
3931 CC="$CC -OPT:Olimit=0"
3932 if test "$cross_compiling" = yes; then
3933 ac_cv_opt_olimit_ok=no
3934 else
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 int main() { return 0; }
3942 _ACEOF
3943 rm -f conftest$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_opt_olimit_ok=yes
3955 else
3956 echo "$as_me: program exited with status $ac_status" >&5
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ( exit $ac_status )
3961 ac_cv_opt_olimit_ok=no
3963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3965 CC="$ac_save_cc"
3968 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3969 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3970 if test $ac_cv_opt_olimit_ok = yes; then
3971 case $ac_sys_system in
3972 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3973 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3974 # environment?
3975 Darwin*)
3978 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3980 esac
3981 else
3982 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3983 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3984 if test "${ac_cv_olimit_ok+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 ac_save_cc="$CC"
3988 CC="$CC -Olimit 1500"
3989 if test "$cross_compiling" = yes; then
3990 ac_cv_olimit_ok=no
3991 else
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 int main() { return 0; }
3999 _ACEOF
4000 rm -f conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_olimit_ok=yes
4012 else
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ( exit $ac_status )
4018 ac_cv_olimit_ok=no
4020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4022 CC="$ac_save_cc"
4025 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4026 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4027 if test $ac_cv_olimit_ok = yes; then
4028 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4032 # On some compilers, pthreads are available without further options
4033 # (e.g. MacOS X). On some of these systems, the compiler will not
4034 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4035 # So we have to see first whether pthreads are available without
4036 # options before we can check whether -Kpthread improves anything.
4037 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4038 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4039 if test "${ac_cv_pthread_is_default+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 if test "$cross_compiling" = yes; then
4043 ac_cv_pthread_is_default=no
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4052 #include <pthread.h>
4054 void* routine(void* p){return NULL;}
4056 int main(){
4057 pthread_t p;
4058 if(pthread_create(&p,NULL,routine,NULL)!=0)
4059 return 1;
4060 (void)pthread_detach(p);
4061 return 0;
4064 _ACEOF
4065 rm -f conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4077 ac_cv_pthread_is_default=yes
4078 ac_cv_kthread=no
4079 ac_cv_pthread=no
4081 else
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ( exit $ac_status )
4087 ac_cv_pthread_is_default=no
4089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4095 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4098 if test $ac_cv_pthread_is_default = yes
4099 then
4100 ac_cv_kpthread=no
4101 else
4102 # -Kpthread, if available, provides the right #defines
4103 # and linker options to make pthread_create available
4104 # Some compilers won't report that they do not support -Kpthread,
4105 # so we need to run a program to see whether it really made the
4106 # function available.
4107 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4108 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4109 if test "${ac_cv_kpthread+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 ac_save_cc="$CC"
4113 CC="$CC -Kpthread"
4114 if test "$cross_compiling" = yes; then
4115 ac_cv_kpthread=no
4116 else
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4124 #include <pthread.h>
4126 void* routine(void* p){return NULL;}
4128 int main(){
4129 pthread_t p;
4130 if(pthread_create(&p,NULL,routine,NULL)!=0)
4131 return 1;
4132 (void)pthread_detach(p);
4133 return 0;
4136 _ACEOF
4137 rm -f conftest$ac_exeext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139 (eval $ac_link) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_kpthread=yes
4149 else
4150 echo "$as_me: program exited with status $ac_status" >&5
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ( exit $ac_status )
4155 ac_cv_kpthread=no
4157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4159 CC="$ac_save_cc"
4162 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4163 echo "${ECHO_T}$ac_cv_kpthread" >&6
4166 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4167 then
4168 # -Kthread, if available, provides the right #defines
4169 # and linker options to make pthread_create available
4170 # Some compilers won't report that they do not support -Kthread,
4171 # so we need to run a program to see whether it really made the
4172 # function available.
4173 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4174 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4175 if test "${ac_cv_kthread+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 ac_save_cc="$CC"
4179 CC="$CC -Kthread"
4180 if test "$cross_compiling" = yes; then
4181 ac_cv_kthread=no
4182 else
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4190 #include <pthread.h>
4192 void* routine(void* p){return NULL;}
4194 int main(){
4195 pthread_t p;
4196 if(pthread_create(&p,NULL,routine,NULL)!=0)
4197 return 1;
4198 (void)pthread_detach(p);
4199 return 0;
4202 _ACEOF
4203 rm -f conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_kthread=yes
4215 else
4216 echo "$as_me: program exited with status $ac_status" >&5
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ( exit $ac_status )
4221 ac_cv_kthread=no
4223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4225 CC="$ac_save_cc"
4228 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4229 echo "${ECHO_T}$ac_cv_kthread" >&6
4232 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4233 then
4234 # -pthread, if available, provides the right #defines
4235 # and linker options to make pthread_create available
4236 # Some compilers won't report that they do not support -pthread,
4237 # so we need to run a program to see whether it really made the
4238 # function available.
4239 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4240 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4241 if test "${ac_cv_thread+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 ac_save_cc="$CC"
4245 CC="$CC -pthread"
4246 if test "$cross_compiling" = yes; then
4247 ac_cv_pthread=no
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 #include <pthread.h>
4258 void* routine(void* p){return NULL;}
4260 int main(){
4261 pthread_t p;
4262 if(pthread_create(&p,NULL,routine,NULL)!=0)
4263 return 1;
4264 (void)pthread_detach(p);
4265 return 0;
4268 _ACEOF
4269 rm -f conftest$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_cv_pthread=yes
4281 else
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ( exit $ac_status )
4287 ac_cv_pthread=no
4289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 CC="$ac_save_cc"
4294 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4295 echo "${ECHO_T}$ac_cv_pthread" >&6
4298 # If we have set a CC compiler flag for thread support then
4299 # check if it works for CXX, too.
4300 ac_cv_cxx_thread=no
4301 if test ! -z "$CXX"
4302 then
4303 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4304 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4305 ac_save_cxx="$CXX"
4307 if test "$ac_cv_kpthread" = "yes"
4308 then
4309 CXX="$CXX -Kpthread"
4310 ac_cv_cxx_thread=yes
4311 elif test "$ac_cv_kthread" = "yes"
4312 then
4313 CXX="$CXX -Kthread"
4314 ac_cv_cxx_thread=yes
4315 elif test "$ac_cv_pthread" = "yes"
4316 then
4317 CXX="$CXX -pthread"
4318 ac_cv_cxx_thread=yes
4321 if test $ac_cv_cxx_thread = yes
4322 then
4323 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4324 $CXX -c conftest.$ac_ext 2>&5
4325 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4326 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4327 then
4328 ac_cv_cxx_thread=yes
4329 else
4330 ac_cv_cxx_thread=no
4332 rm -fr conftest*
4334 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4335 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4337 CXX="$ac_save_cxx"
4340 # checks for header files
4341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4343 if test "${ac_cv_header_stdc+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 #include <stdlib.h>
4353 #include <stdarg.h>
4354 #include <string.h>
4355 #include <float.h>
4358 main ()
4362 return 0;
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_header_stdc=yes
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_header_stdc=no
4394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396 if test $ac_cv_header_stdc = yes; then
4397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 #include <string.h>
4406 _ACEOF
4407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4408 $EGREP "memchr" >/dev/null 2>&1; then
4410 else
4411 ac_cv_header_stdc=no
4413 rm -f conftest*
4417 if test $ac_cv_header_stdc = yes; then
4418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <stdlib.h>
4427 _ACEOF
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "free" >/dev/null 2>&1; then
4431 else
4432 ac_cv_header_stdc=no
4434 rm -f conftest*
4438 if test $ac_cv_header_stdc = yes; then
4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440 if test "$cross_compiling" = yes; then
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 #include <ctype.h>
4450 #if ((' ' & 0x0FF) == 0x020)
4451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4453 #else
4454 # define ISLOWER(c) \
4455 (('a' <= (c) && (c) <= 'i') \
4456 || ('j' <= (c) && (c) <= 'r') \
4457 || ('s' <= (c) && (c) <= 'z'))
4458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4459 #endif
4461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 main ()
4465 int i;
4466 for (i = 0; i < 256; i++)
4467 if (XOR (islower (i), ISLOWER (i))
4468 || toupper (i) != TOUPPER (i))
4469 exit(2);
4470 exit (0);
4472 _ACEOF
4473 rm -f conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4485 else
4486 echo "$as_me: program exited with status $ac_status" >&5
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 ( exit $ac_status )
4491 ac_cv_header_stdc=no
4493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4497 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4498 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4499 if test $ac_cv_header_stdc = yes; then
4501 cat >>confdefs.h <<\_ACEOF
4502 #define STDC_HEADERS 1
4503 _ACEOF
4507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4517 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4518 inttypes.h stdint.h unistd.h
4520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 $ac_includes_default
4534 #include <$ac_header>
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_Header=yes"
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 eval "$as_ac_Header=no"
4565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4572 _ACEOF
4576 done
4618 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4619 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4620 stropts.h termios.h thread.h \
4621 unistd.h utime.h \
4622 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4623 sys/modem.h \
4624 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4625 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4626 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4627 bluetooth/bluetooth.h
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638 else
4639 # Is the header compilable?
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_header_compiler=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_header_compiler=no
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6
4684 # Is the header present?
4685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <$ac_header>
4694 _ACEOF
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697 ac_status=$?
4698 grep -v '^ *+' conftest.er1 >conftest.err
4699 rm -f conftest.er1
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev/null; then
4703 if test -s conftest.err; then
4704 ac_cpp_err=$ac_c_preproc_warn_flag
4705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4706 else
4707 ac_cpp_err=
4709 else
4710 ac_cpp_err=yes
4712 if test -z "$ac_cpp_err"; then
4713 ac_header_preproc=yes
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 ac_header_preproc=no
4720 rm -f conftest.err conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4722 echo "${ECHO_T}$ac_header_preproc" >&6
4724 # So? What about this header?
4725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4726 yes:no: )
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4731 ac_header_preproc=yes
4733 no:yes:* )
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4747 cat <<\_ASBOX
4748 ## ------------------------------------------------ ##
4749 ## Report this to http://www.python.org/python-bugs ##
4750 ## ------------------------------------------------ ##
4751 _ASBOX
4753 sed "s/^/$as_me: WARNING: /" >&2
4755 esac
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 eval "$as_ac_Header=\$ac_header_preproc"
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 _ACEOF
4774 done
4781 ac_header_dirent=no
4782 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4783 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4784 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4785 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #include <sys/types.h>
4796 #include <$ac_hdr>
4799 main ()
4801 if ((DIR *) 0)
4802 return 0;
4804 return 0;
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_Header=yes"
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 eval "$as_ac_Header=no"
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841 cat >>confdefs.h <<_ACEOF
4842 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4843 _ACEOF
4845 ac_header_dirent=$ac_hdr; break
4848 done
4849 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4850 if test $ac_header_dirent = dirent.h; then
4851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4853 if test "${ac_cv_search_opendir+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 ac_func_search_save_LIBS=$LIBS
4857 ac_cv_search_opendir=no
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 #ifdef __cplusplus
4867 extern "C"
4868 #endif
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871 char opendir ();
4873 main ()
4875 opendir ();
4877 return 0;
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_search_opendir="none required"
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4908 rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910 if test "$ac_cv_search_opendir" = no; then
4911 for ac_lib in dir; do
4912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 #ifdef __cplusplus
4922 extern "C"
4923 #endif
4924 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */
4926 char opendir ();
4928 main ()
4930 opendir ();
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_search_opendir="-l$ac_lib"
4958 break
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4964 rm -f conftest.err conftest.$ac_objext \
4965 conftest$ac_exeext conftest.$ac_ext
4966 done
4968 LIBS=$ac_func_search_save_LIBS
4970 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4971 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4972 if test "$ac_cv_search_opendir" != no; then
4973 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4977 else
4978 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4980 if test "${ac_cv_search_opendir+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 ac_func_search_save_LIBS=$LIBS
4984 ac_cv_search_opendir=no
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 #ifdef __cplusplus
4994 extern "C"
4995 #endif
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
4998 char opendir ();
5000 main ()
5002 opendir ();
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext conftest$ac_exeext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5009 (eval $ac_link) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest$ac_exeext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_search_opendir="none required"
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext \
5036 conftest$ac_exeext conftest.$ac_ext
5037 if test "$ac_cv_search_opendir" = no; then
5038 for ac_lib in x; do
5039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 #ifdef __cplusplus
5049 extern "C"
5050 #endif
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5053 char opendir ();
5055 main ()
5057 opendir ();
5059 return 0;
5061 _ACEOF
5062 rm -f conftest.$ac_objext conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_search_opendir="-l$ac_lib"
5085 break
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5091 rm -f conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5093 done
5095 LIBS=$ac_func_search_save_LIBS
5097 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5098 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5099 if test "$ac_cv_search_opendir" != no; then
5100 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5106 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5107 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5108 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <sys/types.h>
5119 main ()
5121 return makedev(0, 0);
5123 return 0;
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_header_sys_types_h_makedev=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_cv_header_sys_types_h_makedev=no
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5160 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5162 if test $ac_cv_header_sys_types_h_makedev = no; then
5163 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5164 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5165 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5166 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5170 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5171 else
5172 # Is the header compilable?
5173 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5174 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5182 #include <sys/mkdev.h>
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_header_compiler=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_header_compiler=no
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5215 echo "${ECHO_T}$ac_header_compiler" >&6
5217 # Is the header present?
5218 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5219 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <sys/mkdev.h>
5227 _ACEOF
5228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev/null; then
5236 if test -s conftest.err; then
5237 ac_cpp_err=$ac_c_preproc_warn_flag
5238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5239 else
5240 ac_cpp_err=
5242 else
5243 ac_cpp_err=yes
5245 if test -z "$ac_cpp_err"; then
5246 ac_header_preproc=yes
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 ac_header_preproc=no
5253 rm -f conftest.err conftest.$ac_ext
5254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255 echo "${ECHO_T}$ac_header_preproc" >&6
5257 # So? What about this header?
5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259 yes:no: )
5260 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5264 ac_header_preproc=yes
5266 no:yes:* )
5267 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5268 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5270 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5272 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5274 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5278 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5280 cat <<\_ASBOX
5281 ## ------------------------------------------------ ##
5282 ## Report this to http://www.python.org/python-bugs ##
5283 ## ------------------------------------------------ ##
5284 _ASBOX
5286 sed "s/^/$as_me: WARNING: /" >&2
5288 esac
5289 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5290 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5291 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5296 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5297 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5300 if test $ac_cv_header_sys_mkdev_h = yes; then
5302 cat >>confdefs.h <<\_ACEOF
5303 #define MAJOR_IN_MKDEV 1
5304 _ACEOF
5310 if test $ac_cv_header_sys_mkdev_h = no; then
5311 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5312 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5313 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5314 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5318 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5319 else
5320 # Is the header compilable?
5321 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5322 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <sys/sysmacros.h>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_header_compiler=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_header_compiler=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6
5365 # Is the header present?
5366 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5367 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <sys/sysmacros.h>
5375 _ACEOF
5376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev/null; then
5384 if test -s conftest.err; then
5385 ac_cpp_err=$ac_c_preproc_warn_flag
5386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387 else
5388 ac_cpp_err=
5390 else
5391 ac_cpp_err=yes
5393 if test -z "$ac_cpp_err"; then
5394 ac_header_preproc=yes
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_header_preproc=no
5401 rm -f conftest.err conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5403 echo "${ECHO_T}$ac_header_preproc" >&6
5405 # So? What about this header?
5406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5407 yes:no: )
5408 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5409 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5412 ac_header_preproc=yes
5414 no:yes:* )
5415 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5416 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5418 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5420 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5422 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5424 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5426 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5428 cat <<\_ASBOX
5429 ## ------------------------------------------------ ##
5430 ## Report this to http://www.python.org/python-bugs ##
5431 ## ------------------------------------------------ ##
5432 _ASBOX
5434 sed "s/^/$as_me: WARNING: /" >&2
5436 esac
5437 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5438 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5439 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5448 if test $ac_cv_header_sys_sysmacros_h = yes; then
5450 cat >>confdefs.h <<\_ACEOF
5451 #define MAJOR_IN_SYSMACROS 1
5452 _ACEOF
5461 # On Solaris, term.h requires curses.h
5463 for ac_header in term.h
5465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5466 echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 #ifdef HAVE_CURSES_H
5479 #include <curses.h>
5480 #endif
5483 #include <$ac_header>
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 eval "$as_ac_Header=yes"
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 eval "$as_ac_Header=no"
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521 _ACEOF
5525 done
5528 # On Linux, netlink.h requires asm/types.h
5530 for ac_header in linux/netlink.h
5532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5533 echo "$as_me:$LINENO: checking for $ac_header" >&5
5534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 #ifdef HAVE_ASM_TYPES_H
5546 #include <asm/types.h>
5547 #endif
5548 #ifdef HAVE_SYS_SOCKET_H
5549 #include <sys/socket.h>
5550 #endif
5553 #include <$ac_header>
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 eval "$as_ac_Header=yes"
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 eval "$as_ac_Header=no"
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589 cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591 _ACEOF
5595 done
5598 # checks for typedefs
5599 was_it_defined=no
5600 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5601 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <time.h>
5610 _ACEOF
5611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5612 $EGREP "clock_t" >/dev/null 2>&1; then
5613 was_it_defined=yes
5614 else
5617 cat >>confdefs.h <<\_ACEOF
5618 #define clock_t long
5619 _ACEOF
5623 rm -f conftest*
5625 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5626 echo "${ECHO_T}$was_it_defined" >&6
5628 # Check whether using makedev requires defining _OSF_SOURCE
5629 echo "$as_me:$LINENO: checking for makedev" >&5
5630 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5639 main ()
5641 makedev(0, 0)
5643 return 0;
5645 _ACEOF
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_has_makedev=yes
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 ac_cv_has_makedev=no
5675 rm -f conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 if test "$ac_cv_has_makedev" = "no"; then
5678 # we didn't link, try if _OSF_SOURCE will allow us to link
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5686 #define _OSF_SOURCE 1
5687 #include <sys/types.h>
5690 main ()
5692 makedev(0, 0)
5694 return 0;
5696 _ACEOF
5697 rm -f conftest.$ac_objext conftest$ac_exeext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_has_makedev=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_cv_has_makedev=no
5726 rm -f conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 if test "$ac_cv_has_makedev" = "yes"; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define _OSF_SOURCE 1
5732 _ACEOF
5736 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5737 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5738 if test "$ac_cv_has_makedev" = "yes"; then
5740 cat >>confdefs.h <<\_ACEOF
5741 #define HAVE_MAKEDEV 1
5742 _ACEOF
5746 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5747 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5748 # defined, but the compiler does not support pragma redefine_extname,
5749 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5750 # structures (such as rlimit64) without declaring them. As a
5751 # work-around, disable LFS on such configurations
5753 use_lfs=yes
5754 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5755 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #define _LARGEFILE_SOURCE 1
5764 #define _FILE_OFFSET_BITS 64
5765 #include <sys/resource.h>
5768 main ()
5770 struct rlimit foo;
5772 return 0;
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 sol_lfs_bug=no
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 sol_lfs_bug=yes
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5806 echo "${ECHO_T}$sol_lfs_bug" >&6
5807 if test "$sol_lfs_bug" = "yes"; then
5808 use_lfs=no
5811 if test "$use_lfs" = "yes"; then
5812 # Two defines needed to enable largefile support on various platforms
5813 # These may affect some typedefs
5815 cat >>confdefs.h <<\_ACEOF
5816 #define _LARGEFILE_SOURCE 1
5817 _ACEOF
5820 cat >>confdefs.h <<\_ACEOF
5821 #define _FILE_OFFSET_BITS 64
5822 _ACEOF
5826 # Add some code to confdefs.h so that the test for off_t works on SCO
5827 cat >> confdefs.h <<\EOF
5828 #if defined(SCO_DS)
5829 #undef _OFF_T
5830 #endif
5833 # Type availability checks
5834 echo "$as_me:$LINENO: checking for mode_t" >&5
5835 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5836 if test "${ac_cv_type_mode_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5847 main ()
5849 if ((mode_t *) 0)
5850 return 0;
5851 if (sizeof (mode_t))
5852 return 0;
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_type_mode_t=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_cv_type_mode_t=no
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5889 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5890 if test $ac_cv_type_mode_t = yes; then
5892 else
5894 cat >>confdefs.h <<_ACEOF
5895 #define mode_t int
5896 _ACEOF
5900 echo "$as_me:$LINENO: checking for off_t" >&5
5901 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5902 if test "${ac_cv_type_off_t+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5913 main ()
5915 if ((off_t *) 0)
5916 return 0;
5917 if (sizeof (off_t))
5918 return 0;
5920 return 0;
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_type_off_t=yes
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 ac_cv_type_off_t=no
5952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5955 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5956 if test $ac_cv_type_off_t = yes; then
5958 else
5960 cat >>confdefs.h <<_ACEOF
5961 #define off_t long
5962 _ACEOF
5966 echo "$as_me:$LINENO: checking for pid_t" >&5
5967 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5968 if test "${ac_cv_type_pid_t+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5979 main ()
5981 if ((pid_t *) 0)
5982 return 0;
5983 if (sizeof (pid_t))
5984 return 0;
5986 return 0;
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_type_pid_t=yes
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_cv_type_pid_t=no
6018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6021 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6022 if test $ac_cv_type_pid_t = yes; then
6024 else
6026 cat >>confdefs.h <<_ACEOF
6027 #define pid_t int
6028 _ACEOF
6032 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6033 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6034 if test "${ac_cv_type_signal+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <sys/types.h>
6044 #include <signal.h>
6045 #ifdef signal
6046 # undef signal
6047 #endif
6048 #ifdef __cplusplus
6049 extern "C" void (*signal (int, void (*)(int)))(int);
6050 #else
6051 void (*signal ()) ();
6052 #endif
6055 main ()
6057 int i;
6059 return 0;
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag"
6072 || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_type_signal=void
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_type_signal=int
6091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6094 echo "${ECHO_T}$ac_cv_type_signal" >&6
6096 cat >>confdefs.h <<_ACEOF
6097 #define RETSIGTYPE $ac_cv_type_signal
6098 _ACEOF
6101 echo "$as_me:$LINENO: checking for size_t" >&5
6102 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6103 if test "${ac_cv_type_size_t+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6114 main ()
6116 if ((size_t *) 0)
6117 return 0;
6118 if (sizeof (size_t))
6119 return 0;
6121 return 0;
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag"
6134 || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try='test -s conftest.$ac_objext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_type_size_t=yes
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6151 ac_cv_type_size_t=no
6153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6156 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6157 if test $ac_cv_type_size_t = yes; then
6159 else
6161 cat >>confdefs.h <<_ACEOF
6162 #define size_t unsigned
6163 _ACEOF
6167 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6168 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6169 if test "${ac_cv_type_uid_t+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <sys/types.h>
6180 _ACEOF
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "uid_t" >/dev/null 2>&1; then
6183 ac_cv_type_uid_t=yes
6184 else
6185 ac_cv_type_uid_t=no
6187 rm -f conftest*
6190 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6191 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6192 if test $ac_cv_type_uid_t = no; then
6194 cat >>confdefs.h <<\_ACEOF
6195 #define uid_t int
6196 _ACEOF
6199 cat >>confdefs.h <<\_ACEOF
6200 #define gid_t int
6201 _ACEOF
6205 echo "$as_me:$LINENO: checking for ssize_t" >&5
6206 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6207 if test "${ac_cv_type_ssize_t+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 $ac_includes_default
6218 main ()
6220 if ((ssize_t *) 0)
6221 return 0;
6222 if (sizeof (ssize_t))
6223 return 0;
6225 return 0;
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_type_ssize_t=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_cv_type_ssize_t=no
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6260 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6261 if test $ac_cv_type_ssize_t = yes; then
6263 cat >>confdefs.h <<\_ACEOF
6264 #define HAVE_SSIZE_T 1
6265 _ACEOF
6270 # Sizes of various common basic types
6271 # ANSI C requires sizeof(char) == 1, so no need to check it
6272 echo "$as_me:$LINENO: checking for int" >&5
6273 echo $ECHO_N "checking for int... $ECHO_C" >&6
6274 if test "${ac_cv_type_int+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6285 main ()
6287 if ((int *) 0)
6288 return 0;
6289 if (sizeof (int))
6290 return 0;
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
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); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_type_int=yes
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_cv_type_int=no
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6327 echo "${ECHO_T}$ac_cv_type_int" >&6
6329 echo "$as_me:$LINENO: checking size of int" >&5
6330 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6331 if test "${ac_cv_sizeof_int+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 if test "$ac_cv_type_int" = yes; then
6335 # The cast to unsigned long works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 if test "$cross_compiling" = yes; then
6340 # Depending upon the size, compute the lo and hi bounds.
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6349 main ()
6351 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6352 test_array [0] = 0
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag"
6368 || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 ac_lo=0 ac_mid=0
6381 while :; do
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h. */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6390 main ()
6392 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6393 test_array [0] = 0
6396 return 0;
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_hi=$ac_mid; break
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_lo=`expr $ac_mid + 1`
6427 if test $ac_lo -le $ac_mid; then
6428 ac_lo= ac_hi=
6429 break
6431 ac_mid=`expr 2 '*' $ac_mid + 1`
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 done
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6447 main ()
6449 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6450 test_array [0] = 0
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_hi=-1 ac_mid=-1
6479 while :; do
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6488 main ()
6490 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6491 test_array [0] = 0
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try='test -s conftest.$ac_objext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_lo=$ac_mid; break
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_hi=`expr '(' $ac_mid ')' - 1`
6525 if test $ac_mid -le $ac_hi; then
6526 ac_lo= ac_hi=
6527 break
6529 ac_mid=`expr 2 '*' $ac_mid`
6531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6532 done
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_lo= ac_hi=
6539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 # Binary search between lo and hi bounds.
6543 while test "x$ac_lo" != "x$ac_hi"; do
6544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6553 main ()
6555 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6556 test_array [0] = 0
6559 return 0;
6561 _ACEOF
6562 rm -f conftest.$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_c_werror_flag"
6572 || test ! -s conftest.err'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; } &&
6578 { ac_try='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_hi=$ac_mid
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_lo=`expr '(' $ac_mid ')' + 1`
6591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 done
6593 case $ac_lo in
6594 ?*) ac_cv_sizeof_int=$ac_lo;;
6595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6596 See \`config.log' for more details." >&5
6597 echo "$as_me: error: cannot compute sizeof (int), 77
6598 See \`config.log' for more details." >&2;}
6599 { (exit 1); exit 1; }; } ;;
6600 esac
6601 else
6602 if test "$cross_compiling" = yes; then
6603 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: cannot run test program while cross compiling
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; }
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 long longval () { return (long) (sizeof (int)); }
6617 unsigned long ulongval () { return (long) (sizeof (int)); }
6618 #include <stdio.h>
6619 #include <stdlib.h>
6621 main ()
6624 FILE *f = fopen ("conftest.val", "w");
6625 if (! f)
6626 exit (1);
6627 if (((long) (sizeof (int))) < 0)
6629 long i = longval ();
6630 if (i != ((long) (sizeof (int))))
6631 exit (1);
6632 fprintf (f, "%ld\n", i);
6634 else
6636 unsigned long i = ulongval ();
6637 if (i != ((long) (sizeof (int))))
6638 exit (1);
6639 fprintf (f, "%lu\n", i);
6641 exit (ferror (f) || fclose (f) != 0);
6644 return 0;
6646 _ACEOF
6647 rm -f conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_sizeof_int=`cat conftest.val`
6659 else
6660 echo "$as_me: program exited with status $ac_status" >&5
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ( exit $ac_status )
6665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6666 See \`config.log' for more details." >&5
6667 echo "$as_me: error: cannot compute sizeof (int), 77
6668 See \`config.log' for more details." >&2;}
6669 { (exit 1); exit 1; }; }
6671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 rm -f conftest.val
6675 else
6676 ac_cv_sizeof_int=0
6679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6680 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6681 cat >>confdefs.h <<_ACEOF
6682 #define SIZEOF_INT $ac_cv_sizeof_int
6683 _ACEOF
6686 echo "$as_me:$LINENO: checking for long" >&5
6687 echo $ECHO_N "checking for long... $ECHO_C" >&6
6688 if test "${ac_cv_type_long+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6699 main ()
6701 if ((long *) 0)
6702 return 0;
6703 if (sizeof (long))
6704 return 0;
6706 return 0;
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
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); }; } &&
6725 { ac_try='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_type_long=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 ac_cv_type_long=no
6738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6741 echo "${ECHO_T}$ac_cv_type_long" >&6
6743 echo "$as_me:$LINENO: checking size of long" >&5
6744 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6745 if test "${ac_cv_sizeof_long+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test "$ac_cv_type_long" = yes; then
6749 # The cast to unsigned long works around a bug in the HP C Compiler
6750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6752 # This bug is HP SR number 8606223364.
6753 if test "$cross_compiling" = yes; then
6754 # Depending upon the size, compute the lo and hi bounds.
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6763 main ()
6765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6766 test_array [0] = 0
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -z "$ac_c_werror_flag"
6782 || test ! -s conftest.err'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_lo=0 ac_mid=0
6795 while :; do
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6804 main ()
6806 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6807 test_array [0] = 0
6810 return 0;
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 (eval $ac_compile) 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -z "$ac_c_werror_flag"
6823 || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest.$ac_objext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_hi=$ac_mid; break
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_lo=`expr $ac_mid + 1`
6841 if test $ac_lo -le $ac_mid; then
6842 ac_lo= ac_hi=
6843 break
6845 ac_mid=`expr 2 '*' $ac_mid + 1`
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 done
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6861 main ()
6863 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6864 test_array [0] = 0
6867 return 0;
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest.$ac_objext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 ac_hi=-1 ac_mid=-1
6893 while :; do
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 $ac_includes_default
6902 main ()
6904 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6905 test_array [0] = 0
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_lo=$ac_mid; break
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_hi=`expr '(' $ac_mid ')' - 1`
6939 if test $ac_mid -le $ac_hi; then
6940 ac_lo= ac_hi=
6941 break
6943 ac_mid=`expr 2 '*' $ac_mid`
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 done
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 ac_lo= ac_hi=
6953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 # Binary search between lo and hi bounds.
6957 while test "x$ac_lo" != "x$ac_hi"; do
6958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6967 main ()
6969 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6970 test_array [0] = 0
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_hi=$ac_mid
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_lo=`expr '(' $ac_mid ')' + 1`
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006 done
7007 case $ac_lo in
7008 ?*) ac_cv_sizeof_long=$ac_lo;;
7009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7010 See \`config.log' for more details." >&5
7011 echo "$as_me: error: cannot compute sizeof (long), 77
7012 See \`config.log' for more details." >&2;}
7013 { (exit 1); exit 1; }; } ;;
7014 esac
7015 else
7016 if test "$cross_compiling" = yes; then
7017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7018 See \`config.log' for more details." >&5
7019 echo "$as_me: error: cannot run test program while cross compiling
7020 See \`config.log' for more details." >&2;}
7021 { (exit 1); exit 1; }; }
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7030 long longval () { return (long) (sizeof (long)); }
7031 unsigned long ulongval () { return (long) (sizeof (long)); }
7032 #include <stdio.h>
7033 #include <stdlib.h>
7035 main ()
7038 FILE *f = fopen ("conftest.val", "w");
7039 if (! f)
7040 exit (1);
7041 if (((long) (sizeof (long))) < 0)
7043 long i = longval ();
7044 if (i != ((long) (sizeof (long))))
7045 exit (1);
7046 fprintf (f, "%ld\n", i);
7048 else
7050 unsigned long i = ulongval ();
7051 if (i != ((long) (sizeof (long))))
7052 exit (1);
7053 fprintf (f, "%lu\n", i);
7055 exit (ferror (f) || fclose (f) != 0);
7058 return 0;
7060 _ACEOF
7061 rm -f conftest$ac_exeext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063 (eval $ac_link) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_cv_sizeof_long=`cat conftest.val`
7073 else
7074 echo "$as_me: program exited with status $ac_status" >&5
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ( exit $ac_status )
7079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7080 See \`config.log' for more details." >&5
7081 echo "$as_me: error: cannot compute sizeof (long), 77
7082 See \`config.log' for more details." >&2;}
7083 { (exit 1); exit 1; }; }
7085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 rm -f conftest.val
7089 else
7090 ac_cv_sizeof_long=0
7093 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7094 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7095 cat >>confdefs.h <<_ACEOF
7096 #define SIZEOF_LONG $ac_cv_sizeof_long
7097 _ACEOF
7100 echo "$as_me:$LINENO: checking for void *" >&5
7101 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7102 if test "${ac_cv_type_void_p+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7113 main ()
7115 if ((void * *) 0)
7116 return 0;
7117 if (sizeof (void *))
7118 return 0;
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
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); }; } &&
7139 { ac_try='test -s conftest.$ac_objext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_type_void_p=yes
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_type_void_p=no
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7154 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7155 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7157 echo "$as_me:$LINENO: checking size of void *" >&5
7158 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7159 if test "${ac_cv_sizeof_void_p+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 if test "$ac_cv_type_void_p" = yes; then
7163 # The cast to unsigned long works around a bug in the HP C Compiler
7164 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7165 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7166 # This bug is HP SR number 8606223364.
7167 if test "$cross_compiling" = yes; then
7168 # Depending upon the size, compute the lo and hi bounds.
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7177 main ()
7179 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7180 test_array [0] = 0
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_lo=0 ac_mid=0
7209 while :; do
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7218 main ()
7220 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7221 test_array [0] = 0
7224 return 0;
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try='test -s conftest.$ac_objext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 (eval $ac_try) 2>&5
7246 ac_status=$?
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_hi=$ac_mid; break
7250 else
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_lo=`expr $ac_mid + 1`
7255 if test $ac_lo -le $ac_mid; then
7256 ac_lo= ac_hi=
7257 break
7259 ac_mid=`expr 2 '*' $ac_mid + 1`
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 done
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 $ac_includes_default
7275 main ()
7277 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7278 test_array [0] = 0
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -z "$ac_c_werror_flag"
7294 || test ! -s conftest.err'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; } &&
7300 { ac_try='test -s conftest.$ac_objext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 ac_hi=-1 ac_mid=-1
7307 while :; do
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 $ac_includes_default
7316 main ()
7318 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7319 test_array [0] = 0
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_c_werror_flag"
7335 || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_lo=$ac_mid; break
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_hi=`expr '(' $ac_mid ')' - 1`
7353 if test $ac_mid -le $ac_hi; then
7354 ac_lo= ac_hi=
7355 break
7357 ac_mid=`expr 2 '*' $ac_mid`
7359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360 done
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_lo= ac_hi=
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 # Binary search between lo and hi bounds.
7371 while test "x$ac_lo" != "x$ac_hi"; do
7372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7381 main ()
7383 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7384 test_array [0] = 0
7387 return 0;
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_hi=$ac_mid
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_lo=`expr '(' $ac_mid ')' + 1`
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 done
7421 case $ac_lo in
7422 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (void *), 77
7426 See \`config.log' for more details." >&2;}
7427 { (exit 1); exit 1; }; } ;;
7428 esac
7429 else
7430 if test "$cross_compiling" = yes; then
7431 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7432 See \`config.log' for more details." >&5
7433 echo "$as_me: error: cannot run test program while cross compiling
7434 See \`config.log' for more details." >&2;}
7435 { (exit 1); exit 1; }; }
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 long longval () { return (long) (sizeof (void *)); }
7445 unsigned long ulongval () { return (long) (sizeof (void *)); }
7446 #include <stdio.h>
7447 #include <stdlib.h>
7449 main ()
7452 FILE *f = fopen ("conftest.val", "w");
7453 if (! f)
7454 exit (1);
7455 if (((long) (sizeof (void *))) < 0)
7457 long i = longval ();
7458 if (i != ((long) (sizeof (void *))))
7459 exit (1);
7460 fprintf (f, "%ld\n", i);
7462 else
7464 unsigned long i = ulongval ();
7465 if (i != ((long) (sizeof (void *))))
7466 exit (1);
7467 fprintf (f, "%lu\n", i);
7469 exit (ferror (f) || fclose (f) != 0);
7472 return 0;
7474 _ACEOF
7475 rm -f conftest$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_sizeof_void_p=`cat conftest.val`
7487 else
7488 echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ( exit $ac_status )
7493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7494 See \`config.log' for more details." >&5
7495 echo "$as_me: error: cannot compute sizeof (void *), 77
7496 See \`config.log' for more details." >&2;}
7497 { (exit 1); exit 1; }; }
7499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502 rm -f conftest.val
7503 else
7504 ac_cv_sizeof_void_p=0
7507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7508 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7509 cat >>confdefs.h <<_ACEOF
7510 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7511 _ACEOF
7514 echo "$as_me:$LINENO: checking for short" >&5
7515 echo $ECHO_N "checking for short... $ECHO_C" >&6
7516 if test "${ac_cv_type_short+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 $ac_includes_default
7527 main ()
7529 if ((short *) 0)
7530 return 0;
7531 if (sizeof (short))
7532 return 0;
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 (eval $ac_compile) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
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); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_type_short=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_cv_type_short=no
7566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7569 echo "${ECHO_T}$ac_cv_type_short" >&6
7571 echo "$as_me:$LINENO: checking size of short" >&5
7572 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7573 if test "${ac_cv_sizeof_short+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 if test "$ac_cv_type_short" = yes; then
7577 # The cast to unsigned long works around a bug in the HP C Compiler
7578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7580 # This bug is HP SR number 8606223364.
7581 if test "$cross_compiling" = yes; then
7582 # Depending upon the size, compute the lo and hi bounds.
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7591 main ()
7593 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7594 test_array [0] = 0
7597 return 0;
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_lo=0 ac_mid=0
7623 while :; do
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7632 main ()
7634 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7635 test_array [0] = 0
7638 return 0;
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7643 (eval $ac_compile) 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try='test -z "$ac_c_werror_flag"
7651 || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest.$ac_objext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_hi=$ac_mid; break
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_lo=`expr $ac_mid + 1`
7669 if test $ac_lo -le $ac_mid; then
7670 ac_lo= ac_hi=
7671 break
7673 ac_mid=`expr 2 '*' $ac_mid + 1`
7675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7676 done
7677 else
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 cat >conftest.$ac_ext <<_ACEOF
7682 /* confdefs.h. */
7683 _ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7687 $ac_includes_default
7689 main ()
7691 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7692 test_array [0] = 0
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_hi=-1 ac_mid=-1
7721 while :; do
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7730 main ()
7732 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7733 test_array [0] = 0
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest.$ac_objext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_lo=$ac_mid; break
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_hi=`expr '(' $ac_mid ')' - 1`
7767 if test $ac_mid -le $ac_hi; then
7768 ac_lo= ac_hi=
7769 break
7771 ac_mid=`expr 2 '*' $ac_mid`
7773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774 done
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_lo= ac_hi=
7781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 # Binary search between lo and hi bounds.
7785 while test "x$ac_lo" != "x$ac_hi"; do
7786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7795 main ()
7797 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7798 test_array [0] = 0
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_hi=$ac_mid
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_lo=`expr '(' $ac_mid ')' + 1`
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834 done
7835 case $ac_lo in
7836 ?*) ac_cv_sizeof_short=$ac_lo;;
7837 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7838 See \`config.log' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (short), 77
7840 See \`config.log' for more details." >&2;}
7841 { (exit 1); exit 1; }; } ;;
7842 esac
7843 else
7844 if test "$cross_compiling" = yes; then
7845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot run test program while cross compiling
7848 See \`config.log' for more details." >&2;}
7849 { (exit 1); exit 1; }; }
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 long longval () { return (long) (sizeof (short)); }
7859 unsigned long ulongval () { return (long) (sizeof (short)); }
7860 #include <stdio.h>
7861 #include <stdlib.h>
7863 main ()
7866 FILE *f = fopen ("conftest.val", "w");
7867 if (! f)
7868 exit (1);
7869 if (((long) (sizeof (short))) < 0)
7871 long i = longval ();
7872 if (i != ((long) (sizeof (short))))
7873 exit (1);
7874 fprintf (f, "%ld\n", i);
7876 else
7878 unsigned long i = ulongval ();
7879 if (i != ((long) (sizeof (short))))
7880 exit (1);
7881 fprintf (f, "%lu\n", i);
7883 exit (ferror (f) || fclose (f) != 0);
7886 return 0;
7888 _ACEOF
7889 rm -f conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_sizeof_short=`cat conftest.val`
7901 else
7902 echo "$as_me: program exited with status $ac_status" >&5
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ( exit $ac_status )
7907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7908 See \`config.log' for more details." >&5
7909 echo "$as_me: error: cannot compute sizeof (short), 77
7910 See \`config.log' for more details." >&2;}
7911 { (exit 1); exit 1; }; }
7913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7916 rm -f conftest.val
7917 else
7918 ac_cv_sizeof_short=0
7921 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7922 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7923 cat >>confdefs.h <<_ACEOF
7924 #define SIZEOF_SHORT $ac_cv_sizeof_short
7925 _ACEOF
7928 echo "$as_me:$LINENO: checking for float" >&5
7929 echo $ECHO_N "checking for float... $ECHO_C" >&6
7930 if test "${ac_cv_type_float+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 $ac_includes_default
7941 main ()
7943 if ((float *) 0)
7944 return 0;
7945 if (sizeof (float))
7946 return 0;
7948 return 0;
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
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); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_type_float=yes
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_type_float=no
7980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7983 echo "${ECHO_T}$ac_cv_type_float" >&6
7985 echo "$as_me:$LINENO: checking size of float" >&5
7986 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7987 if test "${ac_cv_sizeof_float+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 if test "$ac_cv_type_float" = yes; then
7991 # The cast to unsigned long works around a bug in the HP C Compiler
7992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7994 # This bug is HP SR number 8606223364.
7995 if test "$cross_compiling" = yes; then
7996 # Depending upon the size, compute the lo and hi bounds.
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8005 main ()
8007 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8008 test_array [0] = 0
8011 return 0;
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_lo=0 ac_mid=0
8037 while :; do
8038 cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 $ac_includes_default
8046 main ()
8048 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8049 test_array [0] = 0
8052 return 0;
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_hi=$ac_mid; break
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 ac_lo=`expr $ac_mid + 1`
8083 if test $ac_lo -le $ac_mid; then
8084 ac_lo= ac_hi=
8085 break
8087 ac_mid=`expr 2 '*' $ac_mid + 1`
8089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8090 done
8091 else
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8103 main ()
8105 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8106 test_array [0] = 0
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_hi=-1 ac_mid=-1
8135 while :; do
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8144 main ()
8146 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8147 test_array [0] = 0
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155 (eval $ac_compile) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_lo=$ac_mid; break
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_hi=`expr '(' $ac_mid ')' - 1`
8181 if test $ac_mid -le $ac_hi; then
8182 ac_lo= ac_hi=
8183 break
8185 ac_mid=`expr 2 '*' $ac_mid`
8187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188 done
8189 else
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 ac_lo= ac_hi=
8195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 # Binary search between lo and hi bounds.
8199 while test "x$ac_lo" != "x$ac_hi"; do
8200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8209 main ()
8211 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8212 test_array [0] = 0
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_hi=$ac_mid
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_lo=`expr '(' $ac_mid ')' + 1`
8247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248 done
8249 case $ac_lo in
8250 ?*) ac_cv_sizeof_float=$ac_lo;;
8251 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (float), 77
8254 See \`config.log' for more details." >&2;}
8255 { (exit 1); exit 1; }; } ;;
8256 esac
8257 else
8258 if test "$cross_compiling" = yes; then
8259 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8260 See \`config.log' for more details." >&5
8261 echo "$as_me: error: cannot run test program while cross compiling
8262 See \`config.log' for more details." >&2;}
8263 { (exit 1); exit 1; }; }
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 long longval () { return (long) (sizeof (float)); }
8273 unsigned long ulongval () { return (long) (sizeof (float)); }
8274 #include <stdio.h>
8275 #include <stdlib.h>
8277 main ()
8280 FILE *f = fopen ("conftest.val", "w");
8281 if (! f)
8282 exit (1);
8283 if (((long) (sizeof (float))) < 0)
8285 long i = longval ();
8286 if (i != ((long) (sizeof (float))))
8287 exit (1);
8288 fprintf (f, "%ld\n", i);
8290 else
8292 unsigned long i = ulongval ();
8293 if (i != ((long) (sizeof (float))))
8294 exit (1);
8295 fprintf (f, "%lu\n", i);
8297 exit (ferror (f) || fclose (f) != 0);
8300 return 0;
8302 _ACEOF
8303 rm -f conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_sizeof_float=`cat conftest.val`
8315 else
8316 echo "$as_me: program exited with status $ac_status" >&5
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ( exit $ac_status )
8321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8322 See \`config.log' for more details." >&5
8323 echo "$as_me: error: cannot compute sizeof (float), 77
8324 See \`config.log' for more details." >&2;}
8325 { (exit 1); exit 1; }; }
8327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8330 rm -f conftest.val
8331 else
8332 ac_cv_sizeof_float=0
8335 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8336 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8337 cat >>confdefs.h <<_ACEOF
8338 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8339 _ACEOF
8342 echo "$as_me:$LINENO: checking for double" >&5
8343 echo $ECHO_N "checking for double... $ECHO_C" >&6
8344 if test "${ac_cv_type_double+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8355 main ()
8357 if ((double *) 0)
8358 return 0;
8359 if (sizeof (double))
8360 return 0;
8362 return 0;
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
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); }; } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_type_double=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_type_double=no
8394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8397 echo "${ECHO_T}$ac_cv_type_double" >&6
8399 echo "$as_me:$LINENO: checking size of double" >&5
8400 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8401 if test "${ac_cv_sizeof_double+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 if test "$ac_cv_type_double" = yes; then
8405 # The cast to unsigned long works around a bug in the HP C Compiler
8406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8408 # This bug is HP SR number 8606223364.
8409 if test "$cross_compiling" = yes; then
8410 # Depending upon the size, compute the lo and hi bounds.
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8419 main ()
8421 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8422 test_array [0] = 0
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8430 (eval $ac_compile) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag"
8438 || test ! -s conftest.err'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest.$ac_objext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_lo=0 ac_mid=0
8451 while :; do
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8460 main ()
8462 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8463 test_array [0] = 0
8466 return 0;
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_hi=$ac_mid; break
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_lo=`expr $ac_mid + 1`
8497 if test $ac_lo -le $ac_mid; then
8498 ac_lo= ac_hi=
8499 break
8501 ac_mid=`expr 2 '*' $ac_mid + 1`
8503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8504 done
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 $ac_includes_default
8517 main ()
8519 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8520 test_array [0] = 0
8523 return 0;
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_hi=-1 ac_mid=-1
8549 while :; do
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 $ac_includes_default
8558 main ()
8560 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8561 test_array [0] = 0
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag"
8577 || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest.$ac_objext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 (eval $ac_try) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_lo=$ac_mid; break
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_hi=`expr '(' $ac_mid ')' - 1`
8595 if test $ac_mid -le $ac_hi; then
8596 ac_lo= ac_hi=
8597 break
8599 ac_mid=`expr 2 '*' $ac_mid`
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 done
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_lo= ac_hi=
8609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 # Binary search between lo and hi bounds.
8613 while test "x$ac_lo" != "x$ac_hi"; do
8614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8623 main ()
8625 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8626 test_array [0] = 0
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_hi=$ac_mid
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_lo=`expr '(' $ac_mid ')' + 1`
8661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 done
8663 case $ac_lo in
8664 ?*) ac_cv_sizeof_double=$ac_lo;;
8665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8666 See \`config.log' for more details." >&5
8667 echo "$as_me: error: cannot compute sizeof (double), 77
8668 See \`config.log' for more details." >&2;}
8669 { (exit 1); exit 1; }; } ;;
8670 esac
8671 else
8672 if test "$cross_compiling" = yes; then
8673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8674 See \`config.log' for more details." >&5
8675 echo "$as_me: error: cannot run test program while cross compiling
8676 See \`config.log' for more details." >&2;}
8677 { (exit 1); exit 1; }; }
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 long longval () { return (long) (sizeof (double)); }
8687 unsigned long ulongval () { return (long) (sizeof (double)); }
8688 #include <stdio.h>
8689 #include <stdlib.h>
8691 main ()
8694 FILE *f = fopen ("conftest.val", "w");
8695 if (! f)
8696 exit (1);
8697 if (((long) (sizeof (double))) < 0)
8699 long i = longval ();
8700 if (i != ((long) (sizeof (double))))
8701 exit (1);
8702 fprintf (f, "%ld\n", i);
8704 else
8706 unsigned long i = ulongval ();
8707 if (i != ((long) (sizeof (double))))
8708 exit (1);
8709 fprintf (f, "%lu\n", i);
8711 exit (ferror (f) || fclose (f) != 0);
8714 return 0;
8716 _ACEOF
8717 rm -f conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_sizeof_double=`cat conftest.val`
8729 else
8730 echo "$as_me: program exited with status $ac_status" >&5
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ( exit $ac_status )
8735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8736 See \`config.log' for more details." >&5
8737 echo "$as_me: error: cannot compute sizeof (double), 77
8738 See \`config.log' for more details." >&2;}
8739 { (exit 1); exit 1; }; }
8741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8744 rm -f conftest.val
8745 else
8746 ac_cv_sizeof_double=0
8749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8750 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8751 cat >>confdefs.h <<_ACEOF
8752 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8753 _ACEOF
8756 echo "$as_me:$LINENO: checking for fpos_t" >&5
8757 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8758 if test "${ac_cv_type_fpos_t+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8769 main ()
8771 if ((fpos_t *) 0)
8772 return 0;
8773 if (sizeof (fpos_t))
8774 return 0;
8776 return 0;
8778 _ACEOF
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
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); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_type_fpos_t=yes
8802 else
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_cv_type_fpos_t=no
8808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8811 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8813 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8814 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8815 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 if test "$ac_cv_type_fpos_t" = yes; then
8819 # The cast to unsigned long works around a bug in the HP C Compiler
8820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8822 # This bug is HP SR number 8606223364.
8823 if test "$cross_compiling" = yes; then
8824 # Depending upon the size, compute the lo and hi bounds.
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 $ac_includes_default
8833 main ()
8835 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8836 test_array [0] = 0
8839 return 0;
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844 (eval $ac_compile) 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_lo=0 ac_mid=0
8865 while :; do
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8874 main ()
8876 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8877 test_array [0] = 0
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_hi=$ac_mid; break
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_lo=`expr $ac_mid + 1`
8911 if test $ac_lo -le $ac_mid; then
8912 ac_lo= ac_hi=
8913 break
8915 ac_mid=`expr 2 '*' $ac_mid + 1`
8917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8918 done
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8931 main ()
8933 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8934 test_array [0] = 0
8937 return 0;
8939 _ACEOF
8940 rm -f conftest.$ac_objext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8942 (eval $ac_compile) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest.$ac_objext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_hi=-1 ac_mid=-1
8963 while :; do
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 $ac_includes_default
8972 main ()
8974 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8975 test_array [0] = 0
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest.$ac_objext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_lo=$ac_mid; break
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 ac_hi=`expr '(' $ac_mid ')' - 1`
9009 if test $ac_mid -le $ac_hi; then
9010 ac_lo= ac_hi=
9011 break
9013 ac_mid=`expr 2 '*' $ac_mid`
9015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9016 done
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_lo= ac_hi=
9023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026 # Binary search between lo and hi bounds.
9027 while test "x$ac_lo" != "x$ac_hi"; do
9028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9037 main ()
9039 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9040 test_array [0] = 0
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_hi=$ac_mid
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_lo=`expr '(' $ac_mid ')' + 1`
9075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076 done
9077 case $ac_lo in
9078 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9080 See \`config.log' for more details." >&5
9081 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9082 See \`config.log' for more details." >&2;}
9083 { (exit 1); exit 1; }; } ;;
9084 esac
9085 else
9086 if test "$cross_compiling" = yes; then
9087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9088 See \`config.log' for more details." >&5
9089 echo "$as_me: error: cannot run test program while cross compiling
9090 See \`config.log' for more details." >&2;}
9091 { (exit 1); exit 1; }; }
9092 else
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 long longval () { return (long) (sizeof (fpos_t)); }
9101 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9102 #include <stdio.h>
9103 #include <stdlib.h>
9105 main ()
9108 FILE *f = fopen ("conftest.val", "w");
9109 if (! f)
9110 exit (1);
9111 if (((long) (sizeof (fpos_t))) < 0)
9113 long i = longval ();
9114 if (i != ((long) (sizeof (fpos_t))))
9115 exit (1);
9116 fprintf (f, "%ld\n", i);
9118 else
9120 unsigned long i = ulongval ();
9121 if (i != ((long) (sizeof (fpos_t))))
9122 exit (1);
9123 fprintf (f, "%lu\n", i);
9125 exit (ferror (f) || fclose (f) != 0);
9128 return 0;
9130 _ACEOF
9131 rm -f conftest$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133 (eval $ac_link) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
9142 ac_cv_sizeof_fpos_t=`cat conftest.val`
9143 else
9144 echo "$as_me: program exited with status $ac_status" >&5
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ( exit $ac_status )
9149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9150 See \`config.log' for more details." >&5
9151 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9152 See \`config.log' for more details." >&2;}
9153 { (exit 1); exit 1; }; }
9155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9158 rm -f conftest.val
9159 else
9160 ac_cv_sizeof_fpos_t=0
9163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9164 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9165 cat >>confdefs.h <<_ACEOF
9166 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9167 _ACEOF
9170 echo "$as_me:$LINENO: checking for size_t" >&5
9171 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9172 if test "${ac_cv_type_size_t+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 $ac_includes_default
9183 main ()
9185 if ((size_t *) 0)
9186 return 0;
9187 if (sizeof (size_t))
9188 return 0;
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_type_size_t=yes
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 ac_cv_type_size_t=no
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9225 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9227 echo "$as_me:$LINENO: checking size of size_t" >&5
9228 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9229 if test "${ac_cv_sizeof_size_t+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 if test "$ac_cv_type_size_t" = yes; then
9233 # The cast to unsigned long works around a bug in the HP C Compiler
9234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9236 # This bug is HP SR number 8606223364.
9237 if test "$cross_compiling" = yes; then
9238 # Depending upon the size, compute the lo and hi bounds.
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9247 main ()
9249 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9250 test_array [0] = 0
9253 return 0;
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -z "$ac_c_werror_flag"
9266 || test ! -s conftest.err'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; } &&
9272 { ac_try='test -s conftest.$ac_objext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278 ac_lo=0 ac_mid=0
9279 while :; do
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9288 main ()
9290 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9291 test_array [0] = 0
9294 return 0;
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest.$ac_objext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_hi=$ac_mid; break
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_lo=`expr $ac_mid + 1`
9325 if test $ac_lo -le $ac_mid; then
9326 ac_lo= ac_hi=
9327 break
9329 ac_mid=`expr 2 '*' $ac_mid + 1`
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332 done
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9345 main ()
9347 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9348 test_array [0] = 0
9351 return 0;
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_hi=-1 ac_mid=-1
9377 while :; do
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 $ac_includes_default
9386 main ()
9388 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9389 test_array [0] = 0
9392 return 0;
9394 _ACEOF
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest.$ac_objext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_lo=$ac_mid; break
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_hi=`expr '(' $ac_mid ')' - 1`
9423 if test $ac_mid -le $ac_hi; then
9424 ac_lo= ac_hi=
9425 break
9427 ac_mid=`expr 2 '*' $ac_mid`
9429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9430 done
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_lo= ac_hi=
9437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9440 # Binary search between lo and hi bounds.
9441 while test "x$ac_lo" != "x$ac_hi"; do
9442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9451 main ()
9453 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9454 test_array [0] = 0
9457 return 0;
9459 _ACEOF
9460 rm -f conftest.$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_hi=$ac_mid
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_lo=`expr '(' $ac_mid ')' + 1`
9489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9490 done
9491 case $ac_lo in
9492 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9493 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9494 See \`config.log' for more details." >&5
9495 echo "$as_me: error: cannot compute sizeof (size_t), 77
9496 See \`config.log' for more details." >&2;}
9497 { (exit 1); exit 1; }; } ;;
9498 esac
9499 else
9500 if test "$cross_compiling" = yes; then
9501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9502 See \`config.log' for more details." >&5
9503 echo "$as_me: error: cannot run test program while cross compiling
9504 See \`config.log' for more details." >&2;}
9505 { (exit 1); exit 1; }; }
9506 else
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h. */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 $ac_includes_default
9514 long longval () { return (long) (sizeof (size_t)); }
9515 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9516 #include <stdio.h>
9517 #include <stdlib.h>
9519 main ()
9522 FILE *f = fopen ("conftest.val", "w");
9523 if (! f)
9524 exit (1);
9525 if (((long) (sizeof (size_t))) < 0)
9527 long i = longval ();
9528 if (i != ((long) (sizeof (size_t))))
9529 exit (1);
9530 fprintf (f, "%ld\n", i);
9532 else
9534 unsigned long i = ulongval ();
9535 if (i != ((long) (sizeof (size_t))))
9536 exit (1);
9537 fprintf (f, "%lu\n", i);
9539 exit (ferror (f) || fclose (f) != 0);
9542 return 0;
9544 _ACEOF
9545 rm -f conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_sizeof_size_t=`cat conftest.val`
9557 else
9558 echo "$as_me: program exited with status $ac_status" >&5
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ( exit $ac_status )
9563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9564 See \`config.log' for more details." >&5
9565 echo "$as_me: error: cannot compute sizeof (size_t), 77
9566 See \`config.log' for more details." >&2;}
9567 { (exit 1); exit 1; }; }
9569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9572 rm -f conftest.val
9573 else
9574 ac_cv_sizeof_size_t=0
9577 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9578 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9579 cat >>confdefs.h <<_ACEOF
9580 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9581 _ACEOF
9585 echo "$as_me:$LINENO: checking for long long support" >&5
9586 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9587 have_long_long=no
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9596 main ()
9598 long long x; x = (long long)0;
9600 return 0;
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9627 cat >>confdefs.h <<\_ACEOF
9628 #define HAVE_LONG_LONG 1
9629 _ACEOF
9631 have_long_long=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $have_long_long" >&5
9640 echo "${ECHO_T}$have_long_long" >&6
9641 if test "$have_long_long" = yes ; then
9642 echo "$as_me:$LINENO: checking for long long" >&5
9643 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9644 if test "${ac_cv_type_long_long+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9655 main ()
9657 if ((long long *) 0)
9658 return 0;
9659 if (sizeof (long long))
9660 return 0;
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_type_long_long=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_type_long_long=no
9694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9697 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9699 echo "$as_me:$LINENO: checking size of long long" >&5
9700 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9701 if test "${ac_cv_sizeof_long_long+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 if test "$ac_cv_type_long_long" = yes; then
9705 # The cast to unsigned long works around a bug in the HP C Compiler
9706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9708 # This bug is HP SR number 8606223364.
9709 if test "$cross_compiling" = yes; then
9710 # Depending upon the size, compute the lo and hi bounds.
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9719 main ()
9721 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9722 test_array [0] = 0
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_lo=0 ac_mid=0
9751 while :; do
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9760 main ()
9762 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9763 test_array [0] = 0
9766 return 0;
9768 _ACEOF
9769 rm -f conftest.$ac_objext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9771 (eval $ac_compile) 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag"
9779 || test ! -s conftest.err'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest.$ac_objext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_hi=$ac_mid; break
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_lo=`expr $ac_mid + 1`
9797 if test $ac_lo -le $ac_mid; then
9798 ac_lo= ac_hi=
9799 break
9801 ac_mid=`expr 2 '*' $ac_mid + 1`
9803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9804 done
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9817 main ()
9819 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9820 test_array [0] = 0
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_hi=-1 ac_mid=-1
9849 while :; do
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9858 main ()
9860 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9861 test_array [0] = 0
9864 return 0;
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_lo=$ac_mid; break
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_hi=`expr '(' $ac_mid ')' - 1`
9895 if test $ac_mid -le $ac_hi; then
9896 ac_lo= ac_hi=
9897 break
9899 ac_mid=`expr 2 '*' $ac_mid`
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 done
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_lo= ac_hi=
9909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 # Binary search between lo and hi bounds.
9913 while test "x$ac_lo" != "x$ac_hi"; do
9914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 $ac_includes_default
9923 main ()
9925 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9926 test_array [0] = 0
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_hi=$ac_mid
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_lo=`expr '(' $ac_mid ')' + 1`
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 done
9963 case $ac_lo in
9964 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9966 See \`config.log' for more details." >&5
9967 echo "$as_me: error: cannot compute sizeof (long long), 77
9968 See \`config.log' for more details." >&2;}
9969 { (exit 1); exit 1; }; } ;;
9970 esac
9971 else
9972 if test "$cross_compiling" = yes; then
9973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9974 See \`config.log' for more details." >&5
9975 echo "$as_me: error: cannot run test program while cross compiling
9976 See \`config.log' for more details." >&2;}
9977 { (exit 1); exit 1; }; }
9978 else
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 long longval () { return (long) (sizeof (long long)); }
9987 unsigned long ulongval () { return (long) (sizeof (long long)); }
9988 #include <stdio.h>
9989 #include <stdlib.h>
9991 main ()
9994 FILE *f = fopen ("conftest.val", "w");
9995 if (! f)
9996 exit (1);
9997 if (((long) (sizeof (long long))) < 0)
9999 long i = longval ();
10000 if (i != ((long) (sizeof (long long))))
10001 exit (1);
10002 fprintf (f, "%ld\n", i);
10004 else
10006 unsigned long i = ulongval ();
10007 if (i != ((long) (sizeof (long long))))
10008 exit (1);
10009 fprintf (f, "%lu\n", i);
10011 exit (ferror (f) || fclose (f) != 0);
10014 return 0;
10016 _ACEOF
10017 rm -f conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_sizeof_long_long=`cat conftest.val`
10029 else
10030 echo "$as_me: program exited with status $ac_status" >&5
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ( exit $ac_status )
10035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10036 See \`config.log' for more details." >&5
10037 echo "$as_me: error: cannot compute sizeof (long long), 77
10038 See \`config.log' for more details." >&2;}
10039 { (exit 1); exit 1; }; }
10041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10044 rm -f conftest.val
10045 else
10046 ac_cv_sizeof_long_long=0
10049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10050 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10051 cat >>confdefs.h <<_ACEOF
10052 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10053 _ACEOF
10058 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10059 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10060 have_uintptr_t=no
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10069 main ()
10071 uintptr_t x; x = (uintptr_t)0;
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_UINTPTR_T 1
10102 _ACEOF
10104 have_uintptr_t=yes
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10113 echo "${ECHO_T}$have_uintptr_t" >&6
10114 if test "$have_uintptr_t" = yes ; then
10115 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10116 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10117 if test "${ac_cv_type_uintptr_t+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10128 main ()
10130 if ((uintptr_t *) 0)
10131 return 0;
10132 if (sizeof (uintptr_t))
10133 return 0;
10135 return 0;
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_type_uintptr_t=yes
10161 else
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_type_uintptr_t=no
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10170 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10172 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10173 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10174 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 if test "$ac_cv_type_uintptr_t" = yes; then
10178 # The cast to unsigned long works around a bug in the HP C Compiler
10179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10181 # This bug is HP SR number 8606223364.
10182 if test "$cross_compiling" = yes; then
10183 # Depending upon the size, compute the lo and hi bounds.
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10192 main ()
10194 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10195 test_array [0] = 0
10198 return 0;
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest.$ac_objext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_lo=0 ac_mid=0
10224 while :; do
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 $ac_includes_default
10233 main ()
10235 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10236 test_array [0] = 0
10239 return 0;
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10244 (eval $ac_compile) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_hi=$ac_mid; break
10265 else
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_lo=`expr $ac_mid + 1`
10270 if test $ac_lo -le $ac_mid; then
10271 ac_lo= ac_hi=
10272 break
10274 ac_mid=`expr 2 '*' $ac_mid + 1`
10276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 done
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10290 main ()
10292 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10293 test_array [0] = 0
10296 return 0;
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_hi=-1 ac_mid=-1
10322 while :; do
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10331 main ()
10333 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10334 test_array [0] = 0
10337 return 0;
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag"
10350 || test ! -s conftest.err'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest.$ac_objext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 ac_lo=$ac_mid; break
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_hi=`expr '(' $ac_mid ')' - 1`
10368 if test $ac_mid -le $ac_hi; then
10369 ac_lo= ac_hi=
10370 break
10372 ac_mid=`expr 2 '*' $ac_mid`
10374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10375 done
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_lo= ac_hi=
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 # Binary search between lo and hi bounds.
10386 while test "x$ac_lo" != "x$ac_hi"; do
10387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10396 main ()
10398 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10399 test_array [0] = 0
10402 return 0;
10404 _ACEOF
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag"
10415 || test ! -s conftest.err'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_hi=$ac_mid
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_lo=`expr '(' $ac_mid ')' + 1`
10434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10435 done
10436 case $ac_lo in
10437 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10439 See \`config.log' for more details." >&5
10440 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10441 See \`config.log' for more details." >&2;}
10442 { (exit 1); exit 1; }; } ;;
10443 esac
10444 else
10445 if test "$cross_compiling" = yes; then
10446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10447 See \`config.log' for more details." >&5
10448 echo "$as_me: error: cannot run test program while cross compiling
10449 See \`config.log' for more details." >&2;}
10450 { (exit 1); exit 1; }; }
10451 else
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 $ac_includes_default
10459 long longval () { return (long) (sizeof (uintptr_t)); }
10460 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10461 #include <stdio.h>
10462 #include <stdlib.h>
10464 main ()
10467 FILE *f = fopen ("conftest.val", "w");
10468 if (! f)
10469 exit (1);
10470 if (((long) (sizeof (uintptr_t))) < 0)
10472 long i = longval ();
10473 if (i != ((long) (sizeof (uintptr_t))))
10474 exit (1);
10475 fprintf (f, "%ld\n", i);
10477 else
10479 unsigned long i = ulongval ();
10480 if (i != ((long) (sizeof (uintptr_t))))
10481 exit (1);
10482 fprintf (f, "%lu\n", i);
10484 exit (ferror (f) || fclose (f) != 0);
10487 return 0;
10489 _ACEOF
10490 rm -f conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10502 else
10503 echo "$as_me: program exited with status $ac_status" >&5
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ( exit $ac_status )
10508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10509 See \`config.log' for more details." >&5
10510 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10511 See \`config.log' for more details." >&2;}
10512 { (exit 1); exit 1; }; }
10514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10517 rm -f conftest.val
10518 else
10519 ac_cv_sizeof_uintptr_t=0
10522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10523 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10524 cat >>confdefs.h <<_ACEOF
10525 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10526 _ACEOF
10531 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10532 echo "$as_me:$LINENO: checking size of off_t" >&5
10533 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10534 if test "${ac_cv_sizeof_off_t+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 if test "$cross_compiling" = yes; then
10538 ac_cv_sizeof_off_t=4
10539 else
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <stdio.h>
10547 #include <sys/types.h>
10548 main()
10550 FILE *f=fopen("conftestval", "w");
10551 if (!f) exit(1);
10552 fprintf(f, "%d\n", sizeof(off_t));
10553 exit(0);
10555 _ACEOF
10556 rm -f conftest$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_sizeof_off_t=`cat conftestval`
10568 else
10569 echo "$as_me: program exited with status $ac_status" >&5
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_sizeof_off_t=0
10576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10582 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10584 cat >>confdefs.h <<_ACEOF
10585 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10586 _ACEOF
10589 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10590 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10591 if test "$have_long_long" = yes -a \
10592 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10593 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_LARGEFILE_SUPPORT 1
10597 _ACEOF
10599 echo "$as_me:$LINENO: result: yes" >&5
10600 echo "${ECHO_T}yes" >&6
10601 else
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10606 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10607 echo "$as_me:$LINENO: checking size of time_t" >&5
10608 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10609 if test "${ac_cv_sizeof_time_t+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 if test "$cross_compiling" = yes; then
10613 ac_cv_sizeof_time_t=4
10614 else
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <stdio.h>
10622 #include <time.h>
10623 main()
10625 FILE *f=fopen("conftestval", "w");
10626 if (!f) exit(1);
10627 fprintf(f, "%d\n", sizeof(time_t));
10628 exit(0);
10630 _ACEOF
10631 rm -f conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_sizeof_time_t=`cat conftestval`
10643 else
10644 echo "$as_me: program exited with status $ac_status" >&5
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 ( exit $ac_status )
10649 ac_cv_sizeof_time_t=0
10651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10657 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10659 cat >>confdefs.h <<_ACEOF
10660 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10661 _ACEOF
10665 # if have pthread_t then define SIZEOF_PTHREAD_T
10666 ac_save_cc="$CC"
10667 if test "$ac_cv_kpthread" = "yes"
10668 then CC="$CC -Kpthread"
10669 elif test "$ac_cv_kthread" = "yes"
10670 then CC="$CC -Kthread"
10671 elif test "$ac_cv_pthread" = "yes"
10672 then CC="$CC -pthread"
10674 echo "$as_me:$LINENO: checking for pthread_t" >&5
10675 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10676 have_pthread_t=no
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <pthread.h>
10685 main ()
10687 pthread_t x; x = *(pthread_t*)0;
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
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); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 have_pthread_t=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10722 echo "${ECHO_T}$have_pthread_t" >&6
10723 if test "$have_pthread_t" = yes ; then
10724 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10725 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10726 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10727 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 if test "$cross_compiling" = yes; then
10731 ac_cv_sizeof_pthread_t=4
10732 else
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10739 #include <stdio.h>
10740 #include <pthread.h>
10741 main()
10743 FILE *f=fopen("conftestval", "w");
10744 if (!f) exit(1);
10745 fprintf(f, "%d\n", sizeof(pthread_t));
10746 exit(0);
10748 _ACEOF
10749 rm -f conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_sizeof_pthread_t=`cat conftestval`
10761 else
10762 echo "$as_me: program exited with status $ac_status" >&5
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ( exit $ac_status )
10767 ac_cv_sizeof_pthread_t=0
10769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10775 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10777 cat >>confdefs.h <<_ACEOF
10778 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10779 _ACEOF
10782 CC="$ac_save_cc"
10784 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10785 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10786 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10787 if test "${enable_toolbox_glue+set}" = set; then
10788 enableval="$enable_toolbox_glue"
10792 if test -z "$enable_toolbox_glue"
10793 then
10794 case $ac_sys_system/$ac_sys_release in
10795 Darwin/*)
10796 enable_toolbox_glue="yes";;
10798 enable_toolbox_glue="no";;
10799 esac
10801 case "$enable_toolbox_glue" in
10802 yes)
10803 extra_machdep_objs="Python/mactoolboxglue.o"
10804 extra_undefs="-u _PyMac_Error"
10806 cat >>confdefs.h <<\_ACEOF
10807 #define USE_TOOLBOX_OBJECT_GLUE 1
10808 _ACEOF
10812 extra_machdep_objs=""
10813 extra_undefs=""
10815 esac
10816 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10817 echo "${ECHO_T}$enable_toolbox_glue" >&6
10820 case $ac_sys_system/$ac_sys_release in
10821 Darwin/[01234567].*)
10822 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10824 Darwin/*)
10825 OTHER_LIBTOOL_OPT=""
10827 esac
10830 case $ac_sys_system/$ac_sys_release in
10831 Darwin/[01234567].*)
10832 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`"
10833 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10835 Darwin/*)
10836 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10837 if test ${gcc_version} '<' 4.0
10838 then
10839 LIBTOOL_CRUFT="-lcc_dynamic"
10840 else
10841 LIBTOOL_CRUFT=""
10843 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10844 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10845 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10846 esac
10848 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10849 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10850 if test "$enable_framework"
10851 then
10852 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10853 # -F. is needed to allow linking to the framework while
10854 # in the build location.
10856 cat >>confdefs.h <<\_ACEOF
10857 #define WITH_NEXT_FRAMEWORK 1
10858 _ACEOF
10860 echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6
10862 else
10863 echo "$as_me:$LINENO: result: no" >&5
10864 echo "${ECHO_T}no" >&6
10867 echo "$as_me:$LINENO: checking for dyld" >&5
10868 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10869 case $ac_sys_system/$ac_sys_release in
10870 Darwin/*)
10872 cat >>confdefs.h <<\_ACEOF
10873 #define WITH_DYLD 1
10874 _ACEOF
10876 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10877 echo "${ECHO_T}always on for Darwin" >&6
10880 echo "$as_me:$LINENO: result: no" >&5
10881 echo "${ECHO_T}no" >&6
10883 esac
10885 # Set info about shared libraries.
10891 # SO is the extension of shared libraries `(including the dot!)
10892 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10893 echo "$as_me:$LINENO: checking SO" >&5
10894 echo $ECHO_N "checking SO... $ECHO_C" >&6
10895 if test -z "$SO"
10896 then
10897 case $ac_sys_system in
10898 hp*|HP*) SO=.sl;;
10899 CYGWIN*) SO=.dll;;
10900 *) SO=.so;;
10901 esac
10902 else
10903 # this might also be a termcap variable, see #610332
10904 echo
10905 echo '====================================================================='
10906 echo '+ +'
10907 echo '+ WARNING: You have set SO in your environment. +'
10908 echo '+ Do you really mean to change the extension for shared libraries? +'
10909 echo '+ Continuing in 10 seconds to let you to ponder. +'
10910 echo '+ +'
10911 echo '====================================================================='
10912 sleep 10
10914 echo "$as_me:$LINENO: result: $SO" >&5
10915 echo "${ECHO_T}$SO" >&6
10916 # LDSHARED is the ld *command* used to create shared library
10917 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10918 # (Shared libraries in this instance are shared modules to be loaded into
10919 # Python, as opposed to building Python itself as a shared library.)
10920 echo "$as_me:$LINENO: checking LDSHARED" >&5
10921 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10922 if test -z "$LDSHARED"
10923 then
10924 case $ac_sys_system/$ac_sys_release in
10925 AIX*)
10926 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10927 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10929 BeOS*)
10930 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10931 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10933 IRIX/5*) LDSHARED="ld -shared";;
10934 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10935 SunOS/5*)
10936 if test "$GCC" = "yes"
10937 then LDSHARED='$(CC) -shared'
10938 else LDSHARED='$(CC) -G';
10939 fi ;;
10940 hp*|HP*) LDSHARED="ld -b";;
10941 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10942 Darwin/1.3*)
10943 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10944 if test "$enable_framework" ; then
10945 # Link against the framework. All externals should be defined.
10946 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10947 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 else
10949 # No framework. Ignore undefined symbols, assuming they come from Python
10950 LDSHARED="$LDSHARED -undefined suppress"
10951 fi ;;
10952 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10953 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10954 if test "$enable_framework" ; then
10955 # Link against the framework. All externals should be defined.
10956 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10957 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 else
10959 # No framework, use the Python app as bundle-loader
10960 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10961 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10962 fi ;;
10963 Darwin/*)
10964 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10965 # This allows an extension to be used in any Python
10966 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10967 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10968 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10969 then
10970 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10971 BLDSHARED="$LDSHARED"
10972 else
10973 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10974 if test "$enable_framework" ; then
10975 # Link against the framework. All externals should be defined.
10976 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10977 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10978 else
10979 # No framework, use the Python app as bundle-loader
10980 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10981 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10985 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10986 BSD/OS*/4*) LDSHARED="gcc -shared";;
10987 OpenBSD*|FreeBSD*)
10988 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10989 then
10990 LDSHARED="$CC -shared ${LDFLAGS}"
10991 else
10992 LDSHARED="ld -Bshareable ${LDFLAGS}"
10993 fi;;
10994 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
10995 OpenUNIX*|UnixWare*)
10996 if test "$GCC" = "yes"
10997 then LDSHARED='$(CC) -shared'
10998 else LDSHARED='$(CC) -G'
10999 fi;;
11000 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11001 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11002 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11003 atheos*) LDSHARED="gcc -shared";;
11004 *) LDSHARED="ld";;
11005 esac
11007 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11008 echo "${ECHO_T}$LDSHARED" >&6
11009 BLDSHARED=${BLDSHARED-$LDSHARED}
11010 # CCSHARED are the C *flags* used to create objects to go into a shared
11011 # library (module) -- this is only needed for a few systems
11012 echo "$as_me:$LINENO: checking CCSHARED" >&5
11013 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11014 if test -z "$CCSHARED"
11015 then
11016 case $ac_sys_system/$ac_sys_release in
11017 SunOS*) if test "$GCC" = yes;
11018 then CCSHARED="-fPIC";
11019 else CCSHARED="-xcode=pic32";
11020 fi;;
11021 hp*|HP*) if test "$GCC" = yes;
11022 then CCSHARED="-fPIC";
11023 else CCSHARED="+z";
11024 fi;;
11025 Linux*|GNU*) CCSHARED="-fPIC";;
11026 BSD/OS*/4*) CCSHARED="-fpic";;
11027 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11028 OpenUNIX*|UnixWare*)
11029 if test "$GCC" = "yes"
11030 then CCSHARED="-fPIC"
11031 else CCSHARED="-KPIC"
11032 fi;;
11033 SCO_SV*)
11034 if test "$GCC" = "yes"
11035 then CCSHARED="-fPIC"
11036 else CCSHARED="-Kpic -belf"
11037 fi;;
11038 Monterey*) CCSHARED="-G";;
11039 IRIX*/6*) case $CC in
11040 *gcc*) CCSHARED="-shared";;
11041 *) CCSHARED="";;
11042 esac;;
11043 atheos*) CCSHARED="-fPIC";;
11044 esac
11046 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11047 echo "${ECHO_T}$CCSHARED" >&6
11048 # LINKFORSHARED are the flags passed to the $(CC) command that links
11049 # the python executable -- this is only needed for a few systems
11050 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11051 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11052 if test -z "$LINKFORSHARED"
11053 then
11054 case $ac_sys_system/$ac_sys_release in
11055 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11056 hp*|HP*)
11057 LINKFORSHARED="-Wl,-E -Wl,+s";;
11058 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11059 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11060 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11061 # -u libsys_s pulls in all symbols in libsys
11062 Darwin/*)
11063 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11064 # which is
11065 # not used by the core itself but which needs to be in the core so
11066 # that dynamically loaded extension modules have access to it.
11067 # -prebind is no longer used, because it actually seems to give a
11068 # slowdown in stead of a speedup, maybe due to the large number of
11069 # dynamic loads Python does.
11071 LINKFORSHARED="$extra_undefs"
11072 if test "$enable_framework"
11073 then
11074 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11076 LINKFORSHARED="$LINKFORSHARED";;
11077 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11078 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11079 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11080 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11081 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11082 then
11083 LINKFORSHARED="-Wl,--export-dynamic"
11084 fi;;
11085 SunOS/5*) case $CC in
11086 *gcc*)
11087 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11088 then
11089 LINKFORSHARED="-Xlinker --export-dynamic"
11090 fi;;
11091 esac;;
11092 CYGWIN*)
11093 if test $enable_shared = "no"
11094 then
11095 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11096 fi;;
11097 esac
11099 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11100 echo "${ECHO_T}$LINKFORSHARED" >&6
11103 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11104 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11105 if test ! "$LIBRARY" = "$LDLIBRARY"
11106 then
11107 case $ac_sys_system in
11108 CYGWIN*)
11109 # Cygwin needs CCSHARED when building extension DLLs
11110 # but not when building the interpreter DLL.
11111 CFLAGSFORSHARED='';;
11113 CFLAGSFORSHARED='$(CCSHARED)'
11114 esac
11116 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11117 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11119 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11120 # library (with --enable-shared).
11121 # For platforms on which shared libraries are not allowed to have unresolved
11122 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11123 # if it is not required, since it creates a dependency of the shared library
11124 # to LIBS. This, in turn, means that applications linking the shared libpython
11125 # don't need to link LIBS explicitly. The default should be only changed
11126 # on systems where this approach causes problems.
11128 echo "$as_me:$LINENO: checking SHLIBS" >&5
11129 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11130 case "$ac_sys_system" in
11132 SHLIBS='$(LIBS)';;
11133 esac
11134 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11135 echo "${ECHO_T}$SHLIBS" >&6
11138 # checks for libraries
11140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-ldl $LIBS"
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11154 /* Override any gcc2 internal prototype to avoid an error. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11160 char dlopen ();
11162 main ()
11164 dlopen ();
11166 return 0;
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_lib_dl_dlopen=yes
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_cv_lib_dl_dlopen=no
11198 rm -f conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11202 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11204 if test $ac_cv_lib_dl_dlopen = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define HAVE_LIBDL 1
11207 _ACEOF
11209 LIBS="-ldl $LIBS"
11212 # Dynamic linking for SunOS/Solaris and SYSV
11214 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11215 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11216 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 ac_check_lib_save_LIBS=$LIBS
11220 LIBS="-ldld $LIBS"
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h. */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11228 /* Override any gcc2 internal prototype to avoid an error. */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11234 char shl_load ();
11236 main ()
11238 shl_load ();
11240 return 0;
11242 _ACEOF
11243 rm -f conftest.$ac_objext conftest$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_lib_dld_shl_load=yes
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_cv_lib_dld_shl_load=no
11272 rm -f conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11278 if test $ac_cv_lib_dld_shl_load = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define HAVE_LIBDLD 1
11281 _ACEOF
11283 LIBS="-ldld $LIBS"
11286 # Dynamic linking for HP-UX
11288 # only check for sem_ini if thread support is requested
11289 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11290 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11291 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11292 if test "${ac_cv_search_sem_init+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295 ac_func_search_save_LIBS=$LIBS
11296 ac_cv_search_sem_init=no
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11304 /* Override any gcc2 internal prototype to avoid an error. */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310 char sem_init ();
11312 main ()
11314 sem_init ();
11316 return 0;
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_search_sem_init="none required"
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11347 rm -f conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 if test "$ac_cv_search_sem_init" = no; then
11350 for ac_lib in pthread rt posix4; do
11351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11359 /* Override any gcc2 internal prototype to avoid an error. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 /* We use char because int might match the return type of a gcc2
11364 builtin and then its argument prototype would still apply. */
11365 char sem_init ();
11367 main ()
11369 sem_init ();
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest$ac_exeext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_search_sem_init="-l$ac_lib"
11397 break
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11403 rm -f conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 done
11407 LIBS=$ac_func_search_save_LIBS
11409 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11410 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11411 if test "$ac_cv_search_sem_init" != no; then
11412 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11415 # 'Real Time' functions on Solaris
11416 # posix4 on Solaris 2.6
11417 # pthread (first!) on Linux
11420 # check if we need libintl for locale functions
11421 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11422 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11423 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426 ac_check_lib_save_LIBS=$LIBS
11427 LIBS="-lintl $LIBS"
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11435 /* Override any gcc2 internal prototype to avoid an error. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11441 char textdomain ();
11443 main ()
11445 textdomain ();
11447 return 0;
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452 (eval $ac_link) 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest$ac_exeext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_cv_lib_intl_textdomain=yes
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_cv_lib_intl_textdomain=no
11479 rm -f conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11483 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11484 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11485 if test $ac_cv_lib_intl_textdomain = yes; then
11487 cat >>confdefs.h <<\_ACEOF
11488 #define WITH_LIBINTL 1
11489 _ACEOF
11494 # checks for system dependent C++ extensions support
11495 case "$ac_sys_system" in
11496 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11497 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11498 cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 #include "/usr/lpp/xlC/include/load.h"
11506 main ()
11508 loadAndInit("", 0, "")
11510 return 0;
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11536 cat >>confdefs.h <<\_ACEOF
11537 #define AIX_GENUINE_CPLUSPLUS 1
11538 _ACEOF
11540 echo "$as_me:$LINENO: result: yes" >&5
11541 echo "${ECHO_T}yes" >&6
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 echo "$as_me:$LINENO: result: no" >&5
11547 echo "${ECHO_T}no" >&6
11549 rm -f conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext;;
11551 *) ;;
11552 esac
11554 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11555 # BeOS' sockets are stashed in libnet.
11556 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11557 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11558 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561 ac_check_lib_save_LIBS=$LIBS
11562 LIBS="-lnsl $LIBS"
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 /* We use char because int might match the return type of a gcc2
11575 builtin and then its argument prototype would still apply. */
11576 char t_open ();
11578 main ()
11580 t_open ();
11582 return 0;
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_cv_lib_nsl_t_open=yes
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_cv_lib_nsl_t_open=no
11614 rm -f conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11619 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11620 if test $ac_cv_lib_nsl_t_open = yes; then
11621 LIBS="-lnsl $LIBS"
11623 # SVR4
11624 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11626 if test "${ac_cv_lib_socket_socket+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lsocket $LIBS $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 /* Override any gcc2 internal prototype to avoid an error. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 /* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644 char socket ();
11646 main ()
11648 socket ();
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag"
11663 || test ! -s conftest.err'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_lib_socket_socket=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_lib_socket_socket=no
11682 rm -f conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11686 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11687 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11688 if test $ac_cv_lib_socket_socket = yes; then
11689 LIBS="-lsocket $LIBS"
11691 # SVR4 sockets
11693 case "$ac_sys_system" in
11694 BeOS*)
11695 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11696 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11697 if test "${ac_cv_lib_net_socket+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700 ac_check_lib_save_LIBS=$LIBS
11701 LIBS="-lnet $LIBS $LIBS"
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11709 /* Override any gcc2 internal prototype to avoid an error. */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715 char socket ();
11717 main ()
11719 socket ();
11721 return 0;
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_cv_lib_net_socket=yes
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 ac_cv_lib_net_socket=no
11753 rm -f conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11757 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11758 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11759 if test $ac_cv_lib_net_socket = yes; then
11760 LIBS="-lnet $LIBS"
11762 # BeOS
11764 esac
11766 echo "$as_me:$LINENO: checking for --with-libs" >&5
11767 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11769 # Check whether --with-libs or --without-libs was given.
11770 if test "${with_libs+set}" = set; then
11771 withval="$with_libs"
11773 echo "$as_me:$LINENO: result: $withval" >&5
11774 echo "${ECHO_T}$withval" >&6
11775 LIBS="$withval $LIBS"
11777 else
11778 echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11782 # Determine if signalmodule should be used.
11785 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11786 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11788 # Check whether --with-signal-module or --without-signal-module was given.
11789 if test "${with_signal_module+set}" = set; then
11790 withval="$with_signal_module"
11794 if test -z "$with_signal_module"
11795 then with_signal_module="yes"
11797 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11798 echo "${ECHO_T}$with_signal_module" >&6
11800 if test "${with_signal_module}" = "yes"; then
11801 USE_SIGNAL_MODULE=""
11802 SIGNAL_OBJS=""
11803 else
11804 USE_SIGNAL_MODULE="#"
11805 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11808 # This is used to generate Setup.config
11810 USE_THREAD_MODULE=""
11812 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11813 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11816 # Check whether --with-dec-threads or --without-dec-threads was given.
11817 if test "${with_dec_threads+set}" = set; then
11818 withval="$with_dec_threads"
11820 echo "$as_me:$LINENO: result: $withval" >&5
11821 echo "${ECHO_T}$withval" >&6
11822 LDLAST=-threads
11823 if test "${with_thread+set}" != set; then
11824 with_thread="$withval";
11826 else
11827 echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6
11831 # Templates for things AC_DEFINEd more than once.
11832 # For a single AC_DEFINE, no template is needed.
11840 echo "$as_me:$LINENO: checking for --with-threads" >&5
11841 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11843 # Check whether --with-threads or --without-threads was given.
11844 if test "${with_threads+set}" = set; then
11845 withval="$with_threads"
11849 # --with-thread is deprecated, but check for it anyway
11851 # Check whether --with-thread or --without-thread was given.
11852 if test "${with_thread+set}" = set; then
11853 withval="$with_thread"
11854 with_threads=$with_thread
11857 if test -z "$with_threads"
11858 then with_threads="yes"
11860 echo "$as_me:$LINENO: result: $with_threads" >&5
11861 echo "${ECHO_T}$with_threads" >&6
11864 if test "$with_threads" = "no"
11865 then
11866 USE_THREAD_MODULE="#"
11867 elif test "$ac_cv_pthread_is_default" = yes
11868 then
11869 cat >>confdefs.h <<\_ACEOF
11870 #define WITH_THREAD 1
11871 _ACEOF
11873 # Defining _REENTRANT on system with POSIX threads should not hurt.
11874 cat >>confdefs.h <<\_ACEOF
11875 #define _REENTRANT 1
11876 _ACEOF
11878 posix_threads=yes
11879 THREADOBJ="Python/thread.o"
11880 elif test "$ac_cv_kpthread" = "yes"
11881 then
11882 CC="$CC -Kpthread"
11883 if test "$ac_cv_cxx_thread" = "yes"; then
11884 CXX="$CXX -Kpthread"
11886 cat >>confdefs.h <<\_ACEOF
11887 #define WITH_THREAD 1
11888 _ACEOF
11890 posix_threads=yes
11891 THREADOBJ="Python/thread.o"
11892 elif test "$ac_cv_kthread" = "yes"
11893 then
11894 CC="$CC -Kthread"
11895 if test "$ac_cv_cxx_thread" = "yes"; then
11896 CXX="$CXX -Kthread"
11898 cat >>confdefs.h <<\_ACEOF
11899 #define WITH_THREAD 1
11900 _ACEOF
11902 posix_threads=yes
11903 THREADOBJ="Python/thread.o"
11904 elif test "$ac_cv_pthread" = "yes"
11905 then
11906 CC="$CC -pthread"
11907 if test "$ac_cv_cxx_thread" = "yes"; then
11908 CXX="$CXX -pthread"
11910 cat >>confdefs.h <<\_ACEOF
11911 #define WITH_THREAD 1
11912 _ACEOF
11914 posix_threads=yes
11915 THREADOBJ="Python/thread.o"
11916 else
11917 if test ! -z "$with_threads" -a -d "$with_threads"
11918 then LDFLAGS="$LDFLAGS -L$with_threads"
11920 if test ! -z "$withval" -a -d "$withval"
11921 then LDFLAGS="$LDFLAGS -L$withval"
11924 # According to the POSIX spec, a pthreads implementation must
11925 # define _POSIX_THREADS in unistd.h. Some apparently don't
11926 # (e.g. gnu pth with pthread emulation)
11927 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11928 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 #include <unistd.h>
11937 #ifdef _POSIX_THREADS
11939 #endif
11941 _ACEOF
11942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11943 $EGREP "yes" >/dev/null 2>&1; then
11944 unistd_defines_pthreads=yes
11945 else
11946 unistd_defines_pthreads=no
11948 rm -f conftest*
11950 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11951 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11953 cat >>confdefs.h <<\_ACEOF
11954 #define _REENTRANT 1
11955 _ACEOF
11957 if test "${ac_cv_header_cthreads_h+set}" = set; then
11958 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11959 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11960 if test "${ac_cv_header_cthreads_h+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11964 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11965 else
11966 # Is the header compilable?
11967 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11968 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11976 #include <cthreads.h>
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_header_compiler=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_header_compiler=no
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12009 echo "${ECHO_T}$ac_header_compiler" >&6
12011 # Is the header present?
12012 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12013 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h. */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 #include <cthreads.h>
12021 _ACEOF
12022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } >/dev/null; then
12030 if test -s conftest.err; then
12031 ac_cpp_err=$ac_c_preproc_warn_flag
12032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12033 else
12034 ac_cpp_err=
12036 else
12037 ac_cpp_err=yes
12039 if test -z "$ac_cpp_err"; then
12040 ac_header_preproc=yes
12041 else
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 ac_header_preproc=no
12047 rm -f conftest.err conftest.$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12049 echo "${ECHO_T}$ac_header_preproc" >&6
12051 # So? What about this header?
12052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12053 yes:no: )
12054 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12055 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12057 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12058 ac_header_preproc=yes
12060 no:yes:* )
12061 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12062 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12064 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12066 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12068 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12070 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12072 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12074 cat <<\_ASBOX
12075 ## ------------------------------------------------ ##
12076 ## Report this to http://www.python.org/python-bugs ##
12077 ## ------------------------------------------------ ##
12078 _ASBOX
12080 sed "s/^/$as_me: WARNING: /" >&2
12082 esac
12083 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12084 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12085 if test "${ac_cv_header_cthreads_h+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 ac_cv_header_cthreads_h=$ac_header_preproc
12090 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12091 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12094 if test $ac_cv_header_cthreads_h = yes; then
12095 cat >>confdefs.h <<\_ACEOF
12096 #define WITH_THREAD 1
12097 _ACEOF
12099 cat >>confdefs.h <<\_ACEOF
12100 #define C_THREADS 1
12101 _ACEOF
12104 cat >>confdefs.h <<\_ACEOF
12105 #define HURD_C_THREADS 1
12106 _ACEOF
12108 LIBS="$LIBS -lthreads"
12109 THREADOBJ="Python/thread.o"
12110 else
12112 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12113 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12114 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12115 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12119 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12120 else
12121 # Is the header compilable?
12122 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12123 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 $ac_includes_default
12131 #include <mach/cthreads.h>
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag"
12143 || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_header_compiler=yes
12156 else
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 ac_header_compiler=no
12162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6
12166 # Is the header present?
12167 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12168 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <mach/cthreads.h>
12176 _ACEOF
12177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } >/dev/null; then
12185 if test -s conftest.err; then
12186 ac_cpp_err=$ac_c_preproc_warn_flag
12187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12188 else
12189 ac_cpp_err=
12191 else
12192 ac_cpp_err=yes
12194 if test -z "$ac_cpp_err"; then
12195 ac_header_preproc=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_preproc=no
12202 rm -f conftest.err conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12204 echo "${ECHO_T}$ac_header_preproc" >&6
12206 # So? What about this header?
12207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12208 yes:no: )
12209 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12210 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12212 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12213 ac_header_preproc=yes
12215 no:yes:* )
12216 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12217 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12219 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12221 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12223 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12225 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12227 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12229 cat <<\_ASBOX
12230 ## ------------------------------------------------ ##
12231 ## Report this to http://www.python.org/python-bugs ##
12232 ## ------------------------------------------------ ##
12233 _ASBOX
12235 sed "s/^/$as_me: WARNING: /" >&2
12237 esac
12238 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12239 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12240 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12245 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12246 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12249 if test $ac_cv_header_mach_cthreads_h = yes; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define WITH_THREAD 1
12252 _ACEOF
12254 cat >>confdefs.h <<\_ACEOF
12255 #define C_THREADS 1
12256 _ACEOF
12259 cat >>confdefs.h <<\_ACEOF
12260 #define MACH_C_THREADS 1
12261 _ACEOF
12263 THREADOBJ="Python/thread.o"
12264 else
12266 echo "$as_me:$LINENO: checking for --with-pth" >&5
12267 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12269 # Check whether --with-pth or --without-pth was given.
12270 if test "${with_pth+set}" = set; then
12271 withval="$with_pth"
12272 echo "$as_me:$LINENO: result: $withval" >&5
12273 echo "${ECHO_T}$withval" >&6
12274 cat >>confdefs.h <<\_ACEOF
12275 #define WITH_THREAD 1
12276 _ACEOF
12279 cat >>confdefs.h <<\_ACEOF
12280 #define HAVE_PTH 1
12281 _ACEOF
12283 LIBS="-lpth $LIBS"
12284 THREADOBJ="Python/thread.o"
12285 else
12286 echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6
12289 # Just looking for pthread_create in libpthread is not enough:
12290 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12291 # So we really have to include pthread.h, and then link.
12292 _libs=$LIBS
12293 LIBS="$LIBS -lpthread"
12294 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12295 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h. */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 #include <pthread.h>
12304 void * start_routine (void *arg) { exit (0); }
12306 main ()
12309 pthread_create (NULL, NULL, start_routine, NULL)
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12337 echo "$as_me:$LINENO: result: yes" >&5
12338 echo "${ECHO_T}yes" >&6
12339 cat >>confdefs.h <<\_ACEOF
12340 #define WITH_THREAD 1
12341 _ACEOF
12343 posix_threads=yes
12344 THREADOBJ="Python/thread.o"
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12350 LIBS=$_libs
12351 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12352 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12353 if test "${ac_cv_func_pthread_detach+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364 #define pthread_detach innocuous_pthread_detach
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char pthread_detach (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12377 #undef pthread_detach
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 #ifdef __cplusplus
12381 extern "C"
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char pthread_detach ();
12387 /* The GNU C library defines this for functions which it implements
12388 to always fail with ENOSYS. Some functions are actually named
12389 something starting with __ and the normal name is an alias. */
12390 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12391 choke me
12392 #else
12393 char (*f) () = pthread_detach;
12394 #endif
12395 #ifdef __cplusplus
12397 #endif
12400 main ()
12402 return f != pthread_detach;
12404 return 0;
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_func_pthread_detach=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_cv_func_pthread_detach=no
12436 rm -f conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12439 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12440 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12441 if test $ac_cv_func_pthread_detach = yes; then
12442 cat >>confdefs.h <<\_ACEOF
12443 #define WITH_THREAD 1
12444 _ACEOF
12446 posix_threads=yes
12447 THREADOBJ="Python/thread.o"
12448 else
12450 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12451 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12452 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12453 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12457 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12458 else
12459 # Is the header compilable?
12460 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12461 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 $ac_includes_default
12469 #include <atheos/threads.h>
12470 _ACEOF
12471 rm -f conftest.$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_header_compiler=yes
12494 else
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_header_compiler=no
12500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502 echo "${ECHO_T}$ac_header_compiler" >&6
12504 # Is the header present?
12505 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12506 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 #include <atheos/threads.h>
12514 _ACEOF
12515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } >/dev/null; then
12523 if test -s conftest.err; then
12524 ac_cpp_err=$ac_c_preproc_warn_flag
12525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12526 else
12527 ac_cpp_err=
12529 else
12530 ac_cpp_err=yes
12532 if test -z "$ac_cpp_err"; then
12533 ac_header_preproc=yes
12534 else
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_header_preproc=no
12540 rm -f conftest.err conftest.$ac_ext
12541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12542 echo "${ECHO_T}$ac_header_preproc" >&6
12544 # So? What about this header?
12545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12546 yes:no: )
12547 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12548 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12550 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12551 ac_header_preproc=yes
12553 no:yes:* )
12554 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12555 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12557 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12559 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12561 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12563 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12565 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12567 cat <<\_ASBOX
12568 ## ------------------------------------------------ ##
12569 ## Report this to http://www.python.org/python-bugs ##
12570 ## ------------------------------------------------ ##
12571 _ASBOX
12573 sed "s/^/$as_me: WARNING: /" >&2
12575 esac
12576 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12577 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12578 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 ac_cv_header_atheos_threads_h=$ac_header_preproc
12583 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12584 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12587 if test $ac_cv_header_atheos_threads_h = yes; then
12588 cat >>confdefs.h <<\_ACEOF
12589 #define WITH_THREAD 1
12590 _ACEOF
12593 cat >>confdefs.h <<\_ACEOF
12594 #define ATHEOS_THREADS 1
12595 _ACEOF
12597 THREADOBJ="Python/thread.o"
12598 else
12600 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12601 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12602 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12603 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12607 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12608 else
12609 # Is the header compilable?
12610 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12611 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 #include <kernel/OS.h>
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 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_objext'
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_header_compiler=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_header_compiler=no
12650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12652 echo "${ECHO_T}$ac_header_compiler" >&6
12654 # Is the header present?
12655 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12656 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 #include <kernel/OS.h>
12664 _ACEOF
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev/null; then
12673 if test -s conftest.err; then
12674 ac_cpp_err=$ac_c_preproc_warn_flag
12675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12676 else
12677 ac_cpp_err=
12679 else
12680 ac_cpp_err=yes
12682 if test -z "$ac_cpp_err"; then
12683 ac_header_preproc=yes
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_header_preproc=no
12690 rm -f conftest.err conftest.$ac_ext
12691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12692 echo "${ECHO_T}$ac_header_preproc" >&6
12694 # So? What about this header?
12695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12696 yes:no: )
12697 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12698 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12700 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12701 ac_header_preproc=yes
12703 no:yes:* )
12704 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12705 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12707 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12709 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12711 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12713 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12714 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12715 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12717 cat <<\_ASBOX
12718 ## ------------------------------------------------ ##
12719 ## Report this to http://www.python.org/python-bugs ##
12720 ## ------------------------------------------------ ##
12721 _ASBOX
12723 sed "s/^/$as_me: WARNING: /" >&2
12725 esac
12726 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12727 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12728 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 ac_cv_header_kernel_OS_h=$ac_header_preproc
12733 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12734 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12737 if test $ac_cv_header_kernel_OS_h = yes; then
12738 cat >>confdefs.h <<\_ACEOF
12739 #define WITH_THREAD 1
12740 _ACEOF
12743 cat >>confdefs.h <<\_ACEOF
12744 #define BEOS_THREADS 1
12745 _ACEOF
12747 THREADOBJ="Python/thread.o"
12748 else
12750 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12751 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12752 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lpthreads $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any gcc2 internal prototype to avoid an error. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12770 char pthread_create ();
12772 main ()
12774 pthread_create ();
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_pthreads_pthread_create=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_lib_pthreads_pthread_create=no
12808 rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 LIBS=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12813 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12814 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12815 cat >>confdefs.h <<\_ACEOF
12816 #define WITH_THREAD 1
12817 _ACEOF
12819 posix_threads=yes
12820 LIBS="$LIBS -lpthreads"
12821 THREADOBJ="Python/thread.o"
12822 else
12824 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12825 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12826 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 ac_check_lib_save_LIBS=$LIBS
12830 LIBS="-lc_r $LIBS"
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h. */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12844 char pthread_create ();
12846 main ()
12848 pthread_create ();
12850 return 0;
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_lib_c_r_pthread_create=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_cv_lib_c_r_pthread_create=no
12882 rm -f conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12888 if test $ac_cv_lib_c_r_pthread_create = yes; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define WITH_THREAD 1
12891 _ACEOF
12893 posix_threads=yes
12894 LIBS="$LIBS -lc_r"
12895 THREADOBJ="Python/thread.o"
12896 else
12898 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12899 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12900 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lpthread $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any gcc2 internal prototype to avoid an error. */
12913 #ifdef __cplusplus
12914 extern "C"
12915 #endif
12916 /* We use char because int might match the return type of a gcc2
12917 builtin and then its argument prototype would still apply. */
12918 char __pthread_create_system ();
12920 main ()
12922 __pthread_create_system ();
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_lib_pthread___pthread_create_system=yes
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_cv_lib_pthread___pthread_create_system=no
12956 rm -f conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12960 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12961 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12962 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12963 cat >>confdefs.h <<\_ACEOF
12964 #define WITH_THREAD 1
12965 _ACEOF
12967 posix_threads=yes
12968 LIBS="$LIBS -lpthread"
12969 THREADOBJ="Python/thread.o"
12970 else
12972 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12973 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12974 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lcma $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char pthread_create ();
12994 main ()
12996 pthread_create ();
12998 return 0;
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag"
13011 || test ! -s conftest.err'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; } &&
13017 { ac_try='test -s conftest$ac_exeext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_lib_cma_pthread_create=yes
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_lib_cma_pthread_create=no
13030 rm -f conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13032 LIBS=$ac_check_lib_save_LIBS
13034 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13035 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13036 if test $ac_cv_lib_cma_pthread_create = yes; then
13037 cat >>confdefs.h <<\_ACEOF
13038 #define WITH_THREAD 1
13039 _ACEOF
13041 posix_threads=yes
13042 LIBS="$LIBS -lcma"
13043 THREADOBJ="Python/thread.o"
13044 else
13046 USE_THREAD_MODULE="#"
13065 rm -f conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13075 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13076 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13077 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lmpc $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13095 char usconfig ();
13097 main ()
13099 usconfig ();
13101 return 0;
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13106 (eval $ac_link) 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -z "$ac_c_werror_flag"
13114 || test ! -s conftest.err'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest$ac_exeext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_lib_mpc_usconfig=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_cv_lib_mpc_usconfig=no
13133 rm -f conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13137 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13138 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13139 if test $ac_cv_lib_mpc_usconfig = yes; then
13140 cat >>confdefs.h <<\_ACEOF
13141 #define WITH_THREAD 1
13142 _ACEOF
13144 LIBS="$LIBS -lmpc"
13145 THREADOBJ="Python/thread.o"
13146 USE_THREAD_MODULE=""
13150 if test "$posix_threads" != "yes"; then
13151 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13152 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13153 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-lthread $LIBS"
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h. */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13165 /* Override any gcc2 internal prototype to avoid an error. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 /* We use char because int might match the return type of a gcc2
13170 builtin and then its argument prototype would still apply. */
13171 char thr_create ();
13173 main ()
13175 thr_create ();
13177 return 0;
13179 _ACEOF
13180 rm -f conftest.$ac_objext conftest$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182 (eval $ac_link) 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag"
13190 || test ! -s conftest.err'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_lib_thread_thr_create=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_cv_lib_thread_thr_create=no
13209 rm -f conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LIBS=$ac_check_lib_save_LIBS
13213 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13214 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13215 if test $ac_cv_lib_thread_thr_create = yes; then
13216 cat >>confdefs.h <<\_ACEOF
13217 #define WITH_THREAD 1
13218 _ACEOF
13220 LIBS="$LIBS -lthread"
13221 THREADOBJ="Python/thread.o"
13222 USE_THREAD_MODULE=""
13227 if test "$USE_THREAD_MODULE" != "#"
13228 then
13229 # If the above checks didn't disable threads, (at least) OSF1
13230 # needs this '-threads' argument during linking.
13231 case $ac_sys_system in
13232 OSF1) LDLAST=-threads;;
13233 esac
13237 if test "$posix_threads" = "yes"; then
13238 if test "$unistd_defines_pthreads" = "no"; then
13240 cat >>confdefs.h <<\_ACEOF
13241 #define _POSIX_THREADS 1
13242 _ACEOF
13246 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13247 case $ac_sys_system/$ac_sys_release in
13248 SunOS/5.6)
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_PTHREAD_DESTRUCTOR 1
13251 _ACEOF
13254 SunOS/5.8)
13255 cat >>confdefs.h <<\_ACEOF
13256 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13257 _ACEOF
13260 esac
13262 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13263 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13264 if test "${ac_cv_pthread_system_supported+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267 if test "$cross_compiling" = yes; then
13268 ac_cv_pthread_system_supported=no
13269 else
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <pthread.h>
13277 void *foo(void *parm) {
13278 return NULL;
13280 main() {
13281 pthread_attr_t attr;
13282 pthread_t id;
13283 if (pthread_attr_init(&attr)) exit(-1);
13284 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13285 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13286 exit(0);
13288 _ACEOF
13289 rm -f conftest$ac_exeext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_pthread_system_supported=yes
13301 else
13302 echo "$as_me: program exited with status $ac_status" >&5
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13306 ( exit $ac_status )
13307 ac_cv_pthread_system_supported=no
13309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13315 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13316 if test "$ac_cv_pthread_system_supported" = "yes"; then
13318 cat >>confdefs.h <<\_ACEOF
13319 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13320 _ACEOF
13324 for ac_func in pthread_sigmask
13326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13327 echo "$as_me:$LINENO: checking for $ac_func" >&5
13328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13329 if eval "test \"\${$as_ac_var+set}\" = set"; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h. */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13340 #define $ac_func innocuous_$ac_func
13342 /* System header to define __stub macros and hopefully few prototypes,
13343 which can conflict with char $ac_func (); below.
13344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13345 <limits.h> exists even on freestanding compilers. */
13347 #ifdef __STDC__
13348 # include <limits.h>
13349 #else
13350 # include <assert.h>
13351 #endif
13353 #undef $ac_func
13355 /* Override any gcc2 internal prototype to avoid an error. */
13356 #ifdef __cplusplus
13357 extern "C"
13359 #endif
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13362 char $ac_func ();
13363 /* The GNU C library defines this for functions which it implements
13364 to always fail with ENOSYS. Some functions are actually named
13365 something starting with __ and the normal name is an alias. */
13366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13367 choke me
13368 #else
13369 char (*f) () = $ac_func;
13370 #endif
13371 #ifdef __cplusplus
13373 #endif
13376 main ()
13378 return f != $ac_func;
13380 return 0;
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385 (eval $ac_link) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 eval "$as_ac_var=yes"
13406 else
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13410 eval "$as_ac_var=no"
13412 rm -f conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13417 if test `eval echo '${'$as_ac_var'}'` = yes; then
13418 cat >>confdefs.h <<_ACEOF
13419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13420 _ACEOF
13421 case $ac_sys_system in
13422 CYGWIN*)
13424 cat >>confdefs.h <<\_ACEOF
13425 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13426 _ACEOF
13429 esac
13431 done
13436 # Check for enable-ipv6
13439 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13440 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13441 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13442 if test "${enable_ipv6+set}" = set; then
13443 enableval="$enable_ipv6"
13444 case "$enableval" in
13446 echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6
13448 ipv6=no
13450 *) echo "$as_me:$LINENO: result: yes" >&5
13451 echo "${ECHO_T}yes" >&6
13452 cat >>confdefs.h <<\_ACEOF
13453 #define ENABLE_IPV6 1
13454 _ACEOF
13456 ipv6=yes
13458 esac
13459 else
13461 if test "$cross_compiling" = yes; then
13462 echo "$as_me:$LINENO: result: no" >&5
13463 echo "${ECHO_T}no" >&6
13464 ipv6=no
13466 else
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 /* AF_INET6 available check */
13474 #include <sys/types.h>
13475 #include <sys/socket.h>
13476 main()
13478 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13479 exit(1);
13480 else
13481 exit(0);
13484 _ACEOF
13485 rm -f conftest$ac_exeext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13487 (eval $ac_link) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 echo "$as_me:$LINENO: result: yes" >&5
13497 echo "${ECHO_T}yes" >&6
13498 ipv6=yes
13499 else
13500 echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6
13507 ipv6=no
13509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13512 if test "$ipv6" = "yes"; then
13513 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13514 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 #include <sys/types.h>
13522 #include <netinet/in.h>
13524 main ()
13526 struct sockaddr_in6 x;
13527 x.sin6_scope_id;
13529 return 0;
13531 _ACEOF
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 echo "$as_me:$LINENO: result: yes" >&5
13555 echo "${ECHO_T}yes" >&6
13556 ipv6=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6
13563 ipv6=no
13565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 if test "$ipv6" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define ENABLE_IPV6 1
13571 _ACEOF
13577 ipv6type=unknown
13578 ipv6lib=none
13579 ipv6trylibc=no
13581 if test "$ipv6" = "yes"; then
13582 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13583 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13584 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13586 case $i in
13587 inria)
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 #include <netinet/in.h>
13596 #ifdef IPV6_INRIA_VERSION
13598 #endif
13599 _ACEOF
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 $EGREP "yes" >/dev/null 2>&1; then
13602 ipv6type=$i
13604 rm -f conftest*
13607 kame)
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13615 #include <netinet/in.h>
13616 #ifdef __KAME__
13618 #endif
13619 _ACEOF
13620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13621 $EGREP "yes" >/dev/null 2>&1; then
13622 ipv6type=$i;
13623 ipv6lib=inet6
13624 ipv6libdir=/usr/local/v6/lib
13625 ipv6trylibc=yes
13627 rm -f conftest*
13630 linux-glibc)
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13638 #include <features.h>
13639 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13641 #endif
13642 _ACEOF
13643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13644 $EGREP "yes" >/dev/null 2>&1; then
13645 ipv6type=$i;
13646 ipv6trylibc=yes
13648 rm -f conftest*
13651 linux-inet6)
13652 if test -d /usr/inet6; then
13653 ipv6type=$i
13654 ipv6lib=inet6
13655 ipv6libdir=/usr/inet6/lib
13656 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13659 solaris)
13660 if test -f /etc/netconfig; then
13661 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13662 ipv6type=$i
13663 ipv6trylibc=yes
13667 toshiba)
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 #include <sys/param.h>
13676 #ifdef _TOSHIBA_INET6
13678 #endif
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "yes" >/dev/null 2>&1; then
13682 ipv6type=$i;
13683 ipv6lib=inet6;
13684 ipv6libdir=/usr/local/v6/lib
13686 rm -f conftest*
13689 v6d)
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 #include </usr/local/v6/include/sys/v6config.h>
13698 #ifdef __V6D__
13700 #endif
13701 _ACEOF
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703 $EGREP "yes" >/dev/null 2>&1; then
13704 ipv6type=$i;
13705 ipv6lib=v6;
13706 ipv6libdir=/usr/local/v6/lib;
13707 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13709 rm -f conftest*
13712 zeta)
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13720 #include <sys/param.h>
13721 #ifdef _ZETA_MINAMI_INET6
13723 #endif
13724 _ACEOF
13725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13726 $EGREP "yes" >/dev/null 2>&1; then
13727 ipv6type=$i;
13728 ipv6lib=inet6;
13729 ipv6libdir=/usr/local/v6/lib
13731 rm -f conftest*
13734 esac
13735 if test "$ipv6type" != "unknown"; then
13736 break
13738 done
13739 echo "$as_me:$LINENO: result: $ipv6type" >&5
13740 echo "${ECHO_T}$ipv6type" >&6
13743 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13744 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13745 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13746 echo "using lib$ipv6lib"
13747 else
13748 if test $ipv6trylibc = "yes"; then
13749 echo "using libc"
13750 else
13751 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13752 echo "You need to fetch lib$ipv6lib.a from appropriate"
13753 echo 'ipv6 kit and compile beforehand.'
13754 exit 1
13759 # Check for --with-doc-strings
13760 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13761 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13763 # Check whether --with-doc-strings or --without-doc-strings was given.
13764 if test "${with_doc_strings+set}" = set; then
13765 withval="$with_doc_strings"
13769 if test -z "$with_doc_strings"
13770 then with_doc_strings="yes"
13772 if test "$with_doc_strings" != "no"
13773 then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define WITH_DOC_STRINGS 1
13777 _ACEOF
13780 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13781 echo "${ECHO_T}$with_doc_strings" >&6
13783 # Check for Python-specific malloc support
13784 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13785 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13787 # Check whether --with-tsc or --without-tsc was given.
13788 if test "${with_tsc+set}" = set; then
13789 withval="$with_tsc"
13791 if test "$withval" != no
13792 then
13794 cat >>confdefs.h <<\_ACEOF
13795 #define WITH_TSC 1
13796 _ACEOF
13798 echo "$as_me:$LINENO: result: yes" >&5
13799 echo "${ECHO_T}yes" >&6
13800 else echo "$as_me:$LINENO: result: no" >&5
13801 echo "${ECHO_T}no" >&6
13803 else
13804 echo "$as_me:$LINENO: result: no" >&5
13805 echo "${ECHO_T}no" >&6
13808 # Check for Python-specific malloc support
13809 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13810 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13812 # Check whether --with-pymalloc or --without-pymalloc was given.
13813 if test "${with_pymalloc+set}" = set; then
13814 withval="$with_pymalloc"
13818 if test -z "$with_pymalloc"
13819 then with_pymalloc="yes"
13821 if test "$with_pymalloc" != "no"
13822 then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define WITH_PYMALLOC 1
13826 _ACEOF
13829 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13830 echo "${ECHO_T}$with_pymalloc" >&6
13832 # Check for --with-wctype-functions
13833 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13834 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13836 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13837 if test "${with_wctype_functions+set}" = set; then
13838 withval="$with_wctype_functions"
13840 if test "$withval" != no
13841 then
13843 cat >>confdefs.h <<\_ACEOF
13844 #define WANT_WCTYPE_FUNCTIONS 1
13845 _ACEOF
13847 echo "$as_me:$LINENO: result: yes" >&5
13848 echo "${ECHO_T}yes" >&6
13849 else echo "$as_me:$LINENO: result: no" >&5
13850 echo "${ECHO_T}no" >&6
13852 else
13853 echo "$as_me:$LINENO: result: no" >&5
13854 echo "${ECHO_T}no" >&6
13857 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13859 DLINCLDIR=.
13861 # the dlopen() function means we might want to use dynload_shlib.o. some
13862 # platforms, such as AIX, have dlopen(), but don't want to use it.
13864 for ac_func in dlopen
13866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13867 echo "$as_me:$LINENO: checking for $ac_func" >&5
13868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13869 if eval "test \"\${$as_ac_var+set}\" = set"; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h. */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13880 #define $ac_func innocuous_$ac_func
13882 /* System header to define __stub macros and hopefully few prototypes,
13883 which can conflict with char $ac_func (); below.
13884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13885 <limits.h> exists even on freestanding compilers. */
13887 #ifdef __STDC__
13888 # include <limits.h>
13889 #else
13890 # include <assert.h>
13891 #endif
13893 #undef $ac_func
13895 /* Override any gcc2 internal prototype to avoid an error. */
13896 #ifdef __cplusplus
13897 extern "C"
13899 #endif
13900 /* We use char because int might match the return type of a gcc2
13901 builtin and then its argument prototype would still apply. */
13902 char $ac_func ();
13903 /* The GNU C library defines this for functions which it implements
13904 to always fail with ENOSYS. Some functions are actually named
13905 something starting with __ and the normal name is an alias. */
13906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13907 choke me
13908 #else
13909 char (*f) () = $ac_func;
13910 #endif
13911 #ifdef __cplusplus
13913 #endif
13916 main ()
13918 return f != $ac_func;
13920 return 0;
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 eval "$as_ac_var=yes"
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 eval "$as_ac_var=no"
13952 rm -f conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13957 if test `eval echo '${'$as_ac_var'}'` = yes; then
13958 cat >>confdefs.h <<_ACEOF
13959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13960 _ACEOF
13963 done
13966 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13967 # loading of modules.
13969 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13970 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13971 if test -z "$DYNLOADFILE"
13972 then
13973 case $ac_sys_system/$ac_sys_release in
13974 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13975 if test "$ac_cv_func_dlopen" = yes
13976 then DYNLOADFILE="dynload_shlib.o"
13977 else DYNLOADFILE="dynload_aix.o"
13980 BeOS*) DYNLOADFILE="dynload_beos.o";;
13981 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13982 Darwin/*) DYNLOADFILE="dynload_next.o";;
13983 atheos*) DYNLOADFILE="dynload_atheos.o";;
13985 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13986 # out any dynamic loading
13987 if test "$ac_cv_func_dlopen" = yes
13988 then DYNLOADFILE="dynload_shlib.o"
13989 else DYNLOADFILE="dynload_stub.o"
13992 esac
13994 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13995 echo "${ECHO_T}$DYNLOADFILE" >&6
13996 if test "$DYNLOADFILE" != "dynload_stub.o"
13997 then
13999 cat >>confdefs.h <<\_ACEOF
14000 #define HAVE_DYNAMIC_LOADING 1
14001 _ACEOF
14005 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14008 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14009 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14010 if test -z "$MACHDEP_OBJS"
14011 then
14012 MACHDEP_OBJS=$extra_machdep_objs
14013 else
14014 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14016 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14017 echo "${ECHO_T}MACHDEP_OBJS" >&6
14019 # checks for library functions
14096 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14097 execv fork fpathconf ftime ftruncate \
14098 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14099 getpriority getpwent getspnam getspent getsid getwd \
14100 kill killpg lchown lstat mkfifo mknod mktime \
14101 mremap nice pathconf pause plock poll pthread_init \
14102 putenv readlink realpath \
14103 select setegid seteuid setgid \
14104 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14105 sigaction siginterrupt sigrelse strftime \
14106 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14107 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14110 echo "$as_me:$LINENO: checking for $ac_func" >&5
14111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14112 if eval "test \"\${$as_ac_var+set}\" = set"; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14123 #define $ac_func innocuous_$ac_func
14125 /* System header to define __stub macros and hopefully few prototypes,
14126 which can conflict with char $ac_func (); below.
14127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128 <limits.h> exists even on freestanding compilers. */
14130 #ifdef __STDC__
14131 # include <limits.h>
14132 #else
14133 # include <assert.h>
14134 #endif
14136 #undef $ac_func
14138 /* Override any gcc2 internal prototype to avoid an error. */
14139 #ifdef __cplusplus
14140 extern "C"
14142 #endif
14143 /* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14145 char $ac_func ();
14146 /* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14150 choke me
14151 #else
14152 char (*f) () = $ac_func;
14153 #endif
14154 #ifdef __cplusplus
14156 #endif
14159 main ()
14161 return f != $ac_func;
14163 return 0;
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 eval "$as_ac_var=yes"
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 eval "$as_ac_var=no"
14195 rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14200 if test `eval echo '${'$as_ac_var'}'` = yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14203 _ACEOF
14206 done
14209 # For some functions, having a definition is not sufficient, since
14210 # we want to take their address.
14211 echo "$as_me:$LINENO: checking for chroot" >&5
14212 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <unistd.h>
14221 main ()
14223 void *x=chroot
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14251 cat >>confdefs.h <<\_ACEOF
14252 #define HAVE_CHROOT 1
14253 _ACEOF
14255 echo "$as_me:$LINENO: result: yes" >&5
14256 echo "${ECHO_T}yes" >&6
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 echo "$as_me:$LINENO: result: no" >&5
14262 echo "${ECHO_T}no" >&6
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: checking for link" >&5
14267 echo $ECHO_N "checking for link... $ECHO_C" >&6
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <unistd.h>
14276 main ()
14278 void *x=link
14280 return 0;
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_LINK 1
14308 _ACEOF
14310 echo "$as_me:$LINENO: result: yes" >&5
14311 echo "${ECHO_T}yes" >&6
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6
14320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me:$LINENO: checking for symlink" >&5
14322 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 #include <unistd.h>
14331 main ()
14333 void *x=symlink
14335 return 0;
14337 _ACEOF
14338 rm -f conftest.$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340 (eval $ac_compile) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_SYMLINK 1
14363 _ACEOF
14365 echo "$as_me:$LINENO: result: yes" >&5
14366 echo "${ECHO_T}yes" >&6
14367 else
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 echo "$as_me:$LINENO: result: no" >&5
14372 echo "${ECHO_T}no" >&6
14375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376 echo "$as_me:$LINENO: checking for fchdir" >&5
14377 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <unistd.h>
14386 main ()
14388 void *x=fchdir
14390 return 0;
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest.$ac_objext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_FCHDIR 1
14418 _ACEOF
14420 echo "$as_me:$LINENO: result: yes" >&5
14421 echo "${ECHO_T}yes" >&6
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14431 echo "$as_me:$LINENO: checking for fsync" >&5
14432 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 #include <unistd.h>
14441 main ()
14443 void *x=fsync
14445 return 0;
14447 _ACEOF
14448 rm -f conftest.$ac_objext
14449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14450 (eval $ac_compile) 2>conftest.er1
14451 ac_status=$?
14452 grep -v '^ *+' conftest.er1 >conftest.err
14453 rm -f conftest.er1
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try='test -z "$ac_c_werror_flag"
14458 || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_FSYNC 1
14473 _ACEOF
14475 echo "$as_me:$LINENO: result: yes" >&5
14476 echo "${ECHO_T}yes" >&6
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14486 echo "$as_me:$LINENO: checking for fdatasync" >&5
14487 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <unistd.h>
14496 main ()
14498 void *x=fdatasync
14500 return 0;
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag"
14513 || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_FDATASYNC 1
14528 _ACEOF
14530 echo "$as_me:$LINENO: result: yes" >&5
14531 echo "${ECHO_T}yes" >&6
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6
14540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14542 # On some systems (eg. FreeBSD 5), we would find a definition of the
14543 # functions ctermid_r, setgroups in the library, but no prototype
14544 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14545 # address to avoid compiler warnings and potential miscompilations
14546 # because of the missing prototypes.
14548 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14549 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14557 #include "confdefs.h"
14558 #include <stdio.h>
14561 main ()
14563 void* p = ctermid_r
14565 return 0;
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_CTERMID_R 1
14593 _ACEOF
14595 echo "$as_me:$LINENO: result: yes" >&5
14596 echo "${ECHO_T}yes" >&6
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6
14605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14607 echo "$as_me:$LINENO: checking for flock" >&5
14608 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h. */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14616 #include "confdefs.h"
14617 #include <sys/file.h>
14620 main ()
14622 void* p = flock
14624 return 0;
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_FLOCK 1
14652 _ACEOF
14654 echo "$as_me:$LINENO: result: yes" >&5
14655 echo "${ECHO_T}yes" >&6
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 echo "$as_me:$LINENO: result: no" >&5
14661 echo "${ECHO_T}no" >&6
14664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666 echo "$as_me:$LINENO: checking for getpagesize" >&5
14667 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 #include "confdefs.h"
14676 #include <unistd.h>
14679 main ()
14681 void* p = getpagesize
14683 return 0;
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest.$ac_objext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAVE_GETPAGESIZE 1
14711 _ACEOF
14713 echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6
14715 else
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 echo "$as_me:$LINENO: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14725 for ac_prog in true
14727 # Extract the first word of "$ac_prog", so it can be a program name with args.
14728 set dummy $ac_prog; ac_word=$2
14729 echo "$as_me:$LINENO: checking for $ac_word" >&5
14730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14731 if test "${ac_cv_prog_TRUE+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734 if test -n "$TRUE"; then
14735 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14736 else
14737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14738 for as_dir in $PATH
14740 IFS=$as_save_IFS
14741 test -z "$as_dir" && as_dir=.
14742 for ac_exec_ext in '' $ac_executable_extensions; do
14743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14744 ac_cv_prog_TRUE="$ac_prog"
14745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14746 break 2
14748 done
14749 done
14753 TRUE=$ac_cv_prog_TRUE
14754 if test -n "$TRUE"; then
14755 echo "$as_me:$LINENO: result: $TRUE" >&5
14756 echo "${ECHO_T}$TRUE" >&6
14757 else
14758 echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6
14762 test -n "$TRUE" && break
14763 done
14764 test -n "$TRUE" || TRUE="/bin/true"
14767 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14768 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14769 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 ac_check_lib_save_LIBS=$LIBS
14773 LIBS="-lc $LIBS"
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h. */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14781 /* Override any gcc2 internal prototype to avoid an error. */
14782 #ifdef __cplusplus
14783 extern "C"
14784 #endif
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char inet_aton ();
14789 main ()
14791 inet_aton ();
14793 return 0;
14795 _ACEOF
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -z "$ac_c_werror_flag"
14806 || test ! -s conftest.err'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; } &&
14812 { ac_try='test -s conftest$ac_exeext'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14818 ac_cv_lib_c_inet_aton=yes
14819 else
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ac_cv_lib_c_inet_aton=no
14825 rm -f conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827 LIBS=$ac_check_lib_save_LIBS
14829 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14830 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14831 if test $ac_cv_lib_c_inet_aton = yes; then
14832 $ac_cv_prog_TRUE
14833 else
14835 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14836 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14837 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840 ac_check_lib_save_LIBS=$LIBS
14841 LIBS="-lresolv $LIBS"
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char inet_aton ();
14857 main ()
14859 inet_aton ();
14861 return 0;
14863 _ACEOF
14864 rm -f conftest.$ac_objext conftest$ac_exeext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14866 (eval $ac_link) 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_resolv_inet_aton=yes
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_cv_lib_resolv_inet_aton=no
14893 rm -f conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_lib_save_LIBS
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14898 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14899 if test $ac_cv_lib_resolv_inet_aton = yes; then
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_LIBRESOLV 1
14902 _ACEOF
14904 LIBS="-lresolv $LIBS"
14912 echo "$as_me:$LINENO: checking for hstrerror" >&5
14913 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 #include "confdefs.h"
14922 #include <netdb.h>
14925 main ()
14927 void* p = hstrerror; hstrerror(0)
14929 return 0;
14931 _ACEOF
14932 rm -f conftest.$ac_objext conftest$ac_exeext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14934 (eval $ac_link) 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -z "$ac_c_werror_flag"
14942 || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest$ac_exeext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14955 cat >>confdefs.h <<\_ACEOF
14956 #define HAVE_HSTRERROR 1
14957 _ACEOF
14959 echo "$as_me:$LINENO: result: yes" >&5
14960 echo "${ECHO_T}yes" >&6
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 echo "$as_me:$LINENO: result: no" >&5
14966 echo "${ECHO_T}no" >&6
14969 rm -f conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14972 echo "$as_me:$LINENO: checking for inet_aton" >&5
14973 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14981 #include "confdefs.h"
14982 #include <sys/types.h>
14983 #include <sys/socket.h>
14984 #include <netinet/in.h>
14985 #include <arpa/inet.h>
14988 main ()
14990 void* p = inet_aton;inet_aton(0,0)
14992 return 0;
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15018 cat >>confdefs.h <<\_ACEOF
15019 #define HAVE_INET_ATON 1
15020 _ACEOF
15022 echo "$as_me:$LINENO: result: yes" >&5
15023 echo "${ECHO_T}yes" >&6
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 echo "$as_me:$LINENO: result: no" >&5
15029 echo "${ECHO_T}no" >&6
15032 rm -f conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15035 echo "$as_me:$LINENO: checking for inet_pton" >&5
15036 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 #include "confdefs.h"
15045 #include <sys/types.h>
15046 #include <sys/socket.h>
15047 #include <netinet/in.h>
15048 #include <arpa/inet.h>
15051 main ()
15053 void* p = inet_pton
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15081 cat >>confdefs.h <<\_ACEOF
15082 #define HAVE_INET_PTON 1
15083 _ACEOF
15085 echo "$as_me:$LINENO: result: yes" >&5
15086 echo "${ECHO_T}yes" >&6
15087 else
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 echo "$as_me:$LINENO: result: no" >&5
15092 echo "${ECHO_T}no" >&6
15095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15097 # On some systems, setgroups is in unistd.h, on others, in grp.h
15098 echo "$as_me:$LINENO: checking for setgroups" >&5
15099 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 #include "confdefs.h"
15108 #include <unistd.h>
15109 #ifdef HAVE_GRP_H
15110 #include <grp.h>
15111 #endif
15114 main ()
15116 void* p = setgroups
15118 return 0;
15120 _ACEOF
15121 rm -f conftest.$ac_objext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15144 cat >>confdefs.h <<\_ACEOF
15145 #define HAVE_SETGROUPS 1
15146 _ACEOF
15148 echo "$as_me:$LINENO: result: yes" >&5
15149 echo "${ECHO_T}yes" >&6
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 echo "$as_me:$LINENO: result: no" >&5
15155 echo "${ECHO_T}no" >&6
15158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15160 # check for openpty and forkpty
15163 for ac_func in openpty
15165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15166 echo "$as_me:$LINENO: checking for $ac_func" >&5
15167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15168 if eval "test \"\${$as_ac_var+set}\" = set"; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15179 #define $ac_func innocuous_$ac_func
15181 /* System header to define __stub macros and hopefully few prototypes,
15182 which can conflict with char $ac_func (); below.
15183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15184 <limits.h> exists even on freestanding compilers. */
15186 #ifdef __STDC__
15187 # include <limits.h>
15188 #else
15189 # include <assert.h>
15190 #endif
15192 #undef $ac_func
15194 /* Override any gcc2 internal prototype to avoid an error. */
15195 #ifdef __cplusplus
15196 extern "C"
15198 #endif
15199 /* We use char because int might match the return type of a gcc2
15200 builtin and then its argument prototype would still apply. */
15201 char $ac_func ();
15202 /* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15206 choke me
15207 #else
15208 char (*f) () = $ac_func;
15209 #endif
15210 #ifdef __cplusplus
15212 #endif
15215 main ()
15217 return f != $ac_func;
15219 return 0;
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 eval "$as_ac_var=yes"
15245 else
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 eval "$as_ac_var=no"
15251 rm -f conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15256 if test `eval echo '${'$as_ac_var'}'` = yes; then
15257 cat >>confdefs.h <<_ACEOF
15258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259 _ACEOF
15261 else
15262 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15263 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15264 if test "${ac_cv_lib_util_openpty+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 ac_check_lib_save_LIBS=$LIBS
15268 LIBS="-lutil $LIBS"
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15276 /* Override any gcc2 internal prototype to avoid an error. */
15277 #ifdef __cplusplus
15278 extern "C"
15279 #endif
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15282 char openpty ();
15284 main ()
15286 openpty ();
15288 return 0;
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest$ac_exeext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_lib_util_openpty=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_lib_util_openpty=no
15320 rm -f conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_check_lib_save_LIBS
15324 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15325 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15326 if test $ac_cv_lib_util_openpty = yes; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_OPENPTY 1
15329 _ACEOF
15330 LIBS="$LIBS -lutil"
15331 else
15332 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15333 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15334 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 ac_check_lib_save_LIBS=$LIBS
15338 LIBS="-lbsd $LIBS"
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15346 /* Override any gcc2 internal prototype to avoid an error. */
15347 #ifdef __cplusplus
15348 extern "C"
15349 #endif
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15352 char openpty ();
15354 main ()
15356 openpty ();
15358 return 0;
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15363 (eval $ac_link) 2>conftest.er1
15364 ac_status=$?
15365 grep -v '^ *+' conftest.er1 >conftest.err
15366 rm -f conftest.er1
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -z "$ac_c_werror_flag"
15371 || test ! -s conftest.err'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } &&
15377 { ac_try='test -s conftest$ac_exeext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_cv_lib_bsd_openpty=yes
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_cv_lib_bsd_openpty=no
15390 rm -f conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15392 LIBS=$ac_check_lib_save_LIBS
15394 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15395 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15396 if test $ac_cv_lib_bsd_openpty = yes; then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_OPENPTY 1
15399 _ACEOF
15400 LIBS="$LIBS -lbsd"
15408 done
15411 for ac_func in forkpty
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15427 #define $ac_func innocuous_$ac_func
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below.
15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432 <limits.h> exists even on freestanding compilers. */
15434 #ifdef __STDC__
15435 # include <limits.h>
15436 #else
15437 # include <assert.h>
15438 #endif
15440 #undef $ac_func
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 #ifdef __cplusplus
15444 extern "C"
15446 #endif
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char $ac_func ();
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 char (*f) () = $ac_func;
15457 #endif
15458 #ifdef __cplusplus
15460 #endif
15463 main ()
15465 return f != $ac_func;
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest$ac_exeext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 eval "$as_ac_var=yes"
15493 else
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15497 eval "$as_ac_var=no"
15499 rm -f conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 _ACEOF
15509 else
15510 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15511 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15512 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 ac_check_lib_save_LIBS=$LIBS
15516 LIBS="-lutil $LIBS"
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15524 /* Override any gcc2 internal prototype to avoid an error. */
15525 #ifdef __cplusplus
15526 extern "C"
15527 #endif
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15530 char forkpty ();
15532 main ()
15534 forkpty ();
15536 return 0;
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_lib_util_forkpty=yes
15562 else
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_lib_util_forkpty=no
15568 rm -f conftest.err conftest.$ac_objext \
15569 conftest$ac_exeext conftest.$ac_ext
15570 LIBS=$ac_check_lib_save_LIBS
15572 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15573 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15574 if test $ac_cv_lib_util_forkpty = yes; then
15575 cat >>confdefs.h <<\_ACEOF
15576 #define HAVE_FORKPTY 1
15577 _ACEOF
15578 LIBS="$LIBS -lutil"
15579 else
15580 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15581 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15582 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 ac_check_lib_save_LIBS=$LIBS
15586 LIBS="-lbsd $LIBS"
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15594 /* Override any gcc2 internal prototype to avoid an error. */
15595 #ifdef __cplusplus
15596 extern "C"
15597 #endif
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15600 char forkpty ();
15602 main ()
15604 forkpty ();
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 ac_cv_lib_bsd_forkpty=yes
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_cv_lib_bsd_forkpty=no
15638 rm -f conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_check_lib_save_LIBS
15642 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15643 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15644 if test $ac_cv_lib_bsd_forkpty = yes; then
15645 cat >>confdefs.h <<\_ACEOF
15646 #define HAVE_FORKPTY 1
15647 _ACEOF
15648 LIBS="$LIBS -lbsd"
15656 done
15659 # check for long file support functions
15666 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15669 echo "$as_me:$LINENO: checking for $ac_func" >&5
15670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15671 if eval "test \"\${$as_ac_var+set}\" = set"; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674 cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h. */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15682 #define $ac_func innocuous_$ac_func
15684 /* System header to define __stub macros and hopefully few prototypes,
15685 which can conflict with char $ac_func (); below.
15686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15687 <limits.h> exists even on freestanding compilers. */
15689 #ifdef __STDC__
15690 # include <limits.h>
15691 #else
15692 # include <assert.h>
15693 #endif
15695 #undef $ac_func
15697 /* Override any gcc2 internal prototype to avoid an error. */
15698 #ifdef __cplusplus
15699 extern "C"
15701 #endif
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15704 char $ac_func ();
15705 /* The GNU C library defines this for functions which it implements
15706 to always fail with ENOSYS. Some functions are actually named
15707 something starting with __ and the normal name is an alias. */
15708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15709 choke me
15710 #else
15711 char (*f) () = $ac_func;
15712 #endif
15713 #ifdef __cplusplus
15715 #endif
15718 main ()
15720 return f != $ac_func;
15722 return 0;
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag"
15735 || test ! -s conftest.err'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 eval "$as_ac_var=yes"
15748 else
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 eval "$as_ac_var=no"
15754 rm -f conftest.err conftest.$ac_objext \
15755 conftest$ac_exeext conftest.$ac_ext
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15762 _ACEOF
15765 done
15773 for ac_func in dup2 getcwd strdup strerror memmove
15775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 else
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789 #define $ac_func innocuous_$ac_func
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15796 #ifdef __STDC__
15797 # include <limits.h>
15798 #else
15799 # include <assert.h>
15800 #endif
15802 #undef $ac_func
15804 /* Override any gcc2 internal prototype to avoid an error. */
15805 #ifdef __cplusplus
15806 extern "C"
15808 #endif
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811 char $ac_func ();
15812 /* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15816 choke me
15817 #else
15818 char (*f) () = $ac_func;
15819 #endif
15820 #ifdef __cplusplus
15822 #endif
15825 main ()
15827 return f != $ac_func;
15829 return 0;
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag"
15842 || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 eval "$as_ac_var=yes"
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 eval "$as_ac_var=no"
15861 rm -f conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15866 if test `eval echo '${'$as_ac_var'}'` = yes; then
15867 cat >>confdefs.h <<_ACEOF
15868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15869 _ACEOF
15871 else
15872 case $LIBOBJS in
15873 "$ac_func.$ac_objext" | \
15874 *" $ac_func.$ac_objext" | \
15875 "$ac_func.$ac_objext "* | \
15876 *" $ac_func.$ac_objext "* ) ;;
15877 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15878 esac
15881 done
15885 for ac_func in getpgrp
15887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15888 echo "$as_me:$LINENO: checking for $ac_func" >&5
15889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15890 if eval "test \"\${$as_ac_var+set}\" = set"; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15901 #define $ac_func innocuous_$ac_func
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char $ac_func (); below.
15905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15906 <limits.h> exists even on freestanding compilers. */
15908 #ifdef __STDC__
15909 # include <limits.h>
15910 #else
15911 # include <assert.h>
15912 #endif
15914 #undef $ac_func
15916 /* Override any gcc2 internal prototype to avoid an error. */
15917 #ifdef __cplusplus
15918 extern "C"
15920 #endif
15921 /* We use char because int might match the return type of a gcc2
15922 builtin and then its argument prototype would still apply. */
15923 char $ac_func ();
15924 /* The GNU C library defines this for functions which it implements
15925 to always fail with ENOSYS. Some functions are actually named
15926 something starting with __ and the normal name is an alias. */
15927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15928 choke me
15929 #else
15930 char (*f) () = $ac_func;
15931 #endif
15932 #ifdef __cplusplus
15934 #endif
15937 main ()
15939 return f != $ac_func;
15941 return 0;
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest$ac_exeext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 eval "$as_ac_var=yes"
15967 else
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 eval "$as_ac_var=no"
15973 rm -f conftest.err conftest.$ac_objext \
15974 conftest$ac_exeext conftest.$ac_ext
15976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15978 if test `eval echo '${'$as_ac_var'}'` = yes; then
15979 cat >>confdefs.h <<_ACEOF
15980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15981 _ACEOF
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <unistd.h>
15990 main ()
15992 getpgrp(0);
15994 return 0;
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define GETPGRP_HAVE_ARG 1
16022 _ACEOF
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033 done
16036 for ac_func in setpgrp
16038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039 echo "$as_me:$LINENO: checking for $ac_func" >&5
16040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16041 if eval "test \"\${$as_ac_var+set}\" = set"; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052 #define $ac_func innocuous_$ac_func
16054 /* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16059 #ifdef __STDC__
16060 # include <limits.h>
16061 #else
16062 # include <assert.h>
16063 #endif
16065 #undef $ac_func
16067 /* Override any gcc2 internal prototype to avoid an error. */
16068 #ifdef __cplusplus
16069 extern "C"
16071 #endif
16072 /* We use char because int might match the return type of a gcc2
16073 builtin and then its argument prototype would still apply. */
16074 char $ac_func ();
16075 /* The GNU C library defines this for functions which it implements
16076 to always fail with ENOSYS. Some functions are actually named
16077 something starting with __ and the normal name is an alias. */
16078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16079 choke me
16080 #else
16081 char (*f) () = $ac_func;
16082 #endif
16083 #ifdef __cplusplus
16085 #endif
16088 main ()
16090 return f != $ac_func;
16092 return 0;
16094 _ACEOF
16095 rm -f conftest.$ac_objext conftest$ac_exeext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16097 (eval $ac_link) 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try='test -z "$ac_c_werror_flag"
16105 || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest$ac_exeext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 eval "$as_ac_var=yes"
16118 else
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 eval "$as_ac_var=no"
16124 rm -f conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16129 if test `eval echo '${'$as_ac_var'}'` = yes; then
16130 cat >>confdefs.h <<_ACEOF
16131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16132 _ACEOF
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 #include <unistd.h>
16141 main ()
16143 setpgrp(0,0);
16145 return 0;
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16171 cat >>confdefs.h <<\_ACEOF
16172 #define SETPGRP_HAVE_ARG 1
16173 _ACEOF
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16184 done
16187 for ac_func in gettimeofday
16189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16190 echo "$as_me:$LINENO: checking for $ac_func" >&5
16191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16192 if eval "test \"\${$as_ac_var+set}\" = set"; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16203 #define $ac_func innocuous_$ac_func
16205 /* System header to define __stub macros and hopefully few prototypes,
16206 which can conflict with char $ac_func (); below.
16207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16208 <limits.h> exists even on freestanding compilers. */
16210 #ifdef __STDC__
16211 # include <limits.h>
16212 #else
16213 # include <assert.h>
16214 #endif
16216 #undef $ac_func
16218 /* Override any gcc2 internal prototype to avoid an error. */
16219 #ifdef __cplusplus
16220 extern "C"
16222 #endif
16223 /* We use char because int might match the return type of a gcc2
16224 builtin and then its argument prototype would still apply. */
16225 char $ac_func ();
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16230 choke me
16231 #else
16232 char (*f) () = $ac_func;
16233 #endif
16234 #ifdef __cplusplus
16236 #endif
16239 main ()
16241 return f != $ac_func;
16243 return 0;
16245 _ACEOF
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest$ac_exeext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 eval "$as_ac_var=yes"
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 eval "$as_ac_var=no"
16275 rm -f conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16280 if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16283 _ACEOF
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 #include <sys/time.h>
16292 main ()
16294 gettimeofday((struct timeval*)0,(struct timezone*)0);
16296 return 0;
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301 (eval $ac_compile) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
16308 { ac_try='test -z "$ac_c_werror_flag"
16309 || test ! -s conftest.err'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16322 else
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16327 cat >>confdefs.h <<\_ACEOF
16328 #define GETTIMEOFDAY_NO_TZ 1
16329 _ACEOF
16333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16336 done
16339 echo "$as_me:$LINENO: checking for major" >&5
16340 echo $ECHO_N "checking for major... $ECHO_C" >&6
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h. */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16348 #if defined(MAJOR_IN_MKDEV)
16349 #include <sys/mkdev.h>
16350 #elif defined(MAJOR_IN_SYSMACROS)
16351 #include <sys/sysmacros.h>
16352 #else
16353 #include <sys/types.h>
16354 #endif
16357 main ()
16360 makedev(major(0),minor(0));
16363 return 0;
16365 _ACEOF
16366 rm -f conftest.$ac_objext conftest$ac_exeext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16368 (eval $ac_link) 2>conftest.er1
16369 ac_status=$?
16370 grep -v '^ *+' conftest.er1 >conftest.err
16371 rm -f conftest.er1
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -z "$ac_c_werror_flag"
16376 || test ! -s conftest.err'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try='test -s conftest$ac_exeext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE_DEVICE_MACROS 1
16392 _ACEOF
16394 echo "$as_me:$LINENO: result: yes" >&5
16395 echo "${ECHO_T}yes" >&6
16397 else
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16402 echo "$as_me:$LINENO: result: no" >&5
16403 echo "${ECHO_T}no" >&6
16406 rm -f conftest.err conftest.$ac_objext \
16407 conftest$ac_exeext conftest.$ac_ext
16409 # On OSF/1 V5.1, getaddrinfo is available, but a define
16410 # for [no]getaddrinfo in netdb.h.
16411 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16412 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16420 #include <sys/types.h>
16421 #include <sys/socket.h>
16422 #include <netdb.h>
16423 #include <stdio.h>
16426 main ()
16429 getaddrinfo(NULL, NULL, NULL, NULL);
16432 return 0;
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -z "$ac_c_werror_flag"
16445 || test ! -s conftest.err'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest$ac_exeext'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16458 echo "$as_me:$LINENO: result: yes" >&5
16459 echo "${ECHO_T}yes" >&6
16460 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16461 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16462 if test "$cross_compiling" = yes; then
16463 echo "$as_me:$LINENO: result: buggy" >&5
16464 echo "${ECHO_T}buggy" >&6
16465 buggygetaddrinfo=yes
16466 else
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16474 #include <sys/types.h>
16475 #include <netdb.h>
16476 #include <string.h>
16477 #include <sys/socket.h>
16478 #include <netinet/in.h>
16480 main()
16482 int passive, gaierr, inet4 = 0, inet6 = 0;
16483 struct addrinfo hints, *ai, *aitop;
16484 char straddr[INET6_ADDRSTRLEN], strport[16];
16486 for (passive = 0; passive <= 1; passive++) {
16487 memset(&hints, 0, sizeof(hints));
16488 hints.ai_family = AF_UNSPEC;
16489 hints.ai_flags = passive ? AI_PASSIVE : 0;
16490 hints.ai_socktype = SOCK_STREAM;
16491 hints.ai_protocol = IPPROTO_TCP;
16492 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16493 (void)gai_strerror(gaierr);
16494 goto bad;
16496 for (ai = aitop; ai; ai = ai->ai_next) {
16497 if (ai->ai_addr == NULL ||
16498 ai->ai_addrlen == 0 ||
16499 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16500 straddr, sizeof(straddr), strport, sizeof(strport),
16501 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16502 goto bad;
16504 switch (ai->ai_family) {
16505 case AF_INET:
16506 if (strcmp(strport, "54321") != 0) {
16507 goto bad;
16509 if (passive) {
16510 if (strcmp(straddr, "0.0.0.0") != 0) {
16511 goto bad;
16513 } else {
16514 if (strcmp(straddr, "127.0.0.1") != 0) {
16515 goto bad;
16518 inet4++;
16519 break;
16520 case AF_INET6:
16521 if (strcmp(strport, "54321") != 0) {
16522 goto bad;
16524 if (passive) {
16525 if (strcmp(straddr, "::") != 0) {
16526 goto bad;
16528 } else {
16529 if (strcmp(straddr, "::1") != 0) {
16530 goto bad;
16533 inet6++;
16534 break;
16535 case AF_UNSPEC:
16536 goto bad;
16537 break;
16538 default:
16539 /* another family support? */
16540 break;
16545 if (!(inet4 == 0 || inet4 == 2))
16546 goto bad;
16547 if (!(inet6 == 0 || inet6 == 2))
16548 goto bad;
16550 if (aitop)
16551 freeaddrinfo(aitop);
16552 exit(0);
16554 bad:
16555 if (aitop)
16556 freeaddrinfo(aitop);
16557 exit(1);
16560 _ACEOF
16561 rm -f conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 echo "$as_me:$LINENO: result: good" >&5
16573 echo "${ECHO_T}good" >&6
16574 buggygetaddrinfo=no
16575 else
16576 echo "$as_me: program exited with status $ac_status" >&5
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ( exit $ac_status )
16581 echo "$as_me:$LINENO: result: buggy" >&5
16582 echo "${ECHO_T}buggy" >&6
16583 buggygetaddrinfo=yes
16585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16592 echo "$as_me:$LINENO: result: no" >&5
16593 echo "${ECHO_T}no" >&6
16594 buggygetaddrinfo=yes
16597 rm -f conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16600 if test "$buggygetaddrinfo" = "yes"; then
16601 if test "$ipv6" = "yes"; then
16602 echo 'Fatal: You must get working getaddrinfo() function.'
16603 echo ' or you can specify "--disable-ipv6"'.
16604 exit 1
16606 else
16608 cat >>confdefs.h <<\_ACEOF
16609 #define HAVE_GETADDRINFO 1
16610 _ACEOF
16614 for ac_func in getnameinfo
16616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_var+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16630 #define $ac_func innocuous_$ac_func
16632 /* System header to define __stub macros and hopefully few prototypes,
16633 which can conflict with char $ac_func (); below.
16634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635 <limits.h> exists even on freestanding compilers. */
16637 #ifdef __STDC__
16638 # include <limits.h>
16639 #else
16640 # include <assert.h>
16641 #endif
16643 #undef $ac_func
16645 /* Override any gcc2 internal prototype to avoid an error. */
16646 #ifdef __cplusplus
16647 extern "C"
16649 #endif
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16652 char $ac_func ();
16653 /* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16657 choke me
16658 #else
16659 char (*f) () = $ac_func;
16660 #endif
16661 #ifdef __cplusplus
16663 #endif
16666 main ()
16668 return f != $ac_func;
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675 (eval $ac_link) 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag"
16683 || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest$ac_exeext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 eval "$as_ac_var=no"
16702 rm -f conftest.err conftest.$ac_objext \
16703 conftest$ac_exeext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16707 if test `eval echo '${'$as_ac_var'}'` = yes; then
16708 cat >>confdefs.h <<_ACEOF
16709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16710 _ACEOF
16713 done
16716 # checks for structures
16717 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16718 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16719 if test "${ac_cv_header_time+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #include <sys/time.h>
16730 #include <time.h>
16733 main ()
16735 if ((struct tm *) 0)
16736 return 0;
16738 return 0;
16740 _ACEOF
16741 rm -f conftest.$ac_objext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16743 (eval $ac_compile) 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag"
16751 || test ! -s conftest.err'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest.$ac_objext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_header_time=yes
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_cv_header_time=no
16770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16772 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16773 echo "${ECHO_T}$ac_cv_header_time" >&6
16774 if test $ac_cv_header_time = yes; then
16776 cat >>confdefs.h <<\_ACEOF
16777 #define TIME_WITH_SYS_TIME 1
16778 _ACEOF
16782 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16783 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16784 if test "${ac_cv_struct_tm+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h. */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16793 #include <sys/types.h>
16794 #include <time.h>
16797 main ()
16799 struct tm *tp; tp->tm_sec;
16801 return 0;
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_struct_tm=time.h
16827 else
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_cv_struct_tm=sys/time.h
16833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16836 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16837 if test $ac_cv_struct_tm = sys/time.h; then
16839 cat >>confdefs.h <<\_ACEOF
16840 #define TM_IN_SYS_TIME 1
16841 _ACEOF
16845 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16846 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16847 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/types.h>
16857 #include <$ac_cv_struct_tm>
16861 main ()
16863 static struct tm ac_aggr;
16864 if (ac_aggr.tm_zone)
16865 return 0;
16867 return 0;
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag"
16880 || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_member_struct_tm_tm_zone=yes
16893 else
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <sys/types.h>
16904 #include <$ac_cv_struct_tm>
16908 main ()
16910 static struct tm ac_aggr;
16911 if (sizeof ac_aggr.tm_zone)
16912 return 0;
16914 return 0;
16916 _ACEOF
16917 rm -f conftest.$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>conftest.er1
16920 ac_status=$?
16921 grep -v '^ *+' conftest.er1 >conftest.err
16922 rm -f conftest.er1
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_member_struct_tm_tm_zone=yes
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_member_struct_tm_tm_zone=no
16946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16951 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16952 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_STRUCT_TM_TM_ZONE 1
16956 _ACEOF
16961 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_TM_ZONE 1
16965 _ACEOF
16967 else
16968 echo "$as_me:$LINENO: checking for tzname" >&5
16969 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16970 if test "${ac_cv_var_tzname+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 else
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <time.h>
16980 #ifndef tzname /* For SGI. */
16981 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16982 #endif
16985 main ()
16987 atoi(*tzname);
16989 return 0;
16991 _ACEOF
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994 (eval $ac_link) 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -z "$ac_c_werror_flag"
17002 || test ! -s conftest.err'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try='test -s conftest$ac_exeext'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_var_tzname=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_cv_var_tzname=no
17021 rm -f conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17025 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17026 if test $ac_cv_var_tzname = yes; then
17028 cat >>confdefs.h <<\_ACEOF
17029 #define HAVE_TZNAME 1
17030 _ACEOF
17035 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17036 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17037 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 $ac_includes_default
17048 main ()
17050 static struct stat ac_aggr;
17051 if (ac_aggr.st_rdev)
17052 return 0;
17054 return 0;
17056 _ACEOF
17057 rm -f conftest.$ac_objext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059 (eval $ac_compile) 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest.$ac_objext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_member_struct_stat_st_rdev=yes
17080 else
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 $ac_includes_default
17092 main ()
17094 static struct stat ac_aggr;
17095 if (sizeof ac_aggr.st_rdev)
17096 return 0;
17098 return 0;
17100 _ACEOF
17101 rm -f conftest.$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103 (eval $ac_compile) 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -z "$ac_c_werror_flag"
17111 || test ! -s conftest.err'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest.$ac_objext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_cv_member_struct_stat_st_rdev=yes
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_cv_member_struct_stat_st_rdev=no
17130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17134 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17135 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17136 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17138 cat >>confdefs.h <<_ACEOF
17139 #define HAVE_STRUCT_STAT_ST_RDEV 1
17140 _ACEOF
17145 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17146 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17147 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 $ac_includes_default
17158 main ()
17160 static struct stat ac_aggr;
17161 if (ac_aggr.st_blksize)
17162 return 0;
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>conftest.er1
17170 ac_status=$?
17171 grep -v '^ *+' conftest.er1 >conftest.err
17172 rm -f conftest.er1
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try='test -z "$ac_c_werror_flag"
17177 || test ! -s conftest.err'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_member_struct_stat_st_blksize=yes
17190 else
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17202 main ()
17204 static struct stat ac_aggr;
17205 if (sizeof ac_aggr.st_blksize)
17206 return 0;
17208 return 0;
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_cv_member_struct_stat_st_blksize=yes
17234 else
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 ac_cv_member_struct_stat_st_blksize=no
17240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17244 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17245 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17246 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17248 cat >>confdefs.h <<_ACEOF
17249 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17250 _ACEOF
17255 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17256 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17257 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17268 main ()
17270 static struct stat ac_aggr;
17271 if (ac_aggr.st_flags)
17272 return 0;
17274 return 0;
17276 _ACEOF
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_member_struct_stat_st_flags=yes
17300 else
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h. */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 $ac_includes_default
17312 main ()
17314 static struct stat ac_aggr;
17315 if (sizeof ac_aggr.st_flags)
17316 return 0;
17318 return 0;
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_member_struct_stat_st_flags=yes
17344 else
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_cv_member_struct_stat_st_flags=no
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17354 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17356 if test $ac_cv_member_struct_stat_st_flags = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17360 _ACEOF
17365 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17366 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17367 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17378 main ()
17380 static struct stat ac_aggr;
17381 if (ac_aggr.st_gen)
17382 return 0;
17384 return 0;
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_member_struct_stat_st_gen=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 $ac_includes_default
17422 main ()
17424 static struct stat ac_aggr;
17425 if (sizeof ac_aggr.st_gen)
17426 return 0;
17428 return 0;
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_member_struct_stat_st_gen=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_member_struct_stat_st_gen=no
17460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17465 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17466 if test $ac_cv_member_struct_stat_st_gen = yes; then
17468 cat >>confdefs.h <<_ACEOF
17469 #define HAVE_STRUCT_STAT_ST_GEN 1
17470 _ACEOF
17475 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17476 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17477 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h. */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 $ac_includes_default
17488 main ()
17490 static struct stat ac_aggr;
17491 if (ac_aggr.st_birthtime)
17492 return 0;
17494 return 0;
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17500 ac_status=$?
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_member_struct_stat_st_birthtime=yes
17520 else
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17532 main ()
17534 static struct stat ac_aggr;
17535 if (sizeof ac_aggr.st_birthtime)
17536 return 0;
17538 return 0;
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543 (eval $ac_compile) 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_member_struct_stat_st_birthtime=yes
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_cv_member_struct_stat_st_birthtime=no
17570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17575 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17576 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17580 _ACEOF
17585 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17586 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17587 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17598 main ()
17600 static struct stat ac_aggr;
17601 if (ac_aggr.st_blocks)
17602 return 0;
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_member_struct_stat_st_blocks=yes
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17642 main ()
17644 static struct stat ac_aggr;
17645 if (sizeof ac_aggr.st_blocks)
17646 return 0;
17648 return 0;
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag"
17661 || test ! -s conftest.err'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_cv_member_struct_stat_st_blocks=yes
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_member_struct_stat_st_blocks=no
17680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17685 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17686 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17688 cat >>confdefs.h <<_ACEOF
17689 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17690 _ACEOF
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ST_BLOCKS 1
17695 _ACEOF
17697 else
17698 case $LIBOBJS in
17699 "fileblocks.$ac_objext" | \
17700 *" fileblocks.$ac_objext" | \
17701 "fileblocks.$ac_objext "* | \
17702 *" fileblocks.$ac_objext "* ) ;;
17703 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17704 esac
17710 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17711 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17712 if test "${ac_cv_header_time_altzone+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <time.h>
17723 main ()
17725 return altzone;
17727 return 0;
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_header_time_altzone=yes
17753 else
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_header_time_altzone=no
17759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17762 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17763 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17764 if test $ac_cv_header_time_altzone = yes; then
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_ALTZONE 1
17768 _ACEOF
17772 was_it_defined=no
17773 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17774 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17782 #include <sys/types.h>
17783 #include <sys/select.h>
17784 #include <sys/time.h>
17787 main ()
17791 return 0;
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17796 (eval $ac_compile) 2>conftest.er1
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
17803 { ac_try='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest.$ac_objext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17818 cat >>confdefs.h <<\_ACEOF
17819 #define SYS_SELECT_WITH_SYS_TIME 1
17820 _ACEOF
17822 was_it_defined=yes
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17831 echo "${ECHO_T}$was_it_defined" >&6
17833 echo "$as_me:$LINENO: checking for addrinfo" >&5
17834 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17835 if test "${ac_cv_struct_addrinfo+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 # include <netdb.h>
17847 main ()
17849 struct addrinfo a
17851 return 0;
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>conftest.er1
17857 ac_status=$?
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_struct_addrinfo=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_cv_struct_addrinfo=no
17883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17887 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17888 if test $ac_cv_struct_addrinfo = yes; then
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_ADDRINFO 1
17892 _ACEOF
17896 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17897 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17898 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17908 # include <sys/types.h>
17909 # include <sys/socket.h>
17911 main ()
17913 struct sockaddr_storage s
17915 return 0;
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_struct_sockaddr_storage=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_cv_struct_sockaddr_storage=no
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17950 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17951 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17952 if test $ac_cv_struct_sockaddr_storage = yes; then
17954 cat >>confdefs.h <<\_ACEOF
17955 #define HAVE_SOCKADDR_STORAGE 1
17956 _ACEOF
17960 # checks for compiler characteristics
17963 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17964 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17965 if test "${ac_cv_c_char_unsigned+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h. */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 $ac_includes_default
17976 main ()
17978 static int test_array [1 - 2 * !(((char) -1) < 0)];
17979 test_array [0] = 0
17982 return 0;
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_c_char_unsigned=no
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_c_char_unsigned=yes
18014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18017 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18018 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18019 cat >>confdefs.h <<\_ACEOF
18020 #define __CHAR_UNSIGNED__ 1
18021 _ACEOF
18025 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18026 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18027 if test "${ac_cv_c_const+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18038 main ()
18040 /* FIXME: Include the comments suggested by Paul. */
18041 #ifndef __cplusplus
18042 /* Ultrix mips cc rejects this. */
18043 typedef int charset[2];
18044 const charset x;
18045 /* SunOS 4.1.1 cc rejects this. */
18046 char const *const *ccp;
18047 char **p;
18048 /* NEC SVR4.0.2 mips cc rejects this. */
18049 struct point {int x, y;};
18050 static struct point const zero = {0,0};
18051 /* AIX XL C 1.02.0.0 rejects this.
18052 It does not let you subtract one const X* pointer from another in
18053 an arm of an if-expression whose if-part is not a constant
18054 expression */
18055 const char *g = "string";
18056 ccp = &g + (g ? g-g : 0);
18057 /* HPUX 7.0 cc rejects these. */
18058 ++ccp;
18059 p = (char**) ccp;
18060 ccp = (char const *const *) p;
18061 { /* SCO 3.2v4 cc rejects this. */
18062 char *t;
18063 char const *s = 0 ? (char *) 0 : (char const *) 0;
18065 *t++ = 0;
18067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18068 int x[] = {25, 17};
18069 const int *foo = &x[0];
18070 ++foo;
18072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18073 typedef const int *iptr;
18074 iptr p = 0;
18075 ++p;
18077 { /* AIX XL C 1.02.0.0 rejects this saying
18078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18079 struct s { int j; const int *ap[3]; };
18080 struct s *b; b->j = 5;
18082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18083 const int foo = 10;
18085 #endif
18088 return 0;
18090 _ACEOF
18091 rm -f conftest.$ac_objext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093 (eval $ac_compile) 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag"
18101 || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest.$ac_objext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_c_const=yes
18114 else
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_c_const=no
18120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18122 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18123 echo "${ECHO_T}$ac_cv_c_const" >&6
18124 if test $ac_cv_c_const = no; then
18126 cat >>confdefs.h <<\_ACEOF
18127 #define const
18128 _ACEOF
18133 works=no
18134 echo "$as_me:$LINENO: checking for working volatile" >&5
18135 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18144 main ()
18146 volatile int x; x = 0;
18148 return 0;
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153 (eval $ac_compile) 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try='test -s conftest.$ac_objext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 works=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18179 cat >>confdefs.h <<\_ACEOF
18180 #define volatile
18181 _ACEOF
18185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18186 echo "$as_me:$LINENO: result: $works" >&5
18187 echo "${ECHO_T}$works" >&6
18189 works=no
18190 echo "$as_me:$LINENO: checking for working signed char" >&5
18191 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18192 cat >conftest.$ac_ext <<_ACEOF
18193 /* confdefs.h. */
18194 _ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18200 main ()
18202 signed char c;
18204 return 0;
18206 _ACEOF
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 works=yes
18230 else
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18235 cat >>confdefs.h <<\_ACEOF
18236 #define signed
18237 _ACEOF
18241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18242 echo "$as_me:$LINENO: result: $works" >&5
18243 echo "${ECHO_T}$works" >&6
18245 have_prototypes=no
18246 echo "$as_me:$LINENO: checking for prototypes" >&5
18247 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 int foo(int x) { return 0; }
18256 main ()
18258 return foo(10);
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
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_PROTOTYPES 1
18289 _ACEOF
18291 have_prototypes=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18300 echo "${ECHO_T}$have_prototypes" >&6
18302 works=no
18303 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18304 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18312 #include <stdarg.h>
18313 int foo(int x, ...) {
18314 va_list va;
18315 va_start(va, x);
18316 va_arg(va, int);
18317 va_arg(va, char *);
18318 va_arg(va, double);
18319 return 0;
18323 main ()
18325 return foo(10, "", 3.14);
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
18354 cat >>confdefs.h <<\_ACEOF
18355 #define HAVE_STDARG_PROTOTYPES 1
18356 _ACEOF
18358 works=yes
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 echo "$as_me:$LINENO: result: $works" >&5
18367 echo "${ECHO_T}$works" >&6
18369 # check for socketpair
18370 echo "$as_me:$LINENO: checking for socketpair" >&5
18371 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 #include <sys/types.h>
18380 #include <sys/socket.h>
18383 main ()
18385 void *x=socketpair
18387 return 0;
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18392 (eval $ac_compile) 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag"
18400 || test ! -s conftest.err'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18413 cat >>confdefs.h <<\_ACEOF
18414 #define HAVE_SOCKETPAIR 1
18415 _ACEOF
18417 echo "$as_me:$LINENO: result: yes" >&5
18418 echo "${ECHO_T}yes" >&6
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 echo "$as_me:$LINENO: result: no" >&5
18424 echo "${ECHO_T}no" >&6
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429 # check if sockaddr has sa_len member
18430 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18431 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <sys/types.h>
18439 #include <sys/socket.h>
18441 main ()
18443 struct sockaddr x;
18444 x.sa_len = 0;
18446 return 0;
18448 _ACEOF
18449 rm -f conftest.$ac_objext
18450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18452 ac_status=$?
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try='test -z "$ac_c_werror_flag"
18459 || test ! -s conftest.err'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try='test -s conftest.$ac_objext'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 echo "$as_me:$LINENO: result: yes" >&5
18472 echo "${ECHO_T}yes" >&6
18474 cat >>confdefs.h <<\_ACEOF
18475 #define HAVE_SOCKADDR_SA_LEN 1
18476 _ACEOF
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18487 va_list_is_array=no
18488 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18489 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 #ifdef HAVE_STDARG_PROTOTYPES
18498 #include <stdarg.h>
18499 #else
18500 #include <varargs.h>
18501 #endif
18504 main ()
18506 va_list list1, list2; list1 = list2;
18508 return 0;
18510 _ACEOF
18511 rm -f conftest.$ac_objext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18513 (eval $ac_compile) 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18534 else
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18540 cat >>confdefs.h <<\_ACEOF
18541 #define VA_LIST_IS_ARRAY 1
18542 _ACEOF
18544 va_list_is_array=yes
18547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18549 echo "${ECHO_T}$va_list_is_array" >&6
18551 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18555 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18556 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18557 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560 cat >conftest.$ac_ext <<_ACEOF
18561 /* confdefs.h. */
18562 _ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18568 #define gethostbyname_r innocuous_gethostbyname_r
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char gethostbyname_r (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18575 #ifdef __STDC__
18576 # include <limits.h>
18577 #else
18578 # include <assert.h>
18579 #endif
18581 #undef gethostbyname_r
18583 /* Override any gcc2 internal prototype to avoid an error. */
18584 #ifdef __cplusplus
18585 extern "C"
18587 #endif
18588 /* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18590 char gethostbyname_r ();
18591 /* The GNU C library defines this for functions which it implements
18592 to always fail with ENOSYS. Some functions are actually named
18593 something starting with __ and the normal name is an alias. */
18594 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18595 choke me
18596 #else
18597 char (*f) () = gethostbyname_r;
18598 #endif
18599 #ifdef __cplusplus
18601 #endif
18604 main ()
18606 return f != gethostbyname_r;
18608 return 0;
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_cv_func_gethostbyname_r=yes
18634 else
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 ac_cv_func_gethostbyname_r=no
18640 rm -f conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18643 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18644 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18645 if test $ac_cv_func_gethostbyname_r = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE_GETHOSTBYNAME_R 1
18649 _ACEOF
18651 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18652 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18653 OLD_CFLAGS=$CFLAGS
18654 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18655 cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h. */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 # include <netdb.h>
18665 main ()
18668 char *name;
18669 struct hostent *he, *res;
18670 char buffer[2048];
18671 int buflen = 2048;
18672 int h_errnop;
18674 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18677 return 0;
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682 (eval $ac_compile) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest.$ac_objext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE_GETHOSTBYNAME_R 1
18705 _ACEOF
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18710 _ACEOF
18712 echo "$as_me:$LINENO: result: yes" >&5
18713 echo "${ECHO_T}yes" >&6
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18720 echo "$as_me:$LINENO: result: no" >&5
18721 echo "${ECHO_T}no" >&6
18722 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18723 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18731 # include <netdb.h>
18734 main ()
18737 char *name;
18738 struct hostent *he;
18739 char buffer[2048];
18740 int buflen = 2048;
18741 int h_errnop;
18743 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18746 return 0;
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751 (eval $ac_compile) 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_GETHOSTBYNAME_R 1
18774 _ACEOF
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18779 _ACEOF
18781 echo "$as_me:$LINENO: result: yes" >&5
18782 echo "${ECHO_T}yes" >&6
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18789 echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18791 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18792 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 # include <netdb.h>
18803 main ()
18806 char *name;
18807 struct hostent *he;
18808 struct hostent_data data;
18810 (void) gethostbyname_r(name, he, &data);
18813 return 0;
18815 _ACEOF
18816 rm -f conftest.$ac_objext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818 (eval $ac_compile) 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_objext'
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
18839 cat >>confdefs.h <<\_ACEOF
18840 #define HAVE_GETHOSTBYNAME_R 1
18841 _ACEOF
18844 cat >>confdefs.h <<\_ACEOF
18845 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18846 _ACEOF
18848 echo "$as_me:$LINENO: result: yes" >&5
18849 echo "${ECHO_T}yes" >&6
18851 else
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18856 echo "$as_me:$LINENO: result: no" >&5
18857 echo "${ECHO_T}no" >&6
18860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18867 CFLAGS=$OLD_CFLAGS
18869 else
18872 for ac_func in gethostbyname
18874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18875 echo "$as_me:$LINENO: checking for $ac_func" >&5
18876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18877 if eval "test \"\${$as_ac_var+set}\" = set"; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18888 #define $ac_func innocuous_$ac_func
18890 /* System header to define __stub macros and hopefully few prototypes,
18891 which can conflict with char $ac_func (); below.
18892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18893 <limits.h> exists even on freestanding compilers. */
18895 #ifdef __STDC__
18896 # include <limits.h>
18897 #else
18898 # include <assert.h>
18899 #endif
18901 #undef $ac_func
18903 /* Override any gcc2 internal prototype to avoid an error. */
18904 #ifdef __cplusplus
18905 extern "C"
18907 #endif
18908 /* We use char because int might match the return type of a gcc2
18909 builtin and then its argument prototype would still apply. */
18910 char $ac_func ();
18911 /* The GNU C library defines this for functions which it implements
18912 to always fail with ENOSYS. Some functions are actually named
18913 something starting with __ and the normal name is an alias. */
18914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18915 choke me
18916 #else
18917 char (*f) () = $ac_func;
18918 #endif
18919 #ifdef __cplusplus
18921 #endif
18924 main ()
18926 return f != $ac_func;
18928 return 0;
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 eval "$as_ac_var=yes"
18954 else
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 eval "$as_ac_var=no"
18960 rm -f conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18965 if test `eval echo '${'$as_ac_var'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18968 _ACEOF
18971 done
18982 # checks for system services
18983 # (none yet)
18985 # Linux requires this for correct f.p. operations
18986 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18987 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18988 if test "${ac_cv_func___fpu_control+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h. */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18999 #define __fpu_control innocuous___fpu_control
19001 /* System header to define __stub macros and hopefully few prototypes,
19002 which can conflict with char __fpu_control (); below.
19003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 <limits.h> exists even on freestanding compilers. */
19006 #ifdef __STDC__
19007 # include <limits.h>
19008 #else
19009 # include <assert.h>
19010 #endif
19012 #undef __fpu_control
19014 /* Override any gcc2 internal prototype to avoid an error. */
19015 #ifdef __cplusplus
19016 extern "C"
19018 #endif
19019 /* We use char because int might match the return type of a gcc2
19020 builtin and then its argument prototype would still apply. */
19021 char __fpu_control ();
19022 /* The GNU C library defines this for functions which it implements
19023 to always fail with ENOSYS. Some functions are actually named
19024 something starting with __ and the normal name is an alias. */
19025 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19026 choke me
19027 #else
19028 char (*f) () = __fpu_control;
19029 #endif
19030 #ifdef __cplusplus
19032 #endif
19035 main ()
19037 return f != __fpu_control;
19039 return 0;
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19045 ac_status=$?
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_func___fpu_control=yes
19065 else
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_func___fpu_control=no
19071 rm -f conftest.err conftest.$ac_objext \
19072 conftest$ac_exeext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19075 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19076 if test $ac_cv_func___fpu_control = yes; then
19078 else
19080 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19081 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19082 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085 ac_check_lib_save_LIBS=$LIBS
19086 LIBS="-lieee $LIBS"
19087 cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h. */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19094 /* Override any gcc2 internal prototype to avoid an error. */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 /* We use char because int might match the return type of a gcc2
19099 builtin and then its argument prototype would still apply. */
19100 char __fpu_control ();
19102 main ()
19104 __fpu_control ();
19106 return 0;
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19112 ac_status=$?
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19131 ac_cv_lib_ieee___fpu_control=yes
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_cv_lib_ieee___fpu_control=no
19138 rm -f conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext conftest.$ac_ext
19140 LIBS=$ac_check_lib_save_LIBS
19142 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19143 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19144 if test $ac_cv_lib_ieee___fpu_control = yes; then
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_LIBIEEE 1
19147 _ACEOF
19149 LIBS="-lieee $LIBS"
19157 # Check for --with-fpectl
19158 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19159 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19161 # Check whether --with-fpectl or --without-fpectl was given.
19162 if test "${with_fpectl+set}" = set; then
19163 withval="$with_fpectl"
19165 if test "$withval" != no
19166 then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define WANT_SIGFPE_HANDLER 1
19170 _ACEOF
19172 echo "$as_me:$LINENO: result: yes" >&5
19173 echo "${ECHO_T}yes" >&6
19174 else echo "$as_me:$LINENO: result: no" >&5
19175 echo "${ECHO_T}no" >&6
19177 else
19178 echo "$as_me:$LINENO: result: no" >&5
19179 echo "${ECHO_T}no" >&6
19182 # check for --with-libm=...
19184 case $ac_sys_system in
19185 Darwin) ;;
19186 BeOS) ;;
19187 *) LIBM=-lm
19188 esac
19189 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19190 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19192 # Check whether --with-libm or --without-libm was given.
19193 if test "${with_libm+set}" = set; then
19194 withval="$with_libm"
19196 if test "$withval" = no
19197 then LIBM=
19198 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19199 echo "${ECHO_T}force LIBM empty" >&6
19200 elif test "$withval" != yes
19201 then LIBM=$withval
19202 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19203 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19204 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19205 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19206 { (exit 1); exit 1; }; }
19208 else
19209 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19210 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19213 # check for --with-libc=...
19215 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19216 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19218 # Check whether --with-libc or --without-libc was given.
19219 if test "${with_libc+set}" = set; then
19220 withval="$with_libc"
19222 if test "$withval" = no
19223 then LIBC=
19224 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19225 echo "${ECHO_T}force LIBC empty" >&6
19226 elif test "$withval" != yes
19227 then LIBC=$withval
19228 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19229 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19230 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19231 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19232 { (exit 1); exit 1; }; }
19234 else
19235 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19236 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19239 # check for hypot() in math library
19240 LIBS_SAVE=$LIBS
19241 LIBS="$LIBS $LIBM"
19243 for ac_func in hypot
19245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19246 echo "$as_me:$LINENO: checking for $ac_func" >&5
19247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19248 if eval "test \"\${$as_ac_var+set}\" = set"; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19266 #ifdef __STDC__
19267 # include <limits.h>
19268 #else
19269 # include <assert.h>
19270 #endif
19272 #undef $ac_func
19274 /* Override any gcc2 internal prototype to avoid an error. */
19275 #ifdef __cplusplus
19276 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19281 char $ac_func ();
19282 /* The GNU C library defines this for functions which it implements
19283 to always fail with ENOSYS. Some functions are actually named
19284 something starting with __ and the normal name is an alias. */
19285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19286 choke me
19287 #else
19288 char (*f) () = $ac_func;
19289 #endif
19290 #ifdef __cplusplus
19292 #endif
19295 main ()
19297 return f != $ac_func;
19299 return 0;
19301 _ACEOF
19302 rm -f conftest.$ac_objext conftest$ac_exeext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 eval "$as_ac_var=yes"
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 eval "$as_ac_var=no"
19331 rm -f conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19336 if test `eval echo '${'$as_ac_var'}'` = yes; then
19337 cat >>confdefs.h <<_ACEOF
19338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19339 _ACEOF
19341 else
19342 case $LIBOBJS in
19343 "$ac_func.$ac_objext" | \
19344 *" $ac_func.$ac_objext" | \
19345 "$ac_func.$ac_objext "* | \
19346 *" $ac_func.$ac_objext "* ) ;;
19347 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19348 esac
19351 done
19354 LIBS=$LIBS_SAVE
19356 # check for wchar.h
19357 if test "${ac_cv_header_wchar_h+set}" = set; then
19358 echo "$as_me:$LINENO: checking for wchar.h" >&5
19359 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19360 if test "${ac_cv_header_wchar_h+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19364 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19365 else
19366 # Is the header compilable?
19367 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19368 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19369 cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h. */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19376 #include <wchar.h>
19377 _ACEOF
19378 rm -f conftest.$ac_objext
19379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19380 (eval $ac_compile) 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag"
19388 || test ! -s conftest.err'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try='test -s conftest.$ac_objext'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_header_compiler=yes
19401 else
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_header_compiler=no
19407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19409 echo "${ECHO_T}$ac_header_compiler" >&6
19411 # Is the header present?
19412 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19413 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 #include <wchar.h>
19421 _ACEOF
19422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } >/dev/null; then
19430 if test -s conftest.err; then
19431 ac_cpp_err=$ac_c_preproc_warn_flag
19432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19433 else
19434 ac_cpp_err=
19436 else
19437 ac_cpp_err=yes
19439 if test -z "$ac_cpp_err"; then
19440 ac_header_preproc=yes
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_header_preproc=no
19447 rm -f conftest.err conftest.$ac_ext
19448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19449 echo "${ECHO_T}$ac_header_preproc" >&6
19451 # So? What about this header?
19452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19453 yes:no: )
19454 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19455 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19457 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19458 ac_header_preproc=yes
19460 no:yes:* )
19461 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19462 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19463 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19464 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19466 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19468 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19470 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19472 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19474 cat <<\_ASBOX
19475 ## ------------------------------------------------ ##
19476 ## Report this to http://www.python.org/python-bugs ##
19477 ## ------------------------------------------------ ##
19478 _ASBOX
19480 sed "s/^/$as_me: WARNING: /" >&2
19482 esac
19483 echo "$as_me:$LINENO: checking for wchar.h" >&5
19484 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19485 if test "${ac_cv_header_wchar_h+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 ac_cv_header_wchar_h=$ac_header_preproc
19490 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19491 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19494 if test $ac_cv_header_wchar_h = yes; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_WCHAR_H 1
19499 _ACEOF
19501 wchar_h="yes"
19503 else
19504 wchar_h="no"
19510 # determine wchar_t size
19511 if test "$wchar_h" = yes
19512 then
19513 echo "$as_me:$LINENO: checking for wchar_t" >&5
19514 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19515 if test "${ac_cv_type_wchar_t+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518 cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h. */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 #include <wchar.h>
19527 main ()
19529 if ((wchar_t *) 0)
19530 return 0;
19531 if (sizeof (wchar_t))
19532 return 0;
19534 return 0;
19536 _ACEOF
19537 rm -f conftest.$ac_objext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19539 (eval $ac_compile) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag"
19547 || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_type_wchar_t=yes
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_type_wchar_t=no
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19569 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19571 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19572 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19573 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 if test "$ac_cv_type_wchar_t" = yes; then
19577 # The cast to unsigned long works around a bug in the HP C Compiler
19578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19580 # This bug is HP SR number 8606223364.
19581 if test "$cross_compiling" = yes; then
19582 # Depending upon the size, compute the lo and hi bounds.
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 #include <wchar.h>
19592 main ()
19594 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19595 test_array [0] = 0
19598 return 0;
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_lo=0 ac_mid=0
19624 while :; do
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h. */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 #include <wchar.h>
19634 main ()
19636 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19637 test_array [0] = 0
19640 return 0;
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_hi=$ac_mid; break
19666 else
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_lo=`expr $ac_mid + 1`
19671 if test $ac_lo -le $ac_mid; then
19672 ac_lo= ac_hi=
19673 break
19675 ac_mid=`expr 2 '*' $ac_mid + 1`
19677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19678 done
19679 else
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h. */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19689 #include <wchar.h>
19692 main ()
19694 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19695 test_array [0] = 0
19698 return 0;
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703 (eval $ac_compile) 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_hi=-1 ac_mid=-1
19724 while :; do
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <wchar.h>
19734 main ()
19736 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19737 test_array [0] = 0
19740 return 0;
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_lo=$ac_mid; break
19766 else
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_hi=`expr '(' $ac_mid ')' - 1`
19771 if test $ac_mid -le $ac_hi; then
19772 ac_lo= ac_hi=
19773 break
19775 ac_mid=`expr 2 '*' $ac_mid`
19777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19778 done
19779 else
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_lo= ac_hi=
19785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19788 # Binary search between lo and hi bounds.
19789 while test "x$ac_lo" != "x$ac_hi"; do
19790 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <wchar.h>
19800 main ()
19802 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19803 test_array [0] = 0
19806 return 0;
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19811 (eval $ac_compile) 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try='test -z "$ac_c_werror_flag"
19819 || test ! -s conftest.err'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_hi=$ac_mid
19832 else
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_lo=`expr '(' $ac_mid ')' + 1`
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 done
19840 case $ac_lo in
19841 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19842 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19843 See \`config.log' for more details." >&5
19844 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19845 See \`config.log' for more details." >&2;}
19846 { (exit 1); exit 1; }; } ;;
19847 esac
19848 else
19849 if test "$cross_compiling" = yes; then
19850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19851 See \`config.log' for more details." >&5
19852 echo "$as_me: error: cannot run test program while cross compiling
19853 See \`config.log' for more details." >&2;}
19854 { (exit 1); exit 1; }; }
19855 else
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h. */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #include <wchar.h>
19864 long longval () { return (long) (sizeof (wchar_t)); }
19865 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19866 #include <stdio.h>
19867 #include <stdlib.h>
19869 main ()
19872 FILE *f = fopen ("conftest.val", "w");
19873 if (! f)
19874 exit (1);
19875 if (((long) (sizeof (wchar_t))) < 0)
19877 long i = longval ();
19878 if (i != ((long) (sizeof (wchar_t))))
19879 exit (1);
19880 fprintf (f, "%ld\n", i);
19882 else
19884 unsigned long i = ulongval ();
19885 if (i != ((long) (sizeof (wchar_t))))
19886 exit (1);
19887 fprintf (f, "%lu\n", i);
19889 exit (ferror (f) || fclose (f) != 0);
19892 return 0;
19894 _ACEOF
19895 rm -f conftest$ac_exeext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19897 (eval $ac_link) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_sizeof_wchar_t=`cat conftest.val`
19907 else
19908 echo "$as_me: program exited with status $ac_status" >&5
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ( exit $ac_status )
19913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19914 See \`config.log' for more details." >&5
19915 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19916 See \`config.log' for more details." >&2;}
19917 { (exit 1); exit 1; }; }
19919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19922 rm -f conftest.val
19923 else
19924 ac_cv_sizeof_wchar_t=0
19927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19928 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19929 cat >>confdefs.h <<_ACEOF
19930 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19931 _ACEOF
19936 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19937 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19938 have_ucs4_tcl=no
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19946 #include <tcl.h>
19947 #if TCL_UTF_MAX != 6
19948 # error "NOT UCS4_TCL"
19949 #endif
19951 main ()
19955 return 0;
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19961 ac_status=$?
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
19967 { ac_try='test -z "$ac_c_werror_flag"
19968 || test ! -s conftest.err'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19982 cat >>confdefs.h <<\_ACEOF
19983 #define HAVE_UCS4_TCL 1
19984 _ACEOF
19986 have_ucs4_tcl=yes
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19995 echo "${ECHO_T}$have_ucs4_tcl" >&6
19997 # check whether wchar_t is signed or not
19998 if test "$wchar_h" = yes
19999 then
20000 # check whether wchar_t is signed or not
20001 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20002 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20003 if test "${ac_cv_wchar_t_signed+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20007 if test "$cross_compiling" = yes; then
20008 ac_cv_wchar_t_signed=yes
20009 else
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20017 #include <wchar.h>
20018 int main()
20020 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20023 _ACEOF
20024 rm -f conftest$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_cv_wchar_t_signed=yes
20036 else
20037 echo "$as_me: program exited with status $ac_status" >&5
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ( exit $ac_status )
20042 ac_cv_wchar_t_signed=no
20044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20049 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20052 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20053 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20054 # Check whether --enable-unicode or --disable-unicode was given.
20055 if test "${enable_unicode+set}" = set; then
20056 enableval="$enable_unicode"
20058 else
20059 enable_unicode=yes
20062 if test $enable_unicode = yes
20063 then
20064 # Without any arguments, Py_UNICODE defaults to two-byte mode
20065 case "$have_ucs4_tcl" in
20066 yes) enable_unicode="ucs4"
20068 *) enable_unicode="ucs2"
20070 esac
20075 case "$enable_unicode" in
20076 ucs2) unicode_size="2"
20077 cat >>confdefs.h <<\_ACEOF
20078 #define Py_UNICODE_SIZE 2
20079 _ACEOF
20082 ucs4) unicode_size="4"
20083 cat >>confdefs.h <<\_ACEOF
20084 #define Py_UNICODE_SIZE 4
20085 _ACEOF
20088 esac
20094 if test "$enable_unicode" = "no"
20095 then
20096 UNICODE_OBJS=""
20097 echo "$as_me:$LINENO: result: not used" >&5
20098 echo "${ECHO_T}not used" >&6
20099 else
20100 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20102 cat >>confdefs.h <<\_ACEOF
20103 #define Py_USING_UNICODE 1
20104 _ACEOF
20107 # wchar_t is only usable if it maps to an unsigned type
20108 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20109 -a "$ac_cv_wchar_t_signed" = "no"
20110 then
20111 PY_UNICODE_TYPE="wchar_t"
20113 cat >>confdefs.h <<\_ACEOF
20114 #define HAVE_USABLE_WCHAR_T 1
20115 _ACEOF
20117 cat >>confdefs.h <<\_ACEOF
20118 #define PY_UNICODE_TYPE wchar_t
20119 _ACEOF
20121 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20122 then
20123 PY_UNICODE_TYPE="unsigned short"
20124 cat >>confdefs.h <<\_ACEOF
20125 #define PY_UNICODE_TYPE unsigned short
20126 _ACEOF
20128 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20129 then
20130 PY_UNICODE_TYPE="unsigned long"
20131 cat >>confdefs.h <<\_ACEOF
20132 #define PY_UNICODE_TYPE unsigned long
20133 _ACEOF
20135 else
20136 PY_UNICODE_TYPE="no type found"
20138 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20139 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20142 # check for endianness
20143 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20144 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20145 if test "${ac_cv_c_bigendian+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148 # See if sys/param.h defines the BYTE_ORDER macro.
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <sys/types.h>
20156 #include <sys/param.h>
20159 main ()
20161 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20162 bogus endian macros
20163 #endif
20166 return 0;
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 # It does; now see whether it defined to BIG_ENDIAN or not.
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <sys/types.h>
20199 #include <sys/param.h>
20202 main ()
20204 #if BYTE_ORDER != BIG_ENDIAN
20205 not big endian
20206 #endif
20209 return 0;
20211 _ACEOF
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_c_bigendian=yes
20235 else
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_cv_c_bigendian=no
20241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20242 else
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 # It does not; compile a test program.
20247 if test "$cross_compiling" = yes; then
20248 # try to guess the endianness by grepping values into an object file
20249 ac_cv_c_bigendian=unknown
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20257 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20258 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20259 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20260 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20261 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20263 main ()
20265 _ascii (); _ebcdic ();
20267 return 0;
20269 _ACEOF
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -z "$ac_c_werror_flag"
20280 || test ! -s conftest.err'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try='test -s conftest.$ac_objext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20293 ac_cv_c_bigendian=yes
20295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20296 if test "$ac_cv_c_bigendian" = unknown; then
20297 ac_cv_c_bigendian=no
20298 else
20299 # finding both strings is unlikely to happen, but who knows?
20300 ac_cv_c_bigendian=unknown
20303 else
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20309 else
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20317 main ()
20319 /* Are we little or big endian? From Harbison&Steele. */
20320 union
20322 long l;
20323 char c[sizeof (long)];
20324 } u;
20325 u.l = 1;
20326 exit (u.c[sizeof (long) - 1] == 1);
20328 _ACEOF
20329 rm -f conftest$ac_exeext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20331 (eval $ac_link) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_c_bigendian=no
20341 else
20342 echo "$as_me: program exited with status $ac_status" >&5
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ( exit $ac_status )
20347 ac_cv_c_bigendian=yes
20349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20356 case $ac_cv_c_bigendian in
20357 yes)
20359 cat >>confdefs.h <<\_ACEOF
20360 #define WORDS_BIGENDIAN 1
20361 _ACEOF
20366 { { echo "$as_me:$LINENO: error: unknown endianness
20367 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20368 echo "$as_me: error: unknown endianness
20369 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20370 { (exit 1); exit 1; }; } ;;
20371 esac
20374 # Check whether right shifting a negative integer extends the sign bit
20375 # or fills with zeros (like the Cray J90, according to Tim Peters).
20376 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20377 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20378 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20382 if test "$cross_compiling" = yes; then
20383 ac_cv_rshift_extends_sign=yes
20384 else
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 int main()
20394 exit(((-1)>>3 == -1) ? 0 : 1);
20397 _ACEOF
20398 rm -f conftest$ac_exeext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400 (eval $ac_link) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_rshift_extends_sign=yes
20410 else
20411 echo "$as_me: program exited with status $ac_status" >&5
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ( exit $ac_status )
20416 ac_cv_rshift_extends_sign=no
20418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20423 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20424 if test "$ac_cv_rshift_extends_sign" = no
20425 then
20427 cat >>confdefs.h <<\_ACEOF
20428 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20429 _ACEOF
20433 # check for getc_unlocked and related locking functions
20434 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20435 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20436 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <stdio.h>
20448 main ()
20451 FILE *f = fopen("/dev/null", "r");
20452 flockfile(f);
20453 getc_unlocked(f);
20454 funlockfile(f);
20457 return 0;
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try='test -s conftest$ac_exeext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 ac_cv_have_getc_unlocked=yes
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_cv_have_getc_unlocked=no
20489 rm -f conftest.err conftest.$ac_objext \
20490 conftest$ac_exeext conftest.$ac_ext
20493 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20494 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20495 if test "$ac_cv_have_getc_unlocked" = yes
20496 then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE_GETC_UNLOCKED 1
20500 _ACEOF
20504 # check where readline lives
20505 # save the value of LIBS so we don't actually link Python with readline
20506 LIBS_no_readline=$LIBS
20508 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20509 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20510 if test "${ac_cv_lib_readline_readline+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513 ac_check_lib_save_LIBS=$LIBS
20514 LIBS="-lreadline $LIBS"
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20522 /* Override any gcc2 internal prototype to avoid an error. */
20523 #ifdef __cplusplus
20524 extern "C"
20525 #endif
20526 /* We use char because int might match the return type of a gcc2
20527 builtin and then its argument prototype would still apply. */
20528 char readline ();
20530 main ()
20532 readline ();
20534 return 0;
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20539 (eval $ac_link) 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest$ac_exeext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_cv_lib_readline_readline=yes
20560 else
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_lib_readline_readline=no
20566 rm -f conftest.err conftest.$ac_objext \
20567 conftest$ac_exeext conftest.$ac_ext
20568 LIBS=$ac_check_lib_save_LIBS
20570 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20571 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20572 if test $ac_cv_lib_readline_readline = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define HAVE_LIBREADLINE 1
20575 _ACEOF
20577 LIBS="-lreadline $LIBS"
20581 if test "$ac_cv_have_readline_readline" = no
20582 then
20584 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20585 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20586 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 else
20589 ac_check_lib_save_LIBS=$LIBS
20590 LIBS="-ltermcap $LIBS"
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20598 /* Override any gcc2 internal prototype to avoid an error. */
20599 #ifdef __cplusplus
20600 extern "C"
20601 #endif
20602 /* We use char because int might match the return type of a gcc2
20603 builtin and then its argument prototype would still apply. */
20604 char readline ();
20606 main ()
20608 readline ();
20610 return 0;
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20615 (eval $ac_link) 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag"
20623 || test ! -s conftest.err'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try='test -s conftest$ac_exeext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_lib_termcap_readline=yes
20636 else
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_cv_lib_termcap_readline=no
20642 rm -f conftest.err conftest.$ac_objext \
20643 conftest$ac_exeext conftest.$ac_ext
20644 LIBS=$ac_check_lib_save_LIBS
20646 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20647 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20648 if test $ac_cv_lib_termcap_readline = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define HAVE_LIBTERMCAP 1
20651 _ACEOF
20653 LIBS="-ltermcap $LIBS"
20659 # check for readline 2.1
20660 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20661 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20662 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665 ac_check_lib_save_LIBS=$LIBS
20666 LIBS="-lreadline $LIBS"
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 /* Override any gcc2 internal prototype to avoid an error. */
20675 #ifdef __cplusplus
20676 extern "C"
20677 #endif
20678 /* We use char because int might match the return type of a gcc2
20679 builtin and then its argument prototype would still apply. */
20680 char rl_callback_handler_install ();
20682 main ()
20684 rl_callback_handler_install ();
20686 return 0;
20688 _ACEOF
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag"
20699 || test ! -s conftest.err'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest$ac_exeext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_cv_lib_readline_rl_callback_handler_install=yes
20712 else
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_cv_lib_readline_rl_callback_handler_install=no
20718 rm -f conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20722 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20723 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20724 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20726 cat >>confdefs.h <<\_ACEOF
20727 #define HAVE_RL_CALLBACK 1
20728 _ACEOF
20733 # check for readline 2.2
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <readline/readline.h>
20741 _ACEOF
20742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20744 ac_status=$?
20745 grep -v '^ *+' conftest.er1 >conftest.err
20746 rm -f conftest.er1
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } >/dev/null; then
20750 if test -s conftest.err; then
20751 ac_cpp_err=$ac_c_preproc_warn_flag
20752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20753 else
20754 ac_cpp_err=
20756 else
20757 ac_cpp_err=yes
20759 if test -z "$ac_cpp_err"; then
20760 have_readline=yes
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 have_readline=no
20767 rm -f conftest.err conftest.$ac_ext
20768 if test $have_readline = yes
20769 then
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 <readline/readline.h>
20778 _ACEOF
20779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20780 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20782 cat >>confdefs.h <<\_ACEOF
20783 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20784 _ACEOF
20787 rm -f conftest*
20791 # check for readline 4.0
20792 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20793 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20794 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797 ac_check_lib_save_LIBS=$LIBS
20798 LIBS="-lreadline $LIBS"
20799 cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h. */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20806 /* Override any gcc2 internal prototype to avoid an error. */
20807 #ifdef __cplusplus
20808 extern "C"
20809 #endif
20810 /* We use char because int might match the return type of a gcc2
20811 builtin and then its argument prototype would still apply. */
20812 char rl_pre_input_hook ();
20814 main ()
20816 rl_pre_input_hook ();
20818 return 0;
20820 _ACEOF
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823 (eval $ac_link) 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_lib_readline_rl_pre_input_hook=yes
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_cv_lib_readline_rl_pre_input_hook=no
20850 rm -f conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852 LIBS=$ac_check_lib_save_LIBS
20854 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20855 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20856 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20858 cat >>confdefs.h <<\_ACEOF
20859 #define HAVE_RL_PRE_INPUT_HOOK 1
20860 _ACEOF
20865 # check for readline 4.2
20866 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20867 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20868 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871 ac_check_lib_save_LIBS=$LIBS
20872 LIBS="-lreadline $LIBS"
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h. */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20880 /* Override any gcc2 internal prototype to avoid an error. */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 /* We use char because int might match the return type of a gcc2
20885 builtin and then its argument prototype would still apply. */
20886 char rl_completion_matches ();
20888 main ()
20890 rl_completion_matches ();
20892 return 0;
20894 _ACEOF
20895 rm -f conftest.$ac_objext conftest$ac_exeext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ac_cv_lib_readline_rl_completion_matches=yes
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_cv_lib_readline_rl_completion_matches=no
20924 rm -f conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20926 LIBS=$ac_check_lib_save_LIBS
20928 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20929 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20930 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_RL_COMPLETION_MATCHES 1
20934 _ACEOF
20939 # also in readline 4.2
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h. */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <readline/readline.h>
20947 _ACEOF
20948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } >/dev/null; then
20956 if test -s conftest.err; then
20957 ac_cpp_err=$ac_c_preproc_warn_flag
20958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20959 else
20960 ac_cpp_err=
20962 else
20963 ac_cpp_err=yes
20965 if test -z "$ac_cpp_err"; then
20966 have_readline=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 have_readline=no
20973 rm -f conftest.err conftest.$ac_ext
20974 if test $have_readline = yes
20975 then
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <readline/readline.h>
20984 _ACEOF
20985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20986 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20988 cat >>confdefs.h <<\_ACEOF
20989 #define HAVE_RL_CATCH_SIGNAL 1
20990 _ACEOF
20993 rm -f conftest*
20997 # End of readline checks: restore LIBS
20998 LIBS=$LIBS_no_readline
21000 echo "$as_me:$LINENO: checking for broken nice()" >&5
21001 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21002 if test "${ac_cv_broken_nice+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21006 if test "$cross_compiling" = yes; then
21007 ac_cv_broken_nice=no
21008 else
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21016 int main()
21018 int val1 = nice(1);
21019 if (val1 != -1 && val1 == nice(2))
21020 exit(0);
21021 exit(1);
21024 _ACEOF
21025 rm -f conftest$ac_exeext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027 (eval $ac_link) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 ac_cv_broken_nice=yes
21037 else
21038 echo "$as_me: program exited with status $ac_status" >&5
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ( exit $ac_status )
21043 ac_cv_broken_nice=no
21045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21049 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21050 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21051 if test "$ac_cv_broken_nice" = yes
21052 then
21054 cat >>confdefs.h <<\_ACEOF
21055 #define HAVE_BROKEN_NICE 1
21056 _ACEOF
21060 echo "$as_me:$LINENO: checking for broken poll()" >&5
21061 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21062 if test "$cross_compiling" = yes; then
21063 ac_cv_broken_poll=no
21064 else
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h. */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21072 #include <poll.h>
21074 int main (void)
21076 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21078 close (42);
21080 int poll_test = poll (&poll_struct, 1, 0);
21082 if (poll_test < 0)
21084 exit(0);
21086 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21088 exit(0);
21090 else
21092 exit(1);
21096 _ACEOF
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_broken_poll=yes
21109 else
21110 echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ( exit $ac_status )
21115 ac_cv_broken_poll=no
21117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21119 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21120 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21121 if test "$ac_cv_broken_poll" = yes
21122 then
21124 cat >>confdefs.h <<\_ACEOF
21125 #define HAVE_BROKEN_POLL 1
21126 _ACEOF
21130 # Before we can test tzset, we need to check if struct tm has a tm_zone
21131 # (which is not required by ISO C or UNIX spec) and/or if we support
21132 # tzname[]
21133 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21134 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21135 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h. */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 #include <sys/types.h>
21145 #include <$ac_cv_struct_tm>
21149 main ()
21151 static struct tm ac_aggr;
21152 if (ac_aggr.tm_zone)
21153 return 0;
21155 return 0;
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_c_werror_flag"
21168 || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_member_struct_tm_tm_zone=yes
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 #include <sys/types.h>
21192 #include <$ac_cv_struct_tm>
21196 main ()
21198 static struct tm ac_aggr;
21199 if (sizeof ac_aggr.tm_zone)
21200 return 0;
21202 return 0;
21204 _ACEOF
21205 rm -f conftest.$ac_objext
21206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21207 (eval $ac_compile) 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } &&
21214 { ac_try='test -z "$ac_c_werror_flag"
21215 || test ! -s conftest.err'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; } &&
21221 { ac_try='test -s conftest.$ac_objext'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_member_struct_tm_tm_zone=yes
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_cv_member_struct_tm_tm_zone=no
21234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21239 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21240 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define HAVE_STRUCT_TM_TM_ZONE 1
21244 _ACEOF
21249 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_TM_ZONE 1
21253 _ACEOF
21255 else
21256 echo "$as_me:$LINENO: checking for tzname" >&5
21257 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21258 if test "${ac_cv_var_tzname+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h. */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <time.h>
21268 #ifndef tzname /* For SGI. */
21269 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21270 #endif
21273 main ()
21275 atoi(*tzname);
21277 return 0;
21279 _ACEOF
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -z "$ac_c_werror_flag"
21290 || test ! -s conftest.err'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try='test -s conftest$ac_exeext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_cv_var_tzname=yes
21303 else
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_cv_var_tzname=no
21309 rm -f conftest.err conftest.$ac_objext \
21310 conftest$ac_exeext conftest.$ac_ext
21312 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21313 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21314 if test $ac_cv_var_tzname = yes; then
21316 cat >>confdefs.h <<\_ACEOF
21317 #define HAVE_TZNAME 1
21318 _ACEOF
21324 # check tzset(3) exists and works like we expect it to
21325 echo "$as_me:$LINENO: checking for working tzset()" >&5
21326 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21327 if test "${ac_cv_working_tzset+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21331 if test "$cross_compiling" = yes; then
21332 ac_cv_working_tzset=no
21333 else
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 #include <stdlib.h>
21342 #include <time.h>
21343 #include <string.h>
21345 #if HAVE_TZNAME
21346 extern char *tzname[];
21347 #endif
21349 int main()
21351 /* Note that we need to ensure that not only does tzset(3)
21352 do 'something' with localtime, but it works as documented
21353 in the library reference and as expected by the test suite.
21354 This includes making sure that tzname is set properly if
21355 tm->tm_zone does not exist since it is the alternative way
21356 of getting timezone info.
21358 Red Hat 6.2 doesn't understand the southern hemisphere
21359 after New Year's Day.
21362 time_t groundhogday = 1044144000; /* GMT-based */
21363 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21365 putenv("TZ=UTC+0");
21366 tzset();
21367 if (localtime(&groundhogday)->tm_hour != 0)
21368 exit(1);
21369 #if HAVE_TZNAME
21370 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21371 if (strcmp(tzname[0], "UTC") ||
21372 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21373 exit(1);
21374 #endif
21376 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21377 tzset();
21378 if (localtime(&groundhogday)->tm_hour != 19)
21379 exit(1);
21380 #if HAVE_TZNAME
21381 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21382 exit(1);
21383 #endif
21385 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21386 tzset();
21387 if (localtime(&groundhogday)->tm_hour != 11)
21388 exit(1);
21389 #if HAVE_TZNAME
21390 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21391 exit(1);
21392 #endif
21394 #if HAVE_STRUCT_TM_TM_ZONE
21395 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21396 exit(1);
21397 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21398 exit(1);
21399 #endif
21401 exit(0);
21404 _ACEOF
21405 rm -f conftest$ac_exeext
21406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21407 (eval $ac_link) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_working_tzset=yes
21417 else
21418 echo "$as_me: program exited with status $ac_status" >&5
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ( exit $ac_status )
21423 ac_cv_working_tzset=no
21425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21429 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21430 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21431 if test "$ac_cv_working_tzset" = yes
21432 then
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_WORKING_TZSET 1
21436 _ACEOF
21440 # Look for subsecond timestamps in struct stat
21441 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21442 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21443 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <sys/stat.h>
21454 main ()
21457 struct stat st;
21458 st.st_mtim.tv_nsec = 1;
21461 return 0;
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_stat_tv_nsec=yes
21487 else
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_cv_stat_tv_nsec=no
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21497 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21498 if test "$ac_cv_stat_tv_nsec" = yes
21499 then
21501 cat >>confdefs.h <<\_ACEOF
21502 #define HAVE_STAT_TV_NSEC 1
21503 _ACEOF
21507 # Look for BSD style subsecond timestamps in struct stat
21508 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21509 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21510 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h. */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21519 #include <sys/stat.h>
21521 main ()
21524 struct stat st;
21525 st.st_mtimespec.tv_nsec = 1;
21528 return 0;
21530 _ACEOF
21531 rm -f conftest.$ac_objext
21532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21533 (eval $ac_compile) 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -z "$ac_c_werror_flag"
21541 || test ! -s conftest.err'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try='test -s conftest.$ac_objext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_stat_tv_nsec2=yes
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_stat_tv_nsec2=no
21560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21564 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21565 if test "$ac_cv_stat_tv_nsec2" = yes
21566 then
21568 cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_STAT_TV_NSEC2 1
21570 _ACEOF
21574 # On HP/UX 11.0, mvwdelch is a block with a return statement
21575 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21576 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21577 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h. */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 #include <curses.h>
21588 main ()
21591 int rtn;
21592 rtn = mvwdelch(0,0,0);
21595 return 0;
21597 _ACEOF
21598 rm -f conftest.$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600 (eval $ac_compile) 2>conftest.er1
21601 ac_status=$?
21602 grep -v '^ *+' conftest.er1 >conftest.err
21603 rm -f conftest.er1
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -z "$ac_c_werror_flag"
21608 || test ! -s conftest.err'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; } &&
21614 { ac_try='test -s conftest.$ac_objext'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ac_cv_mvwdelch_is_expression=yes
21621 else
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_cv_mvwdelch_is_expression=no
21627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21630 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21631 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21633 if test "$ac_cv_mvwdelch_is_expression" = yes
21634 then
21636 cat >>confdefs.h <<\_ACEOF
21637 #define MVWDELCH_IS_EXPRESSION 1
21638 _ACEOF
21642 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21643 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21644 if test "${ac_cv_window_has_flags+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h. */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <curses.h>
21655 main ()
21658 WINDOW *w;
21659 w->_flags = 0;
21662 return 0;
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try='test -z "$ac_c_werror_flag"
21675 || test ! -s conftest.err'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_cv_window_has_flags=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_window_has_flags=no
21694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21697 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21698 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21701 if test "$ac_cv_window_has_flags" = yes
21702 then
21704 cat >>confdefs.h <<\_ACEOF
21705 #define WINDOW_HAS_FLAGS 1
21706 _ACEOF
21710 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21711 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21713 if test -e /dev/ptmx
21714 then
21715 echo "$as_me:$LINENO: result: yes" >&5
21716 echo "${ECHO_T}yes" >&6
21718 cat >>confdefs.h <<\_ACEOF
21719 #define HAVE_DEV_PTMX 1
21720 _ACEOF
21722 else
21723 echo "$as_me:$LINENO: result: no" >&5
21724 echo "${ECHO_T}no" >&6
21727 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21728 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21730 if test -e /dev/ptc
21731 then
21732 echo "$as_me:$LINENO: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6
21735 cat >>confdefs.h <<\_ACEOF
21736 #define HAVE_DEV_PTC 1
21737 _ACEOF
21739 else
21740 echo "$as_me:$LINENO: result: no" >&5
21741 echo "${ECHO_T}no" >&6
21744 echo "$as_me:$LINENO: checking for socklen_t" >&5
21745 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21746 if test "${ac_cv_type_socklen_t+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749 cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h. */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21756 #ifdef HAVE_SYS_TYPES_H
21757 #include <sys/types.h>
21758 #endif
21759 #ifdef HAVE_SYS_SOCKET_H
21760 #include <sys/socket.h>
21761 #endif
21765 main ()
21767 if ((socklen_t *) 0)
21768 return 0;
21769 if (sizeof (socklen_t))
21770 return 0;
21772 return 0;
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777 (eval $ac_compile) 2>conftest.er1
21778 ac_status=$?
21779 grep -v '^ *+' conftest.er1 >conftest.err
21780 rm -f conftest.er1
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try='test -z "$ac_c_werror_flag"
21785 || test ! -s conftest.err'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try='test -s conftest.$ac_objext'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; }; then
21797 ac_cv_type_socklen_t=yes
21798 else
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 ac_cv_type_socklen_t=no
21804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21806 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21807 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21808 if test $ac_cv_type_socklen_t = yes; then
21810 else
21812 cat >>confdefs.h <<\_ACEOF
21813 #define socklen_t int
21814 _ACEOF
21821 for h in `(cd $srcdir;echo Python/thread_*.h)`
21823 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21824 done
21827 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21828 echo "$as_me:$LINENO: checking for build directories" >&5
21829 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21830 for dir in $SRCDIRS; do
21831 if test ! -d $dir; then
21832 mkdir $dir
21834 done
21835 echo "$as_me:$LINENO: result: done" >&5
21836 echo "${ECHO_T}done" >&6
21838 # generate output files
21839 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21841 cat >confcache <<\_ACEOF
21842 # This file is a shell script that caches the results of configure
21843 # tests run on this system so they can be shared between configure
21844 # scripts and configure runs, see configure's option --config-cache.
21845 # It is not useful on other systems. If it contains results you don't
21846 # want to keep, you may remove or edit it.
21848 # config.status only pays attention to the cache file if you give it
21849 # the --recheck option to rerun configure.
21851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21853 # following values.
21855 _ACEOF
21857 # The following way of writing the cache mishandles newlines in values,
21858 # but we know of no workaround that is simple, portable, and efficient.
21859 # So, don't put newlines in cache variables' values.
21860 # Ultrix sh set writes to stderr and can't be redirected directly,
21861 # and sets the high bit in the cache file unless we assign to the vars.
21863 (set) 2>&1 |
21864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21865 *ac_space=\ *)
21866 # `set' does not quote correctly, so add quotes (double-quote
21867 # substitution turns \\\\ into \\, and sed turns \\ into \).
21868 sed -n \
21869 "s/'/'\\\\''/g;
21870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21873 # `set' quotes correctly as required by POSIX, so do not add quotes.
21874 sed -n \
21875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21877 esac;
21879 sed '
21880 t clear
21881 : clear
21882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21883 t end
21884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21885 : end' >>confcache
21886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21887 if test -w $cache_file; then
21888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21889 cat confcache >$cache_file
21890 else
21891 echo "not updating unwritable cache $cache_file"
21894 rm -f confcache
21896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21897 # Let make expand exec_prefix.
21898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21902 # trailing colons and then remove the whole line if VPATH becomes empty
21903 # (actually we leave an empty line to preserve line numbers).
21904 if test "x$srcdir" = x.; then
21905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21906 s/:*\$(srcdir):*/:/;
21907 s/:*\${srcdir}:*/:/;
21908 s/:*@srcdir@:*/:/;
21909 s/^\([^=]*=[ ]*\):*/\1/;
21910 s/:*$//;
21911 s/^[^=]*=[ ]*$//;
21915 DEFS=-DHAVE_CONFIG_H
21917 ac_libobjs=
21918 ac_ltlibobjs=
21919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21920 # 1. Remove the extension, and $U if already installed.
21921 ac_i=`echo "$ac_i" |
21922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21923 # 2. Add them.
21924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21926 done
21927 LIBOBJS=$ac_libobjs
21929 LTLIBOBJS=$ac_ltlibobjs
21933 : ${CONFIG_STATUS=./config.status}
21934 ac_clean_files_save=$ac_clean_files
21935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21938 cat >$CONFIG_STATUS <<_ACEOF
21939 #! $SHELL
21940 # Generated by $as_me.
21941 # Run this file to recreate the current configuration.
21942 # Compiler output produced by configure, useful for debugging
21943 # configure, is in config.log if it exists.
21945 debug=false
21946 ac_cs_recheck=false
21947 ac_cs_silent=false
21948 SHELL=\${CONFIG_SHELL-$SHELL}
21949 _ACEOF
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 ## --------------------- ##
21953 ## M4sh Initialization. ##
21954 ## --------------------- ##
21956 # Be Bourne compatible
21957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21958 emulate sh
21959 NULLCMD=:
21960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21961 # is contrary to our usage. Disable this feature.
21962 alias -g '${1+"$@"}'='"$@"'
21963 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21964 set -o posix
21966 DUALCASE=1; export DUALCASE # for MKS sh
21968 # Support unset when possible.
21969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21970 as_unset=unset
21971 else
21972 as_unset=false
21976 # Work around bugs in pre-3.0 UWIN ksh.
21977 $as_unset ENV MAIL MAILPATH
21978 PS1='$ '
21979 PS2='> '
21980 PS4='+ '
21982 # NLS nuisances.
21983 for as_var in \
21984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21986 LC_TELEPHONE LC_TIME
21988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21989 eval $as_var=C; export $as_var
21990 else
21991 $as_unset $as_var
21993 done
21995 # Required to use basename.
21996 if expr a : '\(a\)' >/dev/null 2>&1; then
21997 as_expr=expr
21998 else
21999 as_expr=false
22002 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22003 as_basename=basename
22004 else
22005 as_basename=false
22009 # Name of the executable.
22010 as_me=`$as_basename "$0" ||
22011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22012 X"$0" : 'X\(//\)$' \| \
22013 X"$0" : 'X\(/\)$' \| \
22014 . : '\(.\)' 2>/dev/null ||
22015 echo X/"$0" |
22016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22017 /^X\/\(\/\/\)$/{ s//\1/; q; }
22018 /^X\/\(\/\).*/{ s//\1/; q; }
22019 s/.*/./; q'`
22022 # PATH needs CR, and LINENO needs CR and PATH.
22023 # Avoid depending upon Character Ranges.
22024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22027 as_cr_digits='0123456789'
22028 as_cr_alnum=$as_cr_Letters$as_cr_digits
22030 # The user is always right.
22031 if test "${PATH_SEPARATOR+set}" != set; then
22032 echo "#! /bin/sh" >conf$$.sh
22033 echo "exit 0" >>conf$$.sh
22034 chmod +x conf$$.sh
22035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22036 PATH_SEPARATOR=';'
22037 else
22038 PATH_SEPARATOR=:
22040 rm -f conf$$.sh
22044 as_lineno_1=$LINENO
22045 as_lineno_2=$LINENO
22046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22047 test "x$as_lineno_1" != "x$as_lineno_2" &&
22048 test "x$as_lineno_3" = "x$as_lineno_2" || {
22049 # Find who we are. Look in the path if we contain no path at all
22050 # relative or not.
22051 case $0 in
22052 *[\\/]* ) as_myself=$0 ;;
22053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22054 for as_dir in $PATH
22056 IFS=$as_save_IFS
22057 test -z "$as_dir" && as_dir=.
22058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22059 done
22062 esac
22063 # We did not find ourselves, most probably we were run as `sh COMMAND'
22064 # in which case we are not to be found in the path.
22065 if test "x$as_myself" = x; then
22066 as_myself=$0
22068 if test ! -f "$as_myself"; then
22069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22071 { (exit 1); exit 1; }; }
22073 case $CONFIG_SHELL in
22075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22076 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22078 IFS=$as_save_IFS
22079 test -z "$as_dir" && as_dir=.
22080 for as_base in sh bash ksh sh5; do
22081 case $as_dir in
22083 if ("$as_dir/$as_base" -c '
22084 as_lineno_1=$LINENO
22085 as_lineno_2=$LINENO
22086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22087 test "x$as_lineno_1" != "x$as_lineno_2" &&
22088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22089 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22090 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22091 CONFIG_SHELL=$as_dir/$as_base
22092 export CONFIG_SHELL
22093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22094 fi;;
22095 esac
22096 done
22097 done
22099 esac
22101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22102 # uniformly replaced by the line number. The first 'sed' inserts a
22103 # line-number line before each line; the second 'sed' does the real
22104 # work. The second script uses 'N' to pair each line-number line
22105 # with the numbered line, and appends trailing '-' during
22106 # substitution so that $LINENO is not a special case at line end.
22107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22109 sed '=' <$as_myself |
22110 sed '
22112 s,$,-,
22113 : loop
22114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22115 t loop
22116 s,-$,,
22117 s,^['$as_cr_digits']*\n,,
22118 ' >$as_me.lineno &&
22119 chmod +x $as_me.lineno ||
22120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22122 { (exit 1); exit 1; }; }
22124 # Don't try to exec as it changes $[0], causing all sort of problems
22125 # (the dirname of $[0] is not the place where we might find the
22126 # original and so on. Autoconf is especially sensible to this).
22127 . ./$as_me.lineno
22128 # Exit status is that of the last command.
22129 exit
22133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22134 *c*,-n*) ECHO_N= ECHO_C='
22135 ' ECHO_T=' ' ;;
22136 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22137 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22138 esac
22140 if expr a : '\(a\)' >/dev/null 2>&1; then
22141 as_expr=expr
22142 else
22143 as_expr=false
22146 rm -f conf$$ conf$$.exe conf$$.file
22147 echo >conf$$.file
22148 if ln -s conf$$.file conf$$ 2>/dev/null; then
22149 # We could just check for DJGPP; but this test a) works b) is more generic
22150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22151 if test -f conf$$.exe; then
22152 # Don't use ln at all; we don't have any links
22153 as_ln_s='cp -p'
22154 else
22155 as_ln_s='ln -s'
22157 elif ln conf$$.file conf$$ 2>/dev/null; then
22158 as_ln_s=ln
22159 else
22160 as_ln_s='cp -p'
22162 rm -f conf$$ conf$$.exe conf$$.file
22164 if mkdir -p . 2>/dev/null; then
22165 as_mkdir_p=:
22166 else
22167 test -d ./-p && rmdir ./-p
22168 as_mkdir_p=false
22171 as_executable_p="test -f"
22173 # Sed expression to map a string onto a valid CPP name.
22174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22176 # Sed expression to map a string onto a valid variable name.
22177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22180 # IFS
22181 # We need space, tab and new line, in precisely that order.
22182 as_nl='
22184 IFS=" $as_nl"
22186 # CDPATH.
22187 $as_unset CDPATH
22189 exec 6>&1
22191 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22192 # report actual input values of CONFIG_FILES etc. instead of their
22193 # values after options handling. Logging --version etc. is OK.
22194 exec 5>>config.log
22196 echo
22197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22198 ## Running $as_me. ##
22199 _ASBOX
22200 } >&5
22201 cat >&5 <<_CSEOF
22203 This file was extended by python $as_me 2.5, which was
22204 generated by GNU Autoconf 2.59. Invocation command line was
22206 CONFIG_FILES = $CONFIG_FILES
22207 CONFIG_HEADERS = $CONFIG_HEADERS
22208 CONFIG_LINKS = $CONFIG_LINKS
22209 CONFIG_COMMANDS = $CONFIG_COMMANDS
22210 $ $0 $@
22212 _CSEOF
22213 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22214 echo >&5
22215 _ACEOF
22217 # Files that config.status was made for.
22218 if test -n "$ac_config_files"; then
22219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22222 if test -n "$ac_config_headers"; then
22223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22226 if test -n "$ac_config_links"; then
22227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22230 if test -n "$ac_config_commands"; then
22231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22236 ac_cs_usage="\
22237 \`$as_me' instantiates files from templates according to the
22238 current configuration.
22240 Usage: $0 [OPTIONS] [FILE]...
22242 -h, --help print this help, then exit
22243 -V, --version print version number, then exit
22244 -q, --quiet do not print progress messages
22245 -d, --debug don't remove temporary files
22246 --recheck update $as_me by reconfiguring in the same conditions
22247 --file=FILE[:TEMPLATE]
22248 instantiate the configuration file FILE
22249 --header=FILE[:TEMPLATE]
22250 instantiate the configuration header FILE
22252 Configuration files:
22253 $config_files
22255 Configuration headers:
22256 $config_headers
22258 Report bugs to <bug-autoconf@gnu.org>."
22259 _ACEOF
22261 cat >>$CONFIG_STATUS <<_ACEOF
22262 ac_cs_version="\\
22263 python config.status 2.5
22264 configured by $0, generated by GNU Autoconf 2.59,
22265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22267 Copyright (C) 2003 Free Software Foundation, Inc.
22268 This config.status script is free software; the Free Software Foundation
22269 gives unlimited permission to copy, distribute and modify it."
22270 srcdir=$srcdir
22271 INSTALL="$INSTALL"
22272 _ACEOF
22274 cat >>$CONFIG_STATUS <<\_ACEOF
22275 # If no file are specified by the user, then we need to provide default
22276 # value. By we need to know if files were specified by the user.
22277 ac_need_defaults=:
22278 while test $# != 0
22280 case $1 in
22281 --*=*)
22282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22284 ac_shift=:
22287 ac_option=$1
22288 ac_optarg=$2
22289 ac_shift=shift
22291 *) # This is not an option, so the user has probably given explicit
22292 # arguments.
22293 ac_option=$1
22294 ac_need_defaults=false;;
22295 esac
22297 case $ac_option in
22298 # Handling of the options.
22299 _ACEOF
22300 cat >>$CONFIG_STATUS <<\_ACEOF
22301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22302 ac_cs_recheck=: ;;
22303 --version | --vers* | -V )
22304 echo "$ac_cs_version"; exit 0 ;;
22305 --he | --h)
22306 # Conflict between --help and --header
22307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22308 Try \`$0 --help' for more information." >&5
22309 echo "$as_me: error: ambiguous option: $1
22310 Try \`$0 --help' for more information." >&2;}
22311 { (exit 1); exit 1; }; };;
22312 --help | --hel | -h )
22313 echo "$ac_cs_usage"; exit 0 ;;
22314 --debug | --d* | -d )
22315 debug=: ;;
22316 --file | --fil | --fi | --f )
22317 $ac_shift
22318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22319 ac_need_defaults=false;;
22320 --header | --heade | --head | --hea )
22321 $ac_shift
22322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22323 ac_need_defaults=false;;
22324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22326 ac_cs_silent=: ;;
22328 # This is an error.
22329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22330 Try \`$0 --help' for more information." >&5
22331 echo "$as_me: error: unrecognized option: $1
22332 Try \`$0 --help' for more information." >&2;}
22333 { (exit 1); exit 1; }; } ;;
22335 *) ac_config_targets="$ac_config_targets $1" ;;
22337 esac
22338 shift
22339 done
22341 ac_configure_extra_args=
22343 if $ac_cs_silent; then
22344 exec 6>/dev/null
22345 ac_configure_extra_args="$ac_configure_extra_args --silent"
22348 _ACEOF
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350 if \$ac_cs_recheck; then
22351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22355 _ACEOF
22361 cat >>$CONFIG_STATUS <<\_ACEOF
22362 for ac_config_target in $ac_config_targets
22364 case "$ac_config_target" in
22365 # Handling of arguments.
22366 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22367 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22368 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22370 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22371 { (exit 1); exit 1; }; };;
22372 esac
22373 done
22375 # If the user did not use the arguments to specify the items to instantiate,
22376 # then the envvar interface is used. Set only those that are not.
22377 # We use the long form for the default assignment because of an extremely
22378 # bizarre bug on SunOS 4.1.3.
22379 if $ac_need_defaults; then
22380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22384 # Have a temporary directory for convenience. Make it in the build tree
22385 # simply because there is no reason to put it here, and in addition,
22386 # creating and moving files from /tmp can sometimes cause problems.
22387 # Create a temporary directory, and hook for its removal unless debugging.
22388 $debug ||
22390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22391 trap '{ (exit 1); exit 1; }' 1 2 13 15
22394 # Create a (secure) tmp directory for tmp files.
22397 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22398 test -n "$tmp" && test -d "$tmp"
22399 } ||
22401 tmp=./confstat$$-$RANDOM
22402 (umask 077 && mkdir $tmp)
22403 } ||
22405 echo "$me: cannot create a temporary directory in ." >&2
22406 { (exit 1); exit 1; }
22409 _ACEOF
22411 cat >>$CONFIG_STATUS <<_ACEOF
22414 # CONFIG_FILES section.
22417 # No need to generate the scripts if there are no CONFIG_FILES.
22418 # This happens for instance when ./config.status config.h
22419 if test -n "\$CONFIG_FILES"; then
22420 # Protect against being on the right side of a sed subst in config.status.
22421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22423 s,@SHELL@,$SHELL,;t t
22424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22430 s,@exec_prefix@,$exec_prefix,;t t
22431 s,@prefix@,$prefix,;t t
22432 s,@program_transform_name@,$program_transform_name,;t t
22433 s,@bindir@,$bindir,;t t
22434 s,@sbindir@,$sbindir,;t t
22435 s,@libexecdir@,$libexecdir,;t t
22436 s,@datadir@,$datadir,;t t
22437 s,@sysconfdir@,$sysconfdir,;t t
22438 s,@sharedstatedir@,$sharedstatedir,;t t
22439 s,@localstatedir@,$localstatedir,;t t
22440 s,@libdir@,$libdir,;t t
22441 s,@includedir@,$includedir,;t t
22442 s,@oldincludedir@,$oldincludedir,;t t
22443 s,@infodir@,$infodir,;t t
22444 s,@mandir@,$mandir,;t t
22445 s,@build_alias@,$build_alias,;t t
22446 s,@host_alias@,$host_alias,;t t
22447 s,@target_alias@,$target_alias,;t t
22448 s,@DEFS@,$DEFS,;t t
22449 s,@ECHO_C@,$ECHO_C,;t t
22450 s,@ECHO_N@,$ECHO_N,;t t
22451 s,@ECHO_T@,$ECHO_T,;t t
22452 s,@LIBS@,$LIBS,;t t
22453 s,@VERSION@,$VERSION,;t t
22454 s,@SOVERSION@,$SOVERSION,;t t
22455 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22456 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22457 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22458 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22459 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22460 s,@MACHDEP@,$MACHDEP,;t t
22461 s,@SGI_ABI@,$SGI_ABI,;t t
22462 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22463 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22464 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22465 s,@CXX@,$CXX,;t t
22466 s,@MAINOBJ@,$MAINOBJ,;t t
22467 s,@EXEEXT@,$EXEEXT,;t t
22468 s,@CC@,$CC,;t t
22469 s,@CFLAGS@,$CFLAGS,;t t
22470 s,@LDFLAGS@,$LDFLAGS,;t t
22471 s,@CPPFLAGS@,$CPPFLAGS,;t t
22472 s,@ac_ct_CC@,$ac_ct_CC,;t t
22473 s,@OBJEXT@,$OBJEXT,;t t
22474 s,@CPP@,$CPP,;t t
22475 s,@EGREP@,$EGREP,;t t
22476 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22477 s,@LIBRARY@,$LIBRARY,;t t
22478 s,@LDLIBRARY@,$LDLIBRARY,;t t
22479 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22480 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22481 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22482 s,@INSTSONAME@,$INSTSONAME,;t t
22483 s,@RUNSHARED@,$RUNSHARED,;t t
22484 s,@LINKCC@,$LINKCC,;t t
22485 s,@RANLIB@,$RANLIB,;t t
22486 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22487 s,@AR@,$AR,;t t
22488 s,@SVNVERSION@,$SVNVERSION,;t t
22489 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22490 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22491 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22492 s,@LN@,$LN,;t t
22493 s,@OPT@,$OPT,;t t
22494 s,@BASECFLAGS@,$BASECFLAGS,;t t
22495 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22496 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22497 s,@SO@,$SO,;t t
22498 s,@LDSHARED@,$LDSHARED,;t t
22499 s,@BLDSHARED@,$BLDSHARED,;t t
22500 s,@CCSHARED@,$CCSHARED,;t t
22501 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22502 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22503 s,@SHLIBS@,$SHLIBS,;t t
22504 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22505 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22506 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22507 s,@LDLAST@,$LDLAST,;t t
22508 s,@THREADOBJ@,$THREADOBJ,;t t
22509 s,@DLINCLDIR@,$DLINCLDIR,;t t
22510 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22511 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22512 s,@TRUE@,$TRUE,;t t
22513 s,@LIBOBJS@,$LIBOBJS,;t t
22514 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22515 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22518 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22519 s,@LIBM@,$LIBM,;t t
22520 s,@LIBC@,$LIBC,;t t
22521 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22522 s,@THREADHEADERS@,$THREADHEADERS,;t t
22523 s,@SRCDIRS@,$SRCDIRS,;t t
22524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22525 CEOF
22527 _ACEOF
22529 cat >>$CONFIG_STATUS <<\_ACEOF
22530 # Split the substitutions into bite-sized pieces for seds with
22531 # small command number limits, like on Digital OSF/1 and HP-UX.
22532 ac_max_sed_lines=48
22533 ac_sed_frag=1 # Number of current file.
22534 ac_beg=1 # First line for current file.
22535 ac_end=$ac_max_sed_lines # Line after last line for current file.
22536 ac_more_lines=:
22537 ac_sed_cmds=
22538 while $ac_more_lines; do
22539 if test $ac_beg -gt 1; then
22540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22541 else
22542 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22544 if test ! -s $tmp/subs.frag; then
22545 ac_more_lines=false
22546 else
22547 # The purpose of the label and of the branching condition is to
22548 # speed up the sed processing (if there are no `@' at all, there
22549 # is no need to browse any of the substitutions).
22550 # These are the two extra sed commands mentioned above.
22551 (echo ':t
22552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22553 if test -z "$ac_sed_cmds"; then
22554 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22555 else
22556 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22558 ac_sed_frag=`expr $ac_sed_frag + 1`
22559 ac_beg=$ac_end
22560 ac_end=`expr $ac_end + $ac_max_sed_lines`
22562 done
22563 if test -z "$ac_sed_cmds"; then
22564 ac_sed_cmds=cat
22566 fi # test -n "$CONFIG_FILES"
22568 _ACEOF
22569 cat >>$CONFIG_STATUS <<\_ACEOF
22570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22572 case $ac_file in
22573 - | *:- | *:-:* ) # input from stdin
22574 cat >$tmp/stdin
22575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22579 * ) ac_file_in=$ac_file.in ;;
22580 esac
22582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$ac_file" : 'X\(//\)[^/]' \| \
22586 X"$ac_file" : 'X\(//\)$' \| \
22587 X"$ac_file" : 'X\(/\)' \| \
22588 . : '\(.\)' 2>/dev/null ||
22589 echo X"$ac_file" |
22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592 /^X\(\/\/\)$/{ s//\1/; q; }
22593 /^X\(\/\).*/{ s//\1/; q; }
22594 s/.*/./; q'`
22595 { if $as_mkdir_p; then
22596 mkdir -p "$ac_dir"
22597 else
22598 as_dir="$ac_dir"
22599 as_dirs=
22600 while test ! -d "$as_dir"; do
22601 as_dirs="$as_dir $as_dirs"
22602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22604 X"$as_dir" : 'X\(//\)[^/]' \| \
22605 X"$as_dir" : 'X\(//\)$' \| \
22606 X"$as_dir" : 'X\(/\)' \| \
22607 . : '\(.\)' 2>/dev/null ||
22608 echo X"$as_dir" |
22609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22611 /^X\(\/\/\)$/{ s//\1/; q; }
22612 /^X\(\/\).*/{ s//\1/; q; }
22613 s/.*/./; q'`
22614 done
22615 test ! -n "$as_dirs" || mkdir $as_dirs
22616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22618 { (exit 1); exit 1; }; }; }
22620 ac_builddir=.
22622 if test "$ac_dir" != .; then
22623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22624 # A "../" for each directory in $ac_dir_suffix.
22625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22626 else
22627 ac_dir_suffix= ac_top_builddir=
22630 case $srcdir in
22631 .) # No --srcdir option. We are building in place.
22632 ac_srcdir=.
22633 if test -z "$ac_top_builddir"; then
22634 ac_top_srcdir=.
22635 else
22636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22637 fi ;;
22638 [\\/]* | ?:[\\/]* ) # Absolute path.
22639 ac_srcdir=$srcdir$ac_dir_suffix;
22640 ac_top_srcdir=$srcdir ;;
22641 *) # Relative path.
22642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22644 esac
22646 # Do not use `cd foo && pwd` to compute absolute paths, because
22647 # the directories may not exist.
22648 case `pwd` in
22649 .) ac_abs_builddir="$ac_dir";;
22651 case "$ac_dir" in
22652 .) ac_abs_builddir=`pwd`;;
22653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22654 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22655 esac;;
22656 esac
22657 case $ac_abs_builddir in
22658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22660 case ${ac_top_builddir}. in
22661 .) ac_abs_top_builddir=$ac_abs_builddir;;
22662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22664 esac;;
22665 esac
22666 case $ac_abs_builddir in
22667 .) ac_abs_srcdir=$ac_srcdir;;
22669 case $ac_srcdir in
22670 .) ac_abs_srcdir=$ac_abs_builddir;;
22671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22673 esac;;
22674 esac
22675 case $ac_abs_builddir in
22676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22678 case $ac_top_srcdir in
22679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22682 esac;;
22683 esac
22686 case $INSTALL in
22687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22688 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22689 esac
22691 if test x"$ac_file" != x-; then
22692 { echo "$as_me:$LINENO: creating $ac_file" >&5
22693 echo "$as_me: creating $ac_file" >&6;}
22694 rm -f "$ac_file"
22696 # Let's still pretend it is `configure' which instantiates (i.e., don't
22697 # use $as_me), people would be surprised to read:
22698 # /* config.h. Generated by config.status. */
22699 if test x"$ac_file" = x-; then
22700 configure_input=
22701 else
22702 configure_input="$ac_file. "
22704 configure_input=$configure_input"Generated from `echo $ac_file_in |
22705 sed 's,.*/,,'` by configure."
22707 # First look for the input files in the build tree, otherwise in the
22708 # src tree.
22709 ac_file_inputs=`IFS=:
22710 for f in $ac_file_in; do
22711 case $f in
22712 -) echo $tmp/stdin ;;
22713 [\\/$]*)
22714 # Absolute (can't be DOS-style, as IFS=:)
22715 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22716 echo "$as_me: error: cannot find input file: $f" >&2;}
22717 { (exit 1); exit 1; }; }
22718 echo "$f";;
22719 *) # Relative
22720 if test -f "$f"; then
22721 # Build tree
22722 echo "$f"
22723 elif test -f "$srcdir/$f"; then
22724 # Source tree
22725 echo "$srcdir/$f"
22726 else
22727 # /dev/null tree
22728 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22729 echo "$as_me: error: cannot find input file: $f" >&2;}
22730 { (exit 1); exit 1; }; }
22731 fi;;
22732 esac
22733 done` || { (exit 1); exit 1; }
22734 _ACEOF
22735 cat >>$CONFIG_STATUS <<_ACEOF
22736 sed "$ac_vpsub
22737 $extrasub
22738 _ACEOF
22739 cat >>$CONFIG_STATUS <<\_ACEOF
22741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22742 s,@configure_input@,$configure_input,;t t
22743 s,@srcdir@,$ac_srcdir,;t t
22744 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22745 s,@top_srcdir@,$ac_top_srcdir,;t t
22746 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22747 s,@builddir@,$ac_builddir,;t t
22748 s,@abs_builddir@,$ac_abs_builddir,;t t
22749 s,@top_builddir@,$ac_top_builddir,;t t
22750 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22751 s,@INSTALL@,$ac_INSTALL,;t t
22752 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22753 rm -f $tmp/stdin
22754 if test x"$ac_file" != x-; then
22755 mv $tmp/out $ac_file
22756 else
22757 cat $tmp/out
22758 rm -f $tmp/out
22761 done
22762 _ACEOF
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22766 # CONFIG_HEADER section.
22769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22772 # ac_d sets the value in "#define NAME VALUE" lines.
22773 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22774 ac_dB='[ ].*$,\1#\2'
22775 ac_dC=' '
22776 ac_dD=',;t'
22777 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22778 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22779 ac_uB='$,\1#\2define\3'
22780 ac_uC=' '
22781 ac_uD=',;t'
22783 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22785 case $ac_file in
22786 - | *:- | *:-:* ) # input from stdin
22787 cat >$tmp/stdin
22788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22792 * ) ac_file_in=$ac_file.in ;;
22793 esac
22795 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22796 echo "$as_me: creating $ac_file" >&6;}
22798 # First look for the input files in the build tree, otherwise in the
22799 # src tree.
22800 ac_file_inputs=`IFS=:
22801 for f in $ac_file_in; do
22802 case $f in
22803 -) echo $tmp/stdin ;;
22804 [\\/$]*)
22805 # Absolute (can't be DOS-style, as IFS=:)
22806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22807 echo "$as_me: error: cannot find input file: $f" >&2;}
22808 { (exit 1); exit 1; }; }
22809 # Do quote $f, to prevent DOS paths from being IFS'd.
22810 echo "$f";;
22811 *) # Relative
22812 if test -f "$f"; then
22813 # Build tree
22814 echo "$f"
22815 elif test -f "$srcdir/$f"; then
22816 # Source tree
22817 echo "$srcdir/$f"
22818 else
22819 # /dev/null tree
22820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22821 echo "$as_me: error: cannot find input file: $f" >&2;}
22822 { (exit 1); exit 1; }; }
22823 fi;;
22824 esac
22825 done` || { (exit 1); exit 1; }
22826 # Remove the trailing spaces.
22827 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22829 _ACEOF
22831 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22832 # `conftest.undefs', that substitutes the proper values into
22833 # config.h.in to produce config.h. The first handles `#define'
22834 # templates, and the second `#undef' templates.
22835 # And first: Protect against being on the right side of a sed subst in
22836 # config.status. Protect against being in an unquoted here document
22837 # in config.status.
22838 rm -f conftest.defines conftest.undefs
22839 # Using a here document instead of a string reduces the quoting nightmare.
22840 # Putting comments in sed scripts is not portable.
22842 # `end' is used to avoid that the second main sed command (meant for
22843 # 0-ary CPP macros) applies to n-ary macro definitions.
22844 # See the Autoconf documentation for `clear'.
22845 cat >confdef2sed.sed <<\_ACEOF
22846 s/[\\&,]/\\&/g
22847 s,[\\$`],\\&,g
22848 t clear
22849 : clear
22850 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22851 t end
22852 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22853 : end
22854 _ACEOF
22855 # If some macros were called several times there might be several times
22856 # the same #defines, which is useless. Nevertheless, we may not want to
22857 # sort them, since we want the *last* AC-DEFINE to be honored.
22858 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22859 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22860 rm -f confdef2sed.sed
22862 # This sed command replaces #undef with comments. This is necessary, for
22863 # example, in the case of _POSIX_SOURCE, which is predefined and required
22864 # on some systems where configure will not decide to define it.
22865 cat >>conftest.undefs <<\_ACEOF
22866 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22867 _ACEOF
22869 # Break up conftest.defines because some shells have a limit on the size
22870 # of here documents, and old seds have small limits too (100 cmds).
22871 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22872 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22873 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22874 echo ' :' >>$CONFIG_STATUS
22875 rm -f conftest.tail
22876 while grep . conftest.defines >/dev/null
22878 # Write a limited-size here document to $tmp/defines.sed.
22879 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22880 # Speed up: don't consider the non `#define' lines.
22881 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22882 # Work around the forget-to-reset-the-flag bug.
22883 echo 't clr' >>$CONFIG_STATUS
22884 echo ': clr' >>$CONFIG_STATUS
22885 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22886 echo 'CEOF
22887 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22888 rm -f $tmp/in
22889 mv $tmp/out $tmp/in
22890 ' >>$CONFIG_STATUS
22891 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22892 rm -f conftest.defines
22893 mv conftest.tail conftest.defines
22894 done
22895 rm -f conftest.defines
22896 echo ' fi # grep' >>$CONFIG_STATUS
22897 echo >>$CONFIG_STATUS
22899 # Break up conftest.undefs because some shells have a limit on the size
22900 # of here documents, and old seds have small limits too (100 cmds).
22901 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22902 rm -f conftest.tail
22903 while grep . conftest.undefs >/dev/null
22905 # Write a limited-size here document to $tmp/undefs.sed.
22906 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22907 # Speed up: don't consider the non `#undef'
22908 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22909 # Work around the forget-to-reset-the-flag bug.
22910 echo 't clr' >>$CONFIG_STATUS
22911 echo ': clr' >>$CONFIG_STATUS
22912 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22913 echo 'CEOF
22914 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22915 rm -f $tmp/in
22916 mv $tmp/out $tmp/in
22917 ' >>$CONFIG_STATUS
22918 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22919 rm -f conftest.undefs
22920 mv conftest.tail conftest.undefs
22921 done
22922 rm -f conftest.undefs
22924 cat >>$CONFIG_STATUS <<\_ACEOF
22925 # Let's still pretend it is `configure' which instantiates (i.e., don't
22926 # use $as_me), people would be surprised to read:
22927 # /* config.h. Generated by config.status. */
22928 if test x"$ac_file" = x-; then
22929 echo "/* Generated by configure. */" >$tmp/config.h
22930 else
22931 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22933 cat $tmp/in >>$tmp/config.h
22934 rm -f $tmp/in
22935 if test x"$ac_file" != x-; then
22936 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22938 echo "$as_me: $ac_file is unchanged" >&6;}
22939 else
22940 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22942 X"$ac_file" : 'X\(//\)[^/]' \| \
22943 X"$ac_file" : 'X\(//\)$' \| \
22944 X"$ac_file" : 'X\(/\)' \| \
22945 . : '\(.\)' 2>/dev/null ||
22946 echo X"$ac_file" |
22947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22949 /^X\(\/\/\)$/{ s//\1/; q; }
22950 /^X\(\/\).*/{ s//\1/; q; }
22951 s/.*/./; q'`
22952 { if $as_mkdir_p; then
22953 mkdir -p "$ac_dir"
22954 else
22955 as_dir="$ac_dir"
22956 as_dirs=
22957 while test ! -d "$as_dir"; do
22958 as_dirs="$as_dir $as_dirs"
22959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22961 X"$as_dir" : 'X\(//\)[^/]' \| \
22962 X"$as_dir" : 'X\(//\)$' \| \
22963 X"$as_dir" : 'X\(/\)' \| \
22964 . : '\(.\)' 2>/dev/null ||
22965 echo X"$as_dir" |
22966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22968 /^X\(\/\/\)$/{ s//\1/; q; }
22969 /^X\(\/\).*/{ s//\1/; q; }
22970 s/.*/./; q'`
22971 done
22972 test ! -n "$as_dirs" || mkdir $as_dirs
22973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22975 { (exit 1); exit 1; }; }; }
22977 rm -f $ac_file
22978 mv $tmp/config.h $ac_file
22980 else
22981 cat $tmp/config.h
22982 rm -f $tmp/config.h
22984 done
22985 _ACEOF
22987 cat >>$CONFIG_STATUS <<\_ACEOF
22989 { (exit 0); exit 0; }
22990 _ACEOF
22991 chmod +x $CONFIG_STATUS
22992 ac_clean_files=$ac_clean_files_save
22995 # configure is writing to config.log, and then calls config.status.
22996 # config.status does its own redirection, appending to config.log.
22997 # Unfortunately, on DOS this fails, as config.log is still kept open
22998 # by configure, so config.status won't be able to write to it; its
22999 # output is simply discarded. So we exec the FD to /dev/null,
23000 # effectively closing config.log, so it can be properly (re)opened and
23001 # appended to by config.status. When coming back to configure, we
23002 # need to make the FD available again.
23003 if test "$no_create" != yes; then
23004 ac_cs_success=:
23005 ac_config_status_args=
23006 test "$silent" = yes &&
23007 ac_config_status_args="$ac_config_status_args --quiet"
23008 exec 5>/dev/null
23009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23010 exec 5>>config.log
23011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23012 # would make configure fail if this is the last instruction.
23013 $ac_cs_success || { (exit 1); exit 1; }
23017 echo "creating Setup"
23018 if test ! -f Modules/Setup
23019 then
23020 cp $srcdir/Modules/Setup.dist Modules/Setup
23023 echo "creating Setup.local"
23024 if test ! -f Modules/Setup.local
23025 then
23026 echo "# Edit this file for local setup changes" >Modules/Setup.local
23029 echo "creating Makefile"
23030 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23031 -s Modules Modules/Setup.config \
23032 Modules/Setup.local Modules/Setup
23033 mv config.c Modules