Looks like someone renamed (or something) md5c.c to md5.c.
[python.git] / configure
blobbc59e81e288748cbc02285cafa8708c39f2415c1
1 #! /bin/sh
2 # From configure.in Revision: 43536 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[012345678])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1517 # has no effect, don't bother defineing them
1518 Darwin/78.*)
1519 define_xopen_source=no
1522 esac
1524 if test $define_xopen_source = yes
1525 then
1526 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1527 # defined precisely as g++ defines it
1528 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1529 # compiler
1530 case $ac_sys_system/$ac_sys_release in
1531 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1533 cat >>confdefs.h <<\_ACEOF
1534 #define _XOPEN_SOURCE 500
1535 _ACEOF
1540 cat >>confdefs.h <<\_ACEOF
1541 #define _XOPEN_SOURCE 600
1542 _ACEOF
1545 esac
1547 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1548 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1549 # several APIs are not declared. Since this is also needed in some
1550 # cases for HP-UX, we define it globally.
1551 # except for Solaris 10, where it must not be defined,
1552 # as it implies XPG4.2
1553 case $ac_sys_system/$ac_sys_release in
1554 SunOS/5.10)
1558 cat >>confdefs.h <<\_ACEOF
1559 #define _XOPEN_SOURCE_EXTENDED 1
1560 _ACEOF
1563 esac
1566 cat >>confdefs.h <<\_ACEOF
1567 #define _POSIX_C_SOURCE 200112L
1568 _ACEOF
1574 # SGI compilers allow the specification of the both the ABI and the
1575 # ISA on the command line. Depending on the values of these switches,
1576 # different and often incompatable code will be generated.
1578 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1579 # thus supply support for various ABI/ISA combinations. The MACHDEP
1580 # variable is also adjusted.
1583 if test ! -z "$SGI_ABI"
1584 then
1585 CC="cc $SGI_ABI"
1586 LDFLAGS="$SGI_ABI $LDFLAGS"
1587 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1589 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1590 echo "${ECHO_T}$MACHDEP" >&6
1592 # And add extra plat-mac for darwin
1595 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1596 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1597 if test -z "$EXTRAPLATDIR"
1598 then
1599 case $MACHDEP in
1600 darwin)
1601 EXTRAPLATDIR="\$(PLATMACDIRS)"
1602 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1605 EXTRAPLATDIR=""
1606 EXTRAMACHDEPPATH=""
1608 esac
1610 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1611 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1613 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1614 # it may influence the way we can build extensions, so distutils
1615 # needs to check it
1617 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1619 # checks for alternative programs
1621 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1622 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1623 # just to get things to compile and link. Users are free to override OPT
1624 # when running configure or make. The build should not break if they do.
1625 # BASECFLAGS should generally not be messed with, however.
1627 # XXX shouldn't some/most/all of this code be merged with the stuff later
1628 # on that fiddles with OPT and BASECFLAGS?
1629 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1630 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1632 # Check whether --with-gcc or --without-gcc was given.
1633 if test "${with_gcc+set}" = set; then
1634 withval="$with_gcc"
1636 case $withval in
1637 no) CC=cc
1638 without_gcc=yes;;
1639 yes) CC=gcc
1640 without_gcc=no;;
1641 *) CC=$withval
1642 without_gcc=$withval;;
1643 esac
1644 else
1646 case $ac_sys_system in
1647 AIX*) CC=cc_r
1648 without_gcc=;;
1649 BeOS*)
1650 case $BE_HOST_CPU in
1651 ppc)
1652 CC=mwcc
1653 without_gcc=yes
1654 BASECFLAGS="$BASECFLAGS -export pragma"
1655 OPT="$OPT -O"
1656 LDFLAGS="$LDFLAGS -nodup"
1658 x86)
1659 CC=gcc
1660 without_gcc=no
1661 OPT="$OPT -O"
1664 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1665 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1666 { (exit 1); exit 1; }; }
1668 esac
1669 AR="\$(srcdir)/Modules/ar_beos"
1670 RANLIB=:
1672 Monterey*)
1673 RANLIB=:
1674 without_gcc=;;
1675 *) without_gcc=no;;
1676 esac
1678 echo "$as_me:$LINENO: result: $without_gcc" >&5
1679 echo "${ECHO_T}$without_gcc" >&6
1683 MAINOBJ=python.o
1684 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1685 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1687 # Check whether --with-cxx or --without-cxx was given.
1688 if test "${with_cxx+set}" = set; then
1689 withval="$with_cxx"
1691 check_cxx=no
1692 case $withval in
1693 no) CXX=
1694 with_cxx=no;;
1695 *) CXX=$withval
1696 MAINOBJ=ccpython.o
1697 with_cxx=$withval;;
1698 esac
1699 else
1701 with_cxx=no
1702 check_cxx=yes
1705 echo "$as_me:$LINENO: result: $with_cxx" >&5
1706 echo "${ECHO_T}$with_cxx" >&6
1708 if test "$with_cxx" = "yes"
1709 then
1710 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1711 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1712 { (exit 1); exit 1; }; }
1718 if test "$check_cxx" = "yes"
1719 then
1720 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CXX+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$CXX"; then
1730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CXX="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 CXX=$ac_cv_prog_CXX
1749 if test -n "$CXX"; then
1750 echo "$as_me:$LINENO: result: $CXX" >&5
1751 echo "${ECHO_T}$CXX" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$CXX" && break
1758 done
1759 test -n "$CXX" || CXX="notfound"
1761 if test "$CXX" = "notfound"
1762 then
1763 CXX=
1764 else
1765 ac_ext=cc
1766 ac_cpp='$CXXCPP $CPPFLAGS'
1767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1791 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C++ compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1848 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C++ compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 # If the user switches compilers, we can't believe the cache
1934 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1935 then
1936 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&5
1938 echo "$as_me: error: cached CC is different -- throw away $cache_file
1939 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1940 { (exit 1); exit 1; }; }
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1970 done
1971 done
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1986 ac_ct_CC=$CC
1987 # Extract the first word of "gcc", so it can be a program name with args.
1988 set dummy gcc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC="gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 CC=$ac_ct_CC
2023 else
2024 CC="$ac_cv_prog_CC"
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="${ac_tool_prefix}cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2065 if test -z "$ac_cv_prog_CC"; then
2066 ac_ct_CC=$CC
2067 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC="cc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2097 else
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 CC=$ac_ct_CC
2103 else
2104 CC="$ac_cv_prog_CC"
2108 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 ac_prog_rejected=no
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128 ac_prog_rejected=yes
2129 continue
2131 ac_cv_prog_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy $ac_cv_prog_CC
2141 shift
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2146 shift
2147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154 echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2156 else
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 for ac_prog in cl
2166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2187 done
2188 done
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$CC" && break
2202 done
2204 if test -z "$CC"; then
2205 ac_ct_CC=$CC
2206 for ac_prog in cl
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_ac_ct_CC="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2235 if test -n "$ac_ct_CC"; then
2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237 echo "${ECHO_T}$ac_ct_CC" >&6
2238 else
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$ac_ct_CC" && break
2244 done
2246 CC=$ac_ct_CC
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO:" \
2260 "checking for C compiler version" >&5
2261 ac_compiler=`set X $ac_compile; echo $2`
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263 (eval $ac_compiler --version </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268 (eval $ac_compiler -v </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273 (eval $ac_compiler -V </dev/null >&5) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2290 return 0;
2292 _ACEOF
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2297 # of exeext.
2298 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302 (eval $ac_link_default) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Find the output, starting from the most likely. This scheme is
2307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # resort.
2310 # Be careful to initialize this variable, since it used to be cached.
2311 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2312 ac_cv_exeext=
2313 # b.out is created by i960 compilers.
2314 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316 test -f "$ac_file" || continue
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2320 conftest.$ac_ext )
2321 # This is the source file.
2323 [ab].out )
2324 # We found the default executable, but exeext='' is most
2325 # certainly right.
2326 break;;
2327 *.* )
2328 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 # FIXME: I believe we export ac_cv_exeext for Libtool,
2330 # but it would be cool to find out if it's true. Does anybody
2331 # maintain Libtool? --akim.
2332 export ac_cv_exeext
2333 break;;
2335 break;;
2336 esac
2337 done
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }
2349 ac_exeext=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 cross_compiling=no
2367 else
2368 if test "$cross_compiling" = maybe; then
2369 cross_compiling=yes
2370 else
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385 ac_clean_files=$ac_clean_files_save
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6
2393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2403 # `rm'.
2404 for ac_file in conftest.exe conftest conftest.*; do
2405 test -f "$ac_file" || continue
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409 export ac_cv_exeext
2410 break;;
2411 * ) break;;
2412 esac
2413 done
2414 else
2415 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2422 rm -f conftest$ac_cv_exeext
2423 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424 echo "${ECHO_T}$ac_cv_exeext" >&6
2426 rm -f conftest.$ac_ext
2427 EXEEXT=$ac_cv_exeext
2428 ac_exeext=$EXEEXT
2429 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431 if test "${ac_cv_objext+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.o conftest.obj
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2459 break;;
2460 esac
2461 done
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476 echo "${ECHO_T}$ac_cv_objext" >&6
2477 OBJEXT=$ac_cv_objext
2478 ac_objext=$OBJEXT
2479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2494 #ifndef __GNUC__
2495 choke me
2496 #endif
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 ac_compiler_gnu=yes
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 ac_compiler_gnu=no
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS=${CFLAGS+set}
2539 ac_save_CFLAGS=$CFLAGS
2540 CFLAGS="-g"
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_prog_cc_g=yes
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 ac_cv_prog_cc_g=no
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595 CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597 if test "$GCC" = yes; then
2598 CFLAGS="-g -O2"
2599 else
2600 CFLAGS="-g"
2602 else
2603 if test "$GCC" = yes; then
2604 CFLAGS="-O2"
2605 else
2606 CFLAGS=
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #include <stdarg.h>
2623 #include <stdio.h>
2624 #include <sys/types.h>
2625 #include <sys/stat.h>
2626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2627 struct buf { int x; };
2628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2629 static char *e (p, i)
2630 char **p;
2631 int i;
2633 return p[i];
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2637 char *s;
2638 va_list v;
2639 va_start (v,p);
2640 s = g (p, va_arg (v,int));
2641 va_end (v);
2642 return s;
2645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2646 function prototypes and stuff, but not '\xHH' hex character constants.
2647 These don't provoke an error unfortunately, instead are silently treated
2648 as 'x'. The following induces an error, until -std1 is added to get
2649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2650 array size at least. It's necessary to write '\x00'==0 to get something
2651 that's true only with -std1. */
2652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654 int test (int i, double x);
2655 struct s1 {int (*f) (int a);};
2656 struct s2 {int (*f) (double a);};
2657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2658 int argc;
2659 char **argv;
2661 main ()
2663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2665 return 0;
2667 _ACEOF
2668 # Don't try gcc -ansi; that turns off useful extensions and
2669 # breaks some systems' header files.
2670 # AIX -qlanglvl=ansi
2671 # Ultrix and OSF/1 -std1
2672 # HP-UX 10.20 and later -Ae
2673 # HP-UX older versions -Aa -D_HPUX_SOURCE
2674 # SVR4 -Xc -D__EXTENSIONS__
2675 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677 CC="$ac_save_CC $ac_arg"
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_stdc=$ac_arg
2701 break
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2707 rm -f conftest.err conftest.$ac_objext
2708 done
2709 rm -f conftest.$ac_ext conftest.$ac_objext
2710 CC=$ac_save_CC
2714 case "x$ac_cv_prog_cc_stdc" in
2715 x|xno)
2716 echo "$as_me:$LINENO: result: none needed" >&5
2717 echo "${ECHO_T}none needed" >&6 ;;
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2721 CC="$CC $ac_cv_prog_cc_stdc" ;;
2722 esac
2724 # Some people use a C++ compiler to compile C. Since we use `exit',
2725 # in C++ we need to declare it. In case someone uses the same compiler
2726 # for both compiling C and C++ we need to have the C++ compiler decide
2727 # the declaration of exit, since it's the most demanding environment.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #ifndef __cplusplus
2730 choke me
2731 #endif
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration in \
2756 '' \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2761 'void exit (int);'
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769 $ac_declaration
2770 #include <stdlib.h>
2772 main ()
2774 exit (42);
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 continue
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2817 main ()
2819 exit (42);
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 break
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 done
2854 rm -f conftest*
2855 if test -n "$ac_declaration"; then
2856 echo '#ifdef __cplusplus' >>confdefs.h
2857 echo $ac_declaration >>confdefs.h
2858 echo '#endif' >>confdefs.h
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 # checks for UNIX variants that set C preprocessor variables
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885 CPP=
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 # Double quotes because CPP needs to be expanded
2892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914 Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927 else
2928 ac_cpp_err=
2930 else
2931 ac_cpp_err=yes
2933 if test -z "$ac_cpp_err"; then
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2940 continue
2942 rm -f conftest.err conftest.$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 else
2966 ac_cpp_err=
2968 else
2969 ac_cpp_err=yes
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2973 continue
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2982 rm -f conftest.err conftest.$ac_ext
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988 break
2991 done
2992 ac_cv_prog_CPP=$CPP
2995 CPP=$ac_cv_prog_CPP
2996 else
2997 ac_cv_prog_CPP=$CPP
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021 Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 else
3035 ac_cpp_err=
3037 else
3038 ac_cpp_err=yes
3040 if test -z "$ac_cpp_err"; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3047 continue
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 else
3073 ac_cpp_err=
3075 else
3076 ac_cpp_err=yes
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3080 continue
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3089 rm -f conftest.err conftest.$ac_ext
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3096 else
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3117 then ac_cv_prog_egrep='grep -E'
3118 else ac_cv_prog_egrep='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for AIX" >&5
3128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #ifdef _AIX
3137 #endif
3139 _ACEOF
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 $EGREP "yes" >/dev/null 2>&1; then
3142 echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6
3144 cat >>confdefs.h <<\_ACEOF
3145 #define _ALL_SOURCE 1
3146 _ACEOF
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3152 rm -f conftest*
3156 # Check for unsupported systems
3157 case $ac_sys_system/$ac_sys_release in
3158 Linux*/1*)
3159 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3160 echo See README for details.
3161 exit 1;;
3162 esac
3165 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3166 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3168 # Check whether --with-suffix or --without-suffix was given.
3169 if test "${with_suffix+set}" = set; then
3170 withval="$with_suffix"
3172 case $withval in
3173 no) EXEEXT=;;
3174 yes) EXEEXT=.exe;;
3175 *) EXEEXT=$withval;;
3176 esac
3178 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3179 echo "${ECHO_T}$EXEEXT" >&6
3181 # Test whether we're running on a non-case-sensitive system, in which
3182 # case we give a warning if no ext is given
3184 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3185 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3186 if test ! -d CaseSensitiveTestDir; then
3187 mkdir CaseSensitiveTestDir
3190 if test -d casesensitivetestdir
3191 then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193 echo "${ECHO_T}yes" >&6
3194 BUILDEXEEXT=.exe
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 BUILDEXEEXT=$EXEEXT
3200 rmdir CaseSensitiveTestDir
3202 case $MACHDEP in
3203 bsdos*)
3204 case $CC in
3205 gcc) CC="$CC -D_HAVE_BSDI";;
3206 esac;;
3207 esac
3209 case $ac_sys_system in
3210 hp*|HP*)
3211 case $CC in
3212 cc|*/cc) CC="$CC -Ae";;
3213 esac;;
3214 Monterey*)
3215 case $CC in
3216 cc) CC="$CC -Wl,-Bexport";;
3217 esac;;
3218 SunOS*)
3219 # Some functions have a prototype only with that define, e.g. confstr
3221 cat >>confdefs.h <<\_ACEOF
3222 #define __EXTENSIONS__ 1
3223 _ACEOF
3226 esac
3230 echo "$as_me:$LINENO: checking LIBRARY" >&5
3231 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3232 if test -z "$LIBRARY"
3233 then
3234 LIBRARY='libpython$(VERSION).a'
3236 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3237 echo "${ECHO_T}$LIBRARY" >&6
3239 # LDLIBRARY is the name of the library to link against (as opposed to the
3240 # name of the library into which to insert object files). BLDLIBRARY is also
3241 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3242 # is blank as the main program is not linked directly against LDLIBRARY.
3243 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3244 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3245 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3246 # DLLLIBRARY is the shared (i.e., DLL) library.
3248 # RUNSHARED is used to run shared python without installed libraries
3250 # INSTSONAME is the name of the shared library that will be use to install
3251 # on the system - some systems like version suffix, others don't
3258 LDLIBRARY="$LIBRARY"
3259 BLDLIBRARY='$(LDLIBRARY)'
3260 INSTSONAME='$(LDLIBRARY)'
3261 DLLLIBRARY=''
3262 LDLIBRARYDIR=''
3263 RUNSHARED=''
3265 # LINKCC is the command that links the python executable -- default is $(CC).
3266 # If CXX is set, and if it is needed to link a main function that was
3267 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3268 # python might then depend on the C++ runtime
3269 # This is altered for AIX in order to build the export list before
3270 # linking.
3272 echo "$as_me:$LINENO: checking LINKCC" >&5
3273 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3274 if test -z "$LINKCC"
3275 then
3276 if test -z "$CXX"; then
3277 LINKCC="\$(PURIFY) \$(CC)"
3278 else
3279 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3280 $CXX -c conftest_a.cc # 2>&5
3281 echo 'void foo(){}' > conftest_b.$ac_ext
3282 $CC -c conftest_b.$ac_ext # 2>&5
3283 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3284 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3285 then
3286 LINKCC="\$(PURIFY) \$(CC)"
3287 else
3288 LINKCC="\$(PURIFY) \$(CXX)"
3290 rm -fr conftest*
3292 case $ac_sys_system in
3293 AIX*)
3294 exp_extra="\"\""
3295 if test $ac_sys_release -ge 5 -o \
3296 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 exp_extra="."
3299 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3300 Monterey64*)
3301 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3302 esac
3304 echo "$as_me:$LINENO: result: $LINKCC" >&5
3305 echo "${ECHO_T}$LINKCC" >&6
3307 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3308 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311 enableval="$enable_shared"
3315 if test -z "$enable_shared"
3316 then
3317 case $ac_sys_system in
3318 CYGWIN* | atheos*)
3319 enable_shared="yes";;
3321 enable_shared="no";;
3322 esac
3324 echo "$as_me:$LINENO: result: $enable_shared" >&5
3325 echo "${ECHO_T}$enable_shared" >&6
3327 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3328 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3329 # Check whether --enable-profiling or --disable-profiling was given.
3330 if test "${enable_profiling+set}" = set; then
3331 enableval="$enable_profiling"
3332 ac_save_cc="$CC"
3333 CC="$CC -pg"
3334 if test "$cross_compiling" = yes; then
3335 ac_enable_profiling="no"
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 int main() { return 0; }
3344 _ACEOF
3345 rm -f conftest$ac_exeext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347 (eval $ac_link) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_enable_profiling="yes"
3357 else
3358 echo "$as_me: program exited with status $ac_status" >&5
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ( exit $ac_status )
3363 ac_enable_profiling="no"
3365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3367 CC="$ac_save_cc"
3369 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3370 echo "${ECHO_T}$ac_enable_profiling" >&6
3372 case "$ac_enable_profiling" in
3373 "yes")
3374 BASECFLAGS="-pg $BASECFLAGS"
3375 LDFLAGS="-pg $LDFLAGS"
3377 esac
3379 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3380 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3382 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3383 # library that we build, but we do not want to link against it (we
3384 # will find it with a -framework option). For this reason there is an
3385 # extra variable BLDLIBRARY against which Python and the extension
3386 # modules are linked, BLDLIBRARY. This is normally the same as
3387 # LDLIBRARY, but empty for MacOSX framework builds.
3388 if test "$enable_framework"
3389 then
3390 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3391 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY=''
3393 else
3394 BLDLIBRARY='$(LDLIBRARY)'
3397 # Other platforms follow
3398 if test $enable_shared = "yes"; then
3400 cat >>confdefs.h <<\_ACEOF
3401 #define Py_ENABLE_SHARED 1
3402 _ACEOF
3404 case $ac_sys_system in
3405 BeOS*)
3406 LDLIBRARY='libpython$(VERSION).so'
3408 CYGWIN*)
3409 LDLIBRARY='libpython$(VERSION).dll.a'
3410 DLLLIBRARY='libpython$(VERSION).dll'
3412 SunOS*)
3413 LDLIBRARY='libpython$(VERSION).so'
3414 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3415 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3416 INSTSONAME="$LDLIBRARY".$SOVERSION
3418 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3419 LDLIBRARY='libpython$(VERSION).so'
3420 BLDLIBRARY='-L. -lpython$(VERSION)'
3421 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3422 case $ac_sys_system in
3423 FreeBSD*)
3424 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3426 esac
3427 INSTSONAME="$LDLIBRARY".$SOVERSION
3429 hp*|HP*)
3430 LDLIBRARY='libpython$(VERSION).sl'
3431 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3432 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3434 OSF*)
3435 LDLIBRARY='libpython$(VERSION).so'
3436 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3437 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3439 atheos*)
3440 LDLIBRARY='libpython$(VERSION).so'
3441 BLDLIBRARY='-L. -lpython$(VERSION)'
3442 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 esac
3445 else # shared is disabled
3446 case $ac_sys_system in
3447 CYGWIN*)
3448 BLDLIBRARY='$(LIBRARY)'
3449 LDLIBRARY='libpython$(VERSION).dll.a'
3451 esac
3454 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3455 echo "${ECHO_T}$LDLIBRARY" >&6
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_RANLIB+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test -n "$RANLIB"; then
3466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3484 RANLIB=$ac_cv_prog_RANLIB
3485 if test -n "$RANLIB"; then
3486 echo "$as_me:$LINENO: result: $RANLIB" >&5
3487 echo "${ECHO_T}$RANLIB" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_RANLIB"; then
3495 ac_ct_RANLIB=$RANLIB
3496 # Extract the first word of "ranlib", so it can be a program name with args.
3497 set dummy ranlib; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_RANLIB"; then
3504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_RANLIB="ranlib"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3520 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3524 if test -n "$ac_ct_RANLIB"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3526 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 else
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 RANLIB=$ac_ct_RANLIB
3533 else
3534 RANLIB="$ac_cv_prog_RANLIB"
3538 for ac_prog in ar aal
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_AR+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test -n "$AR"; then
3548 ac_cv_prog_AR="$AR" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AR="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3566 AR=$ac_cv_prog_AR
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$AR" && break
3576 done
3577 test -n "$AR" || AR="ar"
3581 # Extract the first word of "svnversion", so it can be a program name with args.
3582 set dummy svnversion; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$SVNVERSION"; then
3589 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_SVNVERSION="found"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3605 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3608 SVNVERSION=$ac_cv_prog_SVNVERSION
3609 if test -n "$SVNVERSION"; then
3610 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3611 echo "${ECHO_T}$SVNVERSION" >&6
3612 else
3613 echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3617 if test $SVNVERSION = found
3618 then
3619 SVNVERSION="svnversion \$(srcdir)"
3620 else
3621 SVNVERSION="echo exported"
3624 case $MACHDEP in
3625 bsdos*|hp*|HP*)
3626 # install -d does not work on BSDI or HP-UX
3627 if test -z "$INSTALL"
3628 then
3629 INSTALL="${srcdir}/install-sh -c"
3631 esac
3632 ac_aux_dir=
3633 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3634 if test -f $ac_dir/install-sh; then
3635 ac_aux_dir=$ac_dir
3636 ac_install_sh="$ac_aux_dir/install-sh -c"
3637 break
3638 elif test -f $ac_dir/install.sh; then
3639 ac_aux_dir=$ac_dir
3640 ac_install_sh="$ac_aux_dir/install.sh -c"
3641 break
3642 elif test -f $ac_dir/shtool; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/shtool install -c"
3645 break
3647 done
3648 if test -z "$ac_aux_dir"; then
3649 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3650 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3651 { (exit 1); exit 1; }; }
3653 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3654 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3655 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3663 # AIX /bin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3682 case $as_dir/ in
3683 ./ | .// | /cC/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3686 /usr/ucb/* ) ;;
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3690 # by default.
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3702 else
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3707 done
3708 done
3710 esac
3711 done
3715 if test "${ac_cv_path_install+set}" = set; then
3716 INSTALL=$ac_cv_path_install
3717 else
3718 # As a last resort, use the slow shell script. We don't cache a
3719 # path for INSTALL within a source directory, because that will
3720 # break other packages using the cache if that directory is
3721 # removed, or if the path is relative.
3722 INSTALL=$ac_install_sh
3725 echo "$as_me:$LINENO: result: $INSTALL" >&5
3726 echo "${ECHO_T}$INSTALL" >&6
3728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3729 # It thinks the first close brace ends the variable substitution.
3730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3737 # Not every filesystem supports hard links
3739 if test -z "$LN" ; then
3740 case $ac_sys_system in
3741 BeOS*) LN="ln -s";;
3742 CYGWIN*) LN="ln -s";;
3743 atheos*) LN="ln -s";;
3744 *) LN=ln;;
3745 esac
3748 # Check for --with-pydebug
3749 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3750 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3752 # Check whether --with-pydebug or --without-pydebug was given.
3753 if test "${with_pydebug+set}" = set; then
3754 withval="$with_pydebug"
3756 if test "$withval" != no
3757 then
3759 cat >>confdefs.h <<\_ACEOF
3760 #define Py_DEBUG 1
3761 _ACEOF
3763 echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6;
3765 Py_DEBUG='true'
3766 else echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3775 # merged with this chunk of code?
3777 # Optimizer/debugger flags
3778 # ------------------------
3779 # (The following bit of code is complicated enough - please keep things
3780 # indented properly. Just pretend you're editing Python code. ;-)
3782 # There are two parallel sets of case statements below, one that checks to
3783 # see if OPT was set and one that does BASECFLAGS setting based upon
3784 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3785 # user set OPT.
3787 # tweak OPT based on compiler and platform, only if the user didn't set
3788 # it on the command line
3790 if test -z "$OPT"
3791 then
3792 case $GCC in
3793 yes)
3794 case $ac_cv_prog_cc_g in
3795 yes)
3796 if test "$Py_DEBUG" = 'true' ; then
3797 # Optimization messes up debuggers, so turn it off for
3798 # debug builds.
3799 OPT="-g -Wall -Wstrict-prototypes"
3800 else
3801 OPT="-g -O3 -Wall -Wstrict-prototypes"
3805 OPT="-O3 -Wall -Wstrict-prototypes"
3807 esac
3808 case $ac_sys_system in
3809 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3811 esac
3815 OPT="-O"
3817 esac
3819 # The current (beta) Monterey compiler dies with optimizations
3820 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3821 case $ac_sys_system in
3822 Monterey*)
3823 OPT=""
3825 esac
3830 # tweak BASECFLAGS based on compiler and platform
3831 case $GCC in
3832 yes)
3833 # Python violates C99 rules, by casting between incompatible
3834 # pointer types. GCC may generate bad code as a result of that,
3835 # so use -fno-strict-aliasing if supported.
3836 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3837 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3838 ac_save_cc="$CC"
3839 CC="$CC -fno-strict-aliasing"
3840 if test "$cross_compiling" = yes; then
3841 ac_cv_no_strict_aliasing_ok=no
3842 else
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 int main() { return 0; }
3850 _ACEOF
3851 rm -f conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_no_strict_aliasing_ok=yes
3863 else
3864 echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ( exit $ac_status )
3869 ac_cv_no_strict_aliasing_ok=no
3871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3873 CC="$ac_save_cc"
3874 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3875 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3876 if test $ac_cv_no_strict_aliasing_ok = yes
3877 then
3878 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3880 case $ac_sys_system in
3881 SCO_SV*)
3882 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3884 # is there any other compiler on Darwin besides gcc?
3885 Darwin*)
3886 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3888 OSF*)
3889 BASECFLAGS="$BASECFLAGS -mieee"
3891 esac
3895 case $ac_sys_system in
3896 OpenUNIX*|UnixWare*)
3897 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -ieee -std"
3902 SCO_SV*)
3903 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3905 esac
3907 esac
3909 if test "$Py_DEBUG" = 'true'; then
3911 else
3912 OPT="-DNDEBUG $OPT"
3915 if test "$ac_arch_flags"
3916 then
3917 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3920 # disable check for icc since it seems to pass, but generates a warning
3921 if test "$CC" = icc
3922 then
3923 ac_cv_opt_olimit_ok=no
3926 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3927 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3928 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 ac_save_cc="$CC"
3932 CC="$CC -OPT:Olimit=0"
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_opt_olimit_ok=no
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 int main() { return 0; }
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_opt_olimit_ok=yes
3956 else
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ( exit $ac_status )
3962 ac_cv_opt_olimit_ok=no
3964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 CC="$ac_save_cc"
3969 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3970 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3971 if test $ac_cv_opt_olimit_ok = yes; then
3972 case $ac_sys_system in
3973 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3974 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3975 # environment?
3976 Darwin*)
3979 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3981 esac
3982 else
3983 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3984 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3985 if test "${ac_cv_olimit_ok+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 ac_save_cc="$CC"
3989 CC="$CC -Olimit 1500"
3990 if test "$cross_compiling" = yes; then
3991 ac_cv_olimit_ok=no
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 int main() { return 0; }
4000 _ACEOF
4001 rm -f conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_olimit_ok=yes
4013 else
4014 echo "$as_me: program exited with status $ac_status" >&5
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ( exit $ac_status )
4019 ac_cv_olimit_ok=no
4021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 CC="$ac_save_cc"
4026 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4027 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4028 if test $ac_cv_olimit_ok = yes; then
4029 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4033 # On some compilers, pthreads are available without further options
4034 # (e.g. MacOS X). On some of these systems, the compiler will not
4035 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4036 # So we have to see first whether pthreads are available without
4037 # options before we can check whether -Kpthread improves anything.
4038 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4039 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4040 if test "${ac_cv_pthread_is_default+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 if test "$cross_compiling" = yes; then
4044 ac_cv_pthread_is_default=no
4045 else
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 #include <pthread.h>
4055 void* routine(void* p){return NULL;}
4057 int main(){
4058 pthread_t p;
4059 if(pthread_create(&p,NULL,routine,NULL)!=0)
4060 return 1;
4061 (void)pthread_detach(p);
4062 return 0;
4065 _ACEOF
4066 rm -f conftest$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4078 ac_cv_pthread_is_default=yes
4079 ac_cv_kthread=no
4080 ac_cv_pthread=no
4082 else
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ( exit $ac_status )
4088 ac_cv_pthread_is_default=no
4090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4096 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4099 if test $ac_cv_pthread_is_default = yes
4100 then
4101 ac_cv_kpthread=no
4102 else
4103 # -Kpthread, if available, provides the right #defines
4104 # and linker options to make pthread_create available
4105 # Some compilers won't report that they do not support -Kpthread,
4106 # so we need to run a program to see whether it really made the
4107 # function available.
4108 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4109 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4110 if test "${ac_cv_kpthread+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 ac_save_cc="$CC"
4114 CC="$CC -Kpthread"
4115 if test "$cross_compiling" = yes; then
4116 ac_cv_kpthread=no
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 #include <pthread.h>
4127 void* routine(void* p){return NULL;}
4129 int main(){
4130 pthread_t p;
4131 if(pthread_create(&p,NULL,routine,NULL)!=0)
4132 return 1;
4133 (void)pthread_detach(p);
4134 return 0;
4137 _ACEOF
4138 rm -f conftest$ac_exeext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140 (eval $ac_link) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_kpthread=yes
4150 else
4151 echo "$as_me: program exited with status $ac_status" >&5
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ( exit $ac_status )
4156 ac_cv_kpthread=no
4158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4160 CC="$ac_save_cc"
4163 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4164 echo "${ECHO_T}$ac_cv_kpthread" >&6
4167 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4168 then
4169 # -Kthread, if available, provides the right #defines
4170 # and linker options to make pthread_create available
4171 # Some compilers won't report that they do not support -Kthread,
4172 # so we need to run a program to see whether it really made the
4173 # function available.
4174 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4175 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4176 if test "${ac_cv_kthread+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 ac_save_cc="$CC"
4180 CC="$CC -Kthread"
4181 if test "$cross_compiling" = yes; then
4182 ac_cv_kthread=no
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 #include <pthread.h>
4193 void* routine(void* p){return NULL;}
4195 int main(){
4196 pthread_t p;
4197 if(pthread_create(&p,NULL,routine,NULL)!=0)
4198 return 1;
4199 (void)pthread_detach(p);
4200 return 0;
4203 _ACEOF
4204 rm -f conftest$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_kthread=yes
4216 else
4217 echo "$as_me: program exited with status $ac_status" >&5
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ( exit $ac_status )
4222 ac_cv_kthread=no
4224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4226 CC="$ac_save_cc"
4229 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4230 echo "${ECHO_T}$ac_cv_kthread" >&6
4233 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4234 then
4235 # -pthread, if available, provides the right #defines
4236 # and linker options to make pthread_create available
4237 # Some compilers won't report that they do not support -pthread,
4238 # so we need to run a program to see whether it really made the
4239 # function available.
4240 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4241 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4242 if test "${ac_cv_thread+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 ac_save_cc="$CC"
4246 CC="$CC -pthread"
4247 if test "$cross_compiling" = yes; then
4248 ac_cv_pthread=no
4249 else
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 #include <pthread.h>
4259 void* routine(void* p){return NULL;}
4261 int main(){
4262 pthread_t p;
4263 if(pthread_create(&p,NULL,routine,NULL)!=0)
4264 return 1;
4265 (void)pthread_detach(p);
4266 return 0;
4269 _ACEOF
4270 rm -f conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_pthread=yes
4282 else
4283 echo "$as_me: program exited with status $ac_status" >&5
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 ( exit $ac_status )
4288 ac_cv_pthread=no
4290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292 CC="$ac_save_cc"
4295 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4296 echo "${ECHO_T}$ac_cv_pthread" >&6
4299 # If we have set a CC compiler flag for thread support then
4300 # check if it works for CXX, too.
4301 ac_cv_cxx_thread=no
4302 if test ! -z "$CXX"
4303 then
4304 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4305 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4306 ac_save_cxx="$CXX"
4308 if test "$ac_cv_kpthread" = "yes"
4309 then
4310 CXX="$CXX -Kpthread"
4311 ac_cv_cxx_thread=yes
4312 elif test "$ac_cv_kthread" = "yes"
4313 then
4314 CXX="$CXX -Kthread"
4315 ac_cv_cxx_thread=yes
4316 elif test "$ac_cv_pthread" = "yes"
4317 then
4318 CXX="$CXX -pthread"
4319 ac_cv_cxx_thread=yes
4322 if test $ac_cv_cxx_thread = yes
4323 then
4324 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4325 $CXX -c conftest.$ac_ext 2>&5
4326 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4327 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4328 then
4329 ac_cv_cxx_thread=yes
4330 else
4331 ac_cv_cxx_thread=no
4333 rm -fr conftest*
4335 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4336 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4338 CXX="$ac_save_cxx"
4341 # checks for header files
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4359 main ()
4363 return 0;
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_header_stdc=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <string.h>
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4411 else
4412 ac_cv_header_stdc=no
4414 rm -f conftest*
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <stdlib.h>
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev/null 2>&1; then
4432 else
4433 ac_cv_header_stdc=no
4435 rm -f conftest*
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ctype.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464 main ()
4466 int i;
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4470 exit(2);
4471 exit (0);
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4486 else
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4504 _ACEOF
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519 inttypes.h stdint.h unistd.h
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4535 #include <$ac_header>
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 eval "$as_ac_Header=no"
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4577 done
4619 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4620 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4621 stropts.h termios.h thread.h \
4622 unistd.h utime.h \
4623 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4624 sys/modem.h \
4625 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4626 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4627 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4628 bluetooth/bluetooth.h
4630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632 echo "$as_me:$LINENO: checking for $ac_header" >&5
4633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4639 else
4640 # Is the header compilable?
4641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_header_compiler=yes
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_header_compiler=no
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4683 echo "${ECHO_T}$ac_header_compiler" >&6
4685 # Is the header present?
4686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #include <$ac_header>
4695 _ACEOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_c_preproc_warn_flag
4706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4707 else
4708 ac_cpp_err=
4710 else
4711 ac_cpp_err=yes
4713 if test -z "$ac_cpp_err"; then
4714 ac_header_preproc=yes
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 ac_header_preproc=no
4721 rm -f conftest.err conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4723 echo "${ECHO_T}$ac_header_preproc" >&6
4725 # So? What about this header?
4726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4727 yes:no: )
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4732 ac_header_preproc=yes
4734 no:yes:* )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 cat <<\_ASBOX
4749 ## ------------------------------------------------ ##
4750 ## Report this to http://www.python.org/python-bugs ##
4751 ## ------------------------------------------------ ##
4752 _ASBOX
4754 sed "s/^/$as_me: WARNING: /" >&2
4756 esac
4757 echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 eval "$as_ac_Header=\$ac_header_preproc"
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4775 done
4782 ac_header_dirent=no
4783 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4784 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4785 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4786 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 #include <$ac_hdr>
4800 main ()
4802 if ((DIR *) 0)
4803 return 0;
4805 return 0;
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 eval "$as_ac_Header=yes"
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 eval "$as_ac_Header=no"
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4844 _ACEOF
4846 ac_header_dirent=$ac_hdr; break
4849 done
4850 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4851 if test $ac_header_dirent = dirent.h; then
4852 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4853 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4854 if test "${ac_cv_search_opendir+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 ac_func_search_save_LIBS=$LIBS
4858 ac_cv_search_opendir=no
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char opendir ();
4874 main ()
4876 opendir ();
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_search_opendir="none required"
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911 if test "$ac_cv_search_opendir" = no; then
4912 for ac_lib in dir; do
4913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 #ifdef __cplusplus
4923 extern "C"
4924 #endif
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char opendir ();
4929 main ()
4931 opendir ();
4933 return 0;
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_search_opendir="-l$ac_lib"
4959 break
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 done
4969 LIBS=$ac_func_search_save_LIBS
4971 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4972 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4973 if test "$ac_cv_search_opendir" != no; then
4974 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4978 else
4979 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4981 if test "${ac_cv_search_opendir+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 ac_func_search_save_LIBS=$LIBS
4985 ac_cv_search_opendir=no
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
4999 char opendir ();
5001 main ()
5003 opendir ();
5005 return 0;
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_search_opendir="none required"
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext \
5037 conftest$ac_exeext conftest.$ac_ext
5038 if test "$ac_cv_search_opendir" = no; then
5039 for ac_lib in x; do
5040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char opendir ();
5056 main ()
5058 opendir ();
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_search_opendir="-l$ac_lib"
5086 break
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094 done
5096 LIBS=$ac_func_search_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5099 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5100 if test "$ac_cv_search_opendir" != no; then
5101 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5107 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5108 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5109 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <sys/types.h>
5120 main ()
5122 return makedev(0, 0);
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_header_sys_types_h_makedev=yes
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_header_sys_types_h_makedev=no
5156 rm -f conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5161 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5163 if test $ac_cv_header_sys_types_h_makedev = no; then
5164 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5165 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5166 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5167 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5171 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5172 else
5173 # Is the header compilable?
5174 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5175 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5183 #include <sys/mkdev.h>
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_header_compiler=yes
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 ac_header_compiler=no
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5216 echo "${ECHO_T}$ac_header_compiler" >&6
5218 # Is the header present?
5219 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5220 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <sys/mkdev.h>
5228 _ACEOF
5229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null; then
5237 if test -s conftest.err; then
5238 ac_cpp_err=$ac_c_preproc_warn_flag
5239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5240 else
5241 ac_cpp_err=
5243 else
5244 ac_cpp_err=yes
5246 if test -z "$ac_cpp_err"; then
5247 ac_header_preproc=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_header_preproc=no
5254 rm -f conftest.err conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5256 echo "${ECHO_T}$ac_header_preproc" >&6
5258 # So? What about this header?
5259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5260 yes:no: )
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5264 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5265 ac_header_preproc=yes
5267 no:yes:* )
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5275 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5277 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5281 cat <<\_ASBOX
5282 ## ------------------------------------------------ ##
5283 ## Report this to http://www.python.org/python-bugs ##
5284 ## ------------------------------------------------ ##
5285 _ASBOX
5287 sed "s/^/$as_me: WARNING: /" >&2
5289 esac
5290 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5291 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5292 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5298 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5301 if test $ac_cv_header_sys_mkdev_h = yes; then
5303 cat >>confdefs.h <<\_ACEOF
5304 #define MAJOR_IN_MKDEV 1
5305 _ACEOF
5311 if test $ac_cv_header_sys_mkdev_h = no; then
5312 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5313 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5314 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5319 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5320 else
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5323 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 $ac_includes_default
5331 #include <sys/sysmacros.h>
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_header_compiler=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_header_compiler=no
5362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 echo "${ECHO_T}$ac_header_compiler" >&6
5366 # Is the header present?
5367 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5368 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <sys/sysmacros.h>
5376 _ACEOF
5377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388 else
5389 ac_cpp_err=
5391 else
5392 ac_cpp_err=yes
5394 if test -z "$ac_cpp_err"; then
5395 ac_header_preproc=yes
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_header_preproc=no
5402 rm -f conftest.err conftest.$ac_ext
5403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404 echo "${ECHO_T}$ac_header_preproc" >&6
5406 # So? What about this header?
5407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408 yes:no: )
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5412 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5413 ac_header_preproc=yes
5415 no:yes:* )
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5423 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5429 cat <<\_ASBOX
5430 ## ------------------------------------------------ ##
5431 ## Report this to http://www.python.org/python-bugs ##
5432 ## ------------------------------------------------ ##
5433 _ASBOX
5435 sed "s/^/$as_me: WARNING: /" >&2
5437 esac
5438 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5439 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5440 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5445 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5446 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5449 if test $ac_cv_header_sys_sysmacros_h = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define MAJOR_IN_SYSMACROS 1
5453 _ACEOF
5462 # On Solaris, term.h requires curses.h
5464 for ac_header in term.h
5466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5479 #ifdef HAVE_CURSES_H
5480 #include <curses.h>
5481 #endif
5484 #include <$ac_header>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5529 # On Linux, netlink.h requires asm/types.h
5531 for ac_header in linux/netlink.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5546 #ifdef HAVE_ASM_TYPES_H
5547 #include <asm/types.h>
5548 #endif
5549 #ifdef HAVE_SYS_SOCKET_H
5550 #include <sys/socket.h>
5551 #endif
5554 #include <$ac_header>
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 eval "$as_ac_Header=yes"
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 eval "$as_ac_Header=no"
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5590 cat >>confdefs.h <<_ACEOF
5591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5592 _ACEOF
5596 done
5599 # checks for typedefs
5600 was_it_defined=no
5601 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5602 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <time.h>
5611 _ACEOF
5612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613 $EGREP "clock_t" >/dev/null 2>&1; then
5614 was_it_defined=yes
5615 else
5618 cat >>confdefs.h <<\_ACEOF
5619 #define clock_t long
5620 _ACEOF
5624 rm -f conftest*
5626 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5627 echo "${ECHO_T}$was_it_defined" >&6
5629 # Check whether using makedev requires defining _OSF_SOURCE
5630 echo "$as_me:$LINENO: checking for makedev" >&5
5631 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5640 main ()
5642 makedev(0, 0)
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_has_makedev=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_cv_has_makedev=no
5676 rm -f conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5678 if test "$ac_cv_has_makedev" = "no"; then
5679 # we didn't link, try if _OSF_SOURCE will allow us to link
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 #define _OSF_SOURCE 1
5688 #include <sys/types.h>
5691 main ()
5693 makedev(0, 0)
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_has_makedev=yes
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_has_makedev=no
5727 rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 if test "$ac_cv_has_makedev" = "yes"; then
5731 cat >>confdefs.h <<\_ACEOF
5732 #define _OSF_SOURCE 1
5733 _ACEOF
5737 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5738 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5739 if test "$ac_cv_has_makedev" = "yes"; then
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_MAKEDEV 1
5743 _ACEOF
5747 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5748 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5749 # defined, but the compiler does not support pragma redefine_extname,
5750 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5751 # structures (such as rlimit64) without declaring them. As a
5752 # work-around, disable LFS on such configurations
5754 use_lfs=yes
5755 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5756 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 #define _LARGEFILE_SOURCE 1
5765 #define _FILE_OFFSET_BITS 64
5766 #include <sys/resource.h>
5769 main ()
5771 struct rlimit foo;
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 sol_lfs_bug=no
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 sol_lfs_bug=yes
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5807 echo "${ECHO_T}$sol_lfs_bug" >&6
5808 if test "$sol_lfs_bug" = "yes"; then
5809 use_lfs=no
5812 if test "$use_lfs" = "yes"; then
5813 # Two defines needed to enable largefile support on various platforms
5814 # These may affect some typedefs
5816 cat >>confdefs.h <<\_ACEOF
5817 #define _LARGEFILE_SOURCE 1
5818 _ACEOF
5821 cat >>confdefs.h <<\_ACEOF
5822 #define _FILE_OFFSET_BITS 64
5823 _ACEOF
5827 # Add some code to confdefs.h so that the test for off_t works on SCO
5828 cat >> confdefs.h <<\EOF
5829 #if defined(SCO_DS)
5830 #undef _OFF_T
5831 #endif
5834 # Type availability checks
5835 echo "$as_me:$LINENO: checking for mode_t" >&5
5836 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5837 if test "${ac_cv_type_mode_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 $ac_includes_default
5848 main ()
5850 if ((mode_t *) 0)
5851 return 0;
5852 if (sizeof (mode_t))
5853 return 0;
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_type_mode_t=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_type_mode_t=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5890 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5891 if test $ac_cv_type_mode_t = yes; then
5893 else
5895 cat >>confdefs.h <<_ACEOF
5896 #define mode_t int
5897 _ACEOF
5901 echo "$as_me:$LINENO: checking for off_t" >&5
5902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5903 if test "${ac_cv_type_off_t+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5914 main ()
5916 if ((off_t *) 0)
5917 return 0;
5918 if (sizeof (off_t))
5919 return 0;
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_type_off_t=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 ac_cv_type_off_t=no
5953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5956 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5957 if test $ac_cv_type_off_t = yes; then
5959 else
5961 cat >>confdefs.h <<_ACEOF
5962 #define off_t long
5963 _ACEOF
5967 echo "$as_me:$LINENO: checking for pid_t" >&5
5968 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_pid_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5980 main ()
5982 if ((pid_t *) 0)
5983 return 0;
5984 if (sizeof (pid_t))
5985 return 0;
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_pid_t=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_type_pid_t=no
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6023 if test $ac_cv_type_pid_t = yes; then
6025 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define pid_t int
6029 _ACEOF
6033 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6035 if test "${ac_cv_type_signal+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6045 #include <signal.h>
6046 #ifdef signal
6047 # undef signal
6048 #endif
6049 #ifdef __cplusplus
6050 extern "C" void (*signal (int, void (*)(int)))(int);
6051 #else
6052 void (*signal ()) ();
6053 #endif
6056 main ()
6058 int i;
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_type_signal=void
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_type_signal=int
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6095 echo "${ECHO_T}$ac_cv_type_signal" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define RETSIGTYPE $ac_cv_type_signal
6099 _ACEOF
6102 echo "$as_me:$LINENO: checking for size_t" >&5
6103 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6104 if test "${ac_cv_type_size_t+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 $ac_includes_default
6115 main ()
6117 if ((size_t *) 0)
6118 return 0;
6119 if (sizeof (size_t))
6120 return 0;
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_type_size_t=yes
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_type_size_t=no
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6158 if test $ac_cv_type_size_t = yes; then
6160 else
6162 cat >>confdefs.h <<_ACEOF
6163 #define size_t unsigned
6164 _ACEOF
6168 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6169 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6170 if test "${ac_cv_type_uid_t+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6181 _ACEOF
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "uid_t" >/dev/null 2>&1; then
6184 ac_cv_type_uid_t=yes
6185 else
6186 ac_cv_type_uid_t=no
6188 rm -f conftest*
6191 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6192 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6193 if test $ac_cv_type_uid_t = no; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define uid_t int
6197 _ACEOF
6200 cat >>confdefs.h <<\_ACEOF
6201 #define gid_t int
6202 _ACEOF
6206 echo "$as_me:$LINENO: checking for ssize_t" >&5
6207 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6208 if test "${ac_cv_type_ssize_t+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 $ac_includes_default
6219 main ()
6221 if ((ssize_t *) 0)
6222 return 0;
6223 if (sizeof (ssize_t))
6224 return 0;
6226 return 0;
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_type_ssize_t=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_type_ssize_t=no
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6261 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6262 if test $ac_cv_type_ssize_t = yes; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define HAVE_SSIZE_T 1
6266 _ACEOF
6271 # Sizes of various common basic types
6272 # ANSI C requires sizeof(char) == 1, so no need to check it
6273 echo "$as_me:$LINENO: checking for int" >&5
6274 echo $ECHO_N "checking for int... $ECHO_C" >&6
6275 if test "${ac_cv_type_int+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6286 main ()
6288 if ((int *) 0)
6289 return 0;
6290 if (sizeof (int))
6291 return 0;
6293 return 0;
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_type_int=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_cv_type_int=no
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6328 echo "${ECHO_T}$ac_cv_type_int" >&6
6330 echo "$as_me:$LINENO: checking size of int" >&5
6331 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6332 if test "${ac_cv_sizeof_int+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test "$ac_cv_type_int" = yes; then
6336 # The cast to unsigned long works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 if test "$cross_compiling" = yes; then
6341 # Depending upon the size, compute the lo and hi bounds.
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6350 main ()
6352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6353 test_array [0] = 0
6356 return 0;
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_c_werror_flag"
6369 || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_lo=0 ac_mid=0
6382 while :; do
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6391 main ()
6393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6394 test_array [0] = 0
6397 return 0;
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_hi=$ac_mid; break
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_lo=`expr $ac_mid + 1`
6428 if test $ac_lo -le $ac_mid; then
6429 ac_lo= ac_hi=
6430 break
6432 ac_mid=`expr 2 '*' $ac_mid + 1`
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 done
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 main ()
6450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6451 test_array [0] = 0
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_hi=-1 ac_mid=-1
6480 while :; do
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6489 main ()
6491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6492 test_array [0] = 0
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_lo=$ac_mid; break
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_hi=`expr '(' $ac_mid ')' - 1`
6526 if test $ac_mid -le $ac_hi; then
6527 ac_lo= ac_hi=
6528 break
6530 ac_mid=`expr 2 '*' $ac_mid`
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 done
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_lo= ac_hi=
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543 # Binary search between lo and hi bounds.
6544 while test "x$ac_lo" != "x$ac_hi"; do
6545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6554 main ()
6556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6557 test_array [0] = 0
6560 return 0;
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_hi=$ac_mid
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_lo=`expr '(' $ac_mid ')' + 1`
6592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6593 done
6594 case $ac_lo in
6595 ?*) ac_cv_sizeof_int=$ac_lo;;
6596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; } ;;
6601 esac
6602 else
6603 if test "$cross_compiling" = yes; then
6604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6605 See \`config.log' for more details." >&5
6606 echo "$as_me: error: cannot run test program while cross compiling
6607 See \`config.log' for more details." >&2;}
6608 { (exit 1); exit 1; }; }
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 long longval () { return (long) (sizeof (int)); }
6618 unsigned long ulongval () { return (long) (sizeof (int)); }
6619 #include <stdio.h>
6620 #include <stdlib.h>
6622 main ()
6625 FILE *f = fopen ("conftest.val", "w");
6626 if (! f)
6627 exit (1);
6628 if (((long) (sizeof (int))) < 0)
6630 long i = longval ();
6631 if (i != ((long) (sizeof (int))))
6632 exit (1);
6633 fprintf (f, "%ld\n", i);
6635 else
6637 unsigned long i = ulongval ();
6638 if (i != ((long) (sizeof (int))))
6639 exit (1);
6640 fprintf (f, "%lu\n", i);
6642 exit (ferror (f) || fclose (f) != 0);
6645 return 0;
6647 _ACEOF
6648 rm -f conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_sizeof_int=`cat conftest.val`
6660 else
6661 echo "$as_me: program exited with status $ac_status" >&5
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 ( exit $ac_status )
6666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6667 See \`config.log' for more details." >&5
6668 echo "$as_me: error: cannot compute sizeof (int), 77
6669 See \`config.log' for more details." >&2;}
6670 { (exit 1); exit 1; }; }
6672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675 rm -f conftest.val
6676 else
6677 ac_cv_sizeof_int=0
6680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6681 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6682 cat >>confdefs.h <<_ACEOF
6683 #define SIZEOF_INT $ac_cv_sizeof_int
6684 _ACEOF
6687 echo "$as_me:$LINENO: checking for long" >&5
6688 echo $ECHO_N "checking for long... $ECHO_C" >&6
6689 if test "${ac_cv_type_long+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6700 main ()
6702 if ((long *) 0)
6703 return 0;
6704 if (sizeof (long))
6705 return 0;
6707 return 0;
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_type_long=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_cv_type_long=no
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6742 echo "${ECHO_T}$ac_cv_type_long" >&6
6744 echo "$as_me:$LINENO: checking size of long" >&5
6745 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6746 if test "${ac_cv_sizeof_long+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test "$ac_cv_type_long" = yes; then
6750 # The cast to unsigned long works around a bug in the HP C Compiler
6751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6753 # This bug is HP SR number 8606223364.
6754 if test "$cross_compiling" = yes; then
6755 # Depending upon the size, compute the lo and hi bounds.
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6764 main ()
6766 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6767 test_array [0] = 0
6770 return 0;
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_lo=0 ac_mid=0
6796 while :; do
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6805 main ()
6807 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6808 test_array [0] = 0
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_hi=$ac_mid; break
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 ac_lo=`expr $ac_mid + 1`
6842 if test $ac_lo -le $ac_mid; then
6843 ac_lo= ac_hi=
6844 break
6846 ac_mid=`expr 2 '*' $ac_mid + 1`
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 done
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6862 main ()
6864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6865 test_array [0] = 0
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_hi=-1 ac_mid=-1
6894 while :; do
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6903 main ()
6905 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6906 test_array [0] = 0
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_lo=$ac_mid; break
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_hi=`expr '(' $ac_mid ')' - 1`
6940 if test $ac_mid -le $ac_hi; then
6941 ac_lo= ac_hi=
6942 break
6944 ac_mid=`expr 2 '*' $ac_mid`
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 done
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_lo= ac_hi=
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957 # Binary search between lo and hi bounds.
6958 while test "x$ac_lo" != "x$ac_hi"; do
6959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6968 main ()
6970 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6971 test_array [0] = 0
6974 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_hi=$ac_mid
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_lo=`expr '(' $ac_mid ')' + 1`
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 done
7008 case $ac_lo in
7009 ?*) ac_cv_sizeof_long=$ac_lo;;
7010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; } ;;
7015 esac
7016 else
7017 if test "$cross_compiling" = yes; then
7018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: cannot run test program while cross compiling
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 $ac_includes_default
7031 long longval () { return (long) (sizeof (long)); }
7032 unsigned long ulongval () { return (long) (sizeof (long)); }
7033 #include <stdio.h>
7034 #include <stdlib.h>
7036 main ()
7039 FILE *f = fopen ("conftest.val", "w");
7040 if (! f)
7041 exit (1);
7042 if (((long) (sizeof (long))) < 0)
7044 long i = longval ();
7045 if (i != ((long) (sizeof (long))))
7046 exit (1);
7047 fprintf (f, "%ld\n", i);
7049 else
7051 unsigned long i = ulongval ();
7052 if (i != ((long) (sizeof (long))))
7053 exit (1);
7054 fprintf (f, "%lu\n", i);
7056 exit (ferror (f) || fclose (f) != 0);
7059 return 0;
7061 _ACEOF
7062 rm -f conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_sizeof_long=`cat conftest.val`
7074 else
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ( exit $ac_status )
7080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7081 See \`config.log' for more details." >&5
7082 echo "$as_me: error: cannot compute sizeof (long), 77
7083 See \`config.log' for more details." >&2;}
7084 { (exit 1); exit 1; }; }
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7089 rm -f conftest.val
7090 else
7091 ac_cv_sizeof_long=0
7094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7095 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7096 cat >>confdefs.h <<_ACEOF
7097 #define SIZEOF_LONG $ac_cv_sizeof_long
7098 _ACEOF
7101 echo "$as_me:$LINENO: checking for void *" >&5
7102 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7103 if test "${ac_cv_type_void_p+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7114 main ()
7116 if ((void * *) 0)
7117 return 0;
7118 if (sizeof (void *))
7119 return 0;
7121 return 0;
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_type_void_p=yes
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_type_void_p=no
7153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7156 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7158 echo "$as_me:$LINENO: checking size of void *" >&5
7159 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7160 if test "${ac_cv_sizeof_void_p+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test "$ac_cv_type_void_p" = yes; then
7164 # The cast to unsigned long works around a bug in the HP C Compiler
7165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7167 # This bug is HP SR number 8606223364.
7168 if test "$cross_compiling" = yes; then
7169 # Depending upon the size, compute the lo and hi bounds.
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7178 main ()
7180 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7181 test_array [0] = 0
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_lo=0 ac_mid=0
7210 while :; do
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7219 main ()
7221 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7222 test_array [0] = 0
7225 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_hi=$ac_mid; break
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_lo=`expr $ac_mid + 1`
7256 if test $ac_lo -le $ac_mid; then
7257 ac_lo= ac_hi=
7258 break
7260 ac_mid=`expr 2 '*' $ac_mid + 1`
7262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 done
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 $ac_includes_default
7276 main ()
7278 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7279 test_array [0] = 0
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -z "$ac_c_werror_flag"
7295 || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 (eval $ac_try) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 ac_hi=-1 ac_mid=-1
7308 while :; do
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7317 main ()
7319 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7320 test_array [0] = 0
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_lo=$ac_mid; break
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_hi=`expr '(' $ac_mid ')' - 1`
7354 if test $ac_mid -le $ac_hi; then
7355 ac_lo= ac_hi=
7356 break
7358 ac_mid=`expr 2 '*' $ac_mid`
7360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361 done
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_lo= ac_hi=
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 # Binary search between lo and hi bounds.
7372 while test "x$ac_lo" != "x$ac_hi"; do
7373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7382 main ()
7384 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7385 test_array [0] = 0
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_hi=$ac_mid
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ac_lo=`expr '(' $ac_mid ')' + 1`
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 done
7422 case $ac_lo in
7423 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7424 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; } ;;
7429 esac
7430 else
7431 if test "$cross_compiling" = yes; then
7432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7433 See \`config.log' for more details." >&5
7434 echo "$as_me: error: cannot run test program while cross compiling
7435 See \`config.log' for more details." >&2;}
7436 { (exit 1); exit 1; }; }
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 long longval () { return (long) (sizeof (void *)); }
7446 unsigned long ulongval () { return (long) (sizeof (void *)); }
7447 #include <stdio.h>
7448 #include <stdlib.h>
7450 main ()
7453 FILE *f = fopen ("conftest.val", "w");
7454 if (! f)
7455 exit (1);
7456 if (((long) (sizeof (void *))) < 0)
7458 long i = longval ();
7459 if (i != ((long) (sizeof (void *))))
7460 exit (1);
7461 fprintf (f, "%ld\n", i);
7463 else
7465 unsigned long i = ulongval ();
7466 if (i != ((long) (sizeof (void *))))
7467 exit (1);
7468 fprintf (f, "%lu\n", i);
7470 exit (ferror (f) || fclose (f) != 0);
7473 return 0;
7475 _ACEOF
7476 rm -f conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 ac_cv_sizeof_void_p=`cat conftest.val`
7488 else
7489 echo "$as_me: program exited with status $ac_status" >&5
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ( exit $ac_status )
7494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7495 See \`config.log' for more details." >&5
7496 echo "$as_me: error: cannot compute sizeof (void *), 77
7497 See \`config.log' for more details." >&2;}
7498 { (exit 1); exit 1; }; }
7500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7503 rm -f conftest.val
7504 else
7505 ac_cv_sizeof_void_p=0
7508 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7510 cat >>confdefs.h <<_ACEOF
7511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7512 _ACEOF
7515 echo "$as_me:$LINENO: checking for short" >&5
7516 echo $ECHO_N "checking for short... $ECHO_C" >&6
7517 if test "${ac_cv_type_short+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7528 main ()
7530 if ((short *) 0)
7531 return 0;
7532 if (sizeof (short))
7533 return 0;
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_type_short=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_cv_type_short=no
7567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7570 echo "${ECHO_T}$ac_cv_type_short" >&6
7572 echo "$as_me:$LINENO: checking size of short" >&5
7573 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7574 if test "${ac_cv_sizeof_short+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 if test "$ac_cv_type_short" = yes; then
7578 # The cast to unsigned long works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 if test "$cross_compiling" = yes; then
7583 # Depending upon the size, compute the lo and hi bounds.
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7592 main ()
7594 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7595 test_array [0] = 0
7598 return 0;
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_lo=0 ac_mid=0
7624 while :; do
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7633 main ()
7635 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7636 test_array [0] = 0
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_hi=$ac_mid; break
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_lo=`expr $ac_mid + 1`
7670 if test $ac_lo -le $ac_mid; then
7671 ac_lo= ac_hi=
7672 break
7674 ac_mid=`expr 2 '*' $ac_mid + 1`
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 done
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7690 main ()
7692 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7693 test_array [0] = 0
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_c_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest.$ac_objext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_hi=-1 ac_mid=-1
7722 while :; do
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7731 main ()
7733 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7734 test_array [0] = 0
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_lo=$ac_mid; break
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_hi=`expr '(' $ac_mid ')' - 1`
7768 if test $ac_mid -le $ac_hi; then
7769 ac_lo= ac_hi=
7770 break
7772 ac_mid=`expr 2 '*' $ac_mid`
7774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775 done
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_lo= ac_hi=
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 # Binary search between lo and hi bounds.
7786 while test "x$ac_lo" != "x$ac_hi"; do
7787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7796 main ()
7798 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7799 test_array [0] = 0
7802 return 0;
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_hi=$ac_mid
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_lo=`expr '(' $ac_mid ')' + 1`
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 done
7836 case $ac_lo in
7837 ?*) ac_cv_sizeof_short=$ac_lo;;
7838 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; } ;;
7843 esac
7844 else
7845 if test "$cross_compiling" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot run test program while cross compiling
7849 See \`config.log' for more details." >&2;}
7850 { (exit 1); exit 1; }; }
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 long longval () { return (long) (sizeof (short)); }
7860 unsigned long ulongval () { return (long) (sizeof (short)); }
7861 #include <stdio.h>
7862 #include <stdlib.h>
7864 main ()
7867 FILE *f = fopen ("conftest.val", "w");
7868 if (! f)
7869 exit (1);
7870 if (((long) (sizeof (short))) < 0)
7872 long i = longval ();
7873 if (i != ((long) (sizeof (short))))
7874 exit (1);
7875 fprintf (f, "%ld\n", i);
7877 else
7879 unsigned long i = ulongval ();
7880 if (i != ((long) (sizeof (short))))
7881 exit (1);
7882 fprintf (f, "%lu\n", i);
7884 exit (ferror (f) || fclose (f) != 0);
7887 return 0;
7889 _ACEOF
7890 rm -f conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_sizeof_short=`cat conftest.val`
7902 else
7903 echo "$as_me: program exited with status $ac_status" >&5
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ( exit $ac_status )
7908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7909 See \`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (short), 77
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 rm -f conftest.val
7918 else
7919 ac_cv_sizeof_short=0
7922 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7923 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7924 cat >>confdefs.h <<_ACEOF
7925 #define SIZEOF_SHORT $ac_cv_sizeof_short
7926 _ACEOF
7929 echo "$as_me:$LINENO: checking for float" >&5
7930 echo $ECHO_N "checking for float... $ECHO_C" >&6
7931 if test "${ac_cv_type_float+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7942 main ()
7944 if ((float *) 0)
7945 return 0;
7946 if (sizeof (float))
7947 return 0;
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_type_float=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_type_float=no
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7984 echo "${ECHO_T}$ac_cv_type_float" >&6
7986 echo "$as_me:$LINENO: checking size of float" >&5
7987 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7988 if test "${ac_cv_sizeof_float+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 if test "$ac_cv_type_float" = yes; then
7992 # The cast to unsigned long works around a bug in the HP C Compiler
7993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7995 # This bug is HP SR number 8606223364.
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8006 main ()
8008 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8009 test_array [0] = 0
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_lo=0 ac_mid=0
8038 while :; do
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8047 main ()
8049 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8050 test_array [0] = 0
8053 return 0;
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_hi=$ac_mid; break
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr $ac_mid + 1`
8084 if test $ac_lo -le $ac_mid; then
8085 ac_lo= ac_hi=
8086 break
8088 ac_mid=`expr 2 '*' $ac_mid + 1`
8090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091 done
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 $ac_includes_default
8104 main ()
8106 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8107 test_array [0] = 0
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_hi=-1 ac_mid=-1
8136 while :; do
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8145 main ()
8147 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8148 test_array [0] = 0
8151 return 0;
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156 (eval $ac_compile) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_c_werror_flag"
8164 || test ! -s conftest.err'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try='test -s conftest.$ac_objext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_lo=$ac_mid; break
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_hi=`expr '(' $ac_mid ')' - 1`
8182 if test $ac_mid -le $ac_hi; then
8183 ac_lo= ac_hi=
8184 break
8186 ac_mid=`expr 2 '*' $ac_mid`
8188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189 done
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_lo= ac_hi=
8196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8199 # Binary search between lo and hi bounds.
8200 while test "x$ac_lo" != "x$ac_hi"; do
8201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 $ac_includes_default
8210 main ()
8212 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8213 test_array [0] = 0
8216 return 0;
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221 (eval $ac_compile) 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest.$ac_objext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_hi=$ac_mid
8242 else
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8246 ac_lo=`expr '(' $ac_mid ')' + 1`
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249 done
8250 case $ac_lo in
8251 ?*) ac_cv_sizeof_float=$ac_lo;;
8252 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; } ;;
8257 esac
8258 else
8259 if test "$cross_compiling" = yes; then
8260 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8261 See \`config.log' for more details." >&5
8262 echo "$as_me: error: cannot run test program while cross compiling
8263 See \`config.log' for more details." >&2;}
8264 { (exit 1); exit 1; }; }
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 long longval () { return (long) (sizeof (float)); }
8274 unsigned long ulongval () { return (long) (sizeof (float)); }
8275 #include <stdio.h>
8276 #include <stdlib.h>
8278 main ()
8281 FILE *f = fopen ("conftest.val", "w");
8282 if (! f)
8283 exit (1);
8284 if (((long) (sizeof (float))) < 0)
8286 long i = longval ();
8287 if (i != ((long) (sizeof (float))))
8288 exit (1);
8289 fprintf (f, "%ld\n", i);
8291 else
8293 unsigned long i = ulongval ();
8294 if (i != ((long) (sizeof (float))))
8295 exit (1);
8296 fprintf (f, "%lu\n", i);
8298 exit (ferror (f) || fclose (f) != 0);
8301 return 0;
8303 _ACEOF
8304 rm -f conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_sizeof_float=`cat conftest.val`
8316 else
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ( exit $ac_status )
8322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8323 See \`config.log' for more details." >&5
8324 echo "$as_me: error: cannot compute sizeof (float), 77
8325 See \`config.log' for more details." >&2;}
8326 { (exit 1); exit 1; }; }
8328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331 rm -f conftest.val
8332 else
8333 ac_cv_sizeof_float=0
8336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8337 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8338 cat >>confdefs.h <<_ACEOF
8339 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8340 _ACEOF
8343 echo "$as_me:$LINENO: checking for double" >&5
8344 echo $ECHO_N "checking for double... $ECHO_C" >&6
8345 if test "${ac_cv_type_double+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8356 main ()
8358 if ((double *) 0)
8359 return 0;
8360 if (sizeof (double))
8361 return 0;
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_type_double=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_type_double=no
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8398 echo "${ECHO_T}$ac_cv_type_double" >&6
8400 echo "$as_me:$LINENO: checking size of double" >&5
8401 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8402 if test "${ac_cv_sizeof_double+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 if test "$ac_cv_type_double" = yes; then
8406 # The cast to unsigned long works around a bug in the HP C Compiler
8407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409 # This bug is HP SR number 8606223364.
8410 if test "$cross_compiling" = yes; then
8411 # Depending upon the size, compute the lo and hi bounds.
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8420 main ()
8422 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8423 test_array [0] = 0
8426 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_lo=0 ac_mid=0
8452 while :; do
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8461 main ()
8463 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8464 test_array [0] = 0
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_hi=$ac_mid; break
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_lo=`expr $ac_mid + 1`
8498 if test $ac_lo -le $ac_mid; then
8499 ac_lo= ac_hi=
8500 break
8502 ac_mid=`expr 2 '*' $ac_mid + 1`
8504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8505 done
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8518 main ()
8520 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8521 test_array [0] = 0
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_hi=-1 ac_mid=-1
8550 while :; do
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8559 main ()
8561 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8562 test_array [0] = 0
8565 return 0;
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_lo=$ac_mid; break
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_hi=`expr '(' $ac_mid ')' - 1`
8596 if test $ac_mid -le $ac_hi; then
8597 ac_lo= ac_hi=
8598 break
8600 ac_mid=`expr 2 '*' $ac_mid`
8602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8603 done
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_lo= ac_hi=
8610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613 # Binary search between lo and hi bounds.
8614 while test "x$ac_lo" != "x$ac_hi"; do
8615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8624 main ()
8626 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8627 test_array [0] = 0
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_hi=$ac_mid
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_lo=`expr '(' $ac_mid ')' + 1`
8662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8663 done
8664 case $ac_lo in
8665 ?*) ac_cv_sizeof_double=$ac_lo;;
8666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; } ;;
8671 esac
8672 else
8673 if test "$cross_compiling" = yes; then
8674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8675 See \`config.log' for more details." >&5
8676 echo "$as_me: error: cannot run test program while cross compiling
8677 See \`config.log' for more details." >&2;}
8678 { (exit 1); exit 1; }; }
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 long longval () { return (long) (sizeof (double)); }
8688 unsigned long ulongval () { return (long) (sizeof (double)); }
8689 #include <stdio.h>
8690 #include <stdlib.h>
8692 main ()
8695 FILE *f = fopen ("conftest.val", "w");
8696 if (! f)
8697 exit (1);
8698 if (((long) (sizeof (double))) < 0)
8700 long i = longval ();
8701 if (i != ((long) (sizeof (double))))
8702 exit (1);
8703 fprintf (f, "%ld\n", i);
8705 else
8707 unsigned long i = ulongval ();
8708 if (i != ((long) (sizeof (double))))
8709 exit (1);
8710 fprintf (f, "%lu\n", i);
8712 exit (ferror (f) || fclose (f) != 0);
8715 return 0;
8717 _ACEOF
8718 rm -f conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_sizeof_double=`cat conftest.val`
8730 else
8731 echo "$as_me: program exited with status $ac_status" >&5
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ( exit $ac_status )
8736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8737 See \`config.log' for more details." >&5
8738 echo "$as_me: error: cannot compute sizeof (double), 77
8739 See \`config.log' for more details." >&2;}
8740 { (exit 1); exit 1; }; }
8742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8745 rm -f conftest.val
8746 else
8747 ac_cv_sizeof_double=0
8750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8751 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8752 cat >>confdefs.h <<_ACEOF
8753 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8754 _ACEOF
8757 echo "$as_me:$LINENO: checking for fpos_t" >&5
8758 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8759 if test "${ac_cv_type_fpos_t+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8770 main ()
8772 if ((fpos_t *) 0)
8773 return 0;
8774 if (sizeof (fpos_t))
8775 return 0;
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_c_werror_flag"
8790 || test ! -s conftest.err'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; } &&
8796 { ac_try='test -s conftest.$ac_objext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 ac_cv_type_fpos_t=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_cv_type_fpos_t=no
8809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8812 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8814 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8815 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8816 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 if test "$ac_cv_type_fpos_t" = yes; then
8820 # The cast to unsigned long works around a bug in the HP C Compiler
8821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8823 # This bug is HP SR number 8606223364.
8824 if test "$cross_compiling" = yes; then
8825 # Depending upon the size, compute the lo and hi bounds.
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8834 main ()
8836 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8837 test_array [0] = 0
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_lo=0 ac_mid=0
8866 while :; do
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8875 main ()
8877 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8878 test_array [0] = 0
8881 return 0;
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_hi=$ac_mid; break
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_lo=`expr $ac_mid + 1`
8912 if test $ac_lo -le $ac_mid; then
8913 ac_lo= ac_hi=
8914 break
8916 ac_mid=`expr 2 '*' $ac_mid + 1`
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8919 done
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8932 main ()
8934 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8935 test_array [0] = 0
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_hi=-1 ac_mid=-1
8964 while :; do
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8973 main ()
8975 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8976 test_array [0] = 0
8979 return 0;
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_lo=$ac_mid; break
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_hi=`expr '(' $ac_mid ')' - 1`
9010 if test $ac_mid -le $ac_hi; then
9011 ac_lo= ac_hi=
9012 break
9014 ac_mid=`expr 2 '*' $ac_mid`
9016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017 done
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_lo= ac_hi=
9024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 # Binary search between lo and hi bounds.
9028 while test "x$ac_lo" != "x$ac_hi"; do
9029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9038 main ()
9040 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9041 test_array [0] = 0
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9049 (eval $ac_compile) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_hi=$ac_mid
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_lo=`expr '(' $ac_mid ')' + 1`
9076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9077 done
9078 case $ac_lo in
9079 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; } ;;
9085 esac
9086 else
9087 if test "$cross_compiling" = yes; then
9088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9089 See \`config.log' for more details." >&5
9090 echo "$as_me: error: cannot run test program while cross compiling
9091 See \`config.log' for more details." >&2;}
9092 { (exit 1); exit 1; }; }
9093 else
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 long longval () { return (long) (sizeof (fpos_t)); }
9102 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9103 #include <stdio.h>
9104 #include <stdlib.h>
9106 main ()
9109 FILE *f = fopen ("conftest.val", "w");
9110 if (! f)
9111 exit (1);
9112 if (((long) (sizeof (fpos_t))) < 0)
9114 long i = longval ();
9115 if (i != ((long) (sizeof (fpos_t))))
9116 exit (1);
9117 fprintf (f, "%ld\n", i);
9119 else
9121 unsigned long i = ulongval ();
9122 if (i != ((long) (sizeof (fpos_t))))
9123 exit (1);
9124 fprintf (f, "%lu\n", i);
9126 exit (ferror (f) || fclose (f) != 0);
9129 return 0;
9131 _ACEOF
9132 rm -f conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_sizeof_fpos_t=`cat conftest.val`
9144 else
9145 echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ( exit $ac_status )
9150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9151 See \`config.log' for more details." >&5
9152 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9153 See \`config.log' for more details." >&2;}
9154 { (exit 1); exit 1; }; }
9156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9159 rm -f conftest.val
9160 else
9161 ac_cv_sizeof_fpos_t=0
9164 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9165 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9166 cat >>confdefs.h <<_ACEOF
9167 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9168 _ACEOF
9171 echo "$as_me:$LINENO: checking for size_t" >&5
9172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9173 if test "${ac_cv_type_size_t+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9184 main ()
9186 if ((size_t *) 0)
9187 return 0;
9188 if (sizeof (size_t))
9189 return 0;
9191 return 0;
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_size_t=yes
9217 else
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_cv_type_size_t=no
9223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9226 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9228 echo "$as_me:$LINENO: checking size of size_t" >&5
9229 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9230 if test "${ac_cv_sizeof_size_t+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 if test "$ac_cv_type_size_t" = yes; then
9234 # The cast to unsigned long works around a bug in the HP C Compiler
9235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9237 # This bug is HP SR number 8606223364.
9238 if test "$cross_compiling" = yes; then
9239 # Depending upon the size, compute the lo and hi bounds.
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9248 main ()
9250 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9251 test_array [0] = 0
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_lo=0 ac_mid=0
9280 while :; do
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 $ac_includes_default
9289 main ()
9291 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9292 test_array [0] = 0
9295 return 0;
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_hi=$ac_mid; break
9321 else
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9325 ac_lo=`expr $ac_mid + 1`
9326 if test $ac_lo -le $ac_mid; then
9327 ac_lo= ac_hi=
9328 break
9330 ac_mid=`expr 2 '*' $ac_mid + 1`
9332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333 done
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9346 main ()
9348 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9349 test_array [0] = 0
9352 return 0;
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_hi=-1 ac_mid=-1
9378 while :; do
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 $ac_includes_default
9387 main ()
9389 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9390 test_array [0] = 0
9393 return 0;
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_lo=$ac_mid; break
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 ac_hi=`expr '(' $ac_mid ')' - 1`
9424 if test $ac_mid -le $ac_hi; then
9425 ac_lo= ac_hi=
9426 break
9428 ac_mid=`expr 2 '*' $ac_mid`
9430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9431 done
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_lo= ac_hi=
9438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9441 # Binary search between lo and hi bounds.
9442 while test "x$ac_lo" != "x$ac_hi"; do
9443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9452 main ()
9454 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9455 test_array [0] = 0
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -z "$ac_c_werror_flag"
9471 || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 ac_hi=$ac_mid
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_lo=`expr '(' $ac_mid ')' + 1`
9490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9491 done
9492 case $ac_lo in
9493 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9495 See \`config.log' for more details." >&5
9496 echo "$as_me: error: cannot compute sizeof (size_t), 77
9497 See \`config.log' for more details." >&2;}
9498 { (exit 1); exit 1; }; } ;;
9499 esac
9500 else
9501 if test "$cross_compiling" = yes; then
9502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9503 See \`config.log' for more details." >&5
9504 echo "$as_me: error: cannot run test program while cross compiling
9505 See \`config.log' for more details." >&2;}
9506 { (exit 1); exit 1; }; }
9507 else
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 long longval () { return (long) (sizeof (size_t)); }
9516 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9517 #include <stdio.h>
9518 #include <stdlib.h>
9520 main ()
9523 FILE *f = fopen ("conftest.val", "w");
9524 if (! f)
9525 exit (1);
9526 if (((long) (sizeof (size_t))) < 0)
9528 long i = longval ();
9529 if (i != ((long) (sizeof (size_t))))
9530 exit (1);
9531 fprintf (f, "%ld\n", i);
9533 else
9535 unsigned long i = ulongval ();
9536 if (i != ((long) (sizeof (size_t))))
9537 exit (1);
9538 fprintf (f, "%lu\n", i);
9540 exit (ferror (f) || fclose (f) != 0);
9543 return 0;
9545 _ACEOF
9546 rm -f conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_sizeof_size_t=`cat conftest.val`
9558 else
9559 echo "$as_me: program exited with status $ac_status" >&5
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ( exit $ac_status )
9564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9565 See \`config.log' for more details." >&5
9566 echo "$as_me: error: cannot compute sizeof (size_t), 77
9567 See \`config.log' for more details." >&2;}
9568 { (exit 1); exit 1; }; }
9570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9573 rm -f conftest.val
9574 else
9575 ac_cv_sizeof_size_t=0
9578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9579 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9580 cat >>confdefs.h <<_ACEOF
9581 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9582 _ACEOF
9586 echo "$as_me:$LINENO: checking for long long support" >&5
9587 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9588 have_long_long=no
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9597 main ()
9599 long long x; x = (long long)0;
9601 return 0;
9603 _ACEOF
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_LONG_LONG 1
9630 _ACEOF
9632 have_long_long=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $have_long_long" >&5
9641 echo "${ECHO_T}$have_long_long" >&6
9642 if test "$have_long_long" = yes ; then
9643 echo "$as_me:$LINENO: checking for long long" >&5
9644 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9645 if test "${ac_cv_type_long_long+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9656 main ()
9658 if ((long long *) 0)
9659 return 0;
9660 if (sizeof (long long))
9661 return 0;
9663 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668 (eval $ac_compile) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_type_long_long=yes
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_type_long_long=no
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9698 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9700 echo "$as_me:$LINENO: checking size of long long" >&5
9701 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9702 if test "${ac_cv_sizeof_long_long+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 if test "$ac_cv_type_long_long" = yes; then
9706 # The cast to unsigned long works around a bug in the HP C Compiler
9707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9709 # This bug is HP SR number 8606223364.
9710 if test "$cross_compiling" = yes; then
9711 # Depending upon the size, compute the lo and hi bounds.
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9720 main ()
9722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9723 test_array [0] = 0
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_lo=0 ac_mid=0
9752 while :; do
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9761 main ()
9763 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9764 test_array [0] = 0
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_hi=$ac_mid; break
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_lo=`expr $ac_mid + 1`
9798 if test $ac_lo -le $ac_mid; then
9799 ac_lo= ac_hi=
9800 break
9802 ac_mid=`expr 2 '*' $ac_mid + 1`
9804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9805 done
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9818 main ()
9820 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9821 test_array [0] = 0
9824 return 0;
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag"
9837 || test ! -s conftest.err'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest.$ac_objext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_hi=-1 ac_mid=-1
9850 while :; do
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9859 main ()
9861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9862 test_array [0] = 0
9865 return 0;
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870 (eval $ac_compile) 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag"
9878 || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest.$ac_objext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_lo=$ac_mid; break
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_hi=`expr '(' $ac_mid ')' - 1`
9896 if test $ac_mid -le $ac_hi; then
9897 ac_lo= ac_hi=
9898 break
9900 ac_mid=`expr 2 '*' $ac_mid`
9902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9903 done
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_lo= ac_hi=
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913 # Binary search between lo and hi bounds.
9914 while test "x$ac_lo" != "x$ac_hi"; do
9915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9924 main ()
9926 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9927 test_array [0] = 0
9930 return 0;
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag"
9943 || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest.$ac_objext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_hi=$ac_mid
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_lo=`expr '(' $ac_mid ')' + 1`
9962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9963 done
9964 case $ac_lo in
9965 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9967 See \`config.log' for more details." >&5
9968 echo "$as_me: error: cannot compute sizeof (long long), 77
9969 See \`config.log' for more details." >&2;}
9970 { (exit 1); exit 1; }; } ;;
9971 esac
9972 else
9973 if test "$cross_compiling" = yes; then
9974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9975 See \`config.log' for more details." >&5
9976 echo "$as_me: error: cannot run test program while cross compiling
9977 See \`config.log' for more details." >&2;}
9978 { (exit 1); exit 1; }; }
9979 else
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 long longval () { return (long) (sizeof (long long)); }
9988 unsigned long ulongval () { return (long) (sizeof (long long)); }
9989 #include <stdio.h>
9990 #include <stdlib.h>
9992 main ()
9995 FILE *f = fopen ("conftest.val", "w");
9996 if (! f)
9997 exit (1);
9998 if (((long) (sizeof (long long))) < 0)
10000 long i = longval ();
10001 if (i != ((long) (sizeof (long long))))
10002 exit (1);
10003 fprintf (f, "%ld\n", i);
10005 else
10007 unsigned long i = ulongval ();
10008 if (i != ((long) (sizeof (long long))))
10009 exit (1);
10010 fprintf (f, "%lu\n", i);
10012 exit (ferror (f) || fclose (f) != 0);
10015 return 0;
10017 _ACEOF
10018 rm -f conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_sizeof_long_long=`cat conftest.val`
10030 else
10031 echo "$as_me: program exited with status $ac_status" >&5
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ( exit $ac_status )
10036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10037 See \`config.log' for more details." >&5
10038 echo "$as_me: error: cannot compute sizeof (long long), 77
10039 See \`config.log' for more details." >&2;}
10040 { (exit 1); exit 1; }; }
10042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10045 rm -f conftest.val
10046 else
10047 ac_cv_sizeof_long_long=0
10050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10051 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10052 cat >>confdefs.h <<_ACEOF
10053 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10054 _ACEOF
10059 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10060 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10061 have_uintptr_t=no
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10070 main ()
10072 uintptr_t x; x = (uintptr_t)0;
10074 return 0;
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_UINTPTR_T 1
10103 _ACEOF
10105 have_uintptr_t=yes
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10113 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10114 echo "${ECHO_T}$have_uintptr_t" >&6
10115 if test "$have_uintptr_t" = yes ; then
10116 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10117 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10118 if test "${ac_cv_type_uintptr_t+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10129 main ()
10131 if ((uintptr_t *) 0)
10132 return 0;
10133 if (sizeof (uintptr_t))
10134 return 0;
10136 return 0;
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_type_uintptr_t=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_type_uintptr_t=no
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10171 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10173 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10174 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10175 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 if test "$ac_cv_type_uintptr_t" = yes; then
10179 # The cast to unsigned long works around a bug in the HP C Compiler
10180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10182 # This bug is HP SR number 8606223364.
10183 if test "$cross_compiling" = yes; then
10184 # Depending upon the size, compute the lo and hi bounds.
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 $ac_includes_default
10193 main ()
10195 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10196 test_array [0] = 0
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_lo=0 ac_mid=0
10225 while :; do
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10234 main ()
10236 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10237 test_array [0] = 0
10240 return 0;
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_hi=$ac_mid; break
10266 else
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ac_lo=`expr $ac_mid + 1`
10271 if test $ac_lo -le $ac_mid; then
10272 ac_lo= ac_hi=
10273 break
10275 ac_mid=`expr 2 '*' $ac_mid + 1`
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 done
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10291 main ()
10293 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10294 test_array [0] = 0
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_hi=-1 ac_mid=-1
10323 while :; do
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10332 main ()
10334 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10335 test_array [0] = 0
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_lo=$ac_mid; break
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_hi=`expr '(' $ac_mid ')' - 1`
10369 if test $ac_mid -le $ac_hi; then
10370 ac_lo= ac_hi=
10371 break
10373 ac_mid=`expr 2 '*' $ac_mid`
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10376 done
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_lo= ac_hi=
10383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386 # Binary search between lo and hi bounds.
10387 while test "x$ac_lo" != "x$ac_hi"; do
10388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 $ac_includes_default
10397 main ()
10399 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10400 test_array [0] = 0
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_hi=$ac_mid
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_lo=`expr '(' $ac_mid ')' + 1`
10435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10436 done
10437 case $ac_lo in
10438 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10439 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10440 See \`config.log' for more details." >&5
10441 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10442 See \`config.log' for more details." >&2;}
10443 { (exit 1); exit 1; }; } ;;
10444 esac
10445 else
10446 if test "$cross_compiling" = yes; then
10447 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10448 See \`config.log' for more details." >&5
10449 echo "$as_me: error: cannot run test program while cross compiling
10450 See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 else
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 $ac_includes_default
10460 long longval () { return (long) (sizeof (uintptr_t)); }
10461 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10462 #include <stdio.h>
10463 #include <stdlib.h>
10465 main ()
10468 FILE *f = fopen ("conftest.val", "w");
10469 if (! f)
10470 exit (1);
10471 if (((long) (sizeof (uintptr_t))) < 0)
10473 long i = longval ();
10474 if (i != ((long) (sizeof (uintptr_t))))
10475 exit (1);
10476 fprintf (f, "%ld\n", i);
10478 else
10480 unsigned long i = ulongval ();
10481 if (i != ((long) (sizeof (uintptr_t))))
10482 exit (1);
10483 fprintf (f, "%lu\n", i);
10485 exit (ferror (f) || fclose (f) != 0);
10488 return 0;
10490 _ACEOF
10491 rm -f conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10503 else
10504 echo "$as_me: program exited with status $ac_status" >&5
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ( exit $ac_status )
10509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10510 See \`config.log' for more details." >&5
10511 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10512 See \`config.log' for more details." >&2;}
10513 { (exit 1); exit 1; }; }
10515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10518 rm -f conftest.val
10519 else
10520 ac_cv_sizeof_uintptr_t=0
10523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10524 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10525 cat >>confdefs.h <<_ACEOF
10526 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10527 _ACEOF
10532 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10533 echo "$as_me:$LINENO: checking size of off_t" >&5
10534 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10535 if test "${ac_cv_sizeof_off_t+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 if test "$cross_compiling" = yes; then
10539 ac_cv_sizeof_off_t=4
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 #include <stdio.h>
10548 #include <sys/types.h>
10549 main()
10551 FILE *f=fopen("conftestval", "w");
10552 if (!f) exit(1);
10553 fprintf(f, "%d\n", sizeof(off_t));
10554 exit(0);
10556 _ACEOF
10557 rm -f conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_sizeof_off_t=`cat conftestval`
10569 else
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ( exit $ac_status )
10575 ac_cv_sizeof_off_t=0
10577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10583 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10585 cat >>confdefs.h <<_ACEOF
10586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10587 _ACEOF
10590 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10591 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10592 if test "$have_long_long" = yes -a \
10593 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10594 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define HAVE_LARGEFILE_SUPPORT 1
10598 _ACEOF
10600 echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6
10602 else
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10607 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10608 echo "$as_me:$LINENO: checking size of time_t" >&5
10609 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10610 if test "${ac_cv_sizeof_time_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 if test "$cross_compiling" = yes; then
10614 ac_cv_sizeof_time_t=4
10615 else
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <stdio.h>
10623 #include <time.h>
10624 main()
10626 FILE *f=fopen("conftestval", "w");
10627 if (!f) exit(1);
10628 fprintf(f, "%d\n", sizeof(time_t));
10629 exit(0);
10631 _ACEOF
10632 rm -f conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_sizeof_time_t=`cat conftestval`
10644 else
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ( exit $ac_status )
10650 ac_cv_sizeof_time_t=0
10652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10658 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10660 cat >>confdefs.h <<_ACEOF
10661 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10662 _ACEOF
10666 # if have pthread_t then define SIZEOF_PTHREAD_T
10667 ac_save_cc="$CC"
10668 if test "$ac_cv_kpthread" = "yes"
10669 then CC="$CC -Kpthread"
10670 elif test "$ac_cv_kthread" = "yes"
10671 then CC="$CC -Kthread"
10672 elif test "$ac_cv_pthread" = "yes"
10673 then CC="$CC -pthread"
10675 echo "$as_me:$LINENO: checking for pthread_t" >&5
10676 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10677 have_pthread_t=no
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <pthread.h>
10686 main ()
10688 pthread_t x; x = *(pthread_t*)0;
10690 return 0;
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 have_pthread_t=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10723 echo "${ECHO_T}$have_pthread_t" >&6
10724 if test "$have_pthread_t" = yes ; then
10725 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10726 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10727 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10728 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_sizeof_pthread_t=4
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <stdio.h>
10741 #include <pthread.h>
10742 main()
10744 FILE *f=fopen("conftestval", "w");
10745 if (!f) exit(1);
10746 fprintf(f, "%d\n", sizeof(pthread_t));
10747 exit(0);
10749 _ACEOF
10750 rm -f conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_sizeof_pthread_t=`cat conftestval`
10762 else
10763 echo "$as_me: program exited with status $ac_status" >&5
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ( exit $ac_status )
10768 ac_cv_sizeof_pthread_t=0
10770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10776 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10778 cat >>confdefs.h <<_ACEOF
10779 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10780 _ACEOF
10783 CC="$ac_save_cc"
10785 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10786 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10787 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10788 if test "${enable_toolbox_glue+set}" = set; then
10789 enableval="$enable_toolbox_glue"
10793 if test -z "$enable_toolbox_glue"
10794 then
10795 case $ac_sys_system/$ac_sys_release in
10796 Darwin/*)
10797 enable_toolbox_glue="yes";;
10799 enable_toolbox_glue="no";;
10800 esac
10802 case "$enable_toolbox_glue" in
10803 yes)
10804 extra_machdep_objs="Python/mactoolboxglue.o"
10805 extra_undefs="-u _PyMac_Error"
10807 cat >>confdefs.h <<\_ACEOF
10808 #define USE_TOOLBOX_OBJECT_GLUE 1
10809 _ACEOF
10813 extra_machdep_objs=""
10814 extra_undefs=""
10816 esac
10817 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10818 echo "${ECHO_T}$enable_toolbox_glue" >&6
10821 case $ac_sys_system/$ac_sys_release in
10822 Darwin/[01234567].*)
10823 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10825 Darwin/*)
10826 OTHER_LIBTOOL_OPT=""
10828 esac
10831 case $ac_sys_system/$ac_sys_release in
10832 Darwin/[01234567].*)
10833 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`"
10834 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10835 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10836 Darwin/*)
10837 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10838 if test ${gcc_version} '<' 4.0
10839 then
10840 LIBTOOL_CRUFT="-lcc_dynamic"
10841 else
10842 LIBTOOL_CRUFT=""
10844 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10845 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10846 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10847 esac
10849 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10850 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10851 if test "$enable_framework"
10852 then
10853 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10854 # -F. is needed to allow linking to the framework while
10855 # in the build location.
10857 cat >>confdefs.h <<\_ACEOF
10858 #define WITH_NEXT_FRAMEWORK 1
10859 _ACEOF
10861 echo "$as_me:$LINENO: result: yes" >&5
10862 echo "${ECHO_T}yes" >&6
10863 else
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 echo "$as_me:$LINENO: checking for dyld" >&5
10869 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10870 case $ac_sys_system/$ac_sys_release in
10871 Darwin/*)
10873 cat >>confdefs.h <<\_ACEOF
10874 #define WITH_DYLD 1
10875 _ACEOF
10877 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10878 echo "${ECHO_T}always on for Darwin" >&6
10881 echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10884 esac
10886 # Set info about shared libraries.
10892 # SO is the extension of shared libraries `(including the dot!)
10893 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10894 echo "$as_me:$LINENO: checking SO" >&5
10895 echo $ECHO_N "checking SO... $ECHO_C" >&6
10896 if test -z "$SO"
10897 then
10898 case $ac_sys_system in
10899 hp*|HP*) SO=.sl;;
10900 CYGWIN*) SO=.dll;;
10901 *) SO=.so;;
10902 esac
10903 else
10904 # this might also be a termcap variable, see #610332
10905 echo
10906 echo '====================================================================='
10907 echo '+ +'
10908 echo '+ WARNING: You have set SO in your environment. +'
10909 echo '+ Do you really mean to change the extension for shared libraries? +'
10910 echo '+ Continuing in 10 seconds to let you to ponder. +'
10911 echo '+ +'
10912 echo '====================================================================='
10913 sleep 10
10915 echo "$as_me:$LINENO: result: $SO" >&5
10916 echo "${ECHO_T}$SO" >&6
10917 # LDSHARED is the ld *command* used to create shared library
10918 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10919 # (Shared libraries in this instance are shared modules to be loaded into
10920 # Python, as opposed to building Python itself as a shared library.)
10921 echo "$as_me:$LINENO: checking LDSHARED" >&5
10922 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10923 if test -z "$LDSHARED"
10924 then
10925 case $ac_sys_system/$ac_sys_release in
10926 AIX*)
10927 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10928 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10930 BeOS*)
10931 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10932 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10934 IRIX/5*) LDSHARED="ld -shared";;
10935 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10936 SunOS/5*)
10937 if test "$GCC" = "yes"
10938 then LDSHARED='$(CC) -shared'
10939 else LDSHARED='$(CC) -G';
10940 fi ;;
10941 hp*|HP*) LDSHARED="ld -b";;
10942 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10943 Darwin/1.3*)
10944 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10945 if test "$enable_framework" ; then
10946 # Link against the framework. All externals should be defined.
10947 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10949 else
10950 # No framework. Ignore undefined symbols, assuming they come from Python
10951 LDSHARED="$LDSHARED -undefined suppress"
10952 fi ;;
10953 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10954 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10955 if test "$enable_framework" ; then
10956 # Link against the framework. All externals should be defined.
10957 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10959 else
10960 # No framework, use the Python app as bundle-loader
10961 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10962 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10963 fi ;;
10964 Darwin/*)
10965 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10966 # This allows an extension to be used in any Python
10967 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10968 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10969 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10970 then
10971 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10972 BLDSHARED="$LDSHARED"
10973 else
10974 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10975 if test "$enable_framework" ; then
10976 # Link against the framework. All externals should be defined.
10977 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10978 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10979 else
10980 # No framework, use the Python app as bundle-loader
10981 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10982 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10986 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10987 BSD/OS*/4*) LDSHARED="gcc -shared";;
10988 OpenBSD*|FreeBSD*)
10989 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10990 then
10991 LDSHARED="$CC -shared ${LDFLAGS}"
10992 else
10993 LDSHARED="ld -Bshareable ${LDFLAGS}"
10994 fi;;
10995 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
10996 OpenUNIX*|UnixWare*)
10997 if test "$GCC" = "yes"
10998 then LDSHARED='$(CC) -shared'
10999 else LDSHARED='$(CC) -G'
11000 fi;;
11001 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11002 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11003 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11004 atheos*) LDSHARED="gcc -shared";;
11005 *) LDSHARED="ld";;
11006 esac
11008 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11009 echo "${ECHO_T}$LDSHARED" >&6
11010 BLDSHARED=${BLDSHARED-$LDSHARED}
11011 # CCSHARED are the C *flags* used to create objects to go into a shared
11012 # library (module) -- this is only needed for a few systems
11013 echo "$as_me:$LINENO: checking CCSHARED" >&5
11014 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11015 if test -z "$CCSHARED"
11016 then
11017 case $ac_sys_system/$ac_sys_release in
11018 SunOS*) if test "$GCC" = yes;
11019 then CCSHARED="-fPIC";
11020 else CCSHARED="-xcode=pic32";
11021 fi;;
11022 hp*|HP*) if test "$GCC" = yes;
11023 then CCSHARED="-fPIC";
11024 else CCSHARED="+z";
11025 fi;;
11026 Linux*|GNU*) CCSHARED="-fPIC";;
11027 BSD/OS*/4*) CCSHARED="-fpic";;
11028 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11029 OpenUNIX*|UnixWare*)
11030 if test "$GCC" = "yes"
11031 then CCSHARED="-fPIC"
11032 else CCSHARED="-KPIC"
11033 fi;;
11034 SCO_SV*)
11035 if test "$GCC" = "yes"
11036 then CCSHARED="-fPIC"
11037 else CCSHARED="-Kpic -belf"
11038 fi;;
11039 Monterey*) CCSHARED="-G";;
11040 IRIX*/6*) case $CC in
11041 *gcc*) CCSHARED="-shared";;
11042 *) CCSHARED="";;
11043 esac;;
11044 atheos*) CCSHARED="-fPIC";;
11045 esac
11047 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11048 echo "${ECHO_T}$CCSHARED" >&6
11049 # LINKFORSHARED are the flags passed to the $(CC) command that links
11050 # the python executable -- this is only needed for a few systems
11051 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11052 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11053 if test -z "$LINKFORSHARED"
11054 then
11055 case $ac_sys_system/$ac_sys_release in
11056 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11057 hp*|HP*)
11058 LINKFORSHARED="-Wl,-E -Wl,+s";;
11059 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11060 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11061 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11062 # -u libsys_s pulls in all symbols in libsys
11063 Darwin/*)
11064 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11065 # which is
11066 # not used by the core itself but which needs to be in the core so
11067 # that dynamically loaded extension modules have access to it.
11068 # -prebind is no longer used, because it actually seems to give a
11069 # slowdown in stead of a speedup, maybe due to the large number of
11070 # dynamic loads Python does.
11072 LINKFORSHARED="$extra_undefs"
11073 if test "$enable_framework"
11074 then
11075 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11077 LINKFORSHARED="$LINKFORSHARED";;
11078 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11079 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11080 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11081 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11082 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11083 then
11084 LINKFORSHARED="-Wl,--export-dynamic"
11085 fi;;
11086 SunOS/5*) case $CC in
11087 *gcc*)
11088 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11089 then
11090 LINKFORSHARED="-Xlinker --export-dynamic"
11091 fi;;
11092 esac;;
11093 CYGWIN*)
11094 if test $enable_shared = "no"
11095 then
11096 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11097 fi;;
11098 esac
11100 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11101 echo "${ECHO_T}$LINKFORSHARED" >&6
11104 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11105 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11106 if test ! "$LIBRARY" = "$LDLIBRARY"
11107 then
11108 case $ac_sys_system in
11109 CYGWIN*)
11110 # Cygwin needs CCSHARED when building extension DLLs
11111 # but not when building the interpreter DLL.
11112 CFLAGSFORSHARED='';;
11114 CFLAGSFORSHARED='$(CCSHARED)'
11115 esac
11117 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11118 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11120 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11121 # library (with --enable-shared).
11122 # For platforms on which shared libraries are not allowed to have unresolved
11123 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11124 # if it is not required, since it creates a dependency of the shared library
11125 # to LIBS. This, in turn, means that applications linking the shared libpython
11126 # don't need to link LIBS explicitly. The default should be only changed
11127 # on systems where this approach causes problems.
11129 echo "$as_me:$LINENO: checking SHLIBS" >&5
11130 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11131 case "$ac_sys_system" in
11133 SHLIBS='$(LIBS)';;
11134 esac
11135 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11136 echo "${ECHO_T}$SHLIBS" >&6
11139 # checks for libraries
11141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldl $LIBS"
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char dlopen ();
11163 main ()
11165 dlopen ();
11167 return 0;
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_dl_dlopen=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_lib_dl_dlopen=no
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11205 if test $ac_cv_lib_dl_dlopen = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_LIBDL 1
11208 _ACEOF
11210 LIBS="-ldl $LIBS"
11213 # Dynamic linking for SunOS/Solaris and SYSV
11215 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220 ac_check_lib_save_LIBS=$LIBS
11221 LIBS="-ldld $LIBS"
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11229 /* Override any gcc2 internal prototype to avoid an error. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char shl_load ();
11237 main ()
11239 shl_load ();
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_lib_dld_shl_load=yes
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_cv_lib_dld_shl_load=no
11273 rm -f conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275 LIBS=$ac_check_lib_save_LIBS
11277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11279 if test $ac_cv_lib_dld_shl_load = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define HAVE_LIBDLD 1
11282 _ACEOF
11284 LIBS="-ldld $LIBS"
11287 # Dynamic linking for HP-UX
11289 # only check for sem_ini if thread support is requested
11290 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11291 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11292 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11293 if test "${ac_cv_search_sem_init+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 ac_func_search_save_LIBS=$LIBS
11297 ac_cv_search_sem_init=no
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11311 char sem_init ();
11313 main ()
11315 sem_init ();
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_search_sem_init="none required"
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11348 rm -f conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 if test "$ac_cv_search_sem_init" = no; then
11351 for ac_lib in pthread rt posix4; do
11352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11360 /* Override any gcc2 internal prototype to avoid an error. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
11366 char sem_init ();
11368 main ()
11370 sem_init ();
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11377 (eval $ac_link) 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest$ac_exeext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_cv_search_sem_init="-l$ac_lib"
11398 break
11399 else
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11404 rm -f conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 done
11408 LIBS=$ac_func_search_save_LIBS
11410 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11411 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11412 if test "$ac_cv_search_sem_init" != no; then
11413 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11416 # 'Real Time' functions on Solaris
11417 # posix4 on Solaris 2.6
11418 # pthread (first!) on Linux
11421 # check if we need libintl for locale functions
11422 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11423 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11424 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lintl $LIBS"
11429 cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h. */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11436 /* Override any gcc2 internal prototype to avoid an error. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 /* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442 char textdomain ();
11444 main ()
11446 textdomain ();
11448 return 0;
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453 (eval $ac_link) 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest$ac_exeext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_cv_lib_intl_textdomain=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_cv_lib_intl_textdomain=no
11480 rm -f conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11484 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11485 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11486 if test $ac_cv_lib_intl_textdomain = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define WITH_LIBINTL 1
11490 _ACEOF
11495 # checks for system dependent C++ extensions support
11496 case "$ac_sys_system" in
11497 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11498 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include "/usr/lpp/xlC/include/load.h"
11507 main ()
11509 loadAndInit("", 0, "")
11511 return 0;
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest$ac_exeext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define AIX_GENUINE_CPLUSPLUS 1
11539 _ACEOF
11541 echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6
11550 rm -f conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext;;
11552 *) ;;
11553 esac
11555 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11556 # BeOS' sockets are stashed in libnet.
11557 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11558 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11559 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 ac_check_lib_save_LIBS=$LIBS
11563 LIBS="-lnsl $LIBS"
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11571 /* Override any gcc2 internal prototype to avoid an error. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char t_open ();
11579 main ()
11581 t_open ();
11583 return 0;
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588 (eval $ac_link) 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_lib_nsl_t_open=yes
11609 else
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_lib_nsl_t_open=no
11615 rm -f conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11620 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11621 if test $ac_cv_lib_nsl_t_open = yes; then
11622 LIBS="-lnsl $LIBS"
11624 # SVR4
11625 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11626 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11627 if test "${ac_cv_lib_socket_socket+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 ac_check_lib_save_LIBS=$LIBS
11631 LIBS="-lsocket $LIBS $LIBS"
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char socket ();
11647 main ()
11649 socket ();
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest$ac_exeext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_lib_socket_socket=yes
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_lib_socket_socket=no
11683 rm -f conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11687 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11688 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11689 if test $ac_cv_lib_socket_socket = yes; then
11690 LIBS="-lsocket $LIBS"
11692 # SVR4 sockets
11694 case "$ac_sys_system" in
11695 BeOS*)
11696 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11697 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11698 if test "${ac_cv_lib_net_socket+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-lnet $LIBS $LIBS"
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h. */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 /* Override any gcc2 internal prototype to avoid an error. */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11716 char socket ();
11718 main ()
11720 socket ();
11722 return 0;
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_lib_net_socket=yes
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_lib_net_socket=no
11754 rm -f conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11759 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11760 if test $ac_cv_lib_net_socket = yes; then
11761 LIBS="-lnet $LIBS"
11763 # BeOS
11765 esac
11767 echo "$as_me:$LINENO: checking for --with-libs" >&5
11768 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11770 # Check whether --with-libs or --without-libs was given.
11771 if test "${with_libs+set}" = set; then
11772 withval="$with_libs"
11774 echo "$as_me:$LINENO: result: $withval" >&5
11775 echo "${ECHO_T}$withval" >&6
11776 LIBS="$withval $LIBS"
11778 else
11779 echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6
11783 # Determine if signalmodule should be used.
11786 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11787 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11789 # Check whether --with-signal-module or --without-signal-module was given.
11790 if test "${with_signal_module+set}" = set; then
11791 withval="$with_signal_module"
11795 if test -z "$with_signal_module"
11796 then with_signal_module="yes"
11798 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11799 echo "${ECHO_T}$with_signal_module" >&6
11801 if test "${with_signal_module}" = "yes"; then
11802 USE_SIGNAL_MODULE=""
11803 SIGNAL_OBJS=""
11804 else
11805 USE_SIGNAL_MODULE="#"
11806 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11809 # This is used to generate Setup.config
11811 USE_THREAD_MODULE=""
11813 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11814 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11817 # Check whether --with-dec-threads or --without-dec-threads was given.
11818 if test "${with_dec_threads+set}" = set; then
11819 withval="$with_dec_threads"
11821 echo "$as_me:$LINENO: result: $withval" >&5
11822 echo "${ECHO_T}$withval" >&6
11823 LDLAST=-threads
11824 if test "${with_thread+set}" != set; then
11825 with_thread="$withval";
11827 else
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6
11832 # Templates for things AC_DEFINEd more than once.
11833 # For a single AC_DEFINE, no template is needed.
11841 echo "$as_me:$LINENO: checking for --with-threads" >&5
11842 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11844 # Check whether --with-threads or --without-threads was given.
11845 if test "${with_threads+set}" = set; then
11846 withval="$with_threads"
11850 # --with-thread is deprecated, but check for it anyway
11852 # Check whether --with-thread or --without-thread was given.
11853 if test "${with_thread+set}" = set; then
11854 withval="$with_thread"
11855 with_threads=$with_thread
11858 if test -z "$with_threads"
11859 then with_threads="yes"
11861 echo "$as_me:$LINENO: result: $with_threads" >&5
11862 echo "${ECHO_T}$with_threads" >&6
11865 if test "$with_threads" = "no"
11866 then
11867 USE_THREAD_MODULE="#"
11868 elif test "$ac_cv_pthread_is_default" = yes
11869 then
11870 cat >>confdefs.h <<\_ACEOF
11871 #define WITH_THREAD 1
11872 _ACEOF
11874 # Defining _REENTRANT on system with POSIX threads should not hurt.
11875 cat >>confdefs.h <<\_ACEOF
11876 #define _REENTRANT 1
11877 _ACEOF
11879 posix_threads=yes
11880 THREADOBJ="Python/thread.o"
11881 elif test "$ac_cv_kpthread" = "yes"
11882 then
11883 CC="$CC -Kpthread"
11884 if test "$ac_cv_cxx_thread" = "yes"; then
11885 CXX="$CXX -Kpthread"
11887 cat >>confdefs.h <<\_ACEOF
11888 #define WITH_THREAD 1
11889 _ACEOF
11891 posix_threads=yes
11892 THREADOBJ="Python/thread.o"
11893 elif test "$ac_cv_kthread" = "yes"
11894 then
11895 CC="$CC -Kthread"
11896 if test "$ac_cv_cxx_thread" = "yes"; then
11897 CXX="$CXX -Kthread"
11899 cat >>confdefs.h <<\_ACEOF
11900 #define WITH_THREAD 1
11901 _ACEOF
11903 posix_threads=yes
11904 THREADOBJ="Python/thread.o"
11905 elif test "$ac_cv_pthread" = "yes"
11906 then
11907 CC="$CC -pthread"
11908 if test "$ac_cv_cxx_thread" = "yes"; then
11909 CXX="$CXX -pthread"
11911 cat >>confdefs.h <<\_ACEOF
11912 #define WITH_THREAD 1
11913 _ACEOF
11915 posix_threads=yes
11916 THREADOBJ="Python/thread.o"
11917 else
11918 if test ! -z "$with_threads" -a -d "$with_threads"
11919 then LDFLAGS="$LDFLAGS -L$with_threads"
11921 if test ! -z "$withval" -a -d "$withval"
11922 then LDFLAGS="$LDFLAGS -L$withval"
11925 # According to the POSIX spec, a pthreads implementation must
11926 # define _POSIX_THREADS in unistd.h. Some apparently don't
11927 # (e.g. gnu pth with pthread emulation)
11928 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11929 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 #include <unistd.h>
11938 #ifdef _POSIX_THREADS
11940 #endif
11942 _ACEOF
11943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11944 $EGREP "yes" >/dev/null 2>&1; then
11945 unistd_defines_pthreads=yes
11946 else
11947 unistd_defines_pthreads=no
11949 rm -f conftest*
11951 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11952 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11954 cat >>confdefs.h <<\_ACEOF
11955 #define _REENTRANT 1
11956 _ACEOF
11958 if test "${ac_cv_header_cthreads_h+set}" = set; then
11959 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11960 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11961 if test "${ac_cv_header_cthreads_h+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11966 else
11967 # Is the header compilable?
11968 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11969 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 $ac_includes_default
11977 #include <cthreads.h>
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_header_compiler=no
12008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12010 echo "${ECHO_T}$ac_header_compiler" >&6
12012 # Is the header present?
12013 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12014 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 #include <cthreads.h>
12022 _ACEOF
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 else
12035 ac_cpp_err=
12037 else
12038 ac_cpp_err=yes
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12042 else
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_header_preproc=no
12048 rm -f conftest.err conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12050 echo "${ECHO_T}$ac_header_preproc" >&6
12052 # So? What about this header?
12053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12054 yes:no: )
12055 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12056 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12058 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12059 ac_header_preproc=yes
12061 no:yes:* )
12062 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12063 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12065 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12067 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12069 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12071 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12073 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12075 cat <<\_ASBOX
12076 ## ------------------------------------------------ ##
12077 ## Report this to http://www.python.org/python-bugs ##
12078 ## ------------------------------------------------ ##
12079 _ASBOX
12081 sed "s/^/$as_me: WARNING: /" >&2
12083 esac
12084 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12085 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12086 if test "${ac_cv_header_cthreads_h+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 ac_cv_header_cthreads_h=$ac_header_preproc
12091 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12092 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12095 if test $ac_cv_header_cthreads_h = yes; then
12096 cat >>confdefs.h <<\_ACEOF
12097 #define WITH_THREAD 1
12098 _ACEOF
12100 cat >>confdefs.h <<\_ACEOF
12101 #define C_THREADS 1
12102 _ACEOF
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HURD_C_THREADS 1
12107 _ACEOF
12109 LIBS="$LIBS -lthreads"
12110 THREADOBJ="Python/thread.o"
12111 else
12113 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12114 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12115 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12116 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12120 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12121 else
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12124 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <mach/cthreads.h>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_header_compiler=no
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165 echo "${ECHO_T}$ac_header_compiler" >&6
12167 # Is the header present?
12168 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12169 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <mach/cthreads.h>
12177 _ACEOF
12178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12189 else
12190 ac_cpp_err=
12192 else
12193 ac_cpp_err=yes
12195 if test -z "$ac_cpp_err"; then
12196 ac_header_preproc=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_header_preproc=no
12203 rm -f conftest.err conftest.$ac_ext
12204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12209 yes:no: )
12210 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12216 no:yes:* )
12217 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12230 cat <<\_ASBOX
12231 ## ------------------------------------------------ ##
12232 ## Report this to http://www.python.org/python-bugs ##
12233 ## ------------------------------------------------ ##
12234 _ASBOX
12236 sed "s/^/$as_me: WARNING: /" >&2
12238 esac
12239 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12240 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12241 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12246 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12247 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12250 if test $ac_cv_header_mach_cthreads_h = yes; then
12251 cat >>confdefs.h <<\_ACEOF
12252 #define WITH_THREAD 1
12253 _ACEOF
12255 cat >>confdefs.h <<\_ACEOF
12256 #define C_THREADS 1
12257 _ACEOF
12260 cat >>confdefs.h <<\_ACEOF
12261 #define MACH_C_THREADS 1
12262 _ACEOF
12264 THREADOBJ="Python/thread.o"
12265 else
12267 echo "$as_me:$LINENO: checking for --with-pth" >&5
12268 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12270 # Check whether --with-pth or --without-pth was given.
12271 if test "${with_pth+set}" = set; then
12272 withval="$with_pth"
12273 echo "$as_me:$LINENO: result: $withval" >&5
12274 echo "${ECHO_T}$withval" >&6
12275 cat >>confdefs.h <<\_ACEOF
12276 #define WITH_THREAD 1
12277 _ACEOF
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_PTH 1
12282 _ACEOF
12284 LIBS="-lpth $LIBS"
12285 THREADOBJ="Python/thread.o"
12286 else
12287 echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6
12290 # Just looking for pthread_create in libpthread is not enough:
12291 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12292 # So we really have to include pthread.h, and then link.
12293 _libs=$LIBS
12294 LIBS="$LIBS -lpthread"
12295 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12296 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <pthread.h>
12305 void * start_routine (void *arg) { exit (0); }
12307 main ()
12310 pthread_create (NULL, NULL, start_routine, NULL)
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12338 echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12340 cat >>confdefs.h <<\_ACEOF
12341 #define WITH_THREAD 1
12342 _ACEOF
12344 posix_threads=yes
12345 THREADOBJ="Python/thread.o"
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12351 LIBS=$_libs
12352 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12353 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12354 if test "${ac_cv_func_pthread_detach+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12365 #define pthread_detach innocuous_pthread_detach
12367 /* System header to define __stub macros and hopefully few prototypes,
12368 which can conflict with char pthread_detach (); below.
12369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12370 <limits.h> exists even on freestanding compilers. */
12372 #ifdef __STDC__
12373 # include <limits.h>
12374 #else
12375 # include <assert.h>
12376 #endif
12378 #undef pthread_detach
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 #ifdef __cplusplus
12382 extern "C"
12384 #endif
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char pthread_detach ();
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12392 choke me
12393 #else
12394 char (*f) () = pthread_detach;
12395 #endif
12396 #ifdef __cplusplus
12398 #endif
12401 main ()
12403 return f != pthread_detach;
12405 return 0;
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_func_pthread_detach=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_func_pthread_detach=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12440 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12441 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12442 if test $ac_cv_func_pthread_detach = yes; then
12443 cat >>confdefs.h <<\_ACEOF
12444 #define WITH_THREAD 1
12445 _ACEOF
12447 posix_threads=yes
12448 THREADOBJ="Python/thread.o"
12449 else
12451 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12452 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12453 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12454 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12458 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12459 else
12460 # Is the header compilable?
12461 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12462 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12470 #include <atheos/threads.h>
12471 _ACEOF
12472 rm -f conftest.$ac_objext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_header_compiler=yes
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_header_compiler=no
12501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 echo "${ECHO_T}$ac_header_compiler" >&6
12505 # Is the header present?
12506 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12507 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <atheos/threads.h>
12515 _ACEOF
12516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } >/dev/null; then
12524 if test -s conftest.err; then
12525 ac_cpp_err=$ac_c_preproc_warn_flag
12526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12527 else
12528 ac_cpp_err=
12530 else
12531 ac_cpp_err=yes
12533 if test -z "$ac_cpp_err"; then
12534 ac_header_preproc=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_header_preproc=no
12541 rm -f conftest.err conftest.$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 echo "${ECHO_T}$ac_header_preproc" >&6
12545 # So? What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12547 yes:no: )
12548 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12549 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12551 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12552 ac_header_preproc=yes
12554 no:yes:* )
12555 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12556 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12558 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12560 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12562 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12564 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12566 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12568 cat <<\_ASBOX
12569 ## ------------------------------------------------ ##
12570 ## Report this to http://www.python.org/python-bugs ##
12571 ## ------------------------------------------------ ##
12572 _ASBOX
12574 sed "s/^/$as_me: WARNING: /" >&2
12576 esac
12577 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12578 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12579 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582 ac_cv_header_atheos_threads_h=$ac_header_preproc
12584 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12588 if test $ac_cv_header_atheos_threads_h = yes; then
12589 cat >>confdefs.h <<\_ACEOF
12590 #define WITH_THREAD 1
12591 _ACEOF
12594 cat >>confdefs.h <<\_ACEOF
12595 #define ATHEOS_THREADS 1
12596 _ACEOF
12598 THREADOBJ="Python/thread.o"
12599 else
12601 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12602 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12603 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12604 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12608 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12609 else
12610 # Is the header compilable?
12611 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12612 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 #include <kernel/OS.h>
12621 _ACEOF
12622 rm -f conftest.$ac_objext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624 (eval $ac_compile) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_header_compiler=no
12651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653 echo "${ECHO_T}$ac_header_compiler" >&6
12655 # Is the header present?
12656 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12657 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 #include <kernel/OS.h>
12665 _ACEOF
12666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } >/dev/null; then
12674 if test -s conftest.err; then
12675 ac_cpp_err=$ac_c_preproc_warn_flag
12676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12677 else
12678 ac_cpp_err=
12680 else
12681 ac_cpp_err=yes
12683 if test -z "$ac_cpp_err"; then
12684 ac_header_preproc=yes
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12689 ac_header_preproc=no
12691 rm -f conftest.err conftest.$ac_ext
12692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693 echo "${ECHO_T}$ac_header_preproc" >&6
12695 # So? What about this header?
12696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12697 yes:no: )
12698 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12699 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12701 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12702 ac_header_preproc=yes
12704 no:yes:* )
12705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12706 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12708 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12710 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12712 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12714 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12716 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12718 cat <<\_ASBOX
12719 ## ------------------------------------------------ ##
12720 ## Report this to http://www.python.org/python-bugs ##
12721 ## ------------------------------------------------ ##
12722 _ASBOX
12724 sed "s/^/$as_me: WARNING: /" >&2
12726 esac
12727 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12728 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 ac_cv_header_kernel_OS_h=$ac_header_preproc
12734 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12735 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12738 if test $ac_cv_header_kernel_OS_h = yes; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define WITH_THREAD 1
12741 _ACEOF
12744 cat >>confdefs.h <<\_ACEOF
12745 #define BEOS_THREADS 1
12746 _ACEOF
12748 THREADOBJ="Python/thread.o"
12749 else
12751 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12752 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12753 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lpthreads $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char pthread_create ();
12773 main ()
12775 pthread_create ();
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_lib_pthreads_pthread_create=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_pthreads_pthread_create=no
12809 rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12814 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12815 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12816 cat >>confdefs.h <<\_ACEOF
12817 #define WITH_THREAD 1
12818 _ACEOF
12820 posix_threads=yes
12821 LIBS="$LIBS -lpthreads"
12822 THREADOBJ="Python/thread.o"
12823 else
12825 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12826 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12827 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 ac_check_lib_save_LIBS=$LIBS
12831 LIBS="-lc_r $LIBS"
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 /* Override any gcc2 internal prototype to avoid an error. */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char pthread_create ();
12847 main ()
12849 pthread_create ();
12851 return 0;
12853 _ACEOF
12854 rm -f conftest.$ac_objext conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_c_r_pthread_create=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_cv_lib_c_r_pthread_create=no
12883 rm -f conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12888 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12889 if test $ac_cv_lib_c_r_pthread_create = yes; then
12890 cat >>confdefs.h <<\_ACEOF
12891 #define WITH_THREAD 1
12892 _ACEOF
12894 posix_threads=yes
12895 LIBS="$LIBS -lc_r"
12896 THREADOBJ="Python/thread.o"
12897 else
12899 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12900 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12901 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lpthread $LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char __pthread_create_system ();
12921 main ()
12923 __pthread_create_system ();
12925 return 0;
12927 _ACEOF
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_lib_pthread___pthread_create_system=yes
12951 else
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_cv_lib_pthread___pthread_create_system=no
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12962 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12963 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define WITH_THREAD 1
12966 _ACEOF
12968 posix_threads=yes
12969 LIBS="$LIBS -lpthread"
12970 THREADOBJ="Python/thread.o"
12971 else
12973 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12974 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12975 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978 ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-lcma $LIBS"
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h. */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 /* Override any gcc2 internal prototype to avoid an error. */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 /* We use char because int might match the return type of a gcc2
12992 builtin and then its argument prototype would still apply. */
12993 char pthread_create ();
12995 main ()
12997 pthread_create ();
12999 return 0;
13001 _ACEOF
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_lib_cma_pthread_create=yes
13025 else
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_cv_lib_cma_pthread_create=no
13031 rm -f conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13036 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13037 if test $ac_cv_lib_cma_pthread_create = yes; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define WITH_THREAD 1
13040 _ACEOF
13042 posix_threads=yes
13043 LIBS="$LIBS -lcma"
13044 THREADOBJ="Python/thread.o"
13045 else
13047 USE_THREAD_MODULE="#"
13066 rm -f conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13076 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13077 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13078 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lmpc $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 /* Override any gcc2 internal prototype to avoid an error. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13096 char usconfig ();
13098 main ()
13100 usconfig ();
13102 return 0;
13104 _ACEOF
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13107 (eval $ac_link) 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_mpc_usconfig=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_cv_lib_mpc_usconfig=no
13134 rm -f conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13139 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13140 if test $ac_cv_lib_mpc_usconfig = yes; then
13141 cat >>confdefs.h <<\_ACEOF
13142 #define WITH_THREAD 1
13143 _ACEOF
13145 LIBS="$LIBS -lmpc"
13146 THREADOBJ="Python/thread.o"
13147 USE_THREAD_MODULE=""
13151 if test "$posix_threads" != "yes"; then
13152 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13153 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13154 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-lthread $LIBS"
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 /* Override any gcc2 internal prototype to avoid an error. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13172 char thr_create ();
13174 main ()
13176 thr_create ();
13178 return 0;
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13183 (eval $ac_link) 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try='test -z "$ac_c_werror_flag"
13191 || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_lib_thread_thr_create=yes
13204 else
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_cv_lib_thread_thr_create=no
13210 rm -f conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13215 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13216 if test $ac_cv_lib_thread_thr_create = yes; then
13217 cat >>confdefs.h <<\_ACEOF
13218 #define WITH_THREAD 1
13219 _ACEOF
13221 LIBS="$LIBS -lthread"
13222 THREADOBJ="Python/thread.o"
13223 USE_THREAD_MODULE=""
13228 if test "$USE_THREAD_MODULE" != "#"
13229 then
13230 # If the above checks didn't disable threads, (at least) OSF1
13231 # needs this '-threads' argument during linking.
13232 case $ac_sys_system in
13233 OSF1) LDLAST=-threads;;
13234 esac
13238 if test "$posix_threads" = "yes"; then
13239 if test "$unistd_defines_pthreads" = "no"; then
13241 cat >>confdefs.h <<\_ACEOF
13242 #define _POSIX_THREADS 1
13243 _ACEOF
13247 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13248 case $ac_sys_system/$ac_sys_release in
13249 SunOS/5.6)
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_PTHREAD_DESTRUCTOR 1
13252 _ACEOF
13255 SunOS/5.8)
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13258 _ACEOF
13261 esac
13263 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13264 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13265 if test "${ac_cv_pthread_system_supported+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 if test "$cross_compiling" = yes; then
13269 ac_cv_pthread_system_supported=no
13270 else
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <pthread.h>
13278 void *foo(void *parm) {
13279 return NULL;
13281 main() {
13282 pthread_attr_t attr;
13283 pthread_t id;
13284 if (pthread_attr_init(&attr)) exit(-1);
13285 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13286 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13287 exit(0);
13289 _ACEOF
13290 rm -f conftest$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_pthread_system_supported=yes
13302 else
13303 echo "$as_me: program exited with status $ac_status" >&5
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ( exit $ac_status )
13308 ac_cv_pthread_system_supported=no
13310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13316 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13317 if test "$ac_cv_pthread_system_supported" = "yes"; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13321 _ACEOF
13325 for ac_func in pthread_sigmask
13327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13328 echo "$as_me:$LINENO: checking for $ac_func" >&5
13329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13330 if eval "test \"\${$as_ac_var+set}\" = set"; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13341 #define $ac_func innocuous_$ac_func
13343 /* System header to define __stub macros and hopefully few prototypes,
13344 which can conflict with char $ac_func (); below.
13345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13346 <limits.h> exists even on freestanding compilers. */
13348 #ifdef __STDC__
13349 # include <limits.h>
13350 #else
13351 # include <assert.h>
13352 #endif
13354 #undef $ac_func
13356 /* Override any gcc2 internal prototype to avoid an error. */
13357 #ifdef __cplusplus
13358 extern "C"
13360 #endif
13361 /* We use char because int might match the return type of a gcc2
13362 builtin and then its argument prototype would still apply. */
13363 char $ac_func ();
13364 /* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368 choke me
13369 #else
13370 char (*f) () = $ac_func;
13371 #endif
13372 #ifdef __cplusplus
13374 #endif
13377 main ()
13379 return f != $ac_func;
13381 return 0;
13383 _ACEOF
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 eval "$as_ac_var=yes"
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 eval "$as_ac_var=no"
13413 rm -f conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13418 if test `eval echo '${'$as_ac_var'}'` = yes; then
13419 cat >>confdefs.h <<_ACEOF
13420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13421 _ACEOF
13422 case $ac_sys_system in
13423 CYGWIN*)
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13427 _ACEOF
13430 esac
13432 done
13437 # Check for enable-ipv6
13440 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13441 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13442 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13443 if test "${enable_ipv6+set}" = set; then
13444 enableval="$enable_ipv6"
13445 case "$enableval" in
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13449 ipv6=no
13451 *) echo "$as_me:$LINENO: result: yes" >&5
13452 echo "${ECHO_T}yes" >&6
13453 cat >>confdefs.h <<\_ACEOF
13454 #define ENABLE_IPV6 1
13455 _ACEOF
13457 ipv6=yes
13459 esac
13460 else
13462 if test "$cross_compiling" = yes; then
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13465 ipv6=no
13467 else
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 /* AF_INET6 available check */
13475 #include <sys/types.h>
13476 #include <sys/socket.h>
13477 main()
13479 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13480 exit(1);
13481 else
13482 exit(0);
13485 _ACEOF
13486 rm -f conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13499 ipv6=yes
13500 else
13501 echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ( exit $ac_status )
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13508 ipv6=no
13510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13513 if test "$ipv6" = "yes"; then
13514 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13515 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h. */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 #include <sys/types.h>
13523 #include <netinet/in.h>
13525 main ()
13527 struct sockaddr_in6 x;
13528 x.sin6_scope_id;
13530 return 0;
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13557 ipv6=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6
13564 ipv6=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 if test "$ipv6" = "yes"; then
13570 cat >>confdefs.h <<\_ACEOF
13571 #define ENABLE_IPV6 1
13572 _ACEOF
13578 ipv6type=unknown
13579 ipv6lib=none
13580 ipv6trylibc=no
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13584 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13585 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13587 case $i in
13588 inria)
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 #include <netinet/in.h>
13597 #ifdef IPV6_INRIA_VERSION
13599 #endif
13600 _ACEOF
13601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13602 $EGREP "yes" >/dev/null 2>&1; then
13603 ipv6type=$i
13605 rm -f conftest*
13608 kame)
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 #include <netinet/in.h>
13617 #ifdef __KAME__
13619 #endif
13620 _ACEOF
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "yes" >/dev/null 2>&1; then
13623 ipv6type=$i;
13624 ipv6lib=inet6
13625 ipv6libdir=/usr/local/v6/lib
13626 ipv6trylibc=yes
13628 rm -f conftest*
13631 linux-glibc)
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13639 #include <features.h>
13640 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13642 #endif
13643 _ACEOF
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "yes" >/dev/null 2>&1; then
13646 ipv6type=$i;
13647 ipv6trylibc=yes
13649 rm -f conftest*
13652 linux-inet6)
13653 if test -d /usr/inet6; then
13654 ipv6type=$i
13655 ipv6lib=inet6
13656 ipv6libdir=/usr/inet6/lib
13657 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13660 solaris)
13661 if test -f /etc/netconfig; then
13662 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13663 ipv6type=$i
13664 ipv6trylibc=yes
13668 toshiba)
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 #include <sys/param.h>
13677 #ifdef _TOSHIBA_INET6
13679 #endif
13680 _ACEOF
13681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 $EGREP "yes" >/dev/null 2>&1; then
13683 ipv6type=$i;
13684 ipv6lib=inet6;
13685 ipv6libdir=/usr/local/v6/lib
13687 rm -f conftest*
13690 v6d)
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 #include </usr/local/v6/include/sys/v6config.h>
13699 #ifdef __V6D__
13701 #endif
13702 _ACEOF
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "yes" >/dev/null 2>&1; then
13705 ipv6type=$i;
13706 ipv6lib=v6;
13707 ipv6libdir=/usr/local/v6/lib;
13708 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13710 rm -f conftest*
13713 zeta)
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13721 #include <sys/param.h>
13722 #ifdef _ZETA_MINAMI_INET6
13724 #endif
13725 _ACEOF
13726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13727 $EGREP "yes" >/dev/null 2>&1; then
13728 ipv6type=$i;
13729 ipv6lib=inet6;
13730 ipv6libdir=/usr/local/v6/lib
13732 rm -f conftest*
13735 esac
13736 if test "$ipv6type" != "unknown"; then
13737 break
13739 done
13740 echo "$as_me:$LINENO: result: $ipv6type" >&5
13741 echo "${ECHO_T}$ipv6type" >&6
13744 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13745 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13746 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13747 echo "using lib$ipv6lib"
13748 else
13749 if test $ipv6trylibc = "yes"; then
13750 echo "using libc"
13751 else
13752 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13753 echo "You need to fetch lib$ipv6lib.a from appropriate"
13754 echo 'ipv6 kit and compile beforehand.'
13755 exit 1
13760 # Check for --with-doc-strings
13761 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13762 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13764 # Check whether --with-doc-strings or --without-doc-strings was given.
13765 if test "${with_doc_strings+set}" = set; then
13766 withval="$with_doc_strings"
13770 if test -z "$with_doc_strings"
13771 then with_doc_strings="yes"
13773 if test "$with_doc_strings" != "no"
13774 then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define WITH_DOC_STRINGS 1
13778 _ACEOF
13781 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13782 echo "${ECHO_T}$with_doc_strings" >&6
13784 # Check for Python-specific malloc support
13785 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13786 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13788 # Check whether --with-tsc or --without-tsc was given.
13789 if test "${with_tsc+set}" = set; then
13790 withval="$with_tsc"
13792 if test "$withval" != no
13793 then
13795 cat >>confdefs.h <<\_ACEOF
13796 #define WITH_TSC 1
13797 _ACEOF
13799 echo "$as_me:$LINENO: result: yes" >&5
13800 echo "${ECHO_T}yes" >&6
13801 else echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6
13804 else
13805 echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6
13809 # Check for Python-specific malloc support
13810 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13811 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13813 # Check whether --with-pymalloc or --without-pymalloc was given.
13814 if test "${with_pymalloc+set}" = set; then
13815 withval="$with_pymalloc"
13819 if test -z "$with_pymalloc"
13820 then with_pymalloc="yes"
13822 if test "$with_pymalloc" != "no"
13823 then
13825 cat >>confdefs.h <<\_ACEOF
13826 #define WITH_PYMALLOC 1
13827 _ACEOF
13830 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13831 echo "${ECHO_T}$with_pymalloc" >&6
13833 # Check for --with-wctype-functions
13834 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13835 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13837 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13838 if test "${with_wctype_functions+set}" = set; then
13839 withval="$with_wctype_functions"
13841 if test "$withval" != no
13842 then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define WANT_WCTYPE_FUNCTIONS 1
13846 _ACEOF
13848 echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6
13850 else echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6
13853 else
13854 echo "$as_me:$LINENO: result: no" >&5
13855 echo "${ECHO_T}no" >&6
13858 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13860 DLINCLDIR=.
13862 # the dlopen() function means we might want to use dynload_shlib.o. some
13863 # platforms, such as AIX, have dlopen(), but don't want to use it.
13865 for ac_func in dlopen
13867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13868 echo "$as_me:$LINENO: checking for $ac_func" >&5
13869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_var+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13881 #define $ac_func innocuous_$ac_func
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func (); below.
13885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 <limits.h> exists even on freestanding compilers. */
13888 #ifdef __STDC__
13889 # include <limits.h>
13890 #else
13891 # include <assert.h>
13892 #endif
13894 #undef $ac_func
13896 /* Override any gcc2 internal prototype to avoid an error. */
13897 #ifdef __cplusplus
13898 extern "C"
13900 #endif
13901 /* We use char because int might match the return type of a gcc2
13902 builtin and then its argument prototype would still apply. */
13903 char $ac_func ();
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13908 choke me
13909 #else
13910 char (*f) () = $ac_func;
13911 #endif
13912 #ifdef __cplusplus
13914 #endif
13917 main ()
13919 return f != $ac_func;
13921 return 0;
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 eval "$as_ac_var=yes"
13947 else
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 eval "$as_ac_var=no"
13953 rm -f conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13958 if test `eval echo '${'$as_ac_var'}'` = yes; then
13959 cat >>confdefs.h <<_ACEOF
13960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13961 _ACEOF
13964 done
13967 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13968 # loading of modules.
13970 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13971 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13972 if test -z "$DYNLOADFILE"
13973 then
13974 case $ac_sys_system/$ac_sys_release in
13975 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13976 if test "$ac_cv_func_dlopen" = yes
13977 then DYNLOADFILE="dynload_shlib.o"
13978 else DYNLOADFILE="dynload_aix.o"
13981 BeOS*) DYNLOADFILE="dynload_beos.o";;
13982 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13983 Darwin/*) DYNLOADFILE="dynload_next.o";;
13984 atheos*) DYNLOADFILE="dynload_atheos.o";;
13986 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13987 # out any dynamic loading
13988 if test "$ac_cv_func_dlopen" = yes
13989 then DYNLOADFILE="dynload_shlib.o"
13990 else DYNLOADFILE="dynload_stub.o"
13993 esac
13995 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13996 echo "${ECHO_T}$DYNLOADFILE" >&6
13997 if test "$DYNLOADFILE" != "dynload_stub.o"
13998 then
14000 cat >>confdefs.h <<\_ACEOF
14001 #define HAVE_DYNAMIC_LOADING 1
14002 _ACEOF
14006 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14009 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14010 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14011 if test -z "$MACHDEP_OBJS"
14012 then
14013 MACHDEP_OBJS=$extra_machdep_objs
14014 else
14015 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14017 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14018 echo "${ECHO_T}MACHDEP_OBJS" >&6
14020 # checks for library functions
14097 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14098 execv fork fpathconf ftime ftruncate \
14099 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14100 getpriority getpwent getspnam getspent getsid getwd \
14101 kill killpg lchown lstat mkfifo mknod mktime \
14102 mremap nice pathconf pause plock poll pthread_init \
14103 putenv readlink realpath \
14104 select setegid seteuid setgid \
14105 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14106 sigaction siginterrupt sigrelse strftime \
14107 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14108 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 echo "$as_me:$LINENO: checking for $ac_func" >&5
14112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14113 if eval "test \"\${$as_ac_var+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124 #define $ac_func innocuous_$ac_func
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char $ac_func (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14131 #ifdef __STDC__
14132 # include <limits.h>
14133 #else
14134 # include <assert.h>
14135 #endif
14137 #undef $ac_func
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 #ifdef __cplusplus
14141 extern "C"
14143 #endif
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14146 char $ac_func ();
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14151 choke me
14152 #else
14153 char (*f) () = $ac_func;
14154 #endif
14155 #ifdef __cplusplus
14157 #endif
14160 main ()
14162 return f != $ac_func;
14164 return 0;
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest$ac_exeext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 eval "$as_ac_var=yes"
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 eval "$as_ac_var=no"
14196 rm -f conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202 cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14204 _ACEOF
14207 done
14210 # For some functions, having a definition is not sufficient, since
14211 # we want to take their address.
14212 echo "$as_me:$LINENO: checking for chroot" >&5
14213 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <unistd.h>
14222 main ()
14224 void *x=chroot
14226 return 0;
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14252 cat >>confdefs.h <<\_ACEOF
14253 #define HAVE_CHROOT 1
14254 _ACEOF
14256 echo "$as_me:$LINENO: result: yes" >&5
14257 echo "${ECHO_T}yes" >&6
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6
14266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 echo "$as_me:$LINENO: checking for link" >&5
14268 echo $ECHO_N "checking for link... $ECHO_C" >&6
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <unistd.h>
14277 main ()
14279 void *x=link
14281 return 0;
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_LINK 1
14309 _ACEOF
14311 echo "$as_me:$LINENO: result: yes" >&5
14312 echo "${ECHO_T}yes" >&6
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 echo "$as_me:$LINENO: result: no" >&5
14318 echo "${ECHO_T}no" >&6
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322 echo "$as_me:$LINENO: checking for symlink" >&5
14323 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 #include <unistd.h>
14332 main ()
14334 void *x=symlink
14336 return 0;
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14362 cat >>confdefs.h <<\_ACEOF
14363 #define HAVE_SYMLINK 1
14364 _ACEOF
14366 echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6
14368 else
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 echo "$as_me:$LINENO: result: no" >&5
14373 echo "${ECHO_T}no" >&6
14376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14377 echo "$as_me:$LINENO: checking for fchdir" >&5
14378 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 #include <unistd.h>
14387 main ()
14389 void *x=fchdir
14391 return 0;
14393 _ACEOF
14394 rm -f conftest.$ac_objext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396 (eval $ac_compile) 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_FCHDIR 1
14419 _ACEOF
14421 echo "$as_me:$LINENO: result: yes" >&5
14422 echo "${ECHO_T}yes" >&6
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 echo "$as_me:$LINENO: result: no" >&5
14428 echo "${ECHO_T}no" >&6
14431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me:$LINENO: checking for fsync" >&5
14433 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <unistd.h>
14442 main ()
14444 void *x=fsync
14446 return 0;
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_FSYNC 1
14474 _ACEOF
14476 echo "$as_me:$LINENO: result: yes" >&5
14477 echo "${ECHO_T}yes" >&6
14478 else
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 echo "$as_me:$LINENO: result: no" >&5
14483 echo "${ECHO_T}no" >&6
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487 echo "$as_me:$LINENO: checking for fdatasync" >&5
14488 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <unistd.h>
14497 main ()
14499 void *x=fdatasync
14501 return 0;
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag"
14514 || test ! -s conftest.err'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; } &&
14520 { ac_try='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_FDATASYNC 1
14529 _ACEOF
14531 echo "$as_me:$LINENO: result: yes" >&5
14532 echo "${ECHO_T}yes" >&6
14533 else
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 echo "$as_me:$LINENO: result: no" >&5
14538 echo "${ECHO_T}no" >&6
14541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14543 # On some systems (eg. FreeBSD 5), we would find a definition of the
14544 # functions ctermid_r, setgroups in the library, but no prototype
14545 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14546 # address to avoid compiler warnings and potential miscompilations
14547 # because of the missing prototypes.
14549 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14550 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 #include "confdefs.h"
14559 #include <stdio.h>
14562 main ()
14564 void* p = ctermid_r
14566 return 0;
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_c_werror_flag"
14579 || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_CTERMID_R 1
14594 _ACEOF
14596 echo "$as_me:$LINENO: result: yes" >&5
14597 echo "${ECHO_T}yes" >&6
14598 else
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 echo "$as_me:$LINENO: result: no" >&5
14603 echo "${ECHO_T}no" >&6
14606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 echo "$as_me:$LINENO: checking for flock" >&5
14609 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 #include "confdefs.h"
14618 #include <sys/file.h>
14621 main ()
14623 void* p = flock
14625 return 0;
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630 (eval $ac_compile) 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag"
14638 || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14651 cat >>confdefs.h <<\_ACEOF
14652 #define HAVE_FLOCK 1
14653 _ACEOF
14655 echo "$as_me:$LINENO: result: yes" >&5
14656 echo "${ECHO_T}yes" >&6
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 echo "$as_me:$LINENO: result: no" >&5
14662 echo "${ECHO_T}no" >&6
14665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14667 echo "$as_me:$LINENO: checking for getpagesize" >&5
14668 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14676 #include "confdefs.h"
14677 #include <unistd.h>
14680 main ()
14682 void* p = getpagesize
14684 return 0;
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689 (eval $ac_compile) 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -z "$ac_c_werror_flag"
14697 || test ! -s conftest.err'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; } &&
14703 { ac_try='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14710 cat >>confdefs.h <<\_ACEOF
14711 #define HAVE_GETPAGESIZE 1
14712 _ACEOF
14714 echo "$as_me:$LINENO: result: yes" >&5
14715 echo "${ECHO_T}yes" >&6
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 echo "$as_me:$LINENO: result: no" >&5
14721 echo "${ECHO_T}no" >&6
14724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14726 for ac_prog in true
14728 # Extract the first word of "$ac_prog", so it can be a program name with args.
14729 set dummy $ac_prog; ac_word=$2
14730 echo "$as_me:$LINENO: checking for $ac_word" >&5
14731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14732 if test "${ac_cv_prog_TRUE+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 if test -n "$TRUE"; then
14736 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14737 else
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14741 IFS=$as_save_IFS
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 ac_cv_prog_TRUE="$ac_prog"
14746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14747 break 2
14749 done
14750 done
14754 TRUE=$ac_cv_prog_TRUE
14755 if test -n "$TRUE"; then
14756 echo "$as_me:$LINENO: result: $TRUE" >&5
14757 echo "${ECHO_T}$TRUE" >&6
14758 else
14759 echo "$as_me:$LINENO: result: no" >&5
14760 echo "${ECHO_T}no" >&6
14763 test -n "$TRUE" && break
14764 done
14765 test -n "$TRUE" || TRUE="/bin/true"
14768 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14769 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14770 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 ac_check_lib_save_LIBS=$LIBS
14774 LIBS="-lc $LIBS"
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 /* Override any gcc2 internal prototype to avoid an error. */
14783 #ifdef __cplusplus
14784 extern "C"
14785 #endif
14786 /* We use char because int might match the return type of a gcc2
14787 builtin and then its argument prototype would still apply. */
14788 char inet_aton ();
14790 main ()
14792 inet_aton ();
14794 return 0;
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>conftest.er1
14800 ac_status=$?
14801 grep -v '^ *+' conftest.er1 >conftest.err
14802 rm -f conftest.er1
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -z "$ac_c_werror_flag"
14807 || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_lib_c_inet_aton=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_lib_c_inet_aton=no
14826 rm -f conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 LIBS=$ac_check_lib_save_LIBS
14830 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14831 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14832 if test $ac_cv_lib_c_inet_aton = yes; then
14833 $ac_cv_prog_TRUE
14834 else
14836 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14837 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14838 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841 ac_check_lib_save_LIBS=$LIBS
14842 LIBS="-lresolv $LIBS"
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 #ifdef __cplusplus
14852 extern "C"
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char inet_aton ();
14858 main ()
14860 inet_aton ();
14862 return 0;
14864 _ACEOF
14865 rm -f conftest.$ac_objext conftest$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_lib_resolv_inet_aton=yes
14888 else
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_lib_resolv_inet_aton=no
14894 rm -f conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14899 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14900 if test $ac_cv_lib_resolv_inet_aton = yes; then
14901 cat >>confdefs.h <<_ACEOF
14902 #define HAVE_LIBRESOLV 1
14903 _ACEOF
14905 LIBS="-lresolv $LIBS"
14913 echo "$as_me:$LINENO: checking for hstrerror" >&5
14914 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14922 #include "confdefs.h"
14923 #include <netdb.h>
14926 main ()
14928 void* p = hstrerror; hstrerror(0)
14930 return 0;
14932 _ACEOF
14933 rm -f conftest.$ac_objext conftest$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14956 cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_HSTRERROR 1
14958 _ACEOF
14960 echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 echo "$as_me:$LINENO: result: no" >&5
14967 echo "${ECHO_T}no" >&6
14970 rm -f conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14973 echo "$as_me:$LINENO: checking for inet_aton" >&5
14974 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 #include "confdefs.h"
14983 #include <sys/types.h>
14984 #include <sys/socket.h>
14985 #include <netinet/in.h>
14986 #include <arpa/inet.h>
14989 main ()
14991 void* p = inet_aton;inet_aton(0,0)
14993 return 0;
14995 _ACEOF
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag"
15006 || test ! -s conftest.err'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest$ac_exeext'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_INET_ATON 1
15021 _ACEOF
15023 echo "$as_me:$LINENO: result: yes" >&5
15024 echo "${ECHO_T}yes" >&6
15025 else
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 echo "$as_me:$LINENO: result: no" >&5
15030 echo "${ECHO_T}no" >&6
15033 rm -f conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15036 echo "$as_me:$LINENO: checking for inet_pton" >&5
15037 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15045 #include "confdefs.h"
15046 #include <sys/types.h>
15047 #include <sys/socket.h>
15048 #include <netinet/in.h>
15049 #include <arpa/inet.h>
15052 main ()
15054 void* p = inet_pton
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_INET_PTON 1
15084 _ACEOF
15086 echo "$as_me:$LINENO: result: yes" >&5
15087 echo "${ECHO_T}yes" >&6
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 echo "$as_me:$LINENO: result: no" >&5
15093 echo "${ECHO_T}no" >&6
15096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15098 # On some systems, setgroups is in unistd.h, on others, in grp.h
15099 echo "$as_me:$LINENO: checking for setgroups" >&5
15100 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 #include "confdefs.h"
15109 #include <unistd.h>
15110 #ifdef HAVE_GRP_H
15111 #include <grp.h>
15112 #endif
15115 main ()
15117 void* p = setgroups
15119 return 0;
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest.$ac_objext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_SETGROUPS 1
15147 _ACEOF
15149 echo "$as_me:$LINENO: result: yes" >&5
15150 echo "${ECHO_T}yes" >&6
15151 else
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 echo "$as_me:$LINENO: result: no" >&5
15156 echo "${ECHO_T}no" >&6
15159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15161 # check for openpty and forkpty
15164 for ac_func in openpty
15166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15167 echo "$as_me:$LINENO: checking for $ac_func" >&5
15168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15169 if eval "test \"\${$as_ac_var+set}\" = set"; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15180 #define $ac_func innocuous_$ac_func
15182 /* System header to define __stub macros and hopefully few prototypes,
15183 which can conflict with char $ac_func (); below.
15184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15185 <limits.h> exists even on freestanding compilers. */
15187 #ifdef __STDC__
15188 # include <limits.h>
15189 #else
15190 # include <assert.h>
15191 #endif
15193 #undef $ac_func
15195 /* Override any gcc2 internal prototype to avoid an error. */
15196 #ifdef __cplusplus
15197 extern "C"
15199 #endif
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15202 char $ac_func ();
15203 /* The GNU C library defines this for functions which it implements
15204 to always fail with ENOSYS. Some functions are actually named
15205 something starting with __ and the normal name is an alias. */
15206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15207 choke me
15208 #else
15209 char (*f) () = $ac_func;
15210 #endif
15211 #ifdef __cplusplus
15213 #endif
15216 main ()
15218 return f != $ac_func;
15220 return 0;
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 eval "$as_ac_var=yes"
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 eval "$as_ac_var=no"
15252 rm -f conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15257 if test `eval echo '${'$as_ac_var'}'` = yes; then
15258 cat >>confdefs.h <<_ACEOF
15259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15260 _ACEOF
15262 else
15263 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15264 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15265 if test "${ac_cv_lib_util_openpty+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268 ac_check_lib_save_LIBS=$LIBS
15269 LIBS="-lutil $LIBS"
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15277 /* Override any gcc2 internal prototype to avoid an error. */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 /* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15283 char openpty ();
15285 main ()
15287 openpty ();
15289 return 0;
15291 _ACEOF
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -z "$ac_c_werror_flag"
15302 || test ! -s conftest.err'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_lib_util_openpty=yes
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_lib_util_openpty=no
15321 rm -f conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15326 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15327 if test $ac_cv_lib_util_openpty = yes; then
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_OPENPTY 1
15330 _ACEOF
15331 LIBS="$LIBS -lutil"
15332 else
15333 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15334 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15335 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 ac_check_lib_save_LIBS=$LIBS
15339 LIBS="-lbsd $LIBS"
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15347 /* Override any gcc2 internal prototype to avoid an error. */
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15353 char openpty ();
15355 main ()
15357 openpty ();
15359 return 0;
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>conftest.er1
15365 ac_status=$?
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_lib_bsd_openpty=yes
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_cv_lib_bsd_openpty=no
15391 rm -f conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 LIBS=$ac_check_lib_save_LIBS
15395 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15396 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15397 if test $ac_cv_lib_bsd_openpty = yes; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_OPENPTY 1
15400 _ACEOF
15401 LIBS="$LIBS -lbsd"
15409 done
15412 for ac_func in forkpty
15414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 echo "$as_me:$LINENO: checking for $ac_func" >&5
15416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15417 if eval "test \"\${$as_ac_var+set}\" = set"; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15428 #define $ac_func innocuous_$ac_func
15430 /* System header to define __stub macros and hopefully few prototypes,
15431 which can conflict with char $ac_func (); below.
15432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433 <limits.h> exists even on freestanding compilers. */
15435 #ifdef __STDC__
15436 # include <limits.h>
15437 #else
15438 # include <assert.h>
15439 #endif
15441 #undef $ac_func
15443 /* Override any gcc2 internal prototype to avoid an error. */
15444 #ifdef __cplusplus
15445 extern "C"
15447 #endif
15448 /* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15450 char $ac_func ();
15451 /* The GNU C library defines this for functions which it implements
15452 to always fail with ENOSYS. Some functions are actually named
15453 something starting with __ and the normal name is an alias. */
15454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15455 choke me
15456 #else
15457 char (*f) () = $ac_func;
15458 #endif
15459 #ifdef __cplusplus
15461 #endif
15464 main ()
15466 return f != $ac_func;
15468 return 0;
15470 _ACEOF
15471 rm -f conftest.$ac_objext conftest$ac_exeext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15473 (eval $ac_link) 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest$ac_exeext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 eval "$as_ac_var=yes"
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 eval "$as_ac_var=no"
15500 rm -f conftest.err conftest.$ac_objext \
15501 conftest$ac_exeext conftest.$ac_ext
15503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15505 if test `eval echo '${'$as_ac_var'}'` = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15508 _ACEOF
15510 else
15511 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15512 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15513 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516 ac_check_lib_save_LIBS=$LIBS
15517 LIBS="-lutil $LIBS"
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h. */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15525 /* Override any gcc2 internal prototype to avoid an error. */
15526 #ifdef __cplusplus
15527 extern "C"
15528 #endif
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15531 char forkpty ();
15533 main ()
15535 forkpty ();
15537 return 0;
15539 _ACEOF
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15542 (eval $ac_link) 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -z "$ac_c_werror_flag"
15550 || test ! -s conftest.err'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; } &&
15556 { ac_try='test -s conftest$ac_exeext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_cv_lib_util_forkpty=yes
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_cv_lib_util_forkpty=no
15569 rm -f conftest.err conftest.$ac_objext \
15570 conftest$ac_exeext conftest.$ac_ext
15571 LIBS=$ac_check_lib_save_LIBS
15573 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15574 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15575 if test $ac_cv_lib_util_forkpty = yes; then
15576 cat >>confdefs.h <<\_ACEOF
15577 #define HAVE_FORKPTY 1
15578 _ACEOF
15579 LIBS="$LIBS -lutil"
15580 else
15581 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15582 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15583 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 ac_check_lib_save_LIBS=$LIBS
15587 LIBS="-lbsd $LIBS"
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15595 /* Override any gcc2 internal prototype to avoid an error. */
15596 #ifdef __cplusplus
15597 extern "C"
15598 #endif
15599 /* We use char because int might match the return type of a gcc2
15600 builtin and then its argument prototype would still apply. */
15601 char forkpty ();
15603 main ()
15605 forkpty ();
15607 return 0;
15609 _ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15612 (eval $ac_link) 2>conftest.er1
15613 ac_status=$?
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -z "$ac_c_werror_flag"
15620 || test ! -s conftest.err'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest$ac_exeext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_cv_lib_bsd_forkpty=yes
15633 else
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 ac_cv_lib_bsd_forkpty=no
15639 rm -f conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15644 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15645 if test $ac_cv_lib_bsd_forkpty = yes; then
15646 cat >>confdefs.h <<\_ACEOF
15647 #define HAVE_FORKPTY 1
15648 _ACEOF
15649 LIBS="$LIBS -lbsd"
15657 done
15660 # check for long file support functions
15667 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15670 echo "$as_me:$LINENO: checking for $ac_func" >&5
15671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15672 if eval "test \"\${$as_ac_var+set}\" = set"; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15683 #define $ac_func innocuous_$ac_func
15685 /* System header to define __stub macros and hopefully few prototypes,
15686 which can conflict with char $ac_func (); below.
15687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15688 <limits.h> exists even on freestanding compilers. */
15690 #ifdef __STDC__
15691 # include <limits.h>
15692 #else
15693 # include <assert.h>
15694 #endif
15696 #undef $ac_func
15698 /* Override any gcc2 internal prototype to avoid an error. */
15699 #ifdef __cplusplus
15700 extern "C"
15702 #endif
15703 /* We use char because int might match the return type of a gcc2
15704 builtin and then its argument prototype would still apply. */
15705 char $ac_func ();
15706 /* The GNU C library defines this for functions which it implements
15707 to always fail with ENOSYS. Some functions are actually named
15708 something starting with __ and the normal name is an alias. */
15709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15710 choke me
15711 #else
15712 char (*f) () = $ac_func;
15713 #endif
15714 #ifdef __cplusplus
15716 #endif
15719 main ()
15721 return f != $ac_func;
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15728 (eval $ac_link) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 eval "$as_ac_var=yes"
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 eval "$as_ac_var=no"
15755 rm -f conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15760 if test `eval echo '${'$as_ac_var'}'` = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15763 _ACEOF
15766 done
15774 for ac_func in dup2 getcwd strdup strerror memmove
15776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15777 echo "$as_me:$LINENO: checking for $ac_func" >&5
15778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15779 if eval "test \"\${$as_ac_var+set}\" = set"; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15790 #define $ac_func innocuous_$ac_func
15792 /* System header to define __stub macros and hopefully few prototypes,
15793 which can conflict with char $ac_func (); below.
15794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795 <limits.h> exists even on freestanding compilers. */
15797 #ifdef __STDC__
15798 # include <limits.h>
15799 #else
15800 # include <assert.h>
15801 #endif
15803 #undef $ac_func
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 #ifdef __cplusplus
15807 extern "C"
15809 #endif
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func ();
15813 /* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817 choke me
15818 #else
15819 char (*f) () = $ac_func;
15820 #endif
15821 #ifdef __cplusplus
15823 #endif
15826 main ()
15828 return f != $ac_func;
15830 return 0;
15832 _ACEOF
15833 rm -f conftest.$ac_objext conftest$ac_exeext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835 (eval $ac_link) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest$ac_exeext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 eval "$as_ac_var=no"
15862 rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15867 if test `eval echo '${'$as_ac_var'}'` = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15870 _ACEOF
15872 else
15873 case $LIBOBJS in
15874 "$ac_func.$ac_objext" | \
15875 *" $ac_func.$ac_objext" | \
15876 "$ac_func.$ac_objext "* | \
15877 *" $ac_func.$ac_objext "* ) ;;
15878 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15879 esac
15882 done
15886 for ac_func in getpgrp
15888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15889 echo "$as_me:$LINENO: checking for $ac_func" >&5
15890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15891 if eval "test \"\${$as_ac_var+set}\" = set"; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h. */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15902 #define $ac_func innocuous_$ac_func
15904 /* System header to define __stub macros and hopefully few prototypes,
15905 which can conflict with char $ac_func (); below.
15906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15907 <limits.h> exists even on freestanding compilers. */
15909 #ifdef __STDC__
15910 # include <limits.h>
15911 #else
15912 # include <assert.h>
15913 #endif
15915 #undef $ac_func
15917 /* Override any gcc2 internal prototype to avoid an error. */
15918 #ifdef __cplusplus
15919 extern "C"
15921 #endif
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924 char $ac_func ();
15925 /* The GNU C library defines this for functions which it implements
15926 to always fail with ENOSYS. Some functions are actually named
15927 something starting with __ and the normal name is an alias. */
15928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15929 choke me
15930 #else
15931 char (*f) () = $ac_func;
15932 #endif
15933 #ifdef __cplusplus
15935 #endif
15938 main ()
15940 return f != $ac_func;
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest$ac_exeext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 eval "$as_ac_var=yes"
15968 else
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 eval "$as_ac_var=no"
15974 rm -f conftest.err conftest.$ac_objext \
15975 conftest$ac_exeext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15979 if test `eval echo '${'$as_ac_var'}'` = yes; then
15980 cat >>confdefs.h <<_ACEOF
15981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15982 _ACEOF
15983 cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h. */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <unistd.h>
15991 main ()
15993 getpgrp(0);
15995 return 0;
15997 _ACEOF
15998 rm -f conftest.$ac_objext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_c_werror_flag"
16008 || test ! -s conftest.err'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16021 cat >>confdefs.h <<\_ACEOF
16022 #define GETPGRP_HAVE_ARG 1
16023 _ACEOF
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034 done
16037 for ac_func in setpgrp
16039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16040 echo "$as_me:$LINENO: checking for $ac_func" >&5
16041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16042 if eval "test \"\${$as_ac_var+set}\" = set"; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045 cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h. */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16053 #define $ac_func innocuous_$ac_func
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func (); below.
16057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16058 <limits.h> exists even on freestanding compilers. */
16060 #ifdef __STDC__
16061 # include <limits.h>
16062 #else
16063 # include <assert.h>
16064 #endif
16066 #undef $ac_func
16068 /* Override any gcc2 internal prototype to avoid an error. */
16069 #ifdef __cplusplus
16070 extern "C"
16072 #endif
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16075 char $ac_func ();
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080 choke me
16081 #else
16082 char (*f) () = $ac_func;
16083 #endif
16084 #ifdef __cplusplus
16086 #endif
16089 main ()
16091 return f != $ac_func;
16093 return 0;
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest$ac_exeext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 eval "$as_ac_var=yes"
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 eval "$as_ac_var=no"
16125 rm -f conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
16128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16130 if test `eval echo '${'$as_ac_var'}'` = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16133 _ACEOF
16134 cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h. */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 #include <unistd.h>
16142 main ()
16144 setpgrp(0,0);
16146 return 0;
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16151 (eval $ac_compile) 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -z "$ac_c_werror_flag"
16159 || test ! -s conftest.err'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest.$ac_objext'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16172 cat >>confdefs.h <<\_ACEOF
16173 #define SETPGRP_HAVE_ARG 1
16174 _ACEOF
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16185 done
16188 for ac_func in gettimeofday
16190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 echo "$as_me:$LINENO: checking for $ac_func" >&5
16192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16193 if eval "test \"\${$as_ac_var+set}\" = set"; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16211 #ifdef __STDC__
16212 # include <limits.h>
16213 #else
16214 # include <assert.h>
16215 #endif
16217 #undef $ac_func
16219 /* Override any gcc2 internal prototype to avoid an error. */
16220 #ifdef __cplusplus
16221 extern "C"
16223 #endif
16224 /* We use char because int might match the return type of a gcc2
16225 builtin and then its argument prototype would still apply. */
16226 char $ac_func ();
16227 /* The GNU C library defines this for functions which it implements
16228 to always fail with ENOSYS. Some functions are actually named
16229 something starting with __ and the normal name is an alias. */
16230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16231 choke me
16232 #else
16233 char (*f) () = $ac_func;
16234 #endif
16235 #ifdef __cplusplus
16237 #endif
16240 main ()
16242 return f != $ac_func;
16244 return 0;
16246 _ACEOF
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 _ACEOF
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <sys/time.h>
16293 main ()
16295 gettimeofday((struct timeval*)0,(struct timezone*)0);
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16302 (eval $ac_compile) 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16328 cat >>confdefs.h <<\_ACEOF
16329 #define GETTIMEOFDAY_NO_TZ 1
16330 _ACEOF
16334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16337 done
16340 echo "$as_me:$LINENO: checking for major" >&5
16341 echo $ECHO_N "checking for major... $ECHO_C" >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 #if defined(MAJOR_IN_MKDEV)
16350 #include <sys/mkdev.h>
16351 #elif defined(MAJOR_IN_SYSMACROS)
16352 #include <sys/sysmacros.h>
16353 #else
16354 #include <sys/types.h>
16355 #endif
16358 main ()
16361 makedev(major(0),minor(0));
16364 return 0;
16366 _ACEOF
16367 rm -f conftest.$ac_objext conftest$ac_exeext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag"
16377 || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE_DEVICE_MACROS 1
16393 _ACEOF
16395 echo "$as_me:$LINENO: result: yes" >&5
16396 echo "${ECHO_T}yes" >&6
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16403 echo "$as_me:$LINENO: result: no" >&5
16404 echo "${ECHO_T}no" >&6
16407 rm -f conftest.err conftest.$ac_objext \
16408 conftest$ac_exeext conftest.$ac_ext
16410 # On OSF/1 V5.1, getaddrinfo is available, but a define
16411 # for [no]getaddrinfo in netdb.h.
16412 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16413 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16421 #include <sys/types.h>
16422 #include <sys/socket.h>
16423 #include <netdb.h>
16424 #include <stdio.h>
16427 main ()
16430 getaddrinfo(NULL, NULL, NULL, NULL);
16433 return 0;
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16459 echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6
16461 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16462 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16463 if test "$cross_compiling" = yes; then
16464 echo "$as_me:$LINENO: result: buggy" >&5
16465 echo "${ECHO_T}buggy" >&6
16466 buggygetaddrinfo=yes
16467 else
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16475 #include <sys/types.h>
16476 #include <netdb.h>
16477 #include <string.h>
16478 #include <sys/socket.h>
16479 #include <netinet/in.h>
16481 main()
16483 int passive, gaierr, inet4 = 0, inet6 = 0;
16484 struct addrinfo hints, *ai, *aitop;
16485 char straddr[INET6_ADDRSTRLEN], strport[16];
16487 for (passive = 0; passive <= 1; passive++) {
16488 memset(&hints, 0, sizeof(hints));
16489 hints.ai_family = AF_UNSPEC;
16490 hints.ai_flags = passive ? AI_PASSIVE : 0;
16491 hints.ai_socktype = SOCK_STREAM;
16492 hints.ai_protocol = IPPROTO_TCP;
16493 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16494 (void)gai_strerror(gaierr);
16495 goto bad;
16497 for (ai = aitop; ai; ai = ai->ai_next) {
16498 if (ai->ai_addr == NULL ||
16499 ai->ai_addrlen == 0 ||
16500 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16501 straddr, sizeof(straddr), strport, sizeof(strport),
16502 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16503 goto bad;
16505 switch (ai->ai_family) {
16506 case AF_INET:
16507 if (strcmp(strport, "54321") != 0) {
16508 goto bad;
16510 if (passive) {
16511 if (strcmp(straddr, "0.0.0.0") != 0) {
16512 goto bad;
16514 } else {
16515 if (strcmp(straddr, "127.0.0.1") != 0) {
16516 goto bad;
16519 inet4++;
16520 break;
16521 case AF_INET6:
16522 if (strcmp(strport, "54321") != 0) {
16523 goto bad;
16525 if (passive) {
16526 if (strcmp(straddr, "::") != 0) {
16527 goto bad;
16529 } else {
16530 if (strcmp(straddr, "::1") != 0) {
16531 goto bad;
16534 inet6++;
16535 break;
16536 case AF_UNSPEC:
16537 goto bad;
16538 break;
16539 default:
16540 /* another family support? */
16541 break;
16546 if (!(inet4 == 0 || inet4 == 2))
16547 goto bad;
16548 if (!(inet6 == 0 || inet6 == 2))
16549 goto bad;
16551 if (aitop)
16552 freeaddrinfo(aitop);
16553 exit(0);
16555 bad:
16556 if (aitop)
16557 freeaddrinfo(aitop);
16558 exit(1);
16561 _ACEOF
16562 rm -f conftest$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564 (eval $ac_link) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 echo "$as_me:$LINENO: result: good" >&5
16574 echo "${ECHO_T}good" >&6
16575 buggygetaddrinfo=no
16576 else
16577 echo "$as_me: program exited with status $ac_status" >&5
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ( exit $ac_status )
16582 echo "$as_me:$LINENO: result: buggy" >&5
16583 echo "${ECHO_T}buggy" >&6
16584 buggygetaddrinfo=yes
16586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16588 else
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16593 echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595 buggygetaddrinfo=yes
16598 rm -f conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16601 if test "$buggygetaddrinfo" = "yes"; then
16602 if test "$ipv6" = "yes"; then
16603 echo 'Fatal: You must get working getaddrinfo() function.'
16604 echo ' or you can specify "--disable-ipv6"'.
16605 exit 1
16607 else
16609 cat >>confdefs.h <<\_ACEOF
16610 #define HAVE_GETADDRINFO 1
16611 _ACEOF
16615 for ac_func in getnameinfo
16617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618 echo "$as_me:$LINENO: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define $ac_func innocuous_$ac_func
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16638 #ifdef __STDC__
16639 # include <limits.h>
16640 #else
16641 # include <assert.h>
16642 #endif
16644 #undef $ac_func
16646 /* Override any gcc2 internal prototype to avoid an error. */
16647 #ifdef __cplusplus
16648 extern "C"
16650 #endif
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653 char $ac_func ();
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 char (*f) () = $ac_func;
16661 #endif
16662 #ifdef __cplusplus
16664 #endif
16667 main ()
16669 return f != $ac_func;
16671 return 0;
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 eval "$as_ac_var=yes"
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 eval "$as_ac_var=no"
16703 rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708 if test `eval echo '${'$as_ac_var'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711 _ACEOF
16714 done
16717 # checks for structures
16718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16720 if test "${ac_cv_header_time+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <sys/types.h>
16730 #include <sys/time.h>
16731 #include <time.h>
16734 main ()
16736 if ((struct tm *) 0)
16737 return 0;
16739 return 0;
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag"
16752 || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_header_time=yes
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_header_time=no
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16774 echo "${ECHO_T}$ac_cv_header_time" >&6
16775 if test $ac_cv_header_time = yes; then
16777 cat >>confdefs.h <<\_ACEOF
16778 #define TIME_WITH_SYS_TIME 1
16779 _ACEOF
16783 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16785 if test "${ac_cv_struct_tm+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <sys/types.h>
16795 #include <time.h>
16798 main ()
16800 struct tm *tp; tp->tm_sec;
16802 return 0;
16804 _ACEOF
16805 rm -f conftest.$ac_objext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807 (eval $ac_compile) 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag"
16815 || test ! -s conftest.err'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_cv_struct_tm=time.h
16828 else
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 ac_cv_struct_tm=sys/time.h
16834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16836 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16837 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16838 if test $ac_cv_struct_tm = sys/time.h; then
16840 cat >>confdefs.h <<\_ACEOF
16841 #define TM_IN_SYS_TIME 1
16842 _ACEOF
16846 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16847 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16848 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <$ac_cv_struct_tm>
16862 main ()
16864 static struct tm ac_aggr;
16865 if (ac_aggr.tm_zone)
16866 return 0;
16868 return 0;
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_member_struct_tm_tm_zone=yes
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/types.h>
16905 #include <$ac_cv_struct_tm>
16909 main ()
16911 static struct tm ac_aggr;
16912 if (sizeof ac_aggr.tm_zone)
16913 return 0;
16915 return 0;
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_member_struct_tm_tm_zone=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_member_struct_tm_tm_zone=no
16947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16952 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16953 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define HAVE_STRUCT_TM_TM_ZONE 1
16957 _ACEOF
16962 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_TM_ZONE 1
16966 _ACEOF
16968 else
16969 echo "$as_me:$LINENO: checking for tzname" >&5
16970 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16971 if test "${ac_cv_var_tzname+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h. */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 #include <time.h>
16981 #ifndef tzname /* For SGI. */
16982 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16983 #endif
16986 main ()
16988 atoi(*tzname);
16990 return 0;
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16995 (eval $ac_link) 2>conftest.er1
16996 ac_status=$?
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag"
17003 || test ! -s conftest.err'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_var_tzname=yes
17016 else
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 ac_cv_var_tzname=no
17022 rm -f conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17026 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17027 if test $ac_cv_var_tzname = yes; then
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_TZNAME 1
17031 _ACEOF
17036 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17037 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17038 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17049 main ()
17051 static struct stat ac_aggr;
17052 if (ac_aggr.st_rdev)
17053 return 0;
17055 return 0;
17057 _ACEOF
17058 rm -f conftest.$ac_objext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060 (eval $ac_compile) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_cv_member_struct_stat_st_rdev=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 $ac_includes_default
17093 main ()
17095 static struct stat ac_aggr;
17096 if (sizeof ac_aggr.st_rdev)
17097 return 0;
17099 return 0;
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_member_struct_stat_st_rdev=yes
17125 else
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_member_struct_stat_st_rdev=no
17131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17135 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17137 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17139 cat >>confdefs.h <<_ACEOF
17140 #define HAVE_STRUCT_STAT_ST_RDEV 1
17141 _ACEOF
17146 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17147 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17148 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h. */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 $ac_includes_default
17159 main ()
17161 static struct stat ac_aggr;
17162 if (ac_aggr.st_blksize)
17163 return 0;
17165 return 0;
17167 _ACEOF
17168 rm -f conftest.$ac_objext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170 (eval $ac_compile) 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_member_struct_stat_st_blksize=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17203 main ()
17205 static struct stat ac_aggr;
17206 if (sizeof ac_aggr.st_blksize)
17207 return 0;
17209 return 0;
17211 _ACEOF
17212 rm -f conftest.$ac_objext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try='test -z "$ac_c_werror_flag"
17222 || test ! -s conftest.err'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_member_struct_stat_st_blksize=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_cv_member_struct_stat_st_blksize=no
17241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17247 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17251 _ACEOF
17256 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17257 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17258 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17269 main ()
17271 static struct stat ac_aggr;
17272 if (ac_aggr.st_flags)
17273 return 0;
17275 return 0;
17277 _ACEOF
17278 rm -f conftest.$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280 (eval $ac_compile) 2>conftest.er1
17281 ac_status=$?
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_member_struct_stat_st_flags=yes
17301 else
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17313 main ()
17315 static struct stat ac_aggr;
17316 if (sizeof ac_aggr.st_flags)
17317 return 0;
17319 return 0;
17321 _ACEOF
17322 rm -f conftest.$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_member_struct_stat_st_flags=yes
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_member_struct_stat_st_flags=no
17351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17355 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17356 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17357 if test $ac_cv_member_struct_stat_st_flags = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17361 _ACEOF
17366 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17367 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17368 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 $ac_includes_default
17379 main ()
17381 static struct stat ac_aggr;
17382 if (ac_aggr.st_gen)
17383 return 0;
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_member_struct_stat_st_gen=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 $ac_includes_default
17423 main ()
17425 static struct stat ac_aggr;
17426 if (sizeof ac_aggr.st_gen)
17427 return 0;
17429 return 0;
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_member_struct_stat_st_gen=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_member_struct_stat_st_gen=no
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17465 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17466 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17467 if test $ac_cv_member_struct_stat_st_gen = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define HAVE_STRUCT_STAT_ST_GEN 1
17471 _ACEOF
17476 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17477 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17478 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17489 main ()
17491 static struct stat ac_aggr;
17492 if (ac_aggr.st_birthtime)
17493 return 0;
17495 return 0;
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag"
17508 || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_member_struct_stat_st_birthtime=yes
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17533 main ()
17535 static struct stat ac_aggr;
17536 if (sizeof ac_aggr.st_birthtime)
17537 return 0;
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest.$ac_objext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_cv_member_struct_stat_st_birthtime=yes
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 ac_cv_member_struct_stat_st_birthtime=no
17571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17576 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17577 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17579 cat >>confdefs.h <<_ACEOF
17580 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17581 _ACEOF
17586 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17587 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17588 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h. */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 $ac_includes_default
17599 main ()
17601 static struct stat ac_aggr;
17602 if (ac_aggr.st_blocks)
17603 return 0;
17605 return 0;
17607 _ACEOF
17608 rm -f conftest.$ac_objext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17610 (eval $ac_compile) 2>conftest.er1
17611 ac_status=$?
17612 grep -v '^ *+' conftest.er1 >conftest.err
17613 rm -f conftest.er1
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -z "$ac_c_werror_flag"
17618 || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_member_struct_stat_st_blocks=yes
17631 else
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17643 main ()
17645 static struct stat ac_aggr;
17646 if (sizeof ac_aggr.st_blocks)
17647 return 0;
17649 return 0;
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_member_struct_stat_st_blocks=yes
17675 else
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_member_struct_stat_st_blocks=no
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17687 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17689 cat >>confdefs.h <<_ACEOF
17690 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17691 _ACEOF
17694 cat >>confdefs.h <<\_ACEOF
17695 #define HAVE_ST_BLOCKS 1
17696 _ACEOF
17698 else
17699 case $LIBOBJS in
17700 "fileblocks.$ac_objext" | \
17701 *" fileblocks.$ac_objext" | \
17702 "fileblocks.$ac_objext "* | \
17703 *" fileblocks.$ac_objext "* ) ;;
17704 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17705 esac
17711 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17712 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17713 if test "${ac_cv_header_time_altzone+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716 cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h. */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 #include <time.h>
17724 main ()
17726 return altzone;
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_cv_header_time_altzone=yes
17754 else
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ac_cv_header_time_altzone=no
17760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17763 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17764 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17765 if test $ac_cv_header_time_altzone = yes; then
17767 cat >>confdefs.h <<\_ACEOF
17768 #define HAVE_ALTZONE 1
17769 _ACEOF
17773 was_it_defined=no
17774 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17775 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17783 #include <sys/types.h>
17784 #include <sys/select.h>
17785 #include <sys/time.h>
17788 main ()
17792 return 0;
17794 _ACEOF
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17819 cat >>confdefs.h <<\_ACEOF
17820 #define SYS_SELECT_WITH_SYS_TIME 1
17821 _ACEOF
17823 was_it_defined=yes
17825 else
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17832 echo "${ECHO_T}$was_it_defined" >&6
17834 echo "$as_me:$LINENO: checking for addrinfo" >&5
17835 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17836 if test "${ac_cv_struct_addrinfo+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17846 # include <netdb.h>
17848 main ()
17850 struct addrinfo a
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_cv_struct_addrinfo=yes
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ac_cv_struct_addrinfo=no
17884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17887 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17888 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17889 if test $ac_cv_struct_addrinfo = yes; then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_ADDRINFO 1
17893 _ACEOF
17897 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17898 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17899 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17909 # include <sys/types.h>
17910 # include <sys/socket.h>
17912 main ()
17914 struct sockaddr_storage s
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_cv_struct_sockaddr_storage=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_cv_struct_sockaddr_storage=no
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17952 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17953 if test $ac_cv_struct_sockaddr_storage = yes; then
17955 cat >>confdefs.h <<\_ACEOF
17956 #define HAVE_SOCKADDR_STORAGE 1
17957 _ACEOF
17961 # checks for compiler characteristics
17964 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17965 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17966 if test "${ac_cv_c_char_unsigned+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969 cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h. */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 $ac_includes_default
17977 main ()
17979 static int test_array [1 - 2 * !(((char) -1) < 0)];
17980 test_array [0] = 0
17983 return 0;
17985 _ACEOF
17986 rm -f conftest.$ac_objext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>conftest.er1
17989 ac_status=$?
17990 grep -v '^ *+' conftest.er1 >conftest.err
17991 rm -f conftest.er1
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_c_char_unsigned=no
18009 else
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_c_char_unsigned=yes
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18018 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18019 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18020 cat >>confdefs.h <<\_ACEOF
18021 #define __CHAR_UNSIGNED__ 1
18022 _ACEOF
18026 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18027 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18028 if test "${ac_cv_c_const+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18039 main ()
18041 /* FIXME: Include the comments suggested by Paul. */
18042 #ifndef __cplusplus
18043 /* Ultrix mips cc rejects this. */
18044 typedef int charset[2];
18045 const charset x;
18046 /* SunOS 4.1.1 cc rejects this. */
18047 char const *const *ccp;
18048 char **p;
18049 /* NEC SVR4.0.2 mips cc rejects this. */
18050 struct point {int x, y;};
18051 static struct point const zero = {0,0};
18052 /* AIX XL C 1.02.0.0 rejects this.
18053 It does not let you subtract one const X* pointer from another in
18054 an arm of an if-expression whose if-part is not a constant
18055 expression */
18056 const char *g = "string";
18057 ccp = &g + (g ? g-g : 0);
18058 /* HPUX 7.0 cc rejects these. */
18059 ++ccp;
18060 p = (char**) ccp;
18061 ccp = (char const *const *) p;
18062 { /* SCO 3.2v4 cc rejects this. */
18063 char *t;
18064 char const *s = 0 ? (char *) 0 : (char const *) 0;
18066 *t++ = 0;
18068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18069 int x[] = {25, 17};
18070 const int *foo = &x[0];
18071 ++foo;
18073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18074 typedef const int *iptr;
18075 iptr p = 0;
18076 ++p;
18078 { /* AIX XL C 1.02.0.0 rejects this saying
18079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18080 struct s { int j; const int *ap[3]; };
18081 struct s *b; b->j = 5;
18083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18084 const int foo = 10;
18086 #endif
18089 return 0;
18091 _ACEOF
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_cv_c_const=yes
18115 else
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18119 ac_cv_c_const=no
18121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18124 echo "${ECHO_T}$ac_cv_c_const" >&6
18125 if test $ac_cv_c_const = no; then
18127 cat >>confdefs.h <<\_ACEOF
18128 #define const
18129 _ACEOF
18134 works=no
18135 echo "$as_me:$LINENO: checking for working volatile" >&5
18136 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18145 main ()
18147 volatile int x; x = 0;
18149 return 0;
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 works=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18180 cat >>confdefs.h <<\_ACEOF
18181 #define volatile
18182 _ACEOF
18186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18187 echo "$as_me:$LINENO: result: $works" >&5
18188 echo "${ECHO_T}$works" >&6
18190 works=no
18191 echo "$as_me:$LINENO: checking for working signed char" >&5
18192 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18201 main ()
18203 signed char c;
18205 return 0;
18207 _ACEOF
18208 rm -f conftest.$ac_objext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18210 (eval $ac_compile) 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 works=yes
18231 else
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18236 cat >>confdefs.h <<\_ACEOF
18237 #define signed
18238 _ACEOF
18242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18243 echo "$as_me:$LINENO: result: $works" >&5
18244 echo "${ECHO_T}$works" >&6
18246 have_prototypes=no
18247 echo "$as_me:$LINENO: checking for prototypes" >&5
18248 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 int foo(int x) { return 0; }
18257 main ()
18259 return foo(10);
18261 return 0;
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_PROTOTYPES 1
18290 _ACEOF
18292 have_prototypes=yes
18294 else
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18300 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18301 echo "${ECHO_T}$have_prototypes" >&6
18303 works=no
18304 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18305 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 #include <stdarg.h>
18314 int foo(int x, ...) {
18315 va_list va;
18316 va_start(va, x);
18317 va_arg(va, int);
18318 va_arg(va, char *);
18319 va_arg(va, double);
18320 return 0;
18324 main ()
18326 return foo(10, "", 3.14);
18328 return 0;
18330 _ACEOF
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_STDARG_PROTOTYPES 1
18357 _ACEOF
18359 works=yes
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 echo "$as_me:$LINENO: result: $works" >&5
18368 echo "${ECHO_T}$works" >&6
18370 # check for socketpair
18371 echo "$as_me:$LINENO: checking for socketpair" >&5
18372 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 #include <sys/types.h>
18381 #include <sys/socket.h>
18384 main ()
18386 void *x=socketpair
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393 (eval $ac_compile) 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try='test -s conftest.$ac_objext'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE_SOCKETPAIR 1
18416 _ACEOF
18418 echo "$as_me:$LINENO: result: yes" >&5
18419 echo "${ECHO_T}yes" >&6
18420 else
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 echo "$as_me:$LINENO: result: no" >&5
18425 echo "${ECHO_T}no" >&6
18428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430 # check if sockaddr has sa_len member
18431 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18432 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include <sys/types.h>
18440 #include <sys/socket.h>
18442 main ()
18444 struct sockaddr x;
18445 x.sa_len = 0;
18447 return 0;
18449 _ACEOF
18450 rm -f conftest.$ac_objext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18452 (eval $ac_compile) 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag"
18460 || test ! -s conftest.err'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest.$ac_objext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 echo "$as_me:$LINENO: result: yes" >&5
18473 echo "${ECHO_T}yes" >&6
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE_SOCKADDR_SA_LEN 1
18477 _ACEOF
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 echo "$as_me:$LINENO: result: no" >&5
18484 echo "${ECHO_T}no" >&6
18486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18488 va_list_is_array=no
18489 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18490 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 #ifdef HAVE_STDARG_PROTOTYPES
18499 #include <stdarg.h>
18500 #else
18501 #include <varargs.h>
18502 #endif
18505 main ()
18507 va_list list1, list2; list1 = list2;
18509 return 0;
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514 (eval $ac_compile) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18535 else
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18541 cat >>confdefs.h <<\_ACEOF
18542 #define VA_LIST_IS_ARRAY 1
18543 _ACEOF
18545 va_list_is_array=yes
18548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18549 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18550 echo "${ECHO_T}$va_list_is_array" >&6
18552 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18556 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18557 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18558 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18569 #define gethostbyname_r innocuous_gethostbyname_r
18571 /* System header to define __stub macros and hopefully few prototypes,
18572 which can conflict with char gethostbyname_r (); below.
18573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18574 <limits.h> exists even on freestanding compilers. */
18576 #ifdef __STDC__
18577 # include <limits.h>
18578 #else
18579 # include <assert.h>
18580 #endif
18582 #undef gethostbyname_r
18584 /* Override any gcc2 internal prototype to avoid an error. */
18585 #ifdef __cplusplus
18586 extern "C"
18588 #endif
18589 /* We use char because int might match the return type of a gcc2
18590 builtin and then its argument prototype would still apply. */
18591 char gethostbyname_r ();
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18596 choke me
18597 #else
18598 char (*f) () = gethostbyname_r;
18599 #endif
18600 #ifdef __cplusplus
18602 #endif
18605 main ()
18607 return f != gethostbyname_r;
18609 return 0;
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag"
18622 || test ! -s conftest.err'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try='test -s conftest$ac_exeext'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_func_gethostbyname_r=yes
18635 else
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_func_gethostbyname_r=no
18641 rm -f conftest.err conftest.$ac_objext \
18642 conftest$ac_exeext conftest.$ac_ext
18644 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18645 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18646 if test $ac_cv_func_gethostbyname_r = yes; then
18648 cat >>confdefs.h <<\_ACEOF
18649 #define HAVE_GETHOSTBYNAME_R 1
18650 _ACEOF
18652 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18653 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18654 OLD_CFLAGS=$CFLAGS
18655 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18663 # include <netdb.h>
18666 main ()
18669 char *name;
18670 struct hostent *he, *res;
18671 char buffer[2048];
18672 int buflen = 2048;
18673 int h_errnop;
18675 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18678 return 0;
18680 _ACEOF
18681 rm -f conftest.$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683 (eval $ac_compile) 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18704 cat >>confdefs.h <<\_ACEOF
18705 #define HAVE_GETHOSTBYNAME_R 1
18706 _ACEOF
18709 cat >>confdefs.h <<\_ACEOF
18710 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18711 _ACEOF
18713 echo "$as_me:$LINENO: result: yes" >&5
18714 echo "${ECHO_T}yes" >&6
18716 else
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18721 echo "$as_me:$LINENO: result: no" >&5
18722 echo "${ECHO_T}no" >&6
18723 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18724 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18732 # include <netdb.h>
18735 main ()
18738 char *name;
18739 struct hostent *he;
18740 char buffer[2048];
18741 int buflen = 2048;
18742 int h_errnop;
18744 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18747 return 0;
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18773 cat >>confdefs.h <<\_ACEOF
18774 #define HAVE_GETHOSTBYNAME_R 1
18775 _ACEOF
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18780 _ACEOF
18782 echo "$as_me:$LINENO: result: yes" >&5
18783 echo "${ECHO_T}yes" >&6
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18790 echo "$as_me:$LINENO: result: no" >&5
18791 echo "${ECHO_T}no" >&6
18792 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18793 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h. */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 # include <netdb.h>
18804 main ()
18807 char *name;
18808 struct hostent *he;
18809 struct hostent_data data;
18811 (void) gethostbyname_r(name, he, &data);
18814 return 0;
18816 _ACEOF
18817 rm -f conftest.$ac_objext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819 (eval $ac_compile) 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -z "$ac_c_werror_flag"
18827 || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest.$ac_objext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE_GETHOSTBYNAME_R 1
18842 _ACEOF
18845 cat >>confdefs.h <<\_ACEOF
18846 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18847 _ACEOF
18849 echo "$as_me:$LINENO: result: yes" >&5
18850 echo "${ECHO_T}yes" >&6
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18857 echo "$as_me:$LINENO: result: no" >&5
18858 echo "${ECHO_T}no" >&6
18861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 CFLAGS=$OLD_CFLAGS
18870 else
18873 for ac_func in gethostbyname
18875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18876 echo "$as_me:$LINENO: checking for $ac_func" >&5
18877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18878 if eval "test \"\${$as_ac_var+set}\" = set"; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h. */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18889 #define $ac_func innocuous_$ac_func
18891 /* System header to define __stub macros and hopefully few prototypes,
18892 which can conflict with char $ac_func (); below.
18893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18894 <limits.h> exists even on freestanding compilers. */
18896 #ifdef __STDC__
18897 # include <limits.h>
18898 #else
18899 # include <assert.h>
18900 #endif
18902 #undef $ac_func
18904 /* Override any gcc2 internal prototype to avoid an error. */
18905 #ifdef __cplusplus
18906 extern "C"
18908 #endif
18909 /* We use char because int might match the return type of a gcc2
18910 builtin and then its argument prototype would still apply. */
18911 char $ac_func ();
18912 /* The GNU C library defines this for functions which it implements
18913 to always fail with ENOSYS. Some functions are actually named
18914 something starting with __ and the normal name is an alias. */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18916 choke me
18917 #else
18918 char (*f) () = $ac_func;
18919 #endif
18920 #ifdef __cplusplus
18922 #endif
18925 main ()
18927 return f != $ac_func;
18929 return 0;
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18934 (eval $ac_link) 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 eval "$as_ac_var=yes"
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18961 rm -f conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18966 if test `eval echo '${'$as_ac_var'}'` = yes; then
18967 cat >>confdefs.h <<_ACEOF
18968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18969 _ACEOF
18972 done
18983 # checks for system services
18984 # (none yet)
18986 # Linux requires this for correct f.p. operations
18987 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18988 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18989 if test "${ac_cv_func___fpu_control+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992 cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h. */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18998 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19000 #define __fpu_control innocuous___fpu_control
19002 /* System header to define __stub macros and hopefully few prototypes,
19003 which can conflict with char __fpu_control (); below.
19004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19005 <limits.h> exists even on freestanding compilers. */
19007 #ifdef __STDC__
19008 # include <limits.h>
19009 #else
19010 # include <assert.h>
19011 #endif
19013 #undef __fpu_control
19015 /* Override any gcc2 internal prototype to avoid an error. */
19016 #ifdef __cplusplus
19017 extern "C"
19019 #endif
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022 char __fpu_control ();
19023 /* The GNU C library defines this for functions which it implements
19024 to always fail with ENOSYS. Some functions are actually named
19025 something starting with __ and the normal name is an alias. */
19026 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19027 choke me
19028 #else
19029 char (*f) () = __fpu_control;
19030 #endif
19031 #ifdef __cplusplus
19033 #endif
19036 main ()
19038 return f != __fpu_control;
19040 return 0;
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_func___fpu_control=yes
19066 else
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_func___fpu_control=no
19072 rm -f conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19075 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19076 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19077 if test $ac_cv_func___fpu_control = yes; then
19079 else
19081 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19082 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19083 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086 ac_check_lib_save_LIBS=$LIBS
19087 LIBS="-lieee $LIBS"
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 /* Override any gcc2 internal prototype to avoid an error. */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char __fpu_control ();
19103 main ()
19105 __fpu_control ();
19107 return 0;
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_lib_ieee___fpu_control=yes
19133 else
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ac_cv_lib_ieee___fpu_control=no
19139 rm -f conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141 LIBS=$ac_check_lib_save_LIBS
19143 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19144 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19145 if test $ac_cv_lib_ieee___fpu_control = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define HAVE_LIBIEEE 1
19148 _ACEOF
19150 LIBS="-lieee $LIBS"
19158 # Check for --with-fpectl
19159 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19160 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19162 # Check whether --with-fpectl or --without-fpectl was given.
19163 if test "${with_fpectl+set}" = set; then
19164 withval="$with_fpectl"
19166 if test "$withval" != no
19167 then
19169 cat >>confdefs.h <<\_ACEOF
19170 #define WANT_SIGFPE_HANDLER 1
19171 _ACEOF
19173 echo "$as_me:$LINENO: result: yes" >&5
19174 echo "${ECHO_T}yes" >&6
19175 else echo "$as_me:$LINENO: result: no" >&5
19176 echo "${ECHO_T}no" >&6
19178 else
19179 echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6
19183 # check for --with-libm=...
19185 case $ac_sys_system in
19186 Darwin) ;;
19187 BeOS) ;;
19188 *) LIBM=-lm
19189 esac
19190 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19191 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19193 # Check whether --with-libm or --without-libm was given.
19194 if test "${with_libm+set}" = set; then
19195 withval="$with_libm"
19197 if test "$withval" = no
19198 then LIBM=
19199 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19200 echo "${ECHO_T}force LIBM empty" >&6
19201 elif test "$withval" != yes
19202 then LIBM=$withval
19203 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19204 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19205 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19206 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19207 { (exit 1); exit 1; }; }
19209 else
19210 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19211 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19214 # check for --with-libc=...
19216 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19217 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19219 # Check whether --with-libc or --without-libc was given.
19220 if test "${with_libc+set}" = set; then
19221 withval="$with_libc"
19223 if test "$withval" = no
19224 then LIBC=
19225 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19226 echo "${ECHO_T}force LIBC empty" >&6
19227 elif test "$withval" != yes
19228 then LIBC=$withval
19229 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19230 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19231 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19232 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19233 { (exit 1); exit 1; }; }
19235 else
19236 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19237 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19240 # check for hypot() in math library
19241 LIBS_SAVE=$LIBS
19242 LIBS="$LIBS $LIBM"
19244 for ac_func in hypot
19246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19247 echo "$as_me:$LINENO: checking for $ac_func" >&5
19248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_var+set}\" = set"; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252 cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h. */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19260 #define $ac_func innocuous_$ac_func
19262 /* System header to define __stub macros and hopefully few prototypes,
19263 which can conflict with char $ac_func (); below.
19264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19265 <limits.h> exists even on freestanding compilers. */
19267 #ifdef __STDC__
19268 # include <limits.h>
19269 #else
19270 # include <assert.h>
19271 #endif
19273 #undef $ac_func
19275 /* Override any gcc2 internal prototype to avoid an error. */
19276 #ifdef __cplusplus
19277 extern "C"
19279 #endif
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282 char $ac_func ();
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19287 choke me
19288 #else
19289 char (*f) () = $ac_func;
19290 #endif
19291 #ifdef __cplusplus
19293 #endif
19296 main ()
19298 return f != $ac_func;
19300 return 0;
19302 _ACEOF
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 eval "$as_ac_var=yes"
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 eval "$as_ac_var=no"
19332 rm -f conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19337 if test `eval echo '${'$as_ac_var'}'` = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19340 _ACEOF
19342 else
19343 case $LIBOBJS in
19344 "$ac_func.$ac_objext" | \
19345 *" $ac_func.$ac_objext" | \
19346 "$ac_func.$ac_objext "* | \
19347 *" $ac_func.$ac_objext "* ) ;;
19348 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19349 esac
19352 done
19355 LIBS=$LIBS_SAVE
19357 # check for wchar.h
19358 if test "${ac_cv_header_wchar_h+set}" = set; then
19359 echo "$as_me:$LINENO: checking for wchar.h" >&5
19360 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19361 if test "${ac_cv_header_wchar_h+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19365 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19366 else
19367 # Is the header compilable?
19368 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19369 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h. */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19377 #include <wchar.h>
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_header_compiler=yes
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 ac_header_compiler=no
19408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19410 echo "${ECHO_T}$ac_header_compiler" >&6
19412 # Is the header present?
19413 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19414 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19415 cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h. */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <wchar.h>
19422 _ACEOF
19423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } >/dev/null; then
19431 if test -s conftest.err; then
19432 ac_cpp_err=$ac_c_preproc_warn_flag
19433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19434 else
19435 ac_cpp_err=
19437 else
19438 ac_cpp_err=yes
19440 if test -z "$ac_cpp_err"; then
19441 ac_header_preproc=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_header_preproc=no
19448 rm -f conftest.err conftest.$ac_ext
19449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19450 echo "${ECHO_T}$ac_header_preproc" >&6
19452 # So? What about this header?
19453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19454 yes:no: )
19455 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19456 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19458 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19459 ac_header_preproc=yes
19461 no:yes:* )
19462 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19463 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19465 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19467 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19469 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19471 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19473 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19475 cat <<\_ASBOX
19476 ## ------------------------------------------------ ##
19477 ## Report this to http://www.python.org/python-bugs ##
19478 ## ------------------------------------------------ ##
19479 _ASBOX
19481 sed "s/^/$as_me: WARNING: /" >&2
19483 esac
19484 echo "$as_me:$LINENO: checking for wchar.h" >&5
19485 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19486 if test "${ac_cv_header_wchar_h+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 ac_cv_header_wchar_h=$ac_header_preproc
19491 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19492 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19495 if test $ac_cv_header_wchar_h = yes; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE_WCHAR_H 1
19500 _ACEOF
19502 wchar_h="yes"
19504 else
19505 wchar_h="no"
19511 # determine wchar_t size
19512 if test "$wchar_h" = yes
19513 then
19514 echo "$as_me:$LINENO: checking for wchar_t" >&5
19515 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19516 if test "${ac_cv_type_wchar_t+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 #include <wchar.h>
19528 main ()
19530 if ((wchar_t *) 0)
19531 return 0;
19532 if (sizeof (wchar_t))
19533 return 0;
19535 return 0;
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_type_wchar_t=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_type_wchar_t=no
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19570 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19572 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19573 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19574 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577 if test "$ac_cv_type_wchar_t" = yes; then
19578 # The cast to unsigned long works around a bug in the HP C Compiler
19579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19581 # This bug is HP SR number 8606223364.
19582 if test "$cross_compiling" = yes; then
19583 # Depending upon the size, compute the lo and hi bounds.
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 #include <wchar.h>
19593 main ()
19595 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19596 test_array [0] = 0
19599 return 0;
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604 (eval $ac_compile) 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag"
19612 || test ! -s conftest.err'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try='test -s conftest.$ac_objext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 ac_lo=0 ac_mid=0
19625 while :; do
19626 cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h. */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632 #include <wchar.h>
19635 main ()
19637 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19638 test_array [0] = 0
19641 return 0;
19643 _ACEOF
19644 rm -f conftest.$ac_objext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag"
19654 || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_hi=$ac_mid; break
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_lo=`expr $ac_mid + 1`
19672 if test $ac_lo -le $ac_mid; then
19673 ac_lo= ac_hi=
19674 break
19676 ac_mid=`expr 2 '*' $ac_mid + 1`
19678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19679 done
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <wchar.h>
19693 main ()
19695 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19696 test_array [0] = 0
19699 return 0;
19701 _ACEOF
19702 rm -f conftest.$ac_objext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_hi=-1 ac_mid=-1
19725 while :; do
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 #include <wchar.h>
19735 main ()
19737 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19738 test_array [0] = 0
19741 return 0;
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746 (eval $ac_compile) 2>conftest.er1
19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -z "$ac_c_werror_flag"
19754 || test ! -s conftest.err'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_lo=$ac_mid; break
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_hi=`expr '(' $ac_mid ')' - 1`
19772 if test $ac_mid -le $ac_hi; then
19773 ac_lo= ac_hi=
19774 break
19776 ac_mid=`expr 2 '*' $ac_mid`
19778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19779 done
19780 else
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_lo= ac_hi=
19786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 # Binary search between lo and hi bounds.
19790 while test "x$ac_lo" != "x$ac_hi"; do
19791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19792 cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h. */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 #include <wchar.h>
19801 main ()
19803 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19804 test_array [0] = 0
19807 return 0;
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812 (eval $ac_compile) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_hi=$ac_mid
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_lo=`expr '(' $ac_mid ')' + 1`
19839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19840 done
19841 case $ac_lo in
19842 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19844 See \`config.log' for more details." >&5
19845 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19846 See \`config.log' for more details." >&2;}
19847 { (exit 1); exit 1; }; } ;;
19848 esac
19849 else
19850 if test "$cross_compiling" = yes; then
19851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19852 See \`config.log' for more details." >&5
19853 echo "$as_me: error: cannot run test program while cross compiling
19854 See \`config.log' for more details." >&2;}
19855 { (exit 1); exit 1; }; }
19856 else
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h. */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 #include <wchar.h>
19865 long longval () { return (long) (sizeof (wchar_t)); }
19866 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19867 #include <stdio.h>
19868 #include <stdlib.h>
19870 main ()
19873 FILE *f = fopen ("conftest.val", "w");
19874 if (! f)
19875 exit (1);
19876 if (((long) (sizeof (wchar_t))) < 0)
19878 long i = longval ();
19879 if (i != ((long) (sizeof (wchar_t))))
19880 exit (1);
19881 fprintf (f, "%ld\n", i);
19883 else
19885 unsigned long i = ulongval ();
19886 if (i != ((long) (sizeof (wchar_t))))
19887 exit (1);
19888 fprintf (f, "%lu\n", i);
19890 exit (ferror (f) || fclose (f) != 0);
19893 return 0;
19895 _ACEOF
19896 rm -f conftest$ac_exeext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19898 (eval $ac_link) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_sizeof_wchar_t=`cat conftest.val`
19908 else
19909 echo "$as_me: program exited with status $ac_status" >&5
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ( exit $ac_status )
19914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19915 See \`config.log' for more details." >&5
19916 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19917 See \`config.log' for more details." >&2;}
19918 { (exit 1); exit 1; }; }
19920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19923 rm -f conftest.val
19924 else
19925 ac_cv_sizeof_wchar_t=0
19928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19929 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19930 cat >>confdefs.h <<_ACEOF
19931 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19932 _ACEOF
19937 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19938 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19939 have_ucs4_tcl=no
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19947 #include <tcl.h>
19948 #if TCL_UTF_MAX != 6
19949 # error "NOT UCS4_TCL"
19950 #endif
19952 main ()
19956 return 0;
19958 _ACEOF
19959 rm -f conftest.$ac_objext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19961 (eval $ac_compile) 2>conftest.er1
19962 ac_status=$?
19963 grep -v '^ *+' conftest.er1 >conftest.err
19964 rm -f conftest.er1
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try='test -z "$ac_c_werror_flag"
19969 || test ! -s conftest.err'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try='test -s conftest.$ac_objext'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19983 cat >>confdefs.h <<\_ACEOF
19984 #define HAVE_UCS4_TCL 1
19985 _ACEOF
19987 have_ucs4_tcl=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19995 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19996 echo "${ECHO_T}$have_ucs4_tcl" >&6
19998 # check whether wchar_t is signed or not
19999 if test "$wchar_h" = yes
20000 then
20001 # check whether wchar_t is signed or not
20002 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20003 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20004 if test "${ac_cv_wchar_t_signed+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20008 if test "$cross_compiling" = yes; then
20009 ac_cv_wchar_t_signed=yes
20010 else
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20018 #include <wchar.h>
20019 int main()
20021 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
20024 _ACEOF
20025 rm -f conftest$ac_exeext
20026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20027 (eval $ac_link) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_wchar_t_signed=yes
20037 else
20038 echo "$as_me: program exited with status $ac_status" >&5
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ( exit $ac_status )
20043 ac_cv_wchar_t_signed=no
20045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20049 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20050 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20053 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20054 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20055 # Check whether --enable-unicode or --disable-unicode was given.
20056 if test "${enable_unicode+set}" = set; then
20057 enableval="$enable_unicode"
20059 else
20060 enable_unicode=yes
20063 if test $enable_unicode = yes
20064 then
20065 # Without any arguments, Py_UNICODE defaults to two-byte mode
20066 case "$have_ucs4_tcl" in
20067 yes) enable_unicode="ucs4"
20069 *) enable_unicode="ucs2"
20071 esac
20076 case "$enable_unicode" in
20077 ucs2) unicode_size="2"
20078 cat >>confdefs.h <<\_ACEOF
20079 #define Py_UNICODE_SIZE 2
20080 _ACEOF
20083 ucs4) unicode_size="4"
20084 cat >>confdefs.h <<\_ACEOF
20085 #define Py_UNICODE_SIZE 4
20086 _ACEOF
20089 esac
20095 if test "$enable_unicode" = "no"
20096 then
20097 UNICODE_OBJS=""
20098 echo "$as_me:$LINENO: result: not used" >&5
20099 echo "${ECHO_T}not used" >&6
20100 else
20101 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20103 cat >>confdefs.h <<\_ACEOF
20104 #define Py_USING_UNICODE 1
20105 _ACEOF
20108 # wchar_t is only usable if it maps to an unsigned type
20109 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20110 -a "$ac_cv_wchar_t_signed" = "no"
20111 then
20112 PY_UNICODE_TYPE="wchar_t"
20114 cat >>confdefs.h <<\_ACEOF
20115 #define HAVE_USABLE_WCHAR_T 1
20116 _ACEOF
20118 cat >>confdefs.h <<\_ACEOF
20119 #define PY_UNICODE_TYPE wchar_t
20120 _ACEOF
20122 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20123 then
20124 PY_UNICODE_TYPE="unsigned short"
20125 cat >>confdefs.h <<\_ACEOF
20126 #define PY_UNICODE_TYPE unsigned short
20127 _ACEOF
20129 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20130 then
20131 PY_UNICODE_TYPE="unsigned long"
20132 cat >>confdefs.h <<\_ACEOF
20133 #define PY_UNICODE_TYPE unsigned long
20134 _ACEOF
20136 else
20137 PY_UNICODE_TYPE="no type found"
20139 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20140 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20143 # check for endianness
20144 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20145 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20146 if test "${ac_cv_c_bigendian+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149 # See if sys/param.h defines the BYTE_ORDER macro.
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <sys/types.h>
20157 #include <sys/param.h>
20160 main ()
20162 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20163 bogus endian macros
20164 #endif
20167 return 0;
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 # It does; now see whether it defined to BIG_ENDIAN or not.
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include <sys/types.h>
20200 #include <sys/param.h>
20203 main ()
20205 #if BYTE_ORDER != BIG_ENDIAN
20206 not big endian
20207 #endif
20210 return 0;
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_c_bigendian=yes
20236 else
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ac_cv_c_bigendian=no
20242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20243 else
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 # It does not; compile a test program.
20248 if test "$cross_compiling" = yes; then
20249 # try to guess the endianness by grepping values into an object file
20250 ac_cv_c_bigendian=unknown
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h. */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20258 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20259 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20260 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20261 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20262 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20264 main ()
20266 _ascii (); _ebcdic ();
20268 return 0;
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20294 ac_cv_c_bigendian=yes
20296 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20297 if test "$ac_cv_c_bigendian" = unknown; then
20298 ac_cv_c_bigendian=no
20299 else
20300 # finding both strings is unlikely to happen, but who knows?
20301 ac_cv_c_bigendian=unknown
20304 else
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310 else
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h. */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 main ()
20320 /* Are we little or big endian? From Harbison&Steele. */
20321 union
20323 long l;
20324 char c[sizeof (long)];
20325 } u;
20326 u.l = 1;
20327 exit (u.c[sizeof (long) - 1] == 1);
20329 _ACEOF
20330 rm -f conftest$ac_exeext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20332 (eval $ac_link) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_c_bigendian=no
20342 else
20343 echo "$as_me: program exited with status $ac_status" >&5
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ( exit $ac_status )
20348 ac_cv_c_bigendian=yes
20350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20357 case $ac_cv_c_bigendian in
20358 yes)
20360 cat >>confdefs.h <<\_ACEOF
20361 #define WORDS_BIGENDIAN 1
20362 _ACEOF
20367 { { echo "$as_me:$LINENO: error: unknown endianness
20368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20369 echo "$as_me: error: unknown endianness
20370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20371 { (exit 1); exit 1; }; } ;;
20372 esac
20375 # Check whether right shifting a negative integer extends the sign bit
20376 # or fills with zeros (like the Cray J90, according to Tim Peters).
20377 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20378 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20379 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20383 if test "$cross_compiling" = yes; then
20384 ac_cv_rshift_extends_sign=yes
20385 else
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h. */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20393 int main()
20395 exit(((-1)>>3 == -1) ? 0 : 1);
20398 _ACEOF
20399 rm -f conftest$ac_exeext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_rshift_extends_sign=yes
20411 else
20412 echo "$as_me: program exited with status $ac_status" >&5
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 ( exit $ac_status )
20417 ac_cv_rshift_extends_sign=no
20419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20423 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20424 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20425 if test "$ac_cv_rshift_extends_sign" = no
20426 then
20428 cat >>confdefs.h <<\_ACEOF
20429 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20430 _ACEOF
20434 # check for getc_unlocked and related locking functions
20435 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20436 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20437 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 #include <stdio.h>
20449 main ()
20452 FILE *f = fopen("/dev/null", "r");
20453 flockfile(f);
20454 getc_unlocked(f);
20455 funlockfile(f);
20458 return 0;
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20463 (eval $ac_link) 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest$ac_exeext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_have_getc_unlocked=yes
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_cv_have_getc_unlocked=no
20490 rm -f conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20494 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20495 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20496 if test "$ac_cv_have_getc_unlocked" = yes
20497 then
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_GETC_UNLOCKED 1
20501 _ACEOF
20505 # check where readline lives
20506 # save the value of LIBS so we don't actually link Python with readline
20507 LIBS_no_readline=$LIBS
20509 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20510 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20511 if test "${ac_cv_lib_readline_readline+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 ac_check_lib_save_LIBS=$LIBS
20515 LIBS="-lreadline $LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20523 /* Override any gcc2 internal prototype to avoid an error. */
20524 #ifdef __cplusplus
20525 extern "C"
20526 #endif
20527 /* We use char because int might match the return type of a gcc2
20528 builtin and then its argument prototype would still apply. */
20529 char readline ();
20531 main ()
20533 readline ();
20535 return 0;
20537 _ACEOF
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20540 (eval $ac_link) 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } &&
20547 { ac_try='test -z "$ac_c_werror_flag"
20548 || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_lib_readline_readline=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_cv_lib_readline_readline=no
20567 rm -f conftest.err conftest.$ac_objext \
20568 conftest$ac_exeext conftest.$ac_ext
20569 LIBS=$ac_check_lib_save_LIBS
20571 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20572 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20573 if test $ac_cv_lib_readline_readline = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_LIBREADLINE 1
20576 _ACEOF
20578 LIBS="-lreadline $LIBS"
20582 if test "$ac_cv_have_readline_readline" = no
20583 then
20585 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20586 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20587 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590 ac_check_lib_save_LIBS=$LIBS
20591 LIBS="-ltermcap $LIBS"
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 /* Override any gcc2 internal prototype to avoid an error. */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 /* We use char because int might match the return type of a gcc2
20604 builtin and then its argument prototype would still apply. */
20605 char readline ();
20607 main ()
20609 readline ();
20611 return 0;
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20616 (eval $ac_link) 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest$ac_exeext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_lib_termcap_readline=yes
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_cv_lib_termcap_readline=no
20643 rm -f conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20645 LIBS=$ac_check_lib_save_LIBS
20647 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20648 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20649 if test $ac_cv_lib_termcap_readline = yes; then
20650 cat >>confdefs.h <<_ACEOF
20651 #define HAVE_LIBTERMCAP 1
20652 _ACEOF
20654 LIBS="-ltermcap $LIBS"
20660 # check for readline 2.1
20661 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20662 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20663 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666 ac_check_lib_save_LIBS=$LIBS
20667 LIBS="-lreadline $LIBS"
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20675 /* Override any gcc2 internal prototype to avoid an error. */
20676 #ifdef __cplusplus
20677 extern "C"
20678 #endif
20679 /* We use char because int might match the return type of a gcc2
20680 builtin and then its argument prototype would still apply. */
20681 char rl_callback_handler_install ();
20683 main ()
20685 rl_callback_handler_install ();
20687 return 0;
20689 _ACEOF
20690 rm -f conftest.$ac_objext conftest$ac_exeext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20692 (eval $ac_link) 2>conftest.er1
20693 ac_status=$?
20694 grep -v '^ *+' conftest.er1 >conftest.err
20695 rm -f conftest.er1
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
20699 { ac_try='test -z "$ac_c_werror_flag"
20700 || test ! -s conftest.err'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; } &&
20706 { ac_try='test -s conftest$ac_exeext'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_lib_readline_rl_callback_handler_install=yes
20713 else
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 ac_cv_lib_readline_rl_callback_handler_install=no
20719 rm -f conftest.err conftest.$ac_objext \
20720 conftest$ac_exeext conftest.$ac_ext
20721 LIBS=$ac_check_lib_save_LIBS
20723 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20724 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20725 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_RL_CALLBACK 1
20729 _ACEOF
20734 # check for readline 2.2
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 #include <readline/readline.h>
20742 _ACEOF
20743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } >/dev/null; then
20751 if test -s conftest.err; then
20752 ac_cpp_err=$ac_c_preproc_warn_flag
20753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20754 else
20755 ac_cpp_err=
20757 else
20758 ac_cpp_err=yes
20760 if test -z "$ac_cpp_err"; then
20761 have_readline=yes
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 have_readline=no
20768 rm -f conftest.err conftest.$ac_ext
20769 if test $have_readline = yes
20770 then
20771 cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h. */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 #include <readline/readline.h>
20779 _ACEOF
20780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20781 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20783 cat >>confdefs.h <<\_ACEOF
20784 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20785 _ACEOF
20788 rm -f conftest*
20792 # check for readline 4.0
20793 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20794 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20795 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798 ac_check_lib_save_LIBS=$LIBS
20799 LIBS="-lreadline $LIBS"
20800 cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h. */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20807 /* Override any gcc2 internal prototype to avoid an error. */
20808 #ifdef __cplusplus
20809 extern "C"
20810 #endif
20811 /* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20813 char rl_pre_input_hook ();
20815 main ()
20817 rl_pre_input_hook ();
20819 return 0;
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>conftest.er1
20825 ac_status=$?
20826 grep -v '^ *+' conftest.er1 >conftest.err
20827 rm -f conftest.er1
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } &&
20831 { ac_try='test -z "$ac_c_werror_flag"
20832 || test ! -s conftest.err'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest$ac_exeext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_cv_lib_readline_rl_pre_input_hook=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_lib_readline_rl_pre_input_hook=no
20851 rm -f conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20853 LIBS=$ac_check_lib_save_LIBS
20855 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20856 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20857 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_RL_PRE_INPUT_HOOK 1
20861 _ACEOF
20866 # check for readline 4.2
20867 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20868 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20869 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872 ac_check_lib_save_LIBS=$LIBS
20873 LIBS="-lreadline $LIBS"
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20881 /* Override any gcc2 internal prototype to avoid an error. */
20882 #ifdef __cplusplus
20883 extern "C"
20884 #endif
20885 /* We use char because int might match the return type of a gcc2
20886 builtin and then its argument prototype would still apply. */
20887 char rl_completion_matches ();
20889 main ()
20891 rl_completion_matches ();
20893 return 0;
20895 _ACEOF
20896 rm -f conftest.$ac_objext conftest$ac_exeext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20898 (eval $ac_link) 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag"
20906 || test ! -s conftest.err'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try='test -s conftest$ac_exeext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 ac_cv_lib_readline_rl_completion_matches=yes
20919 else
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_cv_lib_readline_rl_completion_matches=no
20925 rm -f conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
20927 LIBS=$ac_check_lib_save_LIBS
20929 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20930 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20931 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_RL_COMPLETION_MATCHES 1
20935 _ACEOF
20940 # also in readline 4.2
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h. */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <readline/readline.h>
20948 _ACEOF
20949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } >/dev/null; then
20957 if test -s conftest.err; then
20958 ac_cpp_err=$ac_c_preproc_warn_flag
20959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20960 else
20961 ac_cpp_err=
20963 else
20964 ac_cpp_err=yes
20966 if test -z "$ac_cpp_err"; then
20967 have_readline=yes
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 have_readline=no
20974 rm -f conftest.err conftest.$ac_ext
20975 if test $have_readline = yes
20976 then
20977 cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h. */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 #include <readline/readline.h>
20985 _ACEOF
20986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20987 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
20989 cat >>confdefs.h <<\_ACEOF
20990 #define HAVE_RL_CATCH_SIGNAL 1
20991 _ACEOF
20994 rm -f conftest*
20998 # End of readline checks: restore LIBS
20999 LIBS=$LIBS_no_readline
21001 echo "$as_me:$LINENO: checking for broken nice()" >&5
21002 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21003 if test "${ac_cv_broken_nice+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21007 if test "$cross_compiling" = yes; then
21008 ac_cv_broken_nice=no
21009 else
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h. */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21017 int main()
21019 int val1 = nice(1);
21020 if (val1 != -1 && val1 == nice(2))
21021 exit(0);
21022 exit(1);
21025 _ACEOF
21026 rm -f conftest$ac_exeext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21028 (eval $ac_link) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 ac_cv_broken_nice=yes
21038 else
21039 echo "$as_me: program exited with status $ac_status" >&5
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ( exit $ac_status )
21044 ac_cv_broken_nice=no
21046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21050 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21051 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21052 if test "$ac_cv_broken_nice" = yes
21053 then
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_BROKEN_NICE 1
21057 _ACEOF
21061 echo "$as_me:$LINENO: checking for broken poll()" >&5
21062 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21063 if test "$cross_compiling" = yes; then
21064 ac_cv_broken_poll=no
21065 else
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21073 #include <poll.h>
21075 int main (void)
21077 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21079 close (42);
21081 int poll_test = poll (&poll_struct, 1, 0);
21083 if (poll_test < 0)
21085 exit(0);
21087 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21089 exit(0);
21091 else
21093 exit(1);
21097 _ACEOF
21098 rm -f conftest$ac_exeext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 (eval $ac_link) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_broken_poll=yes
21110 else
21111 echo "$as_me: program exited with status $ac_status" >&5
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ( exit $ac_status )
21116 ac_cv_broken_poll=no
21118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21120 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21121 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21122 if test "$ac_cv_broken_poll" = yes
21123 then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_BROKEN_POLL 1
21127 _ACEOF
21131 # Before we can test tzset, we need to check if struct tm has a tm_zone
21132 # (which is not required by ISO C or UNIX spec) and/or if we support
21133 # tzname[]
21134 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21135 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21136 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <sys/types.h>
21146 #include <$ac_cv_struct_tm>
21150 main ()
21152 static struct tm ac_aggr;
21153 if (ac_aggr.tm_zone)
21154 return 0;
21156 return 0;
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_c_werror_flag"
21169 || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try='test -s conftest.$ac_objext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 ac_cv_member_struct_tm_tm_zone=yes
21182 else
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h. */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <$ac_cv_struct_tm>
21197 main ()
21199 static struct tm ac_aggr;
21200 if (sizeof ac_aggr.tm_zone)
21201 return 0;
21203 return 0;
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
21215 { ac_try='test -z "$ac_c_werror_flag"
21216 || test ! -s conftest.err'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_cv_member_struct_tm_tm_zone=yes
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_cv_member_struct_tm_tm_zone=no
21235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21240 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21241 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21243 cat >>confdefs.h <<_ACEOF
21244 #define HAVE_STRUCT_TM_TM_ZONE 1
21245 _ACEOF
21250 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21252 cat >>confdefs.h <<\_ACEOF
21253 #define HAVE_TM_ZONE 1
21254 _ACEOF
21256 else
21257 echo "$as_me:$LINENO: checking for tzname" >&5
21258 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21259 if test "${ac_cv_var_tzname+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include <time.h>
21269 #ifndef tzname /* For SGI. */
21270 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21271 #endif
21274 main ()
21276 atoi(*tzname);
21278 return 0;
21280 _ACEOF
21281 rm -f conftest.$ac_objext conftest$ac_exeext
21282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21283 (eval $ac_link) 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } &&
21290 { ac_try='test -z "$ac_c_werror_flag"
21291 || test ! -s conftest.err'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest$ac_exeext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 ac_cv_var_tzname=yes
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_cv_var_tzname=no
21310 rm -f conftest.err conftest.$ac_objext \
21311 conftest$ac_exeext conftest.$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21314 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21315 if test $ac_cv_var_tzname = yes; then
21317 cat >>confdefs.h <<\_ACEOF
21318 #define HAVE_TZNAME 1
21319 _ACEOF
21325 # check tzset(3) exists and works like we expect it to
21326 echo "$as_me:$LINENO: checking for working tzset()" >&5
21327 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21328 if test "${ac_cv_working_tzset+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21332 if test "$cross_compiling" = yes; then
21333 ac_cv_working_tzset=no
21334 else
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h. */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21342 #include <stdlib.h>
21343 #include <time.h>
21344 #include <string.h>
21346 #if HAVE_TZNAME
21347 extern char *tzname[];
21348 #endif
21350 int main()
21352 /* Note that we need to ensure that not only does tzset(3)
21353 do 'something' with localtime, but it works as documented
21354 in the library reference and as expected by the test suite.
21355 This includes making sure that tzname is set properly if
21356 tm->tm_zone does not exist since it is the alternative way
21357 of getting timezone info.
21359 Red Hat 6.2 doesn't understand the southern hemisphere
21360 after New Year's Day.
21363 time_t groundhogday = 1044144000; /* GMT-based */
21364 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21366 putenv("TZ=UTC+0");
21367 tzset();
21368 if (localtime(&groundhogday)->tm_hour != 0)
21369 exit(1);
21370 #if HAVE_TZNAME
21371 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21372 if (strcmp(tzname[0], "UTC") ||
21373 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21374 exit(1);
21375 #endif
21377 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21378 tzset();
21379 if (localtime(&groundhogday)->tm_hour != 19)
21380 exit(1);
21381 #if HAVE_TZNAME
21382 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21383 exit(1);
21384 #endif
21386 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21387 tzset();
21388 if (localtime(&groundhogday)->tm_hour != 11)
21389 exit(1);
21390 #if HAVE_TZNAME
21391 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21392 exit(1);
21393 #endif
21395 #if HAVE_STRUCT_TM_TM_ZONE
21396 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21397 exit(1);
21398 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21399 exit(1);
21400 #endif
21402 exit(0);
21405 _ACEOF
21406 rm -f conftest$ac_exeext
21407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21408 (eval $ac_link) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_cv_working_tzset=yes
21418 else
21419 echo "$as_me: program exited with status $ac_status" >&5
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21423 ( exit $ac_status )
21424 ac_cv_working_tzset=no
21426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21430 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21431 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21432 if test "$ac_cv_working_tzset" = yes
21433 then
21435 cat >>confdefs.h <<\_ACEOF
21436 #define HAVE_WORKING_TZSET 1
21437 _ACEOF
21441 # Look for subsecond timestamps in struct stat
21442 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21443 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21444 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <sys/stat.h>
21455 main ()
21458 struct stat st;
21459 st.st_mtim.tv_nsec = 1;
21462 return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21467 (eval $ac_compile) 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
21474 { ac_try='test -z "$ac_c_werror_flag"
21475 || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest.$ac_objext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_stat_tv_nsec=yes
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ac_cv_stat_tv_nsec=no
21494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21497 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21498 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21499 if test "$ac_cv_stat_tv_nsec" = yes
21500 then
21502 cat >>confdefs.h <<\_ACEOF
21503 #define HAVE_STAT_TV_NSEC 1
21504 _ACEOF
21508 # Look for BSD style subsecond timestamps in struct stat
21509 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21510 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21511 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 #include <sys/stat.h>
21522 main ()
21525 struct stat st;
21526 st.st_mtimespec.tv_nsec = 1;
21529 return 0;
21531 _ACEOF
21532 rm -f conftest.$ac_objext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21534 (eval $ac_compile) 2>conftest.er1
21535 ac_status=$?
21536 grep -v '^ *+' conftest.er1 >conftest.err
21537 rm -f conftest.er1
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest.$ac_objext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_stat_tv_nsec2=yes
21555 else
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_cv_stat_tv_nsec2=no
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21564 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21565 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21566 if test "$ac_cv_stat_tv_nsec2" = yes
21567 then
21569 cat >>confdefs.h <<\_ACEOF
21570 #define HAVE_STAT_TV_NSEC2 1
21571 _ACEOF
21575 # On HP/UX 11.0, mvwdelch is a block with a return statement
21576 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21577 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21578 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h. */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <curses.h>
21589 main ()
21592 int rtn;
21593 rtn = mvwdelch(0,0,0);
21596 return 0;
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_c_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest.$ac_objext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_mvwdelch_is_expression=yes
21622 else
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_mvwdelch_is_expression=no
21628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21632 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21634 if test "$ac_cv_mvwdelch_is_expression" = yes
21635 then
21637 cat >>confdefs.h <<\_ACEOF
21638 #define MVWDELCH_IS_EXPRESSION 1
21639 _ACEOF
21643 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21644 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21645 if test "${ac_cv_window_has_flags+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <curses.h>
21656 main ()
21659 WINDOW *w;
21660 w->_flags = 0;
21663 return 0;
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21668 (eval $ac_compile) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
21675 { ac_try='test -z "$ac_c_werror_flag"
21676 || test ! -s conftest.err'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21679 ac_status=$?
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; } &&
21682 { ac_try='test -s conftest.$ac_objext'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 ac_cv_window_has_flags=yes
21689 else
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_cv_window_has_flags=no
21695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21698 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21699 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21702 if test "$ac_cv_window_has_flags" = yes
21703 then
21705 cat >>confdefs.h <<\_ACEOF
21706 #define WINDOW_HAS_FLAGS 1
21707 _ACEOF
21711 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21712 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21714 if test -e /dev/ptmx
21715 then
21716 echo "$as_me:$LINENO: result: yes" >&5
21717 echo "${ECHO_T}yes" >&6
21719 cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_DEV_PTMX 1
21721 _ACEOF
21723 else
21724 echo "$as_me:$LINENO: result: no" >&5
21725 echo "${ECHO_T}no" >&6
21728 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21729 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21731 if test -e /dev/ptc
21732 then
21733 echo "$as_me:$LINENO: result: yes" >&5
21734 echo "${ECHO_T}yes" >&6
21736 cat >>confdefs.h <<\_ACEOF
21737 #define HAVE_DEV_PTC 1
21738 _ACEOF
21740 else
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21745 echo "$as_me:$LINENO: checking for socklen_t" >&5
21746 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21747 if test "${ac_cv_type_socklen_t+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21757 #ifdef HAVE_SYS_TYPES_H
21758 #include <sys/types.h>
21759 #endif
21760 #ifdef HAVE_SYS_SOCKET_H
21761 #include <sys/socket.h>
21762 #endif
21766 main ()
21768 if ((socklen_t *) 0)
21769 return 0;
21770 if (sizeof (socklen_t))
21771 return 0;
21773 return 0;
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778 (eval $ac_compile) 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_type_socklen_t=yes
21799 else
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_type_socklen_t=no
21805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21807 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21808 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21809 if test $ac_cv_type_socklen_t = yes; then
21811 else
21813 cat >>confdefs.h <<\_ACEOF
21814 #define socklen_t int
21815 _ACEOF
21822 for h in `(cd $srcdir;echo Python/thread_*.h)`
21824 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21825 done
21828 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21829 echo "$as_me:$LINENO: checking for build directories" >&5
21830 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21831 for dir in $SRCDIRS; do
21832 if test ! -d $dir; then
21833 mkdir $dir
21835 done
21836 echo "$as_me:$LINENO: result: done" >&5
21837 echo "${ECHO_T}done" >&6
21839 # generate output files
21840 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21842 cat >confcache <<\_ACEOF
21843 # This file is a shell script that caches the results of configure
21844 # tests run on this system so they can be shared between configure
21845 # scripts and configure runs, see configure's option --config-cache.
21846 # It is not useful on other systems. If it contains results you don't
21847 # want to keep, you may remove or edit it.
21849 # config.status only pays attention to the cache file if you give it
21850 # the --recheck option to rerun configure.
21852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21854 # following values.
21856 _ACEOF
21858 # The following way of writing the cache mishandles newlines in values,
21859 # but we know of no workaround that is simple, portable, and efficient.
21860 # So, don't put newlines in cache variables' values.
21861 # Ultrix sh set writes to stderr and can't be redirected directly,
21862 # and sets the high bit in the cache file unless we assign to the vars.
21864 (set) 2>&1 |
21865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21866 *ac_space=\ *)
21867 # `set' does not quote correctly, so add quotes (double-quote
21868 # substitution turns \\\\ into \\, and sed turns \\ into \).
21869 sed -n \
21870 "s/'/'\\\\''/g;
21871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21874 # `set' quotes correctly as required by POSIX, so do not add quotes.
21875 sed -n \
21876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21878 esac;
21880 sed '
21881 t clear
21882 : clear
21883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21884 t end
21885 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21886 : end' >>confcache
21887 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21888 if test -w $cache_file; then
21889 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21890 cat confcache >$cache_file
21891 else
21892 echo "not updating unwritable cache $cache_file"
21895 rm -f confcache
21897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21898 # Let make expand exec_prefix.
21899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21903 # trailing colons and then remove the whole line if VPATH becomes empty
21904 # (actually we leave an empty line to preserve line numbers).
21905 if test "x$srcdir" = x.; then
21906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21907 s/:*\$(srcdir):*/:/;
21908 s/:*\${srcdir}:*/:/;
21909 s/:*@srcdir@:*/:/;
21910 s/^\([^=]*=[ ]*\):*/\1/;
21911 s/:*$//;
21912 s/^[^=]*=[ ]*$//;
21916 DEFS=-DHAVE_CONFIG_H
21918 ac_libobjs=
21919 ac_ltlibobjs=
21920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21921 # 1. Remove the extension, and $U if already installed.
21922 ac_i=`echo "$ac_i" |
21923 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21924 # 2. Add them.
21925 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21926 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21927 done
21928 LIBOBJS=$ac_libobjs
21930 LTLIBOBJS=$ac_ltlibobjs
21934 : ${CONFIG_STATUS=./config.status}
21935 ac_clean_files_save=$ac_clean_files
21936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21939 cat >$CONFIG_STATUS <<_ACEOF
21940 #! $SHELL
21941 # Generated by $as_me.
21942 # Run this file to recreate the current configuration.
21943 # Compiler output produced by configure, useful for debugging
21944 # configure, is in config.log if it exists.
21946 debug=false
21947 ac_cs_recheck=false
21948 ac_cs_silent=false
21949 SHELL=\${CONFIG_SHELL-$SHELL}
21950 _ACEOF
21952 cat >>$CONFIG_STATUS <<\_ACEOF
21953 ## --------------------- ##
21954 ## M4sh Initialization. ##
21955 ## --------------------- ##
21957 # Be Bourne compatible
21958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21959 emulate sh
21960 NULLCMD=:
21961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21962 # is contrary to our usage. Disable this feature.
21963 alias -g '${1+"$@"}'='"$@"'
21964 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21965 set -o posix
21967 DUALCASE=1; export DUALCASE # for MKS sh
21969 # Support unset when possible.
21970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21971 as_unset=unset
21972 else
21973 as_unset=false
21977 # Work around bugs in pre-3.0 UWIN ksh.
21978 $as_unset ENV MAIL MAILPATH
21979 PS1='$ '
21980 PS2='> '
21981 PS4='+ '
21983 # NLS nuisances.
21984 for as_var in \
21985 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21986 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21987 LC_TELEPHONE LC_TIME
21989 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21990 eval $as_var=C; export $as_var
21991 else
21992 $as_unset $as_var
21994 done
21996 # Required to use basename.
21997 if expr a : '\(a\)' >/dev/null 2>&1; then
21998 as_expr=expr
21999 else
22000 as_expr=false
22003 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22004 as_basename=basename
22005 else
22006 as_basename=false
22010 # Name of the executable.
22011 as_me=`$as_basename "$0" ||
22012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22013 X"$0" : 'X\(//\)$' \| \
22014 X"$0" : 'X\(/\)$' \| \
22015 . : '\(.\)' 2>/dev/null ||
22016 echo X/"$0" |
22017 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22018 /^X\/\(\/\/\)$/{ s//\1/; q; }
22019 /^X\/\(\/\).*/{ s//\1/; q; }
22020 s/.*/./; q'`
22023 # PATH needs CR, and LINENO needs CR and PATH.
22024 # Avoid depending upon Character Ranges.
22025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22028 as_cr_digits='0123456789'
22029 as_cr_alnum=$as_cr_Letters$as_cr_digits
22031 # The user is always right.
22032 if test "${PATH_SEPARATOR+set}" != set; then
22033 echo "#! /bin/sh" >conf$$.sh
22034 echo "exit 0" >>conf$$.sh
22035 chmod +x conf$$.sh
22036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22037 PATH_SEPARATOR=';'
22038 else
22039 PATH_SEPARATOR=:
22041 rm -f conf$$.sh
22045 as_lineno_1=$LINENO
22046 as_lineno_2=$LINENO
22047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22048 test "x$as_lineno_1" != "x$as_lineno_2" &&
22049 test "x$as_lineno_3" = "x$as_lineno_2" || {
22050 # Find who we are. Look in the path if we contain no path at all
22051 # relative or not.
22052 case $0 in
22053 *[\\/]* ) as_myself=$0 ;;
22054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22055 for as_dir in $PATH
22057 IFS=$as_save_IFS
22058 test -z "$as_dir" && as_dir=.
22059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22060 done
22063 esac
22064 # We did not find ourselves, most probably we were run as `sh COMMAND'
22065 # in which case we are not to be found in the path.
22066 if test "x$as_myself" = x; then
22067 as_myself=$0
22069 if test ! -f "$as_myself"; then
22070 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22071 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22072 { (exit 1); exit 1; }; }
22074 case $CONFIG_SHELL in
22076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22077 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22079 IFS=$as_save_IFS
22080 test -z "$as_dir" && as_dir=.
22081 for as_base in sh bash ksh sh5; do
22082 case $as_dir in
22084 if ("$as_dir/$as_base" -c '
22085 as_lineno_1=$LINENO
22086 as_lineno_2=$LINENO
22087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22088 test "x$as_lineno_1" != "x$as_lineno_2" &&
22089 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22090 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22091 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22092 CONFIG_SHELL=$as_dir/$as_base
22093 export CONFIG_SHELL
22094 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22095 fi;;
22096 esac
22097 done
22098 done
22100 esac
22102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22103 # uniformly replaced by the line number. The first 'sed' inserts a
22104 # line-number line before each line; the second 'sed' does the real
22105 # work. The second script uses 'N' to pair each line-number line
22106 # with the numbered line, and appends trailing '-' during
22107 # substitution so that $LINENO is not a special case at line end.
22108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22109 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22110 sed '=' <$as_myself |
22111 sed '
22113 s,$,-,
22114 : loop
22115 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22116 t loop
22117 s,-$,,
22118 s,^['$as_cr_digits']*\n,,
22119 ' >$as_me.lineno &&
22120 chmod +x $as_me.lineno ||
22121 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22122 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22123 { (exit 1); exit 1; }; }
22125 # Don't try to exec as it changes $[0], causing all sort of problems
22126 # (the dirname of $[0] is not the place where we might find the
22127 # original and so on. Autoconf is especially sensible to this).
22128 . ./$as_me.lineno
22129 # Exit status is that of the last command.
22130 exit
22134 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22135 *c*,-n*) ECHO_N= ECHO_C='
22136 ' ECHO_T=' ' ;;
22137 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22138 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22139 esac
22141 if expr a : '\(a\)' >/dev/null 2>&1; then
22142 as_expr=expr
22143 else
22144 as_expr=false
22147 rm -f conf$$ conf$$.exe conf$$.file
22148 echo >conf$$.file
22149 if ln -s conf$$.file conf$$ 2>/dev/null; then
22150 # We could just check for DJGPP; but this test a) works b) is more generic
22151 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22152 if test -f conf$$.exe; then
22153 # Don't use ln at all; we don't have any links
22154 as_ln_s='cp -p'
22155 else
22156 as_ln_s='ln -s'
22158 elif ln conf$$.file conf$$ 2>/dev/null; then
22159 as_ln_s=ln
22160 else
22161 as_ln_s='cp -p'
22163 rm -f conf$$ conf$$.exe conf$$.file
22165 if mkdir -p . 2>/dev/null; then
22166 as_mkdir_p=:
22167 else
22168 test -d ./-p && rmdir ./-p
22169 as_mkdir_p=false
22172 as_executable_p="test -f"
22174 # Sed expression to map a string onto a valid CPP name.
22175 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22177 # Sed expression to map a string onto a valid variable name.
22178 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22181 # IFS
22182 # We need space, tab and new line, in precisely that order.
22183 as_nl='
22185 IFS=" $as_nl"
22187 # CDPATH.
22188 $as_unset CDPATH
22190 exec 6>&1
22192 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22193 # report actual input values of CONFIG_FILES etc. instead of their
22194 # values after options handling. Logging --version etc. is OK.
22195 exec 5>>config.log
22197 echo
22198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22199 ## Running $as_me. ##
22200 _ASBOX
22201 } >&5
22202 cat >&5 <<_CSEOF
22204 This file was extended by python $as_me 2.5, which was
22205 generated by GNU Autoconf 2.59. Invocation command line was
22207 CONFIG_FILES = $CONFIG_FILES
22208 CONFIG_HEADERS = $CONFIG_HEADERS
22209 CONFIG_LINKS = $CONFIG_LINKS
22210 CONFIG_COMMANDS = $CONFIG_COMMANDS
22211 $ $0 $@
22213 _CSEOF
22214 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22215 echo >&5
22216 _ACEOF
22218 # Files that config.status was made for.
22219 if test -n "$ac_config_files"; then
22220 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22223 if test -n "$ac_config_headers"; then
22224 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22227 if test -n "$ac_config_links"; then
22228 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22231 if test -n "$ac_config_commands"; then
22232 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22235 cat >>$CONFIG_STATUS <<\_ACEOF
22237 ac_cs_usage="\
22238 \`$as_me' instantiates files from templates according to the
22239 current configuration.
22241 Usage: $0 [OPTIONS] [FILE]...
22243 -h, --help print this help, then exit
22244 -V, --version print version number, then exit
22245 -q, --quiet do not print progress messages
22246 -d, --debug don't remove temporary files
22247 --recheck update $as_me by reconfiguring in the same conditions
22248 --file=FILE[:TEMPLATE]
22249 instantiate the configuration file FILE
22250 --header=FILE[:TEMPLATE]
22251 instantiate the configuration header FILE
22253 Configuration files:
22254 $config_files
22256 Configuration headers:
22257 $config_headers
22259 Report bugs to <bug-autoconf@gnu.org>."
22260 _ACEOF
22262 cat >>$CONFIG_STATUS <<_ACEOF
22263 ac_cs_version="\\
22264 python config.status 2.5
22265 configured by $0, generated by GNU Autoconf 2.59,
22266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22268 Copyright (C) 2003 Free Software Foundation, Inc.
22269 This config.status script is free software; the Free Software Foundation
22270 gives unlimited permission to copy, distribute and modify it."
22271 srcdir=$srcdir
22272 INSTALL="$INSTALL"
22273 _ACEOF
22275 cat >>$CONFIG_STATUS <<\_ACEOF
22276 # If no file are specified by the user, then we need to provide default
22277 # value. By we need to know if files were specified by the user.
22278 ac_need_defaults=:
22279 while test $# != 0
22281 case $1 in
22282 --*=*)
22283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22285 ac_shift=:
22288 ac_option=$1
22289 ac_optarg=$2
22290 ac_shift=shift
22292 *) # This is not an option, so the user has probably given explicit
22293 # arguments.
22294 ac_option=$1
22295 ac_need_defaults=false;;
22296 esac
22298 case $ac_option in
22299 # Handling of the options.
22300 _ACEOF
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22303 ac_cs_recheck=: ;;
22304 --version | --vers* | -V )
22305 echo "$ac_cs_version"; exit 0 ;;
22306 --he | --h)
22307 # Conflict between --help and --header
22308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22309 Try \`$0 --help' for more information." >&5
22310 echo "$as_me: error: ambiguous option: $1
22311 Try \`$0 --help' for more information." >&2;}
22312 { (exit 1); exit 1; }; };;
22313 --help | --hel | -h )
22314 echo "$ac_cs_usage"; exit 0 ;;
22315 --debug | --d* | -d )
22316 debug=: ;;
22317 --file | --fil | --fi | --f )
22318 $ac_shift
22319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22320 ac_need_defaults=false;;
22321 --header | --heade | --head | --hea )
22322 $ac_shift
22323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22324 ac_need_defaults=false;;
22325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22327 ac_cs_silent=: ;;
22329 # This is an error.
22330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22331 Try \`$0 --help' for more information." >&5
22332 echo "$as_me: error: unrecognized option: $1
22333 Try \`$0 --help' for more information." >&2;}
22334 { (exit 1); exit 1; }; } ;;
22336 *) ac_config_targets="$ac_config_targets $1" ;;
22338 esac
22339 shift
22340 done
22342 ac_configure_extra_args=
22344 if $ac_cs_silent; then
22345 exec 6>/dev/null
22346 ac_configure_extra_args="$ac_configure_extra_args --silent"
22349 _ACEOF
22350 cat >>$CONFIG_STATUS <<_ACEOF
22351 if \$ac_cs_recheck; then
22352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22356 _ACEOF
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 for ac_config_target in $ac_config_targets
22365 case "$ac_config_target" in
22366 # Handling of arguments.
22367 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22368 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22369 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22372 { (exit 1); exit 1; }; };;
22373 esac
22374 done
22376 # If the user did not use the arguments to specify the items to instantiate,
22377 # then the envvar interface is used. Set only those that are not.
22378 # We use the long form for the default assignment because of an extremely
22379 # bizarre bug on SunOS 4.1.3.
22380 if $ac_need_defaults; then
22381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22385 # Have a temporary directory for convenience. Make it in the build tree
22386 # simply because there is no reason to put it here, and in addition,
22387 # creating and moving files from /tmp can sometimes cause problems.
22388 # Create a temporary directory, and hook for its removal unless debugging.
22389 $debug ||
22391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22392 trap '{ (exit 1); exit 1; }' 1 2 13 15
22395 # Create a (secure) tmp directory for tmp files.
22398 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22399 test -n "$tmp" && test -d "$tmp"
22400 } ||
22402 tmp=./confstat$$-$RANDOM
22403 (umask 077 && mkdir $tmp)
22404 } ||
22406 echo "$me: cannot create a temporary directory in ." >&2
22407 { (exit 1); exit 1; }
22410 _ACEOF
22412 cat >>$CONFIG_STATUS <<_ACEOF
22415 # CONFIG_FILES section.
22418 # No need to generate the scripts if there are no CONFIG_FILES.
22419 # This happens for instance when ./config.status config.h
22420 if test -n "\$CONFIG_FILES"; then
22421 # Protect against being on the right side of a sed subst in config.status.
22422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22424 s,@SHELL@,$SHELL,;t t
22425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22431 s,@exec_prefix@,$exec_prefix,;t t
22432 s,@prefix@,$prefix,;t t
22433 s,@program_transform_name@,$program_transform_name,;t t
22434 s,@bindir@,$bindir,;t t
22435 s,@sbindir@,$sbindir,;t t
22436 s,@libexecdir@,$libexecdir,;t t
22437 s,@datadir@,$datadir,;t t
22438 s,@sysconfdir@,$sysconfdir,;t t
22439 s,@sharedstatedir@,$sharedstatedir,;t t
22440 s,@localstatedir@,$localstatedir,;t t
22441 s,@libdir@,$libdir,;t t
22442 s,@includedir@,$includedir,;t t
22443 s,@oldincludedir@,$oldincludedir,;t t
22444 s,@infodir@,$infodir,;t t
22445 s,@mandir@,$mandir,;t t
22446 s,@build_alias@,$build_alias,;t t
22447 s,@host_alias@,$host_alias,;t t
22448 s,@target_alias@,$target_alias,;t t
22449 s,@DEFS@,$DEFS,;t t
22450 s,@ECHO_C@,$ECHO_C,;t t
22451 s,@ECHO_N@,$ECHO_N,;t t
22452 s,@ECHO_T@,$ECHO_T,;t t
22453 s,@LIBS@,$LIBS,;t t
22454 s,@VERSION@,$VERSION,;t t
22455 s,@SOVERSION@,$SOVERSION,;t t
22456 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22457 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22458 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22459 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22460 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22461 s,@MACHDEP@,$MACHDEP,;t t
22462 s,@SGI_ABI@,$SGI_ABI,;t t
22463 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22464 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22465 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22466 s,@CXX@,$CXX,;t t
22467 s,@MAINOBJ@,$MAINOBJ,;t t
22468 s,@EXEEXT@,$EXEEXT,;t t
22469 s,@CC@,$CC,;t t
22470 s,@CFLAGS@,$CFLAGS,;t t
22471 s,@LDFLAGS@,$LDFLAGS,;t t
22472 s,@CPPFLAGS@,$CPPFLAGS,;t t
22473 s,@ac_ct_CC@,$ac_ct_CC,;t t
22474 s,@OBJEXT@,$OBJEXT,;t t
22475 s,@CPP@,$CPP,;t t
22476 s,@EGREP@,$EGREP,;t t
22477 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22478 s,@LIBRARY@,$LIBRARY,;t t
22479 s,@LDLIBRARY@,$LDLIBRARY,;t t
22480 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22481 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22482 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22483 s,@INSTSONAME@,$INSTSONAME,;t t
22484 s,@RUNSHARED@,$RUNSHARED,;t t
22485 s,@LINKCC@,$LINKCC,;t t
22486 s,@RANLIB@,$RANLIB,;t t
22487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22488 s,@AR@,$AR,;t t
22489 s,@SVNVERSION@,$SVNVERSION,;t t
22490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22493 s,@LN@,$LN,;t t
22494 s,@OPT@,$OPT,;t t
22495 s,@BASECFLAGS@,$BASECFLAGS,;t t
22496 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22497 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22498 s,@SO@,$SO,;t t
22499 s,@LDSHARED@,$LDSHARED,;t t
22500 s,@BLDSHARED@,$BLDSHARED,;t t
22501 s,@CCSHARED@,$CCSHARED,;t t
22502 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22503 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22504 s,@SHLIBS@,$SHLIBS,;t t
22505 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22506 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22507 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22508 s,@LDLAST@,$LDLAST,;t t
22509 s,@THREADOBJ@,$THREADOBJ,;t t
22510 s,@DLINCLDIR@,$DLINCLDIR,;t t
22511 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22512 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22513 s,@TRUE@,$TRUE,;t t
22514 s,@LIBOBJS@,$LIBOBJS,;t t
22515 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22516 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22517 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22518 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22519 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22520 s,@LIBM@,$LIBM,;t t
22521 s,@LIBC@,$LIBC,;t t
22522 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22523 s,@THREADHEADERS@,$THREADHEADERS,;t t
22524 s,@SRCDIRS@,$SRCDIRS,;t t
22525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22526 CEOF
22528 _ACEOF
22530 cat >>$CONFIG_STATUS <<\_ACEOF
22531 # Split the substitutions into bite-sized pieces for seds with
22532 # small command number limits, like on Digital OSF/1 and HP-UX.
22533 ac_max_sed_lines=48
22534 ac_sed_frag=1 # Number of current file.
22535 ac_beg=1 # First line for current file.
22536 ac_end=$ac_max_sed_lines # Line after last line for current file.
22537 ac_more_lines=:
22538 ac_sed_cmds=
22539 while $ac_more_lines; do
22540 if test $ac_beg -gt 1; then
22541 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22542 else
22543 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22545 if test ! -s $tmp/subs.frag; then
22546 ac_more_lines=false
22547 else
22548 # The purpose of the label and of the branching condition is to
22549 # speed up the sed processing (if there are no `@' at all, there
22550 # is no need to browse any of the substitutions).
22551 # These are the two extra sed commands mentioned above.
22552 (echo ':t
22553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22554 if test -z "$ac_sed_cmds"; then
22555 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22556 else
22557 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22559 ac_sed_frag=`expr $ac_sed_frag + 1`
22560 ac_beg=$ac_end
22561 ac_end=`expr $ac_end + $ac_max_sed_lines`
22563 done
22564 if test -z "$ac_sed_cmds"; then
22565 ac_sed_cmds=cat
22567 fi # test -n "$CONFIG_FILES"
22569 _ACEOF
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22573 case $ac_file in
22574 - | *:- | *:-:* ) # input from stdin
22575 cat >$tmp/stdin
22576 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22578 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22580 * ) ac_file_in=$ac_file.in ;;
22581 esac
22583 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22584 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22586 X"$ac_file" : 'X\(//\)[^/]' \| \
22587 X"$ac_file" : 'X\(//\)$' \| \
22588 X"$ac_file" : 'X\(/\)' \| \
22589 . : '\(.\)' 2>/dev/null ||
22590 echo X"$ac_file" |
22591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22593 /^X\(\/\/\)$/{ s//\1/; q; }
22594 /^X\(\/\).*/{ s//\1/; q; }
22595 s/.*/./; q'`
22596 { if $as_mkdir_p; then
22597 mkdir -p "$ac_dir"
22598 else
22599 as_dir="$ac_dir"
22600 as_dirs=
22601 while test ! -d "$as_dir"; do
22602 as_dirs="$as_dir $as_dirs"
22603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605 X"$as_dir" : 'X\(//\)[^/]' \| \
22606 X"$as_dir" : 'X\(//\)$' \| \
22607 X"$as_dir" : 'X\(/\)' \| \
22608 . : '\(.\)' 2>/dev/null ||
22609 echo X"$as_dir" |
22610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22612 /^X\(\/\/\)$/{ s//\1/; q; }
22613 /^X\(\/\).*/{ s//\1/; q; }
22614 s/.*/./; q'`
22615 done
22616 test ! -n "$as_dirs" || mkdir $as_dirs
22617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22619 { (exit 1); exit 1; }; }; }
22621 ac_builddir=.
22623 if test "$ac_dir" != .; then
22624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22625 # A "../" for each directory in $ac_dir_suffix.
22626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22627 else
22628 ac_dir_suffix= ac_top_builddir=
22631 case $srcdir in
22632 .) # No --srcdir option. We are building in place.
22633 ac_srcdir=.
22634 if test -z "$ac_top_builddir"; then
22635 ac_top_srcdir=.
22636 else
22637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22638 fi ;;
22639 [\\/]* | ?:[\\/]* ) # Absolute path.
22640 ac_srcdir=$srcdir$ac_dir_suffix;
22641 ac_top_srcdir=$srcdir ;;
22642 *) # Relative path.
22643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22645 esac
22647 # Do not use `cd foo && pwd` to compute absolute paths, because
22648 # the directories may not exist.
22649 case `pwd` in
22650 .) ac_abs_builddir="$ac_dir";;
22652 case "$ac_dir" in
22653 .) ac_abs_builddir=`pwd`;;
22654 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22655 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22656 esac;;
22657 esac
22658 case $ac_abs_builddir in
22659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22661 case ${ac_top_builddir}. in
22662 .) ac_abs_top_builddir=$ac_abs_builddir;;
22663 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22664 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22665 esac;;
22666 esac
22667 case $ac_abs_builddir in
22668 .) ac_abs_srcdir=$ac_srcdir;;
22670 case $ac_srcdir in
22671 .) ac_abs_srcdir=$ac_abs_builddir;;
22672 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22673 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22674 esac;;
22675 esac
22676 case $ac_abs_builddir in
22677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22679 case $ac_top_srcdir in
22680 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22681 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22682 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22683 esac;;
22684 esac
22687 case $INSTALL in
22688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22689 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22690 esac
22692 if test x"$ac_file" != x-; then
22693 { echo "$as_me:$LINENO: creating $ac_file" >&5
22694 echo "$as_me: creating $ac_file" >&6;}
22695 rm -f "$ac_file"
22697 # Let's still pretend it is `configure' which instantiates (i.e., don't
22698 # use $as_me), people would be surprised to read:
22699 # /* config.h. Generated by config.status. */
22700 if test x"$ac_file" = x-; then
22701 configure_input=
22702 else
22703 configure_input="$ac_file. "
22705 configure_input=$configure_input"Generated from `echo $ac_file_in |
22706 sed 's,.*/,,'` by configure."
22708 # First look for the input files in the build tree, otherwise in the
22709 # src tree.
22710 ac_file_inputs=`IFS=:
22711 for f in $ac_file_in; do
22712 case $f in
22713 -) echo $tmp/stdin ;;
22714 [\\/$]*)
22715 # Absolute (can't be DOS-style, as IFS=:)
22716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22717 echo "$as_me: error: cannot find input file: $f" >&2;}
22718 { (exit 1); exit 1; }; }
22719 echo "$f";;
22720 *) # Relative
22721 if test -f "$f"; then
22722 # Build tree
22723 echo "$f"
22724 elif test -f "$srcdir/$f"; then
22725 # Source tree
22726 echo "$srcdir/$f"
22727 else
22728 # /dev/null tree
22729 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22730 echo "$as_me: error: cannot find input file: $f" >&2;}
22731 { (exit 1); exit 1; }; }
22732 fi;;
22733 esac
22734 done` || { (exit 1); exit 1; }
22735 _ACEOF
22736 cat >>$CONFIG_STATUS <<_ACEOF
22737 sed "$ac_vpsub
22738 $extrasub
22739 _ACEOF
22740 cat >>$CONFIG_STATUS <<\_ACEOF
22742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22743 s,@configure_input@,$configure_input,;t t
22744 s,@srcdir@,$ac_srcdir,;t t
22745 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22746 s,@top_srcdir@,$ac_top_srcdir,;t t
22747 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22748 s,@builddir@,$ac_builddir,;t t
22749 s,@abs_builddir@,$ac_abs_builddir,;t t
22750 s,@top_builddir@,$ac_top_builddir,;t t
22751 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22752 s,@INSTALL@,$ac_INSTALL,;t t
22753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22754 rm -f $tmp/stdin
22755 if test x"$ac_file" != x-; then
22756 mv $tmp/out $ac_file
22757 else
22758 cat $tmp/out
22759 rm -f $tmp/out
22762 done
22763 _ACEOF
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22767 # CONFIG_HEADER section.
22770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22773 # ac_d sets the value in "#define NAME VALUE" lines.
22774 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22775 ac_dB='[ ].*$,\1#\2'
22776 ac_dC=' '
22777 ac_dD=',;t'
22778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22779 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22780 ac_uB='$,\1#\2define\3'
22781 ac_uC=' '
22782 ac_uD=',;t'
22784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22786 case $ac_file in
22787 - | *:- | *:-:* ) # input from stdin
22788 cat >$tmp/stdin
22789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22793 * ) ac_file_in=$ac_file.in ;;
22794 esac
22796 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22797 echo "$as_me: creating $ac_file" >&6;}
22799 # First look for the input files in the build tree, otherwise in the
22800 # src tree.
22801 ac_file_inputs=`IFS=:
22802 for f in $ac_file_in; do
22803 case $f in
22804 -) echo $tmp/stdin ;;
22805 [\\/$]*)
22806 # Absolute (can't be DOS-style, as IFS=:)
22807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22808 echo "$as_me: error: cannot find input file: $f" >&2;}
22809 { (exit 1); exit 1; }; }
22810 # Do quote $f, to prevent DOS paths from being IFS'd.
22811 echo "$f";;
22812 *) # Relative
22813 if test -f "$f"; then
22814 # Build tree
22815 echo "$f"
22816 elif test -f "$srcdir/$f"; then
22817 # Source tree
22818 echo "$srcdir/$f"
22819 else
22820 # /dev/null tree
22821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22822 echo "$as_me: error: cannot find input file: $f" >&2;}
22823 { (exit 1); exit 1; }; }
22824 fi;;
22825 esac
22826 done` || { (exit 1); exit 1; }
22827 # Remove the trailing spaces.
22828 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22830 _ACEOF
22832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22833 # `conftest.undefs', that substitutes the proper values into
22834 # config.h.in to produce config.h. The first handles `#define'
22835 # templates, and the second `#undef' templates.
22836 # And first: Protect against being on the right side of a sed subst in
22837 # config.status. Protect against being in an unquoted here document
22838 # in config.status.
22839 rm -f conftest.defines conftest.undefs
22840 # Using a here document instead of a string reduces the quoting nightmare.
22841 # Putting comments in sed scripts is not portable.
22843 # `end' is used to avoid that the second main sed command (meant for
22844 # 0-ary CPP macros) applies to n-ary macro definitions.
22845 # See the Autoconf documentation for `clear'.
22846 cat >confdef2sed.sed <<\_ACEOF
22847 s/[\\&,]/\\&/g
22848 s,[\\$`],\\&,g
22849 t clear
22850 : clear
22851 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22852 t end
22853 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22854 : end
22855 _ACEOF
22856 # If some macros were called several times there might be several times
22857 # the same #defines, which is useless. Nevertheless, we may not want to
22858 # sort them, since we want the *last* AC-DEFINE to be honored.
22859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22861 rm -f confdef2sed.sed
22863 # This sed command replaces #undef with comments. This is necessary, for
22864 # example, in the case of _POSIX_SOURCE, which is predefined and required
22865 # on some systems where configure will not decide to define it.
22866 cat >>conftest.undefs <<\_ACEOF
22867 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22868 _ACEOF
22870 # Break up conftest.defines because some shells have a limit on the size
22871 # of here documents, and old seds have small limits too (100 cmds).
22872 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22873 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22874 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22875 echo ' :' >>$CONFIG_STATUS
22876 rm -f conftest.tail
22877 while grep . conftest.defines >/dev/null
22879 # Write a limited-size here document to $tmp/defines.sed.
22880 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22881 # Speed up: don't consider the non `#define' lines.
22882 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22883 # Work around the forget-to-reset-the-flag bug.
22884 echo 't clr' >>$CONFIG_STATUS
22885 echo ': clr' >>$CONFIG_STATUS
22886 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22887 echo 'CEOF
22888 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22889 rm -f $tmp/in
22890 mv $tmp/out $tmp/in
22891 ' >>$CONFIG_STATUS
22892 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22893 rm -f conftest.defines
22894 mv conftest.tail conftest.defines
22895 done
22896 rm -f conftest.defines
22897 echo ' fi # grep' >>$CONFIG_STATUS
22898 echo >>$CONFIG_STATUS
22900 # Break up conftest.undefs because some shells have a limit on the size
22901 # of here documents, and old seds have small limits too (100 cmds).
22902 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22903 rm -f conftest.tail
22904 while grep . conftest.undefs >/dev/null
22906 # Write a limited-size here document to $tmp/undefs.sed.
22907 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22908 # Speed up: don't consider the non `#undef'
22909 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22910 # Work around the forget-to-reset-the-flag bug.
22911 echo 't clr' >>$CONFIG_STATUS
22912 echo ': clr' >>$CONFIG_STATUS
22913 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22914 echo 'CEOF
22915 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22916 rm -f $tmp/in
22917 mv $tmp/out $tmp/in
22918 ' >>$CONFIG_STATUS
22919 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22920 rm -f conftest.undefs
22921 mv conftest.tail conftest.undefs
22922 done
22923 rm -f conftest.undefs
22925 cat >>$CONFIG_STATUS <<\_ACEOF
22926 # Let's still pretend it is `configure' which instantiates (i.e., don't
22927 # use $as_me), people would be surprised to read:
22928 # /* config.h. Generated by config.status. */
22929 if test x"$ac_file" = x-; then
22930 echo "/* Generated by configure. */" >$tmp/config.h
22931 else
22932 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22934 cat $tmp/in >>$tmp/config.h
22935 rm -f $tmp/in
22936 if test x"$ac_file" != x-; then
22937 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22939 echo "$as_me: $ac_file is unchanged" >&6;}
22940 else
22941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22943 X"$ac_file" : 'X\(//\)[^/]' \| \
22944 X"$ac_file" : 'X\(//\)$' \| \
22945 X"$ac_file" : 'X\(/\)' \| \
22946 . : '\(.\)' 2>/dev/null ||
22947 echo X"$ac_file" |
22948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22950 /^X\(\/\/\)$/{ s//\1/; q; }
22951 /^X\(\/\).*/{ s//\1/; q; }
22952 s/.*/./; q'`
22953 { if $as_mkdir_p; then
22954 mkdir -p "$ac_dir"
22955 else
22956 as_dir="$ac_dir"
22957 as_dirs=
22958 while test ! -d "$as_dir"; do
22959 as_dirs="$as_dir $as_dirs"
22960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22962 X"$as_dir" : 'X\(//\)[^/]' \| \
22963 X"$as_dir" : 'X\(//\)$' \| \
22964 X"$as_dir" : 'X\(/\)' \| \
22965 . : '\(.\)' 2>/dev/null ||
22966 echo X"$as_dir" |
22967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22969 /^X\(\/\/\)$/{ s//\1/; q; }
22970 /^X\(\/\).*/{ s//\1/; q; }
22971 s/.*/./; q'`
22972 done
22973 test ! -n "$as_dirs" || mkdir $as_dirs
22974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22976 { (exit 1); exit 1; }; }; }
22978 rm -f $ac_file
22979 mv $tmp/config.h $ac_file
22981 else
22982 cat $tmp/config.h
22983 rm -f $tmp/config.h
22985 done
22986 _ACEOF
22988 cat >>$CONFIG_STATUS <<\_ACEOF
22990 { (exit 0); exit 0; }
22991 _ACEOF
22992 chmod +x $CONFIG_STATUS
22993 ac_clean_files=$ac_clean_files_save
22996 # configure is writing to config.log, and then calls config.status.
22997 # config.status does its own redirection, appending to config.log.
22998 # Unfortunately, on DOS this fails, as config.log is still kept open
22999 # by configure, so config.status won't be able to write to it; its
23000 # output is simply discarded. So we exec the FD to /dev/null,
23001 # effectively closing config.log, so it can be properly (re)opened and
23002 # appended to by config.status. When coming back to configure, we
23003 # need to make the FD available again.
23004 if test "$no_create" != yes; then
23005 ac_cs_success=:
23006 ac_config_status_args=
23007 test "$silent" = yes &&
23008 ac_config_status_args="$ac_config_status_args --quiet"
23009 exec 5>/dev/null
23010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23011 exec 5>>config.log
23012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23013 # would make configure fail if this is the last instruction.
23014 $ac_cs_success || { (exit 1); exit 1; }
23018 echo "creating Setup"
23019 if test ! -f Modules/Setup
23020 then
23021 cp $srcdir/Modules/Setup.dist Modules/Setup
23024 echo "creating Setup.local"
23025 if test ! -f Modules/Setup.local
23026 then
23027 echo "# Edit this file for local setup changes" >Modules/Setup.local
23030 echo "creating Makefile"
23031 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23032 -s Modules Modules/Setup.config \
23033 Modules/Setup.local Modules/Setup
23034 mv config.c Modules