[Backport of r56382]
[pytest.git] / configure
blob70e0e684dcb076c4f28db2c585d60d479bdfa98d
1 #! /bin/sh
2 # From configure.in Revision: 52844 .
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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC 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-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
1557 define_xopen_source=no;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1560 # Marc Recht
1561 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
1562 define_xopen_source=no;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1565 SunOS/5.6)
1566 define_xopen_source=no;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1571 define_xopen_source=no;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1574 SCO_SV/3.2)
1575 define_xopen_source=no;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD/4.8* | Darwin/6* )
1581 define_xopen_source=no;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1585 AIX/4)
1586 define_xopen_source=no;;
1587 AIX/5)
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1596 Darwin/[789].*)
1597 define_xopen_source=no
1600 esac
1602 if test $define_xopen_source = yes
1603 then
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1607 # compiler
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1611 cat >>confdefs.h <<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1613 _ACEOF
1618 cat >>confdefs.h <<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1620 _ACEOF
1623 esac
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1632 SunOS/5.10)
1636 cat >>confdefs.h <<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1638 _ACEOF
1641 esac
1644 cat >>confdefs.h <<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1646 _ACEOF
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1662 then
1663 CC="cc $SGI_ABI"
1664 LDFLAGS="$SGI_ABI $LDFLAGS"
1665 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1676 then
1677 case $MACHDEP in
1678 darwin)
1679 EXTRAPLATDIR="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1683 EXTRAPLATDIR=""
1684 EXTRAMACHDEPPATH=""
1686 esac
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1693 # needs to check it
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1714 withval="$with_gcc"
1716 case $withval in
1717 no) CC=cc
1718 without_gcc=yes;;
1719 yes) CC=gcc
1720 without_gcc=no;;
1721 *) CC=$withval
1722 without_gcc=$withval;;
1723 esac
1724 else
1726 case $ac_sys_system in
1727 AIX*) CC=cc_r
1728 without_gcc=;;
1729 BeOS*)
1730 case $BE_HOST_CPU in
1731 ppc)
1732 CC=mwcc
1733 without_gcc=yes
1734 BASECFLAGS="$BASECFLAGS -export pragma"
1735 OPT="$OPT -O"
1736 LDFLAGS="$LDFLAGS -nodup"
1738 x86)
1739 CC=gcc
1740 without_gcc=no
1741 OPT="$OPT -O"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1748 esac
1749 AR="\$(srcdir)/Modules/ar_beos"
1750 RANLIB=:
1752 Monterey*)
1753 RANLIB=:
1754 without_gcc=;;
1755 *) without_gcc=no;;
1756 esac
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1763 then
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1803 CC=$ac_cv_prog_CC
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 CC=$ac_ct_CC
1851 else
1852 CC="$ac_cv_prog_CC"
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1916 done
1917 done
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 CC=$ac_ct_CC
1931 else
1932 CC="$ac_cv_prog_CC"
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 ac_prog_rejected=no
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2030 done
2032 if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2072 done
2074 CC=$ac_ct_CC
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2114 main ()
2118 return 0;
2120 _ACEOF
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2125 # of exeext.
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136 # resort.
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 ac_cv_exeext=
2141 # b.out is created by i960 compilers.
2142 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2148 conftest.$ac_ext )
2149 # This is the source file.
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2163 break;;
2164 esac
2165 done
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213 ac_clean_files=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2231 # `rm'.
2232 for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241 done
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.$ac_ext
2255 EXEEXT=$ac_cv_exeext
2256 ac_exeext=$EXEEXT
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2270 main ()
2274 return 0;
2276 _ACEOF
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289 done
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT=$ac_cv_objext
2306 ac_objext=$OBJEXT
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2322 #ifndef __GNUC__
2323 choke me
2324 #endif
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 ac_compiler_gnu=no
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS=${CFLAGS+set}
2367 ac_save_CFLAGS=$CFLAGS
2368 CFLAGS="-g"
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 main ()
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_cv_prog_cc_g=no
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2430 else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 ac_cv_prog_cc_stdc=no
2443 ac_save_CC=$CC
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <stdarg.h>
2451 #include <stdio.h>
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2458 char **p;
2459 int i;
2461 return p[i];
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2489 main ()
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493 return 0;
2495 _ACEOF
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529 break
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.err conftest.$ac_objext
2536 done
2537 rm -f conftest.$ac_ext conftest.$ac_objext
2538 CC=$ac_save_CC
2542 case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550 esac
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #ifndef __cplusplus
2558 choke me
2559 #endif
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 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597 $ac_declaration
2598 #include <stdlib.h>
2600 main ()
2602 exit (42);
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 continue
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643 $ac_declaration
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 done
2682 rm -f conftest*
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval="$with_cxx_main"
2712 case $withval in
2713 no) with_cxx_main=no
2714 MAINCC='$(CC)';;
2715 yes) with_cxx_main=yes
2716 MAINCC='$(CXX)';;
2717 *) with_cxx_main=yes
2718 MAINCC=$withval
2719 if test -z "$CXX"
2720 then
2721 CXX=$withval
2722 fi;;
2723 esac
2724 else
2726 with_cxx_main=no
2727 MAINCC='$(CC)'
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2733 preset_cxx="$CXX"
2734 if test -z "$CXX"
2735 then
2736 case "$CC" in
2737 gcc) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g++; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 case $CXX in
2745 [\\/]* | ?:[\\/]*)
2746 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in notfound
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2765 esac
2767 CXX=$ac_cv_path_CXX
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c++; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 case $CXX in
2785 [\\/]* | ?:[\\/]*)
2786 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in notfound
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2805 esac
2807 CXX=$ac_cv_path_CXX
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 esac
2818 if test "$CXX" = "notfound"
2819 then
2820 CXX=""
2823 if test -z "$CXX"
2824 then
2825 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2863 done
2864 test -n "$CXX" || CXX="notfound"
2866 if test "$CXX" = "notfound"
2867 then
2868 CXX=""
2871 if test "$preset_cxx" != "$CXX"
2872 then
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&5
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2882 " >&2;}
2886 # checks for UNIX variants that set C preprocessor variables
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2942 else
2943 ac_cpp_err=yes
2945 if test -z "$ac_cpp_err"; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2952 continue
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null; then
2974 if test -s conftest.err; then
2975 ac_cpp_err=$ac_c_preproc_warn_flag
2976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000 break
3003 done
3004 ac_cv_prog_CPP=$CPP
3007 CPP=$ac_cv_prog_CPP
3008 else
3009 ac_cv_prog_CPP=$CPP
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3049 else
3050 ac_cpp_err=yes
3052 if test -z "$ac_cpp_err"; then
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3059 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3092 continue
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3101 rm -f conftest.err conftest.$ac_ext
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3108 else
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129 then ac_cv_prog_egrep='grep -E'
3130 else ac_cv_prog_egrep='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 #ifdef _AIX
3149 #endif
3151 _ACEOF
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev/null 2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h <<\_ACEOF
3157 #define _ALL_SOURCE 1
3158 _ACEOF
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3164 rm -f conftest*
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3170 Linux*/1*)
3171 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3172 echo See README for details.
3173 exit 1;;
3174 esac
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval="$with_suffix"
3184 case $withval in
3185 no) EXEEXT=;;
3186 yes) EXEEXT=.exe;;
3187 *) EXEEXT=$withval;;
3188 esac
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3203 then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 BUILDEXEEXT=.exe
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 BUILDEXEEXT=$EXEEXT
3212 rmdir CaseSensitiveTestDir
3214 case $MACHDEP in
3215 bsdos*)
3216 case $CC in
3217 gcc) CC="$CC -D_HAVE_BSDI";;
3218 esac;;
3219 esac
3221 case $ac_sys_system in
3222 hp*|HP*)
3223 case $CC in
3224 cc|*/cc) CC="$CC -Ae";;
3225 esac;;
3226 Monterey*)
3227 case $CC in
3228 cc) CC="$CC -Wl,-Bexport";;
3229 esac;;
3230 SunOS*)
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h <<\_ACEOF
3234 #define __EXTENSIONS__ 1
3235 _ACEOF
3238 esac
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3245 then
3246 LIBRARY='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY="$LIBRARY"
3271 BLDLIBRARY='$(LDLIBRARY)'
3272 INSTSONAME='$(LDLIBRARY)'
3273 DLLLIBRARY=''
3274 LDLIBRARYDIR=''
3275 RUNSHARED=''
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3282 # linking.
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3287 then
3288 LINKCC='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3290 AIX*)
3291 exp_extra="\"\""
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3294 exp_extra="."
3296 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3297 Monterey64*)
3298 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3299 esac
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval="$enable_shared"
3312 if test -z "$enable_shared"
3313 then
3314 case $ac_sys_system in
3315 CYGWIN* | atheos*)
3316 enable_shared="yes";;
3318 enable_shared="no";;
3319 esac
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval="$enable_profiling"
3329 ac_save_cc="$CC"
3330 CC="$CC -pg"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling="no"
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling="yes"
3354 else
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ( exit $ac_status )
3360 ac_enable_profiling="no"
3362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3364 CC="$ac_save_cc"
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3370 "yes")
3371 BASECFLAGS="-pg $BASECFLAGS"
3372 LDFLAGS="-pg $LDFLAGS"
3374 esac
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3386 then
3387 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3389 BLDLIBRARY=''
3390 else
3391 BLDLIBRARY='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3399 _ACEOF
3401 case $ac_sys_system in
3402 BeOS*)
3403 LDLIBRARY='libpython$(VERSION).so'
3405 CYGWIN*)
3406 LDLIBRARY='libpython$(VERSION).dll.a'
3407 DLLLIBRARY='libpython$(VERSION).dll'
3409 SunOS*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME="$LDLIBRARY".$SOVERSION
3415 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3416 LDLIBRARY='libpython$(VERSION).so'
3417 BLDLIBRARY='-L. -lpython$(VERSION)'
3418 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3420 FreeBSD*)
3421 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3423 esac
3424 INSTSONAME="$LDLIBRARY".$SOVERSION
3426 hp*|HP*)
3427 case `uname -m` in
3428 ia64)
3429 LDLIBRARY='libpython$(VERSION).so'
3432 LDLIBRARY='libpython$(VERSION).sl'
3434 esac
3435 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3438 OSF*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3443 atheos*)
3444 LDLIBRARY='libpython$(VERSION).so'
3445 BLDLIBRARY='-L. -lpython$(VERSION)'
3446 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3448 esac
3449 else # shared is disabled
3450 case $ac_sys_system in
3451 CYGWIN*)
3452 BLDLIBRARY='$(LIBRARY)'
3453 LDLIBRARY='libpython$(VERSION).dll.a'
3455 esac
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3488 RANLIB=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3492 else
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB=$ac_ct_RANLIB
3537 else
3538 RANLIB="$ac_cv_prog_RANLIB"
3542 for ac_prog in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR="$AR" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3570 AR=$ac_cv_prog_AR
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3574 else
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3580 done
3581 test -n "$AR" || AR="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3612 SVNVERSION=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3622 then
3623 SVNVERSION="svnversion \$(srcdir)"
3624 else
3625 SVNVERSION="echo exported"
3628 case $MACHDEP in
3629 bsdos*|hp*|HP*)
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3632 then
3633 INSTALL="${srcdir}/install-sh -c"
3635 esac
3636 ac_aux_dir=
3637 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3638 if 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/install.sh; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/install.sh -c"
3645 break
3646 elif test -f $ac_dir/shtool; then
3647 ac_aux_dir=$ac_dir
3648 ac_install_sh="$ac_aux_dir/shtool install -c"
3649 break
3651 done
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687 ./ | .// | /cC/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690 /usr/ucb/* ) ;;
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3706 else
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 break 3
3711 done
3712 done
3714 esac
3715 done
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3745 BeOS*) LN="ln -s";;
3746 CYGWIN*) LN="ln -s";;
3747 atheos*) LN="ln -s";;
3748 *) LN=ln;;
3749 esac
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval="$with_pydebug"
3760 if test "$withval" != no
3761 then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define Py_DEBUG 1
3765 _ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3769 Py_DEBUG='true'
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3789 # user set OPT.
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3794 if test -z "$OPT"
3795 then
3796 case $GCC in
3797 yes)
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3802 yes)
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3805 # debug builds.
3806 OPT="-g -Wall $STRICT_PROTO"
3807 else
3808 OPT="-g -O3 -Wall $STRICT_PROTO"
3812 OPT="-O3 -Wall $STRICT_PROTO"
3814 esac
3815 case $ac_sys_system in
3816 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3818 esac
3822 OPT="-O"
3824 esac
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3829 Monterey*)
3830 OPT=""
3832 esac
3837 # tweak BASECFLAGS based on compiler and platform
3838 case $GCC in
3839 yes)
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3845 ac_save_cc="$CC"
3846 CC="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok=no
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3857 _ACEOF
3858 rm -f conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok=yes
3870 else
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ( exit $ac_status )
3876 ac_cv_no_strict_aliasing_ok=no
3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 CC="$ac_save_cc"
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3884 then
3885 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3888 SCO_SV*)
3889 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3892 Darwin*)
3893 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -mieee"
3902 esac
3906 case $ac_sys_system in
3907 OpenUNIX*|UnixWare*)
3908 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3910 OSF*)
3911 BASECFLAGS="$BASECFLAGS -ieee -std"
3913 SCO_SV*)
3914 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3916 esac
3918 esac
3920 if test "$Py_DEBUG" = 'true'; then
3922 else
3923 OPT="-DNDEBUG $OPT"
3926 if test "$ac_arch_flags"
3927 then
3928 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3932 if test "$CC" = icc
3933 then
3934 ac_cv_opt_olimit_ok=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_save_cc="$CC"
3943 CC="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok=no
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok=yes
3967 else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ( exit $ac_status )
3973 ac_cv_opt_olimit_ok=no
3975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 CC="$ac_save_cc"
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3986 # environment?
3987 Darwin*)
3990 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3992 esac
3993 else
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_save_cc="$CC"
4000 CC="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4002 ac_cv_olimit_ok=no
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4011 _ACEOF
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_olimit_ok=yes
4024 else
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ( exit $ac_status )
4030 ac_cv_olimit_ok=no
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 CC="$ac_save_cc"
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4044 # On some compilers, pthreads are available without further options
4045 # (e.g. MacOS X). On some of these systems, the compiler will not
4046 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4047 # So we have to see first whether pthreads are available without
4048 # options before we can check whether -Kpthread improves anything.
4049 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4050 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4051 if test "${ac_cv_pthread_is_default+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 if test "$cross_compiling" = yes; then
4055 ac_cv_pthread_is_default=no
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 #include <pthread.h>
4066 void* routine(void* p){return NULL;}
4068 int main(){
4069 pthread_t p;
4070 if(pthread_create(&p,NULL,routine,NULL)!=0)
4071 return 1;
4072 (void)pthread_detach(p);
4073 return 0;
4076 _ACEOF
4077 rm -f conftest$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4089 ac_cv_pthread_is_default=yes
4090 ac_cv_kthread=no
4091 ac_cv_pthread=no
4093 else
4094 echo "$as_me: program exited with status $ac_status" >&5
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ( exit $ac_status )
4099 ac_cv_pthread_is_default=no
4101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4107 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4110 if test $ac_cv_pthread_is_default = yes
4111 then
4112 ac_cv_kpthread=no
4113 else
4114 # -Kpthread, if available, provides the right #defines
4115 # and linker options to make pthread_create available
4116 # Some compilers won't report that they do not support -Kpthread,
4117 # so we need to run a program to see whether it really made the
4118 # function available.
4119 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4120 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4121 if test "${ac_cv_kpthread+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 ac_save_cc="$CC"
4125 CC="$CC -Kpthread"
4126 if test "$cross_compiling" = yes; then
4127 ac_cv_kpthread=no
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 #include <pthread.h>
4138 void* routine(void* p){return NULL;}
4140 int main(){
4141 pthread_t p;
4142 if(pthread_create(&p,NULL,routine,NULL)!=0)
4143 return 1;
4144 (void)pthread_detach(p);
4145 return 0;
4148 _ACEOF
4149 rm -f conftest$ac_exeext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4151 (eval $ac_link) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_cv_kpthread=yes
4161 else
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ( exit $ac_status )
4167 ac_cv_kpthread=no
4169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 CC="$ac_save_cc"
4174 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4175 echo "${ECHO_T}$ac_cv_kpthread" >&6
4178 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4179 then
4180 # -Kthread, if available, provides the right #defines
4181 # and linker options to make pthread_create available
4182 # Some compilers won't report that they do not support -Kthread,
4183 # so we need to run a program to see whether it really made the
4184 # function available.
4185 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4186 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4187 if test "${ac_cv_kthread+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 ac_save_cc="$CC"
4191 CC="$CC -Kthread"
4192 if test "$cross_compiling" = yes; then
4193 ac_cv_kthread=no
4194 else
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4202 #include <pthread.h>
4204 void* routine(void* p){return NULL;}
4206 int main(){
4207 pthread_t p;
4208 if(pthread_create(&p,NULL,routine,NULL)!=0)
4209 return 1;
4210 (void)pthread_detach(p);
4211 return 0;
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_kthread=yes
4227 else
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 ( exit $ac_status )
4233 ac_cv_kthread=no
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4237 CC="$ac_save_cc"
4240 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4241 echo "${ECHO_T}$ac_cv_kthread" >&6
4244 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4245 then
4246 # -pthread, if available, provides the right #defines
4247 # and linker options to make pthread_create available
4248 # Some compilers won't report that they do not support -pthread,
4249 # so we need to run a program to see whether it really made the
4250 # function available.
4251 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4252 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4253 if test "${ac_cv_thread+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 ac_save_cc="$CC"
4257 CC="$CC -pthread"
4258 if test "$cross_compiling" = yes; then
4259 ac_cv_pthread=no
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 #include <pthread.h>
4270 void* routine(void* p){return NULL;}
4272 int main(){
4273 pthread_t p;
4274 if(pthread_create(&p,NULL,routine,NULL)!=0)
4275 return 1;
4276 (void)pthread_detach(p);
4277 return 0;
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_pthread=yes
4293 else
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ( exit $ac_status )
4299 ac_cv_pthread=no
4301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 CC="$ac_save_cc"
4306 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4307 echo "${ECHO_T}$ac_cv_pthread" >&6
4310 # If we have set a CC compiler flag for thread support then
4311 # check if it works for CXX, too.
4312 ac_cv_cxx_thread=no
4313 if test ! -z "$CXX"
4314 then
4315 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4316 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4317 ac_save_cxx="$CXX"
4319 if test "$ac_cv_kpthread" = "yes"
4320 then
4321 CXX="$CXX -Kpthread"
4322 ac_cv_cxx_thread=yes
4323 elif test "$ac_cv_kthread" = "yes"
4324 then
4325 CXX="$CXX -Kthread"
4326 ac_cv_cxx_thread=yes
4327 elif test "$ac_cv_pthread" = "yes"
4328 then
4329 CXX="$CXX -pthread"
4330 ac_cv_cxx_thread=yes
4333 if test $ac_cv_cxx_thread = yes
4334 then
4335 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4336 $CXX -c conftest.$ac_ext 2>&5
4337 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4338 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4339 then
4340 ac_cv_cxx_thread=yes
4341 else
4342 ac_cv_cxx_thread=no
4344 rm -fr conftest*
4346 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4347 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4349 CXX="$ac_save_cxx"
4352 # checks for header files
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4370 main ()
4374 return 0;
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_header_stdc=yes
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_header_stdc=no
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <string.h>
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then
4422 else
4423 ac_cv_header_stdc=no
4425 rm -f conftest*
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <stdlib.h>
4439 _ACEOF
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev/null 2>&1; then
4443 else
4444 ac_cv_header_stdc=no
4446 rm -f conftest*
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <ctype.h>
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4465 #else
4466 # define ISLOWER(c) \
4467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4471 #endif
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4475 main ()
4477 int i;
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
4480 || toupper (i) != TOUPPER (i))
4481 exit(2);
4482 exit (0);
4484 _ACEOF
4485 rm -f conftest$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4497 else
4498 echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ( exit $ac_status )
4503 ac_cv_header_stdc=no
4505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4513 cat >>confdefs.h <<\_ACEOF
4514 #define STDC_HEADERS 1
4515 _ACEOF
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4530 inttypes.h stdint.h unistd.h
4532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h. */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 #include <$ac_header>
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 eval "$as_ac_Header=no"
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4588 done
4640 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4641 fcntl.h grp.h \
4642 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4644 unistd.h utime.h \
4645 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4646 sys/modem.h \
4647 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4648 sys/time.h \
4649 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4650 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4651 bluetooth/bluetooth.h
4653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4655 echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4662 else
4663 # Is the header compilable?
4664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <$ac_header>
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_c_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_header_compiler=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_header_compiler=no
4704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4706 echo "${ECHO_T}$ac_header_compiler" >&6
4708 # Is the header present?
4709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <$ac_header>
4718 _ACEOF
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_c_preproc_warn_flag
4729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4730 else
4731 ac_cpp_err=
4733 else
4734 ac_cpp_err=yes
4736 if test -z "$ac_cpp_err"; then
4737 ac_header_preproc=yes
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_header_preproc=no
4744 rm -f conftest.err conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746 echo "${ECHO_T}$ac_header_preproc" >&6
4748 # So? What about this header?
4749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4750 yes:no: )
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4755 ac_header_preproc=yes
4757 no:yes:* )
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4771 cat <<\_ASBOX
4772 ## ------------------------------------------------ ##
4773 ## Report this to http://www.python.org/python-bugs ##
4774 ## ------------------------------------------------ ##
4775 _ASBOX
4777 sed "s/^/$as_me: WARNING: /" >&2
4779 esac
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 eval "$as_ac_Header=\$ac_header_preproc"
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4798 done
4805 ac_header_dirent=no
4806 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4807 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 #include <$ac_hdr>
4823 main ()
4825 if ((DIR *) 0)
4826 return 0;
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_Header=yes"
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 eval "$as_ac_Header=no"
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4867 _ACEOF
4869 ac_header_dirent=$ac_hdr; break
4872 done
4873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4874 if test $ac_header_dirent = dirent.h; then
4875 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4876 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4877 if test "${ac_cv_search_opendir+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 ac_func_search_save_LIBS=$LIBS
4881 ac_cv_search_opendir=no
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4890 #ifdef __cplusplus
4891 extern "C"
4892 #endif
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895 char opendir ();
4897 main ()
4899 opendir ();
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest$ac_exeext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_search_opendir="none required"
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4932 rm -f conftest.err conftest.$ac_objext \
4933 conftest$ac_exeext conftest.$ac_ext
4934 if test "$ac_cv_search_opendir" = no; then
4935 for ac_lib in dir; do
4936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any gcc2 internal prototype to avoid an error. */
4945 #ifdef __cplusplus
4946 extern "C"
4947 #endif
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char opendir ();
4952 main ()
4954 opendir ();
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_search_opendir="-l$ac_lib"
4982 break
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.err conftest.$ac_objext \
4989 conftest$ac_exeext conftest.$ac_ext
4990 done
4992 LIBS=$ac_func_search_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4996 if test "$ac_cv_search_opendir" != no; then
4997 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5001 else
5002 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5004 if test "${ac_cv_search_opendir+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_func_search_save_LIBS=$LIBS
5008 ac_cv_search_opendir=no
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5017 #ifdef __cplusplus
5018 extern "C"
5019 #endif
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5022 char opendir ();
5024 main ()
5026 opendir ();
5028 return 0;
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_opendir="none required"
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 if test "$ac_cv_search_opendir" = no; then
5062 for ac_lib in x; do
5063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 #ifdef __cplusplus
5073 extern "C"
5074 #endif
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5077 char opendir ();
5079 main ()
5081 opendir ();
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_opendir="-l$ac_lib"
5109 break
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5117 done
5119 LIBS=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5122 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5123 if test "$ac_cv_search_opendir" != no; then
5124 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5130 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5131 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5132 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5143 main ()
5145 return makedev(0, 0);
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_header_sys_types_h_makedev=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 ac_cv_header_sys_types_h_makedev=no
5179 rm -f conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5184 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5186 if test $ac_cv_header_sys_types_h_makedev = no; then
5187 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5188 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5189 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5195 else
5196 # Is the header compilable?
5197 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5198 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5206 #include <sys/mkdev.h>
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_header_compiler=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_header_compiler=no
5237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6
5241 # Is the header present?
5242 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5243 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <sys/mkdev.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5263 else
5264 ac_cpp_err=
5266 else
5267 ac_cpp_err=yes
5269 if test -z "$ac_cpp_err"; then
5270 ac_header_preproc=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_header_preproc=no
5277 rm -f conftest.err conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 echo "${ECHO_T}$ac_header_preproc" >&6
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5283 yes:no: )
5284 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5285 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5287 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc=yes
5290 no:yes:* )
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5298 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5300 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5302 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5304 cat <<\_ASBOX
5305 ## ------------------------------------------------ ##
5306 ## Report this to http://www.python.org/python-bugs ##
5307 ## ------------------------------------------------ ##
5308 _ASBOX
5310 sed "s/^/$as_me: WARNING: /" >&2
5312 esac
5313 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5324 if test $ac_cv_header_sys_mkdev_h = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define MAJOR_IN_MKDEV 1
5328 _ACEOF
5334 if test $ac_cv_header_sys_mkdev_h = no; then
5335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5336 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5342 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5343 else
5344 # Is the header compilable?
5345 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5346 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 #include <sys/sysmacros.h>
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_compiler=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5391 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/sysmacros.h>
5399 _ACEOF
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 else
5412 ac_cpp_err=
5414 else
5415 ac_cpp_err=yes
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_header_preproc=no
5425 rm -f conftest.err conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431 yes:no: )
5432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5438 no:yes:* )
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5452 cat <<\_ASBOX
5453 ## ------------------------------------------------ ##
5454 ## Report this to http://www.python.org/python-bugs ##
5455 ## ------------------------------------------------ ##
5456 _ASBOX
5458 sed "s/^/$as_me: WARNING: /" >&2
5460 esac
5461 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5462 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5463 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5472 if test $ac_cv_header_sys_sysmacros_h = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define MAJOR_IN_SYSMACROS 1
5476 _ACEOF
5485 # On Solaris, term.h requires curses.h
5487 for ac_header in term.h
5489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 #ifdef HAVE_CURSES_H
5503 #include <curses.h>
5504 #endif
5507 #include <$ac_header>
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 eval "$as_ac_Header=no"
5538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545 _ACEOF
5549 done
5552 # On Linux, netlink.h requires asm/types.h
5554 for ac_header in linux/netlink.h
5556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 #ifdef HAVE_ASM_TYPES_H
5570 #include <asm/types.h>
5571 #endif
5572 #ifdef HAVE_SYS_SOCKET_H
5573 #include <sys/socket.h>
5574 #endif
5577 #include <$ac_header>
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -z "$ac_c_werror_flag"
5589 || test ! -s conftest.err'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 eval "$as_ac_Header=yes"
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 eval "$as_ac_Header=no"
5608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 _ACEOF
5619 done
5622 # checks for typedefs
5623 was_it_defined=no
5624 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5625 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <time.h>
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "clock_t" >/dev/null 2>&1; then
5637 was_it_defined=yes
5638 else
5641 cat >>confdefs.h <<\_ACEOF
5642 #define clock_t long
5643 _ACEOF
5647 rm -f conftest*
5649 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5650 echo "${ECHO_T}$was_it_defined" >&6
5652 # Check whether using makedev requires defining _OSF_SOURCE
5653 echo "$as_me:$LINENO: checking for makedev" >&5
5654 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5663 main ()
5665 makedev(0, 0)
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_has_makedev=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_has_makedev=no
5699 rm -f conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 if test "$ac_cv_has_makedev" = "no"; then
5702 # we didn't link, try if _OSF_SOURCE will allow us to link
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 #define _OSF_SOURCE 1
5711 #include <sys/types.h>
5714 main ()
5716 makedev(0, 0)
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_has_makedev=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_has_makedev=no
5750 rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 if test "$ac_cv_has_makedev" = "yes"; then
5754 cat >>confdefs.h <<\_ACEOF
5755 #define _OSF_SOURCE 1
5756 _ACEOF
5760 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5761 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5762 if test "$ac_cv_has_makedev" = "yes"; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_MAKEDEV 1
5766 _ACEOF
5770 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5771 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5772 # defined, but the compiler does not support pragma redefine_extname,
5773 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5774 # structures (such as rlimit64) without declaring them. As a
5775 # work-around, disable LFS on such configurations
5777 use_lfs=yes
5778 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5779 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 #define _LARGEFILE_SOURCE 1
5788 #define _FILE_OFFSET_BITS 64
5789 #include <sys/resource.h>
5792 main ()
5794 struct rlimit foo;
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 sol_lfs_bug=no
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 sol_lfs_bug=yes
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5830 echo "${ECHO_T}$sol_lfs_bug" >&6
5831 if test "$sol_lfs_bug" = "yes"; then
5832 use_lfs=no
5835 if test "$use_lfs" = "yes"; then
5836 # Two defines needed to enable largefile support on various platforms
5837 # These may affect some typedefs
5839 cat >>confdefs.h <<\_ACEOF
5840 #define _LARGEFILE_SOURCE 1
5841 _ACEOF
5844 cat >>confdefs.h <<\_ACEOF
5845 #define _FILE_OFFSET_BITS 64
5846 _ACEOF
5850 # Add some code to confdefs.h so that the test for off_t works on SCO
5851 cat >> confdefs.h <<\EOF
5852 #if defined(SCO_DS)
5853 #undef _OFF_T
5854 #endif
5857 # Type availability checks
5858 echo "$as_me:$LINENO: checking for mode_t" >&5
5859 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5860 if test "${ac_cv_type_mode_t+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5871 main ()
5873 if ((mode_t *) 0)
5874 return 0;
5875 if (sizeof (mode_t))
5876 return 0;
5878 return 0;
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_c_werror_flag"
5891 || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_type_mode_t=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_cv_type_mode_t=no
5910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5914 if test $ac_cv_type_mode_t = yes; then
5916 else
5918 cat >>confdefs.h <<_ACEOF
5919 #define mode_t int
5920 _ACEOF
5924 echo "$as_me:$LINENO: checking for off_t" >&5
5925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5926 if test "${ac_cv_type_off_t+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5937 main ()
5939 if ((off_t *) 0)
5940 return 0;
5941 if (sizeof (off_t))
5942 return 0;
5944 return 0;
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_off_t=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_type_off_t=no
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5980 if test $ac_cv_type_off_t = yes; then
5982 else
5984 cat >>confdefs.h <<_ACEOF
5985 #define off_t long
5986 _ACEOF
5990 echo "$as_me:$LINENO: checking for pid_t" >&5
5991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5992 if test "${ac_cv_type_pid_t+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6003 main ()
6005 if ((pid_t *) 0)
6006 return 0;
6007 if (sizeof (pid_t))
6008 return 0;
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_pid_t=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_type_pid_t=no
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6045 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6046 if test $ac_cv_type_pid_t = yes; then
6048 else
6050 cat >>confdefs.h <<_ACEOF
6051 #define pid_t int
6052 _ACEOF
6056 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6058 if test "${ac_cv_type_signal+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <sys/types.h>
6068 #include <signal.h>
6069 #ifdef signal
6070 # undef signal
6071 #endif
6072 #ifdef __cplusplus
6073 extern "C" void (*signal (int, void (*)(int)))(int);
6074 #else
6075 void (*signal ()) ();
6076 #endif
6079 main ()
6081 int i;
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_signal=void
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_type_signal=int
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6120 cat >>confdefs.h <<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6122 _ACEOF
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6138 main ()
6140 if ((size_t *) 0)
6141 return 0;
6142 if (sizeof (size_t))
6143 return 0;
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_type_size_t=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_type_size_t=no
6177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181 if test $ac_cv_type_size_t = yes; then
6183 else
6185 cat >>confdefs.h <<_ACEOF
6186 #define size_t unsigned
6187 _ACEOF
6191 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6192 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6193 if test "${ac_cv_type_uid_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "uid_t" >/dev/null 2>&1; then
6207 ac_cv_type_uid_t=yes
6208 else
6209 ac_cv_type_uid_t=no
6211 rm -f conftest*
6214 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6215 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6216 if test $ac_cv_type_uid_t = no; then
6218 cat >>confdefs.h <<\_ACEOF
6219 #define uid_t int
6220 _ACEOF
6223 cat >>confdefs.h <<\_ACEOF
6224 #define gid_t int
6225 _ACEOF
6229 echo "$as_me:$LINENO: checking for ssize_t" >&5
6230 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6231 if test "${ac_cv_type_ssize_t+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6242 main ()
6244 if ((ssize_t *) 0)
6245 return 0;
6246 if (sizeof (ssize_t))
6247 return 0;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_type_ssize_t=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_cv_type_ssize_t=no
6281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6284 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6285 if test $ac_cv_type_ssize_t = yes; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_SSIZE_T 1
6289 _ACEOF
6294 # Sizes of various common basic types
6295 # ANSI C requires sizeof(char) == 1, so no need to check it
6296 echo "$as_me:$LINENO: checking for int" >&5
6297 echo $ECHO_N "checking for int... $ECHO_C" >&6
6298 if test "${ac_cv_type_int+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6309 main ()
6311 if ((int *) 0)
6312 return 0;
6313 if (sizeof (int))
6314 return 0;
6316 return 0;
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_type_int=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_type_int=no
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6351 echo "${ECHO_T}$ac_cv_type_int" >&6
6353 echo "$as_me:$LINENO: checking size of int" >&5
6354 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6355 if test "${ac_cv_sizeof_int+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test "$ac_cv_type_int" = yes; then
6359 # The cast to unsigned long works around a bug in the HP C Compiler
6360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6362 # This bug is HP SR number 8606223364.
6363 if test "$cross_compiling" = yes; then
6364 # Depending upon the size, compute the lo and hi bounds.
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6373 main ()
6375 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6376 test_array [0] = 0
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_lo=0 ac_mid=0
6405 while :; do
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6414 main ()
6416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6417 test_array [0] = 0
6420 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_hi=$ac_mid; break
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_lo=`expr $ac_mid + 1`
6451 if test $ac_lo -le $ac_mid; then
6452 ac_lo= ac_hi=
6453 break
6455 ac_mid=`expr 2 '*' $ac_mid + 1`
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 done
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6471 main ()
6473 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6474 test_array [0] = 0
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_hi=-1 ac_mid=-1
6503 while :; do
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6512 main ()
6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6515 test_array [0] = 0
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_lo=$ac_mid; break
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_hi=`expr '(' $ac_mid ')' - 1`
6549 if test $ac_mid -le $ac_hi; then
6550 ac_lo= ac_hi=
6551 break
6553 ac_mid=`expr 2 '*' $ac_mid`
6555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 done
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_lo= ac_hi=
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6566 # Binary search between lo and hi bounds.
6567 while test "x$ac_lo" != "x$ac_hi"; do
6568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6577 main ()
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6580 test_array [0] = 0
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_hi=$ac_mid
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_lo=`expr '(' $ac_mid ')' + 1`
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 done
6617 case $ac_lo in
6618 ?*) ac_cv_sizeof_int=$ac_lo;;
6619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6620 See \`config.log' for more details." >&5
6621 echo "$as_me: error: cannot compute sizeof (int), 77
6622 See \`config.log' for more details." >&2;}
6623 { (exit 1); exit 1; }; } ;;
6624 esac
6625 else
6626 if test "$cross_compiling" = yes; then
6627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6628 See \`config.log' for more details." >&5
6629 echo "$as_me: error: cannot run test program while cross compiling
6630 See \`config.log' for more details." >&2;}
6631 { (exit 1); exit 1; }; }
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 long longval () { return (long) (sizeof (int)); }
6641 unsigned long ulongval () { return (long) (sizeof (int)); }
6642 #include <stdio.h>
6643 #include <stdlib.h>
6645 main ()
6648 FILE *f = fopen ("conftest.val", "w");
6649 if (! f)
6650 exit (1);
6651 if (((long) (sizeof (int))) < 0)
6653 long i = longval ();
6654 if (i != ((long) (sizeof (int))))
6655 exit (1);
6656 fprintf (f, "%ld\n", i);
6658 else
6660 unsigned long i = ulongval ();
6661 if (i != ((long) (sizeof (int))))
6662 exit (1);
6663 fprintf (f, "%lu\n", i);
6665 exit (ferror (f) || fclose (f) != 0);
6668 return 0;
6670 _ACEOF
6671 rm -f conftest$ac_exeext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_sizeof_int=`cat conftest.val`
6683 else
6684 echo "$as_me: program exited with status $ac_status" >&5
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ( exit $ac_status )
6689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6690 See \`config.log' for more details." >&5
6691 echo "$as_me: error: cannot compute sizeof (int), 77
6692 See \`config.log' for more details." >&2;}
6693 { (exit 1); exit 1; }; }
6695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6698 rm -f conftest.val
6699 else
6700 ac_cv_sizeof_int=0
6703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6704 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6705 cat >>confdefs.h <<_ACEOF
6706 #define SIZEOF_INT $ac_cv_sizeof_int
6707 _ACEOF
6710 echo "$as_me:$LINENO: checking for long" >&5
6711 echo $ECHO_N "checking for long... $ECHO_C" >&6
6712 if test "${ac_cv_type_long+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6723 main ()
6725 if ((long *) 0)
6726 return 0;
6727 if (sizeof (long))
6728 return 0;
6730 return 0;
6732 _ACEOF
6733 rm -f conftest.$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_type_long=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_cv_type_long=no
6762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6765 echo "${ECHO_T}$ac_cv_type_long" >&6
6767 echo "$as_me:$LINENO: checking size of long" >&5
6768 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6769 if test "${ac_cv_sizeof_long+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test "$ac_cv_type_long" = yes; then
6773 # The cast to unsigned long works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6787 main ()
6789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6790 test_array [0] = 0
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_lo=0 ac_mid=0
6819 while :; do
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6828 main ()
6830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6831 test_array [0] = 0
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_hi=$ac_mid; break
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 ac_lo=`expr $ac_mid + 1`
6865 if test $ac_lo -le $ac_mid; then
6866 ac_lo= ac_hi=
6867 break
6869 ac_mid=`expr 2 '*' $ac_mid + 1`
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 done
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6885 main ()
6887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6888 test_array [0] = 0
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_hi=-1 ac_mid=-1
6917 while :; do
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6926 main ()
6928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6929 test_array [0] = 0
6932 return 0;
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_lo=$ac_mid; break
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_hi=`expr '(' $ac_mid ')' - 1`
6963 if test $ac_mid -le $ac_hi; then
6964 ac_lo= ac_hi=
6965 break
6967 ac_mid=`expr 2 '*' $ac_mid`
6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 done
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_lo= ac_hi=
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 # Binary search between lo and hi bounds.
6981 while test "x$ac_lo" != "x$ac_hi"; do
6982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 main ()
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_hi=$ac_mid
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_lo=`expr '(' $ac_mid ')' + 1`
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 done
7031 case $ac_lo in
7032 ?*) ac_cv_sizeof_long=$ac_lo;;
7033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7034 See \`config.log' for more details." >&5
7035 echo "$as_me: error: cannot compute sizeof (long), 77
7036 See \`config.log' for more details." >&2;}
7037 { (exit 1); exit 1; }; } ;;
7038 esac
7039 else
7040 if test "$cross_compiling" = yes; then
7041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7042 See \`config.log' for more details." >&5
7043 echo "$as_me: error: cannot run test program while cross compiling
7044 See \`config.log' for more details." >&2;}
7045 { (exit 1); exit 1; }; }
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 long longval () { return (long) (sizeof (long)); }
7055 unsigned long ulongval () { return (long) (sizeof (long)); }
7056 #include <stdio.h>
7057 #include <stdlib.h>
7059 main ()
7062 FILE *f = fopen ("conftest.val", "w");
7063 if (! f)
7064 exit (1);
7065 if (((long) (sizeof (long))) < 0)
7067 long i = longval ();
7068 if (i != ((long) (sizeof (long))))
7069 exit (1);
7070 fprintf (f, "%ld\n", i);
7072 else
7074 unsigned long i = ulongval ();
7075 if (i != ((long) (sizeof (long))))
7076 exit (1);
7077 fprintf (f, "%lu\n", i);
7079 exit (ferror (f) || fclose (f) != 0);
7082 return 0;
7084 _ACEOF
7085 rm -f conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_sizeof_long=`cat conftest.val`
7097 else
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ( exit $ac_status )
7103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7104 See \`config.log' for more details." >&5
7105 echo "$as_me: error: cannot compute sizeof (long), 77
7106 See \`config.log' for more details." >&2;}
7107 { (exit 1); exit 1; }; }
7109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7112 rm -f conftest.val
7113 else
7114 ac_cv_sizeof_long=0
7117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7119 cat >>confdefs.h <<_ACEOF
7120 #define SIZEOF_LONG $ac_cv_sizeof_long
7121 _ACEOF
7124 echo "$as_me:$LINENO: checking for void *" >&5
7125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7126 if test "${ac_cv_type_void_p+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7137 main ()
7139 if ((void * *) 0)
7140 return 0;
7141 if (sizeof (void *))
7142 return 0;
7144 return 0;
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_type_void_p=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_cv_type_void_p=no
7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7179 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7181 echo "$as_me:$LINENO: checking size of void *" >&5
7182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7183 if test "${ac_cv_sizeof_void_p+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 if test "$ac_cv_type_void_p" = yes; then
7187 # The cast to unsigned long works around a bug in the HP C Compiler
7188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7190 # This bug is HP SR number 8606223364.
7191 if test "$cross_compiling" = yes; then
7192 # Depending upon the size, compute the lo and hi bounds.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7201 main ()
7203 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7204 test_array [0] = 0
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_lo=0 ac_mid=0
7233 while :; do
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7242 main ()
7244 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7245 test_array [0] = 0
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag"
7261 || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_hi=$ac_mid; break
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_lo=`expr $ac_mid + 1`
7279 if test $ac_lo -le $ac_mid; then
7280 ac_lo= ac_hi=
7281 break
7283 ac_mid=`expr 2 '*' $ac_mid + 1`
7285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286 done
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7299 main ()
7301 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7302 test_array [0] = 0
7305 return 0;
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_hi=-1 ac_mid=-1
7331 while :; do
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7340 main ()
7342 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7343 test_array [0] = 0
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_lo=$ac_mid; break
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_hi=`expr '(' $ac_mid ')' - 1`
7377 if test $ac_mid -le $ac_hi; then
7378 ac_lo= ac_hi=
7379 break
7381 ac_mid=`expr 2 '*' $ac_mid`
7383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384 done
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_lo= ac_hi=
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394 # Binary search between lo and hi bounds.
7395 while test "x$ac_lo" != "x$ac_hi"; do
7396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7405 main ()
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7408 test_array [0] = 0
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_hi=$ac_mid
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_lo=`expr '(' $ac_mid ')' + 1`
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 done
7445 case $ac_lo in
7446 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7447 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7448 See \`config.log' for more details." >&5
7449 echo "$as_me: error: cannot compute sizeof (void *), 77
7450 See \`config.log' for more details." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7452 esac
7453 else
7454 if test "$cross_compiling" = yes; then
7455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot run test program while cross compiling
7458 See \`config.log' for more details." >&2;}
7459 { (exit 1); exit 1; }; }
7460 else
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7468 long longval () { return (long) (sizeof (void *)); }
7469 unsigned long ulongval () { return (long) (sizeof (void *)); }
7470 #include <stdio.h>
7471 #include <stdlib.h>
7473 main ()
7476 FILE *f = fopen ("conftest.val", "w");
7477 if (! f)
7478 exit (1);
7479 if (((long) (sizeof (void *))) < 0)
7481 long i = longval ();
7482 if (i != ((long) (sizeof (void *))))
7483 exit (1);
7484 fprintf (f, "%ld\n", i);
7486 else
7488 unsigned long i = ulongval ();
7489 if (i != ((long) (sizeof (void *))))
7490 exit (1);
7491 fprintf (f, "%lu\n", i);
7493 exit (ferror (f) || fclose (f) != 0);
7496 return 0;
7498 _ACEOF
7499 rm -f conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_sizeof_void_p=`cat conftest.val`
7511 else
7512 echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ( exit $ac_status )
7517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (void *), 77
7520 See \`config.log' for more details." >&2;}
7521 { (exit 1); exit 1; }; }
7523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7526 rm -f conftest.val
7527 else
7528 ac_cv_sizeof_void_p=0
7531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7533 cat >>confdefs.h <<_ACEOF
7534 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7535 _ACEOF
7538 echo "$as_me:$LINENO: checking for short" >&5
7539 echo $ECHO_N "checking for short... $ECHO_C" >&6
7540 if test "${ac_cv_type_short+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7551 main ()
7553 if ((short *) 0)
7554 return 0;
7555 if (sizeof (short))
7556 return 0;
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_type_short=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_type_short=no
7590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7593 echo "${ECHO_T}$ac_cv_type_short" >&6
7595 echo "$as_me:$LINENO: checking size of short" >&5
7596 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7597 if test "${ac_cv_sizeof_short+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 if test "$ac_cv_type_short" = yes; then
7601 # The cast to unsigned long works around a bug in the HP C Compiler
7602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7604 # This bug is HP SR number 8606223364.
7605 if test "$cross_compiling" = yes; then
7606 # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7615 main ()
7617 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7618 test_array [0] = 0
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_lo=0 ac_mid=0
7647 while :; do
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7656 main ()
7658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7659 test_array [0] = 0
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_hi=$ac_mid; break
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_lo=`expr $ac_mid + 1`
7693 if test $ac_lo -le $ac_mid; then
7694 ac_lo= ac_hi=
7695 break
7697 ac_mid=`expr 2 '*' $ac_mid + 1`
7699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700 done
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7713 main ()
7715 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7716 test_array [0] = 0
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_hi=-1 ac_mid=-1
7745 while :; do
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7754 main ()
7756 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7757 test_array [0] = 0
7760 return 0;
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_lo=$ac_mid; break
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_hi=`expr '(' $ac_mid ')' - 1`
7791 if test $ac_mid -le $ac_hi; then
7792 ac_lo= ac_hi=
7793 break
7795 ac_mid=`expr 2 '*' $ac_mid`
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 done
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_lo= ac_hi=
7805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 # Binary search between lo and hi bounds.
7809 while test "x$ac_lo" != "x$ac_hi"; do
7810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7819 main ()
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7822 test_array [0] = 0
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_hi=$ac_mid
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_lo=`expr '(' $ac_mid ')' + 1`
7857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858 done
7859 case $ac_lo in
7860 ?*) ac_cv_sizeof_short=$ac_lo;;
7861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7862 See \`config.log' for more details." >&5
7863 echo "$as_me: error: cannot compute sizeof (short), 77
7864 See \`config.log' for more details." >&2;}
7865 { (exit 1); exit 1; }; } ;;
7866 esac
7867 else
7868 if test "$cross_compiling" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7870 See \`config.log' for more details." >&5
7871 echo "$as_me: error: cannot run test program while cross compiling
7872 See \`config.log' for more details." >&2;}
7873 { (exit 1); exit 1; }; }
7874 else
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7882 long longval () { return (long) (sizeof (short)); }
7883 unsigned long ulongval () { return (long) (sizeof (short)); }
7884 #include <stdio.h>
7885 #include <stdlib.h>
7887 main ()
7890 FILE *f = fopen ("conftest.val", "w");
7891 if (! f)
7892 exit (1);
7893 if (((long) (sizeof (short))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (short))))
7897 exit (1);
7898 fprintf (f, "%ld\n", i);
7900 else
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (short))))
7904 exit (1);
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7910 return 0;
7912 _ACEOF
7913 rm -f conftest$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_short=`cat conftest.val`
7925 else
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ( exit $ac_status )
7931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7932 See \`config.log' for more details." >&5
7933 echo "$as_me: error: cannot compute sizeof (short), 77
7934 See \`config.log' for more details." >&2;}
7935 { (exit 1); exit 1; }; }
7937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7940 rm -f conftest.val
7941 else
7942 ac_cv_sizeof_short=0
7945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7946 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7947 cat >>confdefs.h <<_ACEOF
7948 #define SIZEOF_SHORT $ac_cv_sizeof_short
7949 _ACEOF
7952 echo "$as_me:$LINENO: checking for float" >&5
7953 echo $ECHO_N "checking for float... $ECHO_C" >&6
7954 if test "${ac_cv_type_float+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7965 main ()
7967 if ((float *) 0)
7968 return 0;
7969 if (sizeof (float))
7970 return 0;
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_type_float=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_type_float=no
8004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8007 echo "${ECHO_T}$ac_cv_type_float" >&6
8009 echo "$as_me:$LINENO: checking size of float" >&5
8010 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8011 if test "${ac_cv_sizeof_float+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 if test "$ac_cv_type_float" = yes; then
8015 # The cast to unsigned long works around a bug in the HP C Compiler
8016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8018 # This bug is HP SR number 8606223364.
8019 if test "$cross_compiling" = yes; then
8020 # Depending upon the size, compute the lo and hi bounds.
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8029 main ()
8031 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8032 test_array [0] = 0
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_lo=0 ac_mid=0
8061 while :; do
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8070 main ()
8072 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8073 test_array [0] = 0
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_hi=$ac_mid; break
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_lo=`expr $ac_mid + 1`
8107 if test $ac_lo -le $ac_mid; then
8108 ac_lo= ac_hi=
8109 break
8111 ac_mid=`expr 2 '*' $ac_mid + 1`
8113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8114 done
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8127 main ()
8129 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8130 test_array [0] = 0
8133 return 0;
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_hi=-1 ac_mid=-1
8159 while :; do
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8168 main ()
8170 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8171 test_array [0] = 0
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_lo=$ac_mid; break
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8204 ac_hi=`expr '(' $ac_mid ')' - 1`
8205 if test $ac_mid -le $ac_hi; then
8206 ac_lo= ac_hi=
8207 break
8209 ac_mid=`expr 2 '*' $ac_mid`
8211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 done
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_lo= ac_hi=
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222 # Binary search between lo and hi bounds.
8223 while test "x$ac_lo" != "x$ac_hi"; do
8224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8233 main ()
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8236 test_array [0] = 0
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_hi=$ac_mid
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_lo=`expr '(' $ac_mid ')' + 1`
8271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272 done
8273 case $ac_lo in
8274 ?*) ac_cv_sizeof_float=$ac_lo;;
8275 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8276 See \`config.log' for more details." >&5
8277 echo "$as_me: error: cannot compute sizeof (float), 77
8278 See \`config.log' for more details." >&2;}
8279 { (exit 1); exit 1; }; } ;;
8280 esac
8281 else
8282 if test "$cross_compiling" = yes; then
8283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8284 See \`config.log' for more details." >&5
8285 echo "$as_me: error: cannot run test program while cross compiling
8286 See \`config.log' for more details." >&2;}
8287 { (exit 1); exit 1; }; }
8288 else
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 long longval () { return (long) (sizeof (float)); }
8297 unsigned long ulongval () { return (long) (sizeof (float)); }
8298 #include <stdio.h>
8299 #include <stdlib.h>
8301 main ()
8304 FILE *f = fopen ("conftest.val", "w");
8305 if (! f)
8306 exit (1);
8307 if (((long) (sizeof (float))) < 0)
8309 long i = longval ();
8310 if (i != ((long) (sizeof (float))))
8311 exit (1);
8312 fprintf (f, "%ld\n", i);
8314 else
8316 unsigned long i = ulongval ();
8317 if (i != ((long) (sizeof (float))))
8318 exit (1);
8319 fprintf (f, "%lu\n", i);
8321 exit (ferror (f) || fclose (f) != 0);
8324 return 0;
8326 _ACEOF
8327 rm -f conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_sizeof_float=`cat conftest.val`
8339 else
8340 echo "$as_me: program exited with status $ac_status" >&5
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ( exit $ac_status )
8345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8346 See \`config.log' for more details." >&5
8347 echo "$as_me: error: cannot compute sizeof (float), 77
8348 See \`config.log' for more details." >&2;}
8349 { (exit 1); exit 1; }; }
8351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8354 rm -f conftest.val
8355 else
8356 ac_cv_sizeof_float=0
8359 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8360 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8361 cat >>confdefs.h <<_ACEOF
8362 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8363 _ACEOF
8366 echo "$as_me:$LINENO: checking for double" >&5
8367 echo $ECHO_N "checking for double... $ECHO_C" >&6
8368 if test "${ac_cv_type_double+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8379 main ()
8381 if ((double *) 0)
8382 return 0;
8383 if (sizeof (double))
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_type_double=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_type_double=no
8418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8421 echo "${ECHO_T}$ac_cv_type_double" >&6
8423 echo "$as_me:$LINENO: checking size of double" >&5
8424 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8425 if test "${ac_cv_sizeof_double+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 if test "$ac_cv_type_double" = yes; then
8429 # The cast to unsigned long works around a bug in the HP C Compiler
8430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432 # This bug is HP SR number 8606223364.
8433 if test "$cross_compiling" = yes; then
8434 # Depending upon the size, compute the lo and hi bounds.
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8443 main ()
8445 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8446 test_array [0] = 0
8449 return 0;
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_lo=0 ac_mid=0
8475 while :; do
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8484 main ()
8486 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8487 test_array [0] = 0
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_hi=$ac_mid; break
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_lo=`expr $ac_mid + 1`
8521 if test $ac_lo -le $ac_mid; then
8522 ac_lo= ac_hi=
8523 break
8525 ac_mid=`expr 2 '*' $ac_mid + 1`
8527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8528 done
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8541 main ()
8543 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8544 test_array [0] = 0
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_hi=-1 ac_mid=-1
8573 while :; do
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8582 main ()
8584 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8585 test_array [0] = 0
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_lo=$ac_mid; break
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_hi=`expr '(' $ac_mid ')' - 1`
8619 if test $ac_mid -le $ac_hi; then
8620 ac_lo= ac_hi=
8621 break
8623 ac_mid=`expr 2 '*' $ac_mid`
8625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 done
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_lo= ac_hi=
8633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8636 # Binary search between lo and hi bounds.
8637 while test "x$ac_lo" != "x$ac_hi"; do
8638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8647 main ()
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8650 test_array [0] = 0
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_hi=$ac_mid
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_lo=`expr '(' $ac_mid ')' + 1`
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686 done
8687 case $ac_lo in
8688 ?*) ac_cv_sizeof_double=$ac_lo;;
8689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8690 See \`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (double), 77
8692 See \`config.log' for more details." >&2;}
8693 { (exit 1); exit 1; }; } ;;
8694 esac
8695 else
8696 if test "$cross_compiling" = yes; then
8697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8698 See \`config.log' for more details." >&5
8699 echo "$as_me: error: cannot run test program while cross compiling
8700 See \`config.log' for more details." >&2;}
8701 { (exit 1); exit 1; }; }
8702 else
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 long longval () { return (long) (sizeof (double)); }
8711 unsigned long ulongval () { return (long) (sizeof (double)); }
8712 #include <stdio.h>
8713 #include <stdlib.h>
8715 main ()
8718 FILE *f = fopen ("conftest.val", "w");
8719 if (! f)
8720 exit (1);
8721 if (((long) (sizeof (double))) < 0)
8723 long i = longval ();
8724 if (i != ((long) (sizeof (double))))
8725 exit (1);
8726 fprintf (f, "%ld\n", i);
8728 else
8730 unsigned long i = ulongval ();
8731 if (i != ((long) (sizeof (double))))
8732 exit (1);
8733 fprintf (f, "%lu\n", i);
8735 exit (ferror (f) || fclose (f) != 0);
8738 return 0;
8740 _ACEOF
8741 rm -f conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_sizeof_double=`cat conftest.val`
8753 else
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ( exit $ac_status )
8759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8760 See \`config.log' for more details." >&5
8761 echo "$as_me: error: cannot compute sizeof (double), 77
8762 See \`config.log' for more details." >&2;}
8763 { (exit 1); exit 1; }; }
8765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8768 rm -f conftest.val
8769 else
8770 ac_cv_sizeof_double=0
8773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8774 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8775 cat >>confdefs.h <<_ACEOF
8776 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8777 _ACEOF
8780 echo "$as_me:$LINENO: checking for fpos_t" >&5
8781 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8782 if test "${ac_cv_type_fpos_t+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8793 main ()
8795 if ((fpos_t *) 0)
8796 return 0;
8797 if (sizeof (fpos_t))
8798 return 0;
8800 return 0;
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805 (eval $ac_compile) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_type_fpos_t=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_type_fpos_t=no
8832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8835 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8837 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8838 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8839 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 if test "$ac_cv_type_fpos_t" = yes; then
8843 # The cast to unsigned long works around a bug in the HP C Compiler
8844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8846 # This bug is HP SR number 8606223364.
8847 if test "$cross_compiling" = yes; then
8848 # Depending upon the size, compute the lo and hi bounds.
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8857 main ()
8859 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8860 test_array [0] = 0
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_lo=0 ac_mid=0
8889 while :; do
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8898 main ()
8900 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8901 test_array [0] = 0
8904 return 0;
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_hi=$ac_mid; break
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_lo=`expr $ac_mid + 1`
8935 if test $ac_lo -le $ac_mid; then
8936 ac_lo= ac_hi=
8937 break
8939 ac_mid=`expr 2 '*' $ac_mid + 1`
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 done
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8955 main ()
8957 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8958 test_array [0] = 0
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_hi=-1 ac_mid=-1
8987 while :; do
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8996 main ()
8998 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8999 test_array [0] = 0
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_lo=$ac_mid; break
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_hi=`expr '(' $ac_mid ')' - 1`
9033 if test $ac_mid -le $ac_hi; then
9034 ac_lo= ac_hi=
9035 break
9037 ac_mid=`expr 2 '*' $ac_mid`
9039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9040 done
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_lo= ac_hi=
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9050 # Binary search between lo and hi bounds.
9051 while test "x$ac_lo" != "x$ac_hi"; do
9052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9061 main ()
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9064 test_array [0] = 0
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_hi=$ac_mid
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_lo=`expr '(' $ac_mid ')' + 1`
9099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9100 done
9101 case $ac_lo in
9102 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9104 See \`config.log' for more details." >&5
9105 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9106 See \`config.log' for more details." >&2;}
9107 { (exit 1); exit 1; }; } ;;
9108 esac
9109 else
9110 if test "$cross_compiling" = yes; then
9111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9112 See \`config.log' for more details." >&5
9113 echo "$as_me: error: cannot run test program while cross compiling
9114 See \`config.log' for more details." >&2;}
9115 { (exit 1); exit 1; }; }
9116 else
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 $ac_includes_default
9124 long longval () { return (long) (sizeof (fpos_t)); }
9125 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9126 #include <stdio.h>
9127 #include <stdlib.h>
9129 main ()
9132 FILE *f = fopen ("conftest.val", "w");
9133 if (! f)
9134 exit (1);
9135 if (((long) (sizeof (fpos_t))) < 0)
9137 long i = longval ();
9138 if (i != ((long) (sizeof (fpos_t))))
9139 exit (1);
9140 fprintf (f, "%ld\n", i);
9142 else
9144 unsigned long i = ulongval ();
9145 if (i != ((long) (sizeof (fpos_t))))
9146 exit (1);
9147 fprintf (f, "%lu\n", i);
9149 exit (ferror (f) || fclose (f) != 0);
9152 return 0;
9154 _ACEOF
9155 rm -f conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_sizeof_fpos_t=`cat conftest.val`
9167 else
9168 echo "$as_me: program exited with status $ac_status" >&5
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ( exit $ac_status )
9173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9174 See \`config.log' for more details." >&5
9175 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9176 See \`config.log' for more details." >&2;}
9177 { (exit 1); exit 1; }; }
9179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9182 rm -f conftest.val
9183 else
9184 ac_cv_sizeof_fpos_t=0
9187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9188 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9189 cat >>confdefs.h <<_ACEOF
9190 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9191 _ACEOF
9194 echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9207 main ()
9209 if ((size_t *) 0)
9210 return 0;
9211 if (sizeof (size_t))
9212 return 0;
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_type_size_t=yes
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_type_size_t=no
9246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9249 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9251 echo "$as_me:$LINENO: checking size of size_t" >&5
9252 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9253 if test "${ac_cv_sizeof_size_t+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 if test "$ac_cv_type_size_t" = yes; then
9257 # The cast to unsigned long works around a bug in the HP C Compiler
9258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9260 # This bug is HP SR number 8606223364.
9261 if test "$cross_compiling" = yes; then
9262 # Depending upon the size, compute the lo and hi bounds.
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9271 main ()
9273 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9274 test_array [0] = 0
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_lo=0 ac_mid=0
9303 while :; do
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9312 main ()
9314 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9315 test_array [0] = 0
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_hi=$ac_mid; break
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_lo=`expr $ac_mid + 1`
9349 if test $ac_lo -le $ac_mid; then
9350 ac_lo= ac_hi=
9351 break
9353 ac_mid=`expr 2 '*' $ac_mid + 1`
9355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356 done
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9369 main ()
9371 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9372 test_array [0] = 0
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_hi=-1 ac_mid=-1
9401 while :; do
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9410 main ()
9412 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9413 test_array [0] = 0
9416 return 0;
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_lo=$ac_mid; break
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_hi=`expr '(' $ac_mid ')' - 1`
9447 if test $ac_mid -le $ac_hi; then
9448 ac_lo= ac_hi=
9449 break
9451 ac_mid=`expr 2 '*' $ac_mid`
9453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9454 done
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_lo= ac_hi=
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 # Binary search between lo and hi bounds.
9465 while test "x$ac_lo" != "x$ac_hi"; do
9466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9475 main ()
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9478 test_array [0] = 0
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_hi=$ac_mid
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_lo=`expr '(' $ac_mid ')' + 1`
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514 done
9515 case $ac_lo in
9516 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9518 See \`config.log' for more details." >&5
9519 echo "$as_me: error: cannot compute sizeof (size_t), 77
9520 See \`config.log' for more details." >&2;}
9521 { (exit 1); exit 1; }; } ;;
9522 esac
9523 else
9524 if test "$cross_compiling" = yes; then
9525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529 { (exit 1); exit 1; }; }
9530 else
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 long longval () { return (long) (sizeof (size_t)); }
9539 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9540 #include <stdio.h>
9541 #include <stdlib.h>
9543 main ()
9546 FILE *f = fopen ("conftest.val", "w");
9547 if (! f)
9548 exit (1);
9549 if (((long) (sizeof (size_t))) < 0)
9551 long i = longval ();
9552 if (i != ((long) (sizeof (size_t))))
9553 exit (1);
9554 fprintf (f, "%ld\n", i);
9556 else
9558 unsigned long i = ulongval ();
9559 if (i != ((long) (sizeof (size_t))))
9560 exit (1);
9561 fprintf (f, "%lu\n", i);
9563 exit (ferror (f) || fclose (f) != 0);
9566 return 0;
9568 _ACEOF
9569 rm -f conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_sizeof_size_t=`cat conftest.val`
9581 else
9582 echo "$as_me: program exited with status $ac_status" >&5
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ( exit $ac_status )
9587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9588 See \`config.log' for more details." >&5
9589 echo "$as_me: error: cannot compute sizeof (size_t), 77
9590 See \`config.log' for more details." >&2;}
9591 { (exit 1); exit 1; }; }
9593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9596 rm -f conftest.val
9597 else
9598 ac_cv_sizeof_size_t=0
9601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9602 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9603 cat >>confdefs.h <<_ACEOF
9604 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9605 _ACEOF
9609 echo "$as_me:$LINENO: checking for long long support" >&5
9610 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9611 have_long_long=no
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9620 main ()
9622 long long x; x = (long long)0;
9624 return 0;
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_LONG_LONG 1
9653 _ACEOF
9655 have_long_long=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $have_long_long" >&5
9664 echo "${ECHO_T}$have_long_long" >&6
9665 if test "$have_long_long" = yes ; then
9666 echo "$as_me:$LINENO: checking for long long" >&5
9667 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9668 if test "${ac_cv_type_long_long+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9679 main ()
9681 if ((long long *) 0)
9682 return 0;
9683 if (sizeof (long long))
9684 return 0;
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_type_long_long=yes
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_cv_type_long_long=no
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9721 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9723 echo "$as_me:$LINENO: checking size of long long" >&5
9724 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9725 if test "${ac_cv_sizeof_long_long+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 if test "$ac_cv_type_long_long" = yes; then
9729 # The cast to unsigned long works around a bug in the HP C Compiler
9730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9732 # This bug is HP SR number 8606223364.
9733 if test "$cross_compiling" = yes; then
9734 # Depending upon the size, compute the lo and hi bounds.
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9743 main ()
9745 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9746 test_array [0] = 0
9749 return 0;
9751 _ACEOF
9752 rm -f conftest.$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag"
9762 || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_lo=0 ac_mid=0
9775 while :; do
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9784 main ()
9786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9787 test_array [0] = 0
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_hi=$ac_mid; break
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_lo=`expr $ac_mid + 1`
9821 if test $ac_lo -le $ac_mid; then
9822 ac_lo= ac_hi=
9823 break
9825 ac_mid=`expr 2 '*' $ac_mid + 1`
9827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9828 done
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 $ac_includes_default
9841 main ()
9843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9844 test_array [0] = 0
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_hi=-1 ac_mid=-1
9873 while :; do
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9882 main ()
9884 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9885 test_array [0] = 0
9888 return 0;
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest.$ac_objext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_lo=$ac_mid; break
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_hi=`expr '(' $ac_mid ')' - 1`
9919 if test $ac_mid -le $ac_hi; then
9920 ac_lo= ac_hi=
9921 break
9923 ac_mid=`expr 2 '*' $ac_mid`
9925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 done
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_lo= ac_hi=
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 # Binary search between lo and hi bounds.
9937 while test "x$ac_lo" != "x$ac_hi"; do
9938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9947 main ()
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9950 test_array [0] = 0
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_hi=$ac_mid
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_lo=`expr '(' $ac_mid ')' + 1`
9985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 done
9987 case $ac_lo in
9988 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9989 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9990 See \`config.log' for more details." >&5
9991 echo "$as_me: error: cannot compute sizeof (long long), 77
9992 See \`config.log' for more details." >&2;}
9993 { (exit 1); exit 1; }; } ;;
9994 esac
9995 else
9996 if test "$cross_compiling" = yes; then
9997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9998 See \`config.log' for more details." >&5
9999 echo "$as_me: error: cannot run test program while cross compiling
10000 See \`config.log' for more details." >&2;}
10001 { (exit 1); exit 1; }; }
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 long longval () { return (long) (sizeof (long long)); }
10011 unsigned long ulongval () { return (long) (sizeof (long long)); }
10012 #include <stdio.h>
10013 #include <stdlib.h>
10015 main ()
10018 FILE *f = fopen ("conftest.val", "w");
10019 if (! f)
10020 exit (1);
10021 if (((long) (sizeof (long long))) < 0)
10023 long i = longval ();
10024 if (i != ((long) (sizeof (long long))))
10025 exit (1);
10026 fprintf (f, "%ld\n", i);
10028 else
10030 unsigned long i = ulongval ();
10031 if (i != ((long) (sizeof (long long))))
10032 exit (1);
10033 fprintf (f, "%lu\n", i);
10035 exit (ferror (f) || fclose (f) != 0);
10038 return 0;
10040 _ACEOF
10041 rm -f conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_sizeof_long_long=`cat conftest.val`
10053 else
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ( exit $ac_status )
10059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10060 See \`config.log' for more details." >&5
10061 echo "$as_me: error: cannot compute sizeof (long long), 77
10062 See \`config.log' for more details." >&2;}
10063 { (exit 1); exit 1; }; }
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10068 rm -f conftest.val
10069 else
10070 ac_cv_sizeof_long_long=0
10073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10075 cat >>confdefs.h <<_ACEOF
10076 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10077 _ACEOF
10082 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10083 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10084 if test "${ac_cv_type_uintptr_t+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #ifdef HAVE_STDINT_H
10094 #include <stdint.h>
10095 #endif
10098 main ()
10100 if ((uintptr_t *) 0)
10101 return 0;
10102 if (sizeof (uintptr_t))
10103 return 0;
10105 return 0;
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -z "$ac_c_werror_flag"
10118 || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest.$ac_objext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_type_uintptr_t=yes
10131 else
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_type_uintptr_t=no
10137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10140 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10141 if test $ac_cv_type_uintptr_t = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define HAVE_UINTPTR_T 1
10145 _ACEOF
10147 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10148 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10149 if test "${ac_cv_type_uintptr_t+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10160 main ()
10162 if ((uintptr_t *) 0)
10163 return 0;
10164 if (sizeof (uintptr_t))
10165 return 0;
10167 return 0;
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_type_uintptr_t=yes
10193 else
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_type_uintptr_t=no
10199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10202 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10204 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10205 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10206 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 if test "$ac_cv_type_uintptr_t" = yes; then
10210 # The cast to unsigned long works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 if test "$cross_compiling" = yes; then
10215 # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10224 main ()
10226 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10227 test_array [0] = 0
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_lo=0 ac_mid=0
10256 while :; do
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10265 main ()
10267 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10268 test_array [0] = 0
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_hi=$ac_mid; break
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_lo=`expr $ac_mid + 1`
10302 if test $ac_lo -le $ac_mid; then
10303 ac_lo= ac_hi=
10304 break
10306 ac_mid=`expr 2 '*' $ac_mid + 1`
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309 done
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10322 main ()
10324 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10325 test_array [0] = 0
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi=-1 ac_mid=-1
10354 while :; do
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10363 main ()
10365 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10366 test_array [0] = 0
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_lo=$ac_mid; break
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_hi=`expr '(' $ac_mid ')' - 1`
10400 if test $ac_mid -le $ac_hi; then
10401 ac_lo= ac_hi=
10402 break
10404 ac_mid=`expr 2 '*' $ac_mid`
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10407 done
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_lo= ac_hi=
10414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10428 main ()
10430 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10431 test_array [0] = 0
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_hi=$ac_mid
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_lo=`expr '(' $ac_mid ')' + 1`
10466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10467 done
10468 case $ac_lo in
10469 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10471 See \`config.log' for more details." >&5
10472 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10473 See \`config.log' for more details." >&2;}
10474 { (exit 1); exit 1; }; } ;;
10475 esac
10476 else
10477 if test "$cross_compiling" = yes; then
10478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10479 See \`config.log' for more details." >&5
10480 echo "$as_me: error: cannot run test program while cross compiling
10481 See \`config.log' for more details." >&2;}
10482 { (exit 1); exit 1; }; }
10483 else
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10491 long longval () { return (long) (sizeof (uintptr_t)); }
10492 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10493 #include <stdio.h>
10494 #include <stdlib.h>
10496 main ()
10499 FILE *f = fopen ("conftest.val", "w");
10500 if (! f)
10501 exit (1);
10502 if (((long) (sizeof (uintptr_t))) < 0)
10504 long i = longval ();
10505 if (i != ((long) (sizeof (uintptr_t))))
10506 exit (1);
10507 fprintf (f, "%ld\n", i);
10509 else
10511 unsigned long i = ulongval ();
10512 if (i != ((long) (sizeof (uintptr_t))))
10513 exit (1);
10514 fprintf (f, "%lu\n", i);
10516 exit (ferror (f) || fclose (f) != 0);
10519 return 0;
10521 _ACEOF
10522 rm -f conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10534 else
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ( exit $ac_status )
10540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10541 See \`config.log' for more details." >&5
10542 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10543 See \`config.log' for more details." >&2;}
10544 { (exit 1); exit 1; }; }
10546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 rm -f conftest.val
10550 else
10551 ac_cv_sizeof_uintptr_t=0
10554 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10555 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10556 cat >>confdefs.h <<_ACEOF
10557 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10558 _ACEOF
10565 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10566 echo "$as_me:$LINENO: checking size of off_t" >&5
10567 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10568 if test "${ac_cv_sizeof_off_t+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_sizeof_off_t=4
10573 else
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 #include <stdio.h>
10581 #include <sys/types.h>
10582 main()
10584 FILE *f=fopen("conftestval", "w");
10585 if (!f) exit(1);
10586 fprintf(f, "%d\n", sizeof(off_t));
10587 exit(0);
10589 _ACEOF
10590 rm -f conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_sizeof_off_t=`cat conftestval`
10602 else
10603 echo "$as_me: program exited with status $ac_status" >&5
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ( exit $ac_status )
10608 ac_cv_sizeof_off_t=0
10610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10616 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10618 cat >>confdefs.h <<_ACEOF
10619 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10620 _ACEOF
10623 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10624 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10625 if test "$have_long_long" = yes -a \
10626 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10627 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_LARGEFILE_SUPPORT 1
10631 _ACEOF
10633 echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6
10635 else
10636 echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6
10640 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10641 echo "$as_me:$LINENO: checking size of time_t" >&5
10642 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10643 if test "${ac_cv_sizeof_time_t+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 if test "$cross_compiling" = yes; then
10647 ac_cv_sizeof_time_t=4
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <stdio.h>
10656 #include <time.h>
10657 main()
10659 FILE *f=fopen("conftestval", "w");
10660 if (!f) exit(1);
10661 fprintf(f, "%d\n", sizeof(time_t));
10662 exit(0);
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_time_t=`cat conftestval`
10677 else
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_sizeof_time_t=0
10685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10693 cat >>confdefs.h <<_ACEOF
10694 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10695 _ACEOF
10699 # if have pthread_t then define SIZEOF_PTHREAD_T
10700 ac_save_cc="$CC"
10701 if test "$ac_cv_kpthread" = "yes"
10702 then CC="$CC -Kpthread"
10703 elif test "$ac_cv_kthread" = "yes"
10704 then CC="$CC -Kthread"
10705 elif test "$ac_cv_pthread" = "yes"
10706 then CC="$CC -pthread"
10708 echo "$as_me:$LINENO: checking for pthread_t" >&5
10709 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10710 have_pthread_t=no
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <pthread.h>
10719 main ()
10721 pthread_t x; x = *(pthread_t*)0;
10723 return 0;
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 have_pthread_t=yes
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10755 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10756 echo "${ECHO_T}$have_pthread_t" >&6
10757 if test "$have_pthread_t" = yes ; then
10758 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10759 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10760 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10761 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 if test "$cross_compiling" = yes; then
10765 ac_cv_sizeof_pthread_t=4
10766 else
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 #include <stdio.h>
10774 #include <pthread.h>
10775 main()
10777 FILE *f=fopen("conftestval", "w");
10778 if (!f) exit(1);
10779 fprintf(f, "%d\n", sizeof(pthread_t));
10780 exit(0);
10782 _ACEOF
10783 rm -f conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_sizeof_pthread_t=`cat conftestval`
10795 else
10796 echo "$as_me: program exited with status $ac_status" >&5
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ( exit $ac_status )
10801 ac_cv_sizeof_pthread_t=0
10803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10809 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10811 cat >>confdefs.h <<_ACEOF
10812 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10813 _ACEOF
10816 CC="$ac_save_cc"
10818 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10819 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10820 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10821 if test "${enable_toolbox_glue+set}" = set; then
10822 enableval="$enable_toolbox_glue"
10826 if test -z "$enable_toolbox_glue"
10827 then
10828 case $ac_sys_system/$ac_sys_release in
10829 Darwin/*)
10830 enable_toolbox_glue="yes";;
10832 enable_toolbox_glue="no";;
10833 esac
10835 case "$enable_toolbox_glue" in
10836 yes)
10837 extra_machdep_objs="Python/mactoolboxglue.o"
10838 extra_undefs="-u _PyMac_Error"
10840 cat >>confdefs.h <<\_ACEOF
10841 #define USE_TOOLBOX_OBJECT_GLUE 1
10842 _ACEOF
10846 extra_machdep_objs=""
10847 extra_undefs=""
10849 esac
10850 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10851 echo "${ECHO_T}$enable_toolbox_glue" >&6
10854 case $ac_sys_system/$ac_sys_release in
10855 Darwin/[01567]\..*)
10856 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10858 Darwin/*)
10859 OTHER_LIBTOOL_OPT=""
10861 esac
10864 case $ac_sys_system/$ac_sys_release in
10865 Darwin/[01567]\..*)
10866 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10867 if test "${enable_universalsdk}"; then
10869 else
10870 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10872 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10873 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10874 Darwin/*)
10875 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10876 if test ${gcc_version} '<' 4.0
10877 then
10878 LIBTOOL_CRUFT="-lcc_dynamic"
10879 else
10880 LIBTOOL_CRUFT=""
10882 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10883 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10884 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10885 esac
10887 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10888 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10889 if test "$enable_framework"
10890 then
10891 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10892 # -F. is needed to allow linking to the framework while
10893 # in the build location.
10895 cat >>confdefs.h <<\_ACEOF
10896 #define WITH_NEXT_FRAMEWORK 1
10897 _ACEOF
10899 echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6
10901 else
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 echo "$as_me:$LINENO: checking for dyld" >&5
10907 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10908 case $ac_sys_system/$ac_sys_release in
10909 Darwin/*)
10911 cat >>confdefs.h <<\_ACEOF
10912 #define WITH_DYLD 1
10913 _ACEOF
10915 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10916 echo "${ECHO_T}always on for Darwin" >&6
10919 echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10922 esac
10924 # Set info about shared libraries.
10930 # SO is the extension of shared libraries `(including the dot!)
10931 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10932 echo "$as_me:$LINENO: checking SO" >&5
10933 echo $ECHO_N "checking SO... $ECHO_C" >&6
10934 if test -z "$SO"
10935 then
10936 case $ac_sys_system in
10937 hp*|HP*)
10938 case `uname -m` in
10939 ia64) SO=.so;;
10940 *) SO=.sl;;
10941 esac
10943 CYGWIN*) SO=.dll;;
10944 *) SO=.so;;
10945 esac
10946 else
10947 # this might also be a termcap variable, see #610332
10948 echo
10949 echo '====================================================================='
10950 echo '+ +'
10951 echo '+ WARNING: You have set SO in your environment. +'
10952 echo '+ Do you really mean to change the extension for shared libraries? +'
10953 echo '+ Continuing in 10 seconds to let you to ponder. +'
10954 echo '+ +'
10955 echo '====================================================================='
10956 sleep 10
10958 echo "$as_me:$LINENO: result: $SO" >&5
10959 echo "${ECHO_T}$SO" >&6
10961 cat >>confdefs.h <<_ACEOF
10962 #define SHLIB_EXT "$SO"
10963 _ACEOF
10965 # LDSHARED is the ld *command* used to create shared library
10966 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10967 # (Shared libraries in this instance are shared modules to be loaded into
10968 # Python, as opposed to building Python itself as a shared library.)
10969 echo "$as_me:$LINENO: checking LDSHARED" >&5
10970 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10971 if test -z "$LDSHARED"
10972 then
10973 case $ac_sys_system/$ac_sys_release in
10974 AIX*)
10975 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10976 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10978 BeOS*)
10979 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10980 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10982 IRIX/5*) LDSHARED="ld -shared";;
10983 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10984 SunOS/5*)
10985 if test "$GCC" = "yes"
10986 then LDSHARED='$(CC) -shared'
10987 else LDSHARED='$(CC) -G';
10988 fi ;;
10989 hp*|HP*) LDSHARED="ld -b";;
10990 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10991 Darwin/1.3*)
10992 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10993 if test "$enable_framework" ; then
10994 # Link against the framework. All externals should be defined.
10995 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10996 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10997 else
10998 # No framework. Ignore undefined symbols, assuming they come from Python
10999 LDSHARED="$LDSHARED -undefined suppress"
11000 fi ;;
11001 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11002 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11003 if test "$enable_framework" ; then
11004 # Link against the framework. All externals should be defined.
11005 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11006 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11007 else
11008 # No framework, use the Python app as bundle-loader
11009 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11010 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11011 fi ;;
11012 Darwin/*)
11013 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11014 # This allows an extension to be used in any Python
11015 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11016 if test ${cur_target} '>' 10.2; then
11017 cur_target=10.3
11019 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11020 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11021 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11022 then
11023 if test "${enable_universalsdk}"; then
11024 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11026 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11027 BLDSHARED="$LDSHARED"
11028 else
11029 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11030 if test "$enable_framework" ; then
11031 # Link against the framework. All externals should be defined.
11032 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11033 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11034 else
11035 # No framework, use the Python app as bundle-loader
11036 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11037 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11041 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11042 BSD/OS*/4*) LDSHARED="gcc -shared";;
11043 FreeBSD*)
11044 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11045 then
11046 LDSHARED="$CC -shared ${LDFLAGS}"
11047 else
11048 LDSHARED="ld -Bshareable ${LDFLAGS}"
11049 fi;;
11050 OpenBSD*)
11051 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11052 then
11053 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11054 else
11055 case `uname -r` in
11056 [01].* | 2.[0-7] | 2.[0-7].*)
11057 LDSHARED="ld -Bshareable ${LDFLAGS}"
11060 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11062 esac
11063 fi;;
11064 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11065 OpenUNIX*|UnixWare*)
11066 if test "$GCC" = "yes"
11067 then LDSHARED='$(CC) -shared'
11068 else LDSHARED='$(CC) -G'
11069 fi;;
11070 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11071 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11072 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11073 atheos*) LDSHARED="gcc -shared";;
11074 *) LDSHARED="ld";;
11075 esac
11077 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11078 echo "${ECHO_T}$LDSHARED" >&6
11079 BLDSHARED=${BLDSHARED-$LDSHARED}
11080 # CCSHARED are the C *flags* used to create objects to go into a shared
11081 # library (module) -- this is only needed for a few systems
11082 echo "$as_me:$LINENO: checking CCSHARED" >&5
11083 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11084 if test -z "$CCSHARED"
11085 then
11086 case $ac_sys_system/$ac_sys_release in
11087 SunOS*) if test "$GCC" = yes;
11088 then CCSHARED="-fPIC";
11089 elif test `uname -p` = sparc;
11090 then CCSHARED="-xcode=pic32";
11091 else CCSHARED="-Kpic";
11092 fi;;
11093 hp*|HP*) if test "$GCC" = yes;
11094 then CCSHARED="-fPIC";
11095 else CCSHARED="+z";
11096 fi;;
11097 Linux*|GNU*) CCSHARED="-fPIC";;
11098 BSD/OS*/4*) CCSHARED="-fpic";;
11099 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11100 OpenUNIX*|UnixWare*)
11101 if test "$GCC" = "yes"
11102 then CCSHARED="-fPIC"
11103 else CCSHARED="-KPIC"
11104 fi;;
11105 SCO_SV*)
11106 if test "$GCC" = "yes"
11107 then CCSHARED="-fPIC"
11108 else CCSHARED="-Kpic -belf"
11109 fi;;
11110 Monterey*) CCSHARED="-G";;
11111 IRIX*/6*) case $CC in
11112 *gcc*) CCSHARED="-shared";;
11113 *) CCSHARED="";;
11114 esac;;
11115 atheos*) CCSHARED="-fPIC";;
11116 esac
11118 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11119 echo "${ECHO_T}$CCSHARED" >&6
11120 # LINKFORSHARED are the flags passed to the $(CC) command that links
11121 # the python executable -- this is only needed for a few systems
11122 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11123 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11124 if test -z "$LINKFORSHARED"
11125 then
11126 case $ac_sys_system/$ac_sys_release in
11127 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11128 hp*|HP*)
11129 LINKFORSHARED="-Wl,-E -Wl,+s";;
11130 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11131 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11132 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11133 # -u libsys_s pulls in all symbols in libsys
11134 Darwin/*)
11135 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11136 # which is
11137 # not used by the core itself but which needs to be in the core so
11138 # that dynamically loaded extension modules have access to it.
11139 # -prebind is no longer used, because it actually seems to give a
11140 # slowdown in stead of a speedup, maybe due to the large number of
11141 # dynamic loads Python does.
11143 LINKFORSHARED="$extra_undefs"
11144 if test "$enable_framework"
11145 then
11146 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11148 LINKFORSHARED="$LINKFORSHARED";;
11149 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11150 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11151 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11152 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11153 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11154 then
11155 LINKFORSHARED="-Wl,--export-dynamic"
11156 fi;;
11157 SunOS/5*) case $CC in
11158 *gcc*)
11159 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11160 then
11161 LINKFORSHARED="-Xlinker --export-dynamic"
11162 fi;;
11163 esac;;
11164 CYGWIN*)
11165 if test $enable_shared = "no"
11166 then
11167 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11168 fi;;
11169 esac
11171 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11172 echo "${ECHO_T}$LINKFORSHARED" >&6
11175 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11176 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11177 if test ! "$LIBRARY" = "$LDLIBRARY"
11178 then
11179 case $ac_sys_system in
11180 CYGWIN*)
11181 # Cygwin needs CCSHARED when building extension DLLs
11182 # but not when building the interpreter DLL.
11183 CFLAGSFORSHARED='';;
11185 CFLAGSFORSHARED='$(CCSHARED)'
11186 esac
11188 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11189 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11191 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11192 # library (with --enable-shared).
11193 # For platforms on which shared libraries are not allowed to have unresolved
11194 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11195 # if it is not required, since it creates a dependency of the shared library
11196 # to LIBS. This, in turn, means that applications linking the shared libpython
11197 # don't need to link LIBS explicitly. The default should be only changed
11198 # on systems where this approach causes problems.
11200 echo "$as_me:$LINENO: checking SHLIBS" >&5
11201 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11202 case "$ac_sys_system" in
11204 SHLIBS='$(LIBS)';;
11205 esac
11206 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11207 echo "${ECHO_T}$SHLIBS" >&6
11210 # checks for libraries
11212 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-ldl $LIBS"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11232 char dlopen ();
11234 main ()
11236 dlopen ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_dl_dlopen=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_lib_dl_dlopen=no
11270 rm -f conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11276 if test $ac_cv_lib_dl_dlopen = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_LIBDL 1
11279 _ACEOF
11281 LIBS="-ldl $LIBS"
11284 # Dynamic linking for SunOS/Solaris and SYSV
11286 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11287 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11288 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-ldld $LIBS"
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11300 /* Override any gcc2 internal prototype to avoid an error. */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */
11306 char shl_load ();
11308 main ()
11310 shl_load ();
11312 return 0;
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_lib_dld_shl_load=yes
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 ac_cv_lib_dld_shl_load=no
11344 rm -f conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11349 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11350 if test $ac_cv_lib_dld_shl_load = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define HAVE_LIBDLD 1
11353 _ACEOF
11355 LIBS="-ldld $LIBS"
11358 # Dynamic linking for HP-UX
11360 # only check for sem_ini if thread support is requested
11361 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11362 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11363 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11364 if test "${ac_cv_search_sem_init+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 ac_func_search_save_LIBS=$LIBS
11368 ac_cv_search_sem_init=no
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 /* Override any gcc2 internal prototype to avoid an error. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11382 char sem_init ();
11384 main ()
11386 sem_init ();
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest$ac_exeext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_search_sem_init="none required"
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11419 rm -f conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 if test "$ac_cv_search_sem_init" = no; then
11422 for ac_lib in pthread rt posix4; do
11423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11431 /* Override any gcc2 internal prototype to avoid an error. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11437 char sem_init ();
11439 main ()
11441 sem_init ();
11443 return 0;
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag"
11456 || test ! -s conftest.err'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest$ac_exeext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_search_sem_init="-l$ac_lib"
11469 break
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11475 rm -f conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 done
11479 LIBS=$ac_func_search_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11482 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11483 if test "$ac_cv_search_sem_init" != no; then
11484 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11487 # 'Real Time' functions on Solaris
11488 # posix4 on Solaris 2.6
11489 # pthread (first!) on Linux
11492 # check if we need libintl for locale functions
11493 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11494 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11495 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-lintl $LIBS"
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11507 /* Override any gcc2 internal prototype to avoid an error. */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 /* We use char because int might match the return type of a gcc2
11512 builtin and then its argument prototype would still apply. */
11513 char textdomain ();
11515 main ()
11517 textdomain ();
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11524 (eval $ac_link) 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest$ac_exeext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_lib_intl_textdomain=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_lib_intl_textdomain=no
11551 rm -f conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11556 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11557 if test $ac_cv_lib_intl_textdomain = yes; then
11559 cat >>confdefs.h <<\_ACEOF
11560 #define WITH_LIBINTL 1
11561 _ACEOF
11566 # checks for system dependent C++ extensions support
11567 case "$ac_sys_system" in
11568 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11569 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h. */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include "/usr/lpp/xlC/include/load.h"
11578 main ()
11580 loadAndInit("", 0, "")
11582 return 0;
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define AIX_GENUINE_CPLUSPLUS 1
11610 _ACEOF
11612 echo "$as_me:$LINENO: result: yes" >&5
11613 echo "${ECHO_T}yes" >&6
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11621 rm -f conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext;;
11623 *) ;;
11624 esac
11626 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11627 # BeOS' sockets are stashed in libnet.
11628 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11629 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11630 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lnsl $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any gcc2 internal prototype to avoid an error. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 /* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11648 char t_open ();
11650 main ()
11652 t_open ();
11654 return 0;
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_lib_nsl_t_open=yes
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_cv_lib_nsl_t_open=no
11686 rm -f conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11691 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11692 if test $ac_cv_lib_nsl_t_open = yes; then
11693 LIBS="-lnsl $LIBS"
11695 # SVR4
11696 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11697 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11698 if test "${ac_cv_lib_socket_socket+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-lsocket $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_socket_socket=yes
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_lib_socket_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_socket_socket" >&5
11759 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11760 if test $ac_cv_lib_socket_socket = yes; then
11761 LIBS="-lsocket $LIBS"
11763 # SVR4 sockets
11765 case "$ac_sys_system" in
11766 BeOS*)
11767 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11768 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11769 if test "${ac_cv_lib_net_socket+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772 ac_check_lib_save_LIBS=$LIBS
11773 LIBS="-lnet $LIBS $LIBS"
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11781 /* Override any gcc2 internal prototype to avoid an error. */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787 char socket ();
11789 main ()
11791 socket ();
11793 return 0;
11795 _ACEOF
11796 rm -f conftest.$ac_objext conftest$ac_exeext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_lib_net_socket=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_cv_lib_net_socket=no
11825 rm -f conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11829 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11830 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11831 if test $ac_cv_lib_net_socket = yes; then
11832 LIBS="-lnet $LIBS"
11834 # BeOS
11836 esac
11838 echo "$as_me:$LINENO: checking for --with-libs" >&5
11839 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11841 # Check whether --with-libs or --without-libs was given.
11842 if test "${with_libs+set}" = set; then
11843 withval="$with_libs"
11845 echo "$as_me:$LINENO: result: $withval" >&5
11846 echo "${ECHO_T}$withval" >&6
11847 LIBS="$withval $LIBS"
11849 else
11850 echo "$as_me:$LINENO: result: no" >&5
11851 echo "${ECHO_T}no" >&6
11854 # Check for use of the system libffi library
11855 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11856 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11858 # Check whether --with-system_ffi or --without-system_ffi was given.
11859 if test "${with_system_ffi+set}" = set; then
11860 withval="$with_system_ffi"
11864 if test -z "$with_system_ffi"
11865 then with_system_ffi="no"
11867 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11868 echo "${ECHO_T}$with_system_ffi" >&6
11870 # Determine if signalmodule should be used.
11873 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11874 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11876 # Check whether --with-signal-module or --without-signal-module was given.
11877 if test "${with_signal_module+set}" = set; then
11878 withval="$with_signal_module"
11882 if test -z "$with_signal_module"
11883 then with_signal_module="yes"
11885 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11886 echo "${ECHO_T}$with_signal_module" >&6
11888 if test "${with_signal_module}" = "yes"; then
11889 USE_SIGNAL_MODULE=""
11890 SIGNAL_OBJS=""
11891 else
11892 USE_SIGNAL_MODULE="#"
11893 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11896 # This is used to generate Setup.config
11898 USE_THREAD_MODULE=""
11900 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11901 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11904 # Check whether --with-dec-threads or --without-dec-threads was given.
11905 if test "${with_dec_threads+set}" = set; then
11906 withval="$with_dec_threads"
11908 echo "$as_me:$LINENO: result: $withval" >&5
11909 echo "${ECHO_T}$withval" >&6
11910 LDLAST=-threads
11911 if test "${with_thread+set}" != set; then
11912 with_thread="$withval";
11914 else
11915 echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6
11919 # Templates for things AC_DEFINEd more than once.
11920 # For a single AC_DEFINE, no template is needed.
11928 echo "$as_me:$LINENO: checking for --with-threads" >&5
11929 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11931 # Check whether --with-threads or --without-threads was given.
11932 if test "${with_threads+set}" = set; then
11933 withval="$with_threads"
11937 # --with-thread is deprecated, but check for it anyway
11939 # Check whether --with-thread or --without-thread was given.
11940 if test "${with_thread+set}" = set; then
11941 withval="$with_thread"
11942 with_threads=$with_thread
11945 if test -z "$with_threads"
11946 then with_threads="yes"
11948 echo "$as_me:$LINENO: result: $with_threads" >&5
11949 echo "${ECHO_T}$with_threads" >&6
11952 if test "$with_threads" = "no"
11953 then
11954 USE_THREAD_MODULE="#"
11955 elif test "$ac_cv_pthread_is_default" = yes
11956 then
11957 cat >>confdefs.h <<\_ACEOF
11958 #define WITH_THREAD 1
11959 _ACEOF
11961 # Defining _REENTRANT on system with POSIX threads should not hurt.
11962 cat >>confdefs.h <<\_ACEOF
11963 #define _REENTRANT 1
11964 _ACEOF
11966 posix_threads=yes
11967 THREADOBJ="Python/thread.o"
11968 elif test "$ac_cv_kpthread" = "yes"
11969 then
11970 CC="$CC -Kpthread"
11971 if test "$ac_cv_cxx_thread" = "yes"; then
11972 CXX="$CXX -Kpthread"
11974 cat >>confdefs.h <<\_ACEOF
11975 #define WITH_THREAD 1
11976 _ACEOF
11978 posix_threads=yes
11979 THREADOBJ="Python/thread.o"
11980 elif test "$ac_cv_kthread" = "yes"
11981 then
11982 CC="$CC -Kthread"
11983 if test "$ac_cv_cxx_thread" = "yes"; then
11984 CXX="$CXX -Kthread"
11986 cat >>confdefs.h <<\_ACEOF
11987 #define WITH_THREAD 1
11988 _ACEOF
11990 posix_threads=yes
11991 THREADOBJ="Python/thread.o"
11992 elif test "$ac_cv_pthread" = "yes"
11993 then
11994 CC="$CC -pthread"
11995 if test "$ac_cv_cxx_thread" = "yes"; then
11996 CXX="$CXX -pthread"
11998 cat >>confdefs.h <<\_ACEOF
11999 #define WITH_THREAD 1
12000 _ACEOF
12002 posix_threads=yes
12003 THREADOBJ="Python/thread.o"
12004 else
12005 if test ! -z "$with_threads" -a -d "$with_threads"
12006 then LDFLAGS="$LDFLAGS -L$with_threads"
12008 if test ! -z "$withval" -a -d "$withval"
12009 then LDFLAGS="$LDFLAGS -L$withval"
12012 # According to the POSIX spec, a pthreads implementation must
12013 # define _POSIX_THREADS in unistd.h. Some apparently don't
12014 # (e.g. gnu pth with pthread emulation)
12015 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12016 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12024 #include <unistd.h>
12025 #ifdef _POSIX_THREADS
12027 #endif
12029 _ACEOF
12030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 $EGREP "yes" >/dev/null 2>&1; then
12032 unistd_defines_pthreads=yes
12033 else
12034 unistd_defines_pthreads=no
12036 rm -f conftest*
12038 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12039 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12041 cat >>confdefs.h <<\_ACEOF
12042 #define _REENTRANT 1
12043 _ACEOF
12045 if test "${ac_cv_header_cthreads_h+set}" = set; then
12046 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12047 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12048 if test "${ac_cv_header_cthreads_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12052 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12053 else
12054 # Is the header compilable?
12055 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12056 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <cthreads.h>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_header_compiler=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_header_compiler=no
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 echo "${ECHO_T}$ac_header_compiler" >&6
12099 # Is the header present?
12100 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12101 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <cthreads.h>
12109 _ACEOF
12110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } >/dev/null; then
12118 if test -s conftest.err; then
12119 ac_cpp_err=$ac_c_preproc_warn_flag
12120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12121 else
12122 ac_cpp_err=
12124 else
12125 ac_cpp_err=yes
12127 if test -z "$ac_cpp_err"; then
12128 ac_header_preproc=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_header_preproc=no
12135 rm -f conftest.err conftest.$ac_ext
12136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137 echo "${ECHO_T}$ac_header_preproc" >&6
12139 # So? What about this header?
12140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 yes:no: )
12142 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12143 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12145 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc=yes
12148 no:yes:* )
12149 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12150 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12152 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12154 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12156 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12158 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12160 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12162 cat <<\_ASBOX
12163 ## ------------------------------------------------ ##
12164 ## Report this to http://www.python.org/python-bugs ##
12165 ## ------------------------------------------------ ##
12166 _ASBOX
12168 sed "s/^/$as_me: WARNING: /" >&2
12170 esac
12171 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12172 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12173 if test "${ac_cv_header_cthreads_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 ac_cv_header_cthreads_h=$ac_header_preproc
12178 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12179 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12182 if test $ac_cv_header_cthreads_h = yes; then
12183 cat >>confdefs.h <<\_ACEOF
12184 #define WITH_THREAD 1
12185 _ACEOF
12187 cat >>confdefs.h <<\_ACEOF
12188 #define C_THREADS 1
12189 _ACEOF
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HURD_C_THREADS 1
12194 _ACEOF
12196 LIBS="$LIBS -lthreads"
12197 THREADOBJ="Python/thread.o"
12198 else
12200 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12201 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12202 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12203 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12207 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12208 else
12209 # Is the header compilable?
12210 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12211 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 #include <mach/cthreads.h>
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12234 ac_status=$?
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_header_compiler=yes
12244 else
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_header_compiler=no
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12252 echo "${ECHO_T}$ac_header_compiler" >&6
12254 # Is the header present?
12255 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12256 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h. */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 #include <mach/cthreads.h>
12264 _ACEOF
12265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } >/dev/null; then
12273 if test -s conftest.err; then
12274 ac_cpp_err=$ac_c_preproc_warn_flag
12275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12276 else
12277 ac_cpp_err=
12279 else
12280 ac_cpp_err=yes
12282 if test -z "$ac_cpp_err"; then
12283 ac_header_preproc=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_header_preproc=no
12290 rm -f conftest.err conftest.$ac_ext
12291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12292 echo "${ECHO_T}$ac_header_preproc" >&6
12294 # So? What about this header?
12295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12296 yes:no: )
12297 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12298 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12300 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12301 ac_header_preproc=yes
12303 no:yes:* )
12304 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12305 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12307 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12309 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12311 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12313 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12314 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12315 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12317 cat <<\_ASBOX
12318 ## ------------------------------------------------ ##
12319 ## Report this to http://www.python.org/python-bugs ##
12320 ## ------------------------------------------------ ##
12321 _ASBOX
12323 sed "s/^/$as_me: WARNING: /" >&2
12325 esac
12326 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12327 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12328 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12333 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12334 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12337 if test $ac_cv_header_mach_cthreads_h = yes; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define WITH_THREAD 1
12340 _ACEOF
12342 cat >>confdefs.h <<\_ACEOF
12343 #define C_THREADS 1
12344 _ACEOF
12347 cat >>confdefs.h <<\_ACEOF
12348 #define MACH_C_THREADS 1
12349 _ACEOF
12351 THREADOBJ="Python/thread.o"
12352 else
12354 echo "$as_me:$LINENO: checking for --with-pth" >&5
12355 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12357 # Check whether --with-pth or --without-pth was given.
12358 if test "${with_pth+set}" = set; then
12359 withval="$with_pth"
12360 echo "$as_me:$LINENO: result: $withval" >&5
12361 echo "${ECHO_T}$withval" >&6
12362 cat >>confdefs.h <<\_ACEOF
12363 #define WITH_THREAD 1
12364 _ACEOF
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_PTH 1
12369 _ACEOF
12371 LIBS="-lpth $LIBS"
12372 THREADOBJ="Python/thread.o"
12373 else
12374 echo "$as_me:$LINENO: result: no" >&5
12375 echo "${ECHO_T}no" >&6
12377 # Just looking for pthread_create in libpthread is not enough:
12378 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12379 # So we really have to include pthread.h, and then link.
12380 _libs=$LIBS
12381 LIBS="$LIBS -lpthread"
12382 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12383 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 #include <pthread.h>
12392 void * start_routine (void *arg) { exit (0); }
12394 main ()
12397 pthread_create (NULL, NULL, start_routine, NULL)
12399 return 0;
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12425 echo "$as_me:$LINENO: result: yes" >&5
12426 echo "${ECHO_T}yes" >&6
12427 cat >>confdefs.h <<\_ACEOF
12428 #define WITH_THREAD 1
12429 _ACEOF
12431 posix_threads=yes
12432 THREADOBJ="Python/thread.o"
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12438 LIBS=$_libs
12439 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12440 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12441 if test "${ac_cv_func_pthread_detach+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12452 #define pthread_detach innocuous_pthread_detach
12454 /* System header to define __stub macros and hopefully few prototypes,
12455 which can conflict with char pthread_detach (); below.
12456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12457 <limits.h> exists even on freestanding compilers. */
12459 #ifdef __STDC__
12460 # include <limits.h>
12461 #else
12462 # include <assert.h>
12463 #endif
12465 #undef pthread_detach
12467 /* Override any gcc2 internal prototype to avoid an error. */
12468 #ifdef __cplusplus
12469 extern "C"
12471 #endif
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char pthread_detach ();
12475 /* The GNU C library defines this for functions which it implements
12476 to always fail with ENOSYS. Some functions are actually named
12477 something starting with __ and the normal name is an alias. */
12478 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12479 choke me
12480 #else
12481 char (*f) () = pthread_detach;
12482 #endif
12483 #ifdef __cplusplus
12485 #endif
12488 main ()
12490 return f != pthread_detach;
12492 return 0;
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_c_werror_flag"
12505 || test ! -s conftest.err'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_func_pthread_detach=yes
12518 else
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_cv_func_pthread_detach=no
12524 rm -f conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
12527 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12528 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12529 if test $ac_cv_func_pthread_detach = yes; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define WITH_THREAD 1
12532 _ACEOF
12534 posix_threads=yes
12535 THREADOBJ="Python/thread.o"
12536 else
12538 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12539 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12540 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12541 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12545 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12546 else
12547 # Is the header compilable?
12548 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12549 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 $ac_includes_default
12557 #include <atheos/threads.h>
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_header_compiler=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_header_compiler=no
12588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12590 echo "${ECHO_T}$ac_header_compiler" >&6
12592 # Is the header present?
12593 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12594 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <atheos/threads.h>
12602 _ACEOF
12603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } >/dev/null; then
12611 if test -s conftest.err; then
12612 ac_cpp_err=$ac_c_preproc_warn_flag
12613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12614 else
12615 ac_cpp_err=
12617 else
12618 ac_cpp_err=yes
12620 if test -z "$ac_cpp_err"; then
12621 ac_header_preproc=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_header_preproc=no
12628 rm -f conftest.err conftest.$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12630 echo "${ECHO_T}$ac_header_preproc" >&6
12632 # So? What about this header?
12633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12634 yes:no: )
12635 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12636 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12638 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12639 ac_header_preproc=yes
12641 no:yes:* )
12642 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12643 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12645 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12647 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12649 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12653 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12655 cat <<\_ASBOX
12656 ## ------------------------------------------------ ##
12657 ## Report this to http://www.python.org/python-bugs ##
12658 ## ------------------------------------------------ ##
12659 _ASBOX
12661 sed "s/^/$as_me: WARNING: /" >&2
12663 esac
12664 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12665 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12666 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669 ac_cv_header_atheos_threads_h=$ac_header_preproc
12671 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12672 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12675 if test $ac_cv_header_atheos_threads_h = yes; then
12676 cat >>confdefs.h <<\_ACEOF
12677 #define WITH_THREAD 1
12678 _ACEOF
12681 cat >>confdefs.h <<\_ACEOF
12682 #define ATHEOS_THREADS 1
12683 _ACEOF
12685 THREADOBJ="Python/thread.o"
12686 else
12688 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12689 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12690 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12691 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12696 else
12697 # Is the header compilable?
12698 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12699 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 #include <kernel/OS.h>
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_header_compiler=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_header_compiler=no
12738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12740 echo "${ECHO_T}$ac_header_compiler" >&6
12742 # Is the header present?
12743 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12744 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <kernel/OS.h>
12752 _ACEOF
12753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev/null; then
12761 if test -s conftest.err; then
12762 ac_cpp_err=$ac_c_preproc_warn_flag
12763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12764 else
12765 ac_cpp_err=
12767 else
12768 ac_cpp_err=yes
12770 if test -z "$ac_cpp_err"; then
12771 ac_header_preproc=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 ac_header_preproc=no
12778 rm -f conftest.err conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12780 echo "${ECHO_T}$ac_header_preproc" >&6
12782 # So? What about this header?
12783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12784 yes:no: )
12785 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12786 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12788 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12789 ac_header_preproc=yes
12791 no:yes:* )
12792 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12793 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12795 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12797 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12799 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12803 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12805 cat <<\_ASBOX
12806 ## ------------------------------------------------ ##
12807 ## Report this to http://www.python.org/python-bugs ##
12808 ## ------------------------------------------------ ##
12809 _ASBOX
12811 sed "s/^/$as_me: WARNING: /" >&2
12813 esac
12814 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12815 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12816 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 ac_cv_header_kernel_OS_h=$ac_header_preproc
12821 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12822 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12825 if test $ac_cv_header_kernel_OS_h = yes; then
12826 cat >>confdefs.h <<\_ACEOF
12827 #define WITH_THREAD 1
12828 _ACEOF
12831 cat >>confdefs.h <<\_ACEOF
12832 #define BEOS_THREADS 1
12833 _ACEOF
12835 THREADOBJ="Python/thread.o"
12836 else
12838 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12839 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12840 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lpthreads $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char pthread_create ();
12860 main ()
12862 pthread_create ();
12864 return 0;
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_cv_lib_pthreads_pthread_create=yes
12890 else
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 ac_cv_lib_pthreads_pthread_create=no
12896 rm -f conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_lib_save_LIBS
12900 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12901 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12902 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define WITH_THREAD 1
12905 _ACEOF
12907 posix_threads=yes
12908 LIBS="$LIBS -lpthreads"
12909 THREADOBJ="Python/thread.o"
12910 else
12912 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12913 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12914 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917 ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-lc_r $LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char pthread_create ();
12934 main ()
12936 pthread_create ();
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_lib_c_r_pthread_create=yes
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 ac_cv_lib_c_r_pthread_create=no
12970 rm -f conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 LIBS=$ac_check_lib_save_LIBS
12974 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12975 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12976 if test $ac_cv_lib_c_r_pthread_create = yes; then
12977 cat >>confdefs.h <<\_ACEOF
12978 #define WITH_THREAD 1
12979 _ACEOF
12981 posix_threads=yes
12982 LIBS="$LIBS -lc_r"
12983 THREADOBJ="Python/thread.o"
12984 else
12986 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12987 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12988 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 ac_check_lib_save_LIBS=$LIBS
12992 LIBS="-lpthread $LIBS"
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any gcc2 internal prototype to avoid an error. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char __pthread_create_system ();
13008 main ()
13010 __pthread_create_system ();
13012 return 0;
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_pthread___pthread_create_system=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_cv_lib_pthread___pthread_create_system=no
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 LIBS=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13049 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13050 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define WITH_THREAD 1
13053 _ACEOF
13055 posix_threads=yes
13056 LIBS="$LIBS -lpthread"
13057 THREADOBJ="Python/thread.o"
13058 else
13060 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13061 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13062 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-lcma $LIBS"
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13074 /* Override any gcc2 internal prototype to avoid an error. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char pthread_create ();
13082 main ()
13084 pthread_create ();
13086 return 0;
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_cma_pthread_create=yes
13112 else
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_cv_lib_cma_pthread_create=no
13118 rm -f conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13122 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13123 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13124 if test $ac_cv_lib_cma_pthread_create = yes; then
13125 cat >>confdefs.h <<\_ACEOF
13126 #define WITH_THREAD 1
13127 _ACEOF
13129 posix_threads=yes
13130 LIBS="$LIBS -lcma"
13131 THREADOBJ="Python/thread.o"
13132 else
13134 USE_THREAD_MODULE="#"
13153 rm -f conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13163 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13164 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13165 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168 ac_check_lib_save_LIBS=$LIBS
13169 LIBS="-lmpc $LIBS"
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 /* Override any gcc2 internal prototype to avoid an error. */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 /* We use char because int might match the return type of a gcc2
13182 builtin and then its argument prototype would still apply. */
13183 char usconfig ();
13185 main ()
13187 usconfig ();
13189 return 0;
13191 _ACEOF
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13194 (eval $ac_link) 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag"
13202 || test ! -s conftest.err'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_lib_mpc_usconfig=yes
13215 else
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_lib_mpc_usconfig=no
13221 rm -f conftest.err conftest.$ac_objext \
13222 conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13225 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13226 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13227 if test $ac_cv_lib_mpc_usconfig = yes; then
13228 cat >>confdefs.h <<\_ACEOF
13229 #define WITH_THREAD 1
13230 _ACEOF
13232 LIBS="$LIBS -lmpc"
13233 THREADOBJ="Python/thread.o"
13234 USE_THREAD_MODULE=""
13238 if test "$posix_threads" != "yes"; then
13239 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13240 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13241 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-lthread $LIBS"
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 /* Override any gcc2 internal prototype to avoid an error. */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char thr_create ();
13261 main ()
13263 thr_create ();
13265 return 0;
13267 _ACEOF
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13270 (eval $ac_link) 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } &&
13277 { ac_try='test -z "$ac_c_werror_flag"
13278 || test ! -s conftest.err'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; } &&
13284 { ac_try='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_lib_thread_thr_create=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_cv_lib_thread_thr_create=no
13297 rm -f conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13302 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13303 if test $ac_cv_lib_thread_thr_create = yes; then
13304 cat >>confdefs.h <<\_ACEOF
13305 #define WITH_THREAD 1
13306 _ACEOF
13308 LIBS="$LIBS -lthread"
13309 THREADOBJ="Python/thread.o"
13310 USE_THREAD_MODULE=""
13315 if test "$USE_THREAD_MODULE" != "#"
13316 then
13317 # If the above checks didn't disable threads, (at least) OSF1
13318 # needs this '-threads' argument during linking.
13319 case $ac_sys_system in
13320 OSF1) LDLAST=-threads;;
13321 esac
13325 if test "$posix_threads" = "yes"; then
13326 if test "$unistd_defines_pthreads" = "no"; then
13328 cat >>confdefs.h <<\_ACEOF
13329 #define _POSIX_THREADS 1
13330 _ACEOF
13334 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13335 case $ac_sys_system/$ac_sys_release in
13336 SunOS/5.6)
13337 cat >>confdefs.h <<\_ACEOF
13338 #define HAVE_PTHREAD_DESTRUCTOR 1
13339 _ACEOF
13342 SunOS/5.8)
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13345 _ACEOF
13348 esac
13350 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13351 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13352 if test "${ac_cv_pthread_system_supported+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 if test "$cross_compiling" = yes; then
13356 ac_cv_pthread_system_supported=no
13357 else
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <pthread.h>
13365 void *foo(void *parm) {
13366 return NULL;
13368 main() {
13369 pthread_attr_t attr;
13370 pthread_t id;
13371 if (pthread_attr_init(&attr)) exit(-1);
13372 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13373 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13374 exit(0);
13376 _ACEOF
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_pthread_system_supported=yes
13389 else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 ac_cv_pthread_system_supported=no
13397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13403 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13404 if test "$ac_cv_pthread_system_supported" = "yes"; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13408 _ACEOF
13412 for ac_func in pthread_sigmask
13414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13415 echo "$as_me:$LINENO: checking for $ac_func" >&5
13416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13417 if eval "test \"\${$as_ac_var+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13428 #define $ac_func innocuous_$ac_func
13430 /* System header to define __stub macros and hopefully few prototypes,
13431 which can conflict with char $ac_func (); below.
13432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13433 <limits.h> exists even on freestanding compilers. */
13435 #ifdef __STDC__
13436 # include <limits.h>
13437 #else
13438 # include <assert.h>
13439 #endif
13441 #undef $ac_func
13443 /* Override any gcc2 internal prototype to avoid an error. */
13444 #ifdef __cplusplus
13445 extern "C"
13447 #endif
13448 /* We use char because int might match the return type of a gcc2
13449 builtin and then its argument prototype would still apply. */
13450 char $ac_func ();
13451 /* The GNU C library defines this for functions which it implements
13452 to always fail with ENOSYS. Some functions are actually named
13453 something starting with __ and the normal name is an alias. */
13454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13455 choke me
13456 #else
13457 char (*f) () = $ac_func;
13458 #endif
13459 #ifdef __cplusplus
13461 #endif
13464 main ()
13466 return f != $ac_func;
13468 return 0;
13470 _ACEOF
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest$ac_exeext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 eval "$as_ac_var=yes"
13494 else
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 eval "$as_ac_var=no"
13500 rm -f conftest.err conftest.$ac_objext \
13501 conftest$ac_exeext conftest.$ac_ext
13503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13505 if test `eval echo '${'$as_ac_var'}'` = yes; then
13506 cat >>confdefs.h <<_ACEOF
13507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13508 _ACEOF
13509 case $ac_sys_system in
13510 CYGWIN*)
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13514 _ACEOF
13517 esac
13519 done
13524 # Check for enable-ipv6
13527 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13528 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13529 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13530 if test "${enable_ipv6+set}" = set; then
13531 enableval="$enable_ipv6"
13532 case "$enableval" in
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13536 ipv6=no
13538 *) echo "$as_me:$LINENO: result: yes" >&5
13539 echo "${ECHO_T}yes" >&6
13540 cat >>confdefs.h <<\_ACEOF
13541 #define ENABLE_IPV6 1
13542 _ACEOF
13544 ipv6=yes
13546 esac
13547 else
13549 if test "$cross_compiling" = yes; then
13550 echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13552 ipv6=no
13554 else
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 /* AF_INET6 available check */
13562 #include <sys/types.h>
13563 #include <sys/socket.h>
13564 main()
13566 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13567 exit(1);
13568 else
13569 exit(0);
13572 _ACEOF
13573 rm -f conftest$ac_exeext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13575 (eval $ac_link) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 echo "$as_me:$LINENO: result: yes" >&5
13585 echo "${ECHO_T}yes" >&6
13586 ipv6=yes
13587 else
13588 echo "$as_me: program exited with status $ac_status" >&5
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ( exit $ac_status )
13593 echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13595 ipv6=no
13597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13600 if test "$ipv6" = "yes"; then
13601 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13602 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <sys/types.h>
13610 #include <netinet/in.h>
13612 main ()
13614 struct sockaddr_in6 x;
13615 x.sin6_scope_id;
13617 return 0;
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 echo "$as_me:$LINENO: result: yes" >&5
13643 echo "${ECHO_T}yes" >&6
13644 ipv6=yes
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13651 ipv6=no
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13656 if test "$ipv6" = "yes"; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define ENABLE_IPV6 1
13659 _ACEOF
13665 ipv6type=unknown
13666 ipv6lib=none
13667 ipv6trylibc=no
13669 if test "$ipv6" = "yes"; then
13670 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13671 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13672 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13674 case $i in
13675 inria)
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13683 #include <netinet/in.h>
13684 #ifdef IPV6_INRIA_VERSION
13686 #endif
13687 _ACEOF
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "yes" >/dev/null 2>&1; then
13690 ipv6type=$i
13692 rm -f conftest*
13695 kame)
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 #include <netinet/in.h>
13704 #ifdef __KAME__
13706 #endif
13707 _ACEOF
13708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13709 $EGREP "yes" >/dev/null 2>&1; then
13710 ipv6type=$i;
13711 ipv6lib=inet6
13712 ipv6libdir=/usr/local/v6/lib
13713 ipv6trylibc=yes
13715 rm -f conftest*
13718 linux-glibc)
13719 cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h. */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13726 #include <features.h>
13727 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13729 #endif
13730 _ACEOF
13731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13732 $EGREP "yes" >/dev/null 2>&1; then
13733 ipv6type=$i;
13734 ipv6trylibc=yes
13736 rm -f conftest*
13739 linux-inet6)
13740 if test -d /usr/inet6; then
13741 ipv6type=$i
13742 ipv6lib=inet6
13743 ipv6libdir=/usr/inet6/lib
13744 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13747 solaris)
13748 if test -f /etc/netconfig; then
13749 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13750 ipv6type=$i
13751 ipv6trylibc=yes
13755 toshiba)
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h. */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 #include <sys/param.h>
13764 #ifdef _TOSHIBA_INET6
13766 #endif
13767 _ACEOF
13768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13769 $EGREP "yes" >/dev/null 2>&1; then
13770 ipv6type=$i;
13771 ipv6lib=inet6;
13772 ipv6libdir=/usr/local/v6/lib
13774 rm -f conftest*
13777 v6d)
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 #include </usr/local/v6/include/sys/v6config.h>
13786 #ifdef __V6D__
13788 #endif
13789 _ACEOF
13790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13791 $EGREP "yes" >/dev/null 2>&1; then
13792 ipv6type=$i;
13793 ipv6lib=v6;
13794 ipv6libdir=/usr/local/v6/lib;
13795 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13797 rm -f conftest*
13800 zeta)
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 #include <sys/param.h>
13809 #ifdef _ZETA_MINAMI_INET6
13811 #endif
13812 _ACEOF
13813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13814 $EGREP "yes" >/dev/null 2>&1; then
13815 ipv6type=$i;
13816 ipv6lib=inet6;
13817 ipv6libdir=/usr/local/v6/lib
13819 rm -f conftest*
13822 esac
13823 if test "$ipv6type" != "unknown"; then
13824 break
13826 done
13827 echo "$as_me:$LINENO: result: $ipv6type" >&5
13828 echo "${ECHO_T}$ipv6type" >&6
13831 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13832 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13833 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13834 echo "using lib$ipv6lib"
13835 else
13836 if test $ipv6trylibc = "yes"; then
13837 echo "using libc"
13838 else
13839 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13840 echo "You need to fetch lib$ipv6lib.a from appropriate"
13841 echo 'ipv6 kit and compile beforehand.'
13842 exit 1
13847 # Check for --with-doc-strings
13848 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13849 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13851 # Check whether --with-doc-strings or --without-doc-strings was given.
13852 if test "${with_doc_strings+set}" = set; then
13853 withval="$with_doc_strings"
13857 if test -z "$with_doc_strings"
13858 then with_doc_strings="yes"
13860 if test "$with_doc_strings" != "no"
13861 then
13863 cat >>confdefs.h <<\_ACEOF
13864 #define WITH_DOC_STRINGS 1
13865 _ACEOF
13868 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13869 echo "${ECHO_T}$with_doc_strings" >&6
13871 # Check for Python-specific malloc support
13872 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13873 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13875 # Check whether --with-tsc or --without-tsc was given.
13876 if test "${with_tsc+set}" = set; then
13877 withval="$with_tsc"
13879 if test "$withval" != no
13880 then
13882 cat >>confdefs.h <<\_ACEOF
13883 #define WITH_TSC 1
13884 _ACEOF
13886 echo "$as_me:$LINENO: result: yes" >&5
13887 echo "${ECHO_T}yes" >&6
13888 else echo "$as_me:$LINENO: result: no" >&5
13889 echo "${ECHO_T}no" >&6
13891 else
13892 echo "$as_me:$LINENO: result: no" >&5
13893 echo "${ECHO_T}no" >&6
13896 # Check for Python-specific malloc support
13897 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13898 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13900 # Check whether --with-pymalloc or --without-pymalloc was given.
13901 if test "${with_pymalloc+set}" = set; then
13902 withval="$with_pymalloc"
13906 if test -z "$with_pymalloc"
13907 then with_pymalloc="yes"
13909 if test "$with_pymalloc" != "no"
13910 then
13912 cat >>confdefs.h <<\_ACEOF
13913 #define WITH_PYMALLOC 1
13914 _ACEOF
13917 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13918 echo "${ECHO_T}$with_pymalloc" >&6
13920 # Check for --with-wctype-functions
13921 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13922 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13924 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13925 if test "${with_wctype_functions+set}" = set; then
13926 withval="$with_wctype_functions"
13928 if test "$withval" != no
13929 then
13931 cat >>confdefs.h <<\_ACEOF
13932 #define WANT_WCTYPE_FUNCTIONS 1
13933 _ACEOF
13935 echo "$as_me:$LINENO: result: yes" >&5
13936 echo "${ECHO_T}yes" >&6
13937 else echo "$as_me:$LINENO: result: no" >&5
13938 echo "${ECHO_T}no" >&6
13940 else
13941 echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6
13945 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13947 DLINCLDIR=.
13949 # the dlopen() function means we might want to use dynload_shlib.o. some
13950 # platforms, such as AIX, have dlopen(), but don't want to use it.
13952 for ac_func in dlopen
13954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955 echo "$as_me:$LINENO: checking for $ac_func" >&5
13956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13957 if eval "test \"\${$as_ac_var+set}\" = set"; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13968 #define $ac_func innocuous_$ac_func
13970 /* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char $ac_func (); below.
13972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13973 <limits.h> exists even on freestanding compilers. */
13975 #ifdef __STDC__
13976 # include <limits.h>
13977 #else
13978 # include <assert.h>
13979 #endif
13981 #undef $ac_func
13983 /* Override any gcc2 internal prototype to avoid an error. */
13984 #ifdef __cplusplus
13985 extern "C"
13987 #endif
13988 /* We use char because int might match the return type of a gcc2
13989 builtin and then its argument prototype would still apply. */
13990 char $ac_func ();
13991 /* The GNU C library defines this for functions which it implements
13992 to always fail with ENOSYS. Some functions are actually named
13993 something starting with __ and the normal name is an alias. */
13994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13995 choke me
13996 #else
13997 char (*f) () = $ac_func;
13998 #endif
13999 #ifdef __cplusplus
14001 #endif
14004 main ()
14006 return f != $ac_func;
14008 return 0;
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest$ac_exeext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 eval "$as_ac_var=yes"
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 eval "$as_ac_var=no"
14040 rm -f conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14045 if test `eval echo '${'$as_ac_var'}'` = yes; then
14046 cat >>confdefs.h <<_ACEOF
14047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 _ACEOF
14051 done
14054 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14055 # loading of modules.
14057 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14058 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14059 if test -z "$DYNLOADFILE"
14060 then
14061 case $ac_sys_system/$ac_sys_release in
14062 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14063 if test "$ac_cv_func_dlopen" = yes
14064 then DYNLOADFILE="dynload_shlib.o"
14065 else DYNLOADFILE="dynload_aix.o"
14068 BeOS*) DYNLOADFILE="dynload_beos.o";;
14069 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14070 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14071 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14072 atheos*) DYNLOADFILE="dynload_atheos.o";;
14074 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14075 # out any dynamic loading
14076 if test "$ac_cv_func_dlopen" = yes
14077 then DYNLOADFILE="dynload_shlib.o"
14078 else DYNLOADFILE="dynload_stub.o"
14081 esac
14083 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14084 echo "${ECHO_T}$DYNLOADFILE" >&6
14085 if test "$DYNLOADFILE" != "dynload_stub.o"
14086 then
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_DYNAMIC_LOADING 1
14090 _ACEOF
14094 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14097 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14098 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14099 if test -z "$MACHDEP_OBJS"
14100 then
14101 MACHDEP_OBJS=$extra_machdep_objs
14102 else
14103 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14105 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14106 echo "${ECHO_T}MACHDEP_OBJS" >&6
14108 # checks for library functions
14185 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14186 execv fork fpathconf ftime ftruncate \
14187 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14188 getpriority getpwent getspnam getspent getsid getwd \
14189 kill killpg lchown lstat mkfifo mknod mktime \
14190 mremap nice pathconf pause plock poll pthread_init \
14191 putenv readlink realpath \
14192 select setegid seteuid setgid \
14193 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14194 sigaction siginterrupt sigrelse strftime \
14195 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14196 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14199 echo "$as_me:$LINENO: checking for $ac_func" >&5
14200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14201 if eval "test \"\${$as_ac_var+set}\" = set"; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14212 #define $ac_func innocuous_$ac_func
14214 /* System header to define __stub macros and hopefully few prototypes,
14215 which can conflict with char $ac_func (); below.
14216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14217 <limits.h> exists even on freestanding compilers. */
14219 #ifdef __STDC__
14220 # include <limits.h>
14221 #else
14222 # include <assert.h>
14223 #endif
14225 #undef $ac_func
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 #ifdef __cplusplus
14229 extern "C"
14231 #endif
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14234 char $ac_func ();
14235 /* The GNU C library defines this for functions which it implements
14236 to always fail with ENOSYS. Some functions are actually named
14237 something starting with __ and the normal name is an alias. */
14238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14239 choke me
14240 #else
14241 char (*f) () = $ac_func;
14242 #endif
14243 #ifdef __cplusplus
14245 #endif
14248 main ()
14250 return f != $ac_func;
14252 return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14257 (eval $ac_link) 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -z "$ac_c_werror_flag"
14265 || test ! -s conftest.err'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 eval "$as_ac_var=yes"
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 eval "$as_ac_var=no"
14284 rm -f conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14289 if test `eval echo '${'$as_ac_var'}'` = yes; then
14290 cat >>confdefs.h <<_ACEOF
14291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14292 _ACEOF
14295 done
14298 # For some functions, having a definition is not sufficient, since
14299 # we want to take their address.
14300 echo "$as_me:$LINENO: checking for chroot" >&5
14301 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 #include <unistd.h>
14310 main ()
14312 void *x=chroot
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_CHROOT 1
14342 _ACEOF
14344 echo "$as_me:$LINENO: result: yes" >&5
14345 echo "${ECHO_T}yes" >&6
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 echo "$as_me:$LINENO: result: no" >&5
14351 echo "${ECHO_T}no" >&6
14354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14355 echo "$as_me:$LINENO: checking for link" >&5
14356 echo $ECHO_N "checking for link... $ECHO_C" >&6
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <unistd.h>
14365 main ()
14367 void *x=link
14369 return 0;
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_LINK 1
14397 _ACEOF
14399 echo "$as_me:$LINENO: result: yes" >&5
14400 echo "${ECHO_T}yes" >&6
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 echo "$as_me:$LINENO: result: no" >&5
14406 echo "${ECHO_T}no" >&6
14409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14410 echo "$as_me:$LINENO: checking for symlink" >&5
14411 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h. */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <unistd.h>
14420 main ()
14422 void *x=symlink
14424 return 0;
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429 (eval $ac_compile) 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14450 cat >>confdefs.h <<\_ACEOF
14451 #define HAVE_SYMLINK 1
14452 _ACEOF
14454 echo "$as_me:$LINENO: result: yes" >&5
14455 echo "${ECHO_T}yes" >&6
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 echo "$as_me:$LINENO: result: no" >&5
14461 echo "${ECHO_T}no" >&6
14464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14465 echo "$as_me:$LINENO: checking for fchdir" >&5
14466 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h. */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 #include <unistd.h>
14475 main ()
14477 void *x=fchdir
14479 return 0;
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_FCHDIR 1
14507 _ACEOF
14509 echo "$as_me:$LINENO: result: yes" >&5
14510 echo "${ECHO_T}yes" >&6
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 echo "$as_me:$LINENO: result: no" >&5
14516 echo "${ECHO_T}no" >&6
14519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14520 echo "$as_me:$LINENO: checking for fsync" >&5
14521 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <unistd.h>
14530 main ()
14532 void *x=fsync
14534 return 0;
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14560 cat >>confdefs.h <<\_ACEOF
14561 #define HAVE_FSYNC 1
14562 _ACEOF
14564 echo "$as_me:$LINENO: result: yes" >&5
14565 echo "${ECHO_T}yes" >&6
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 echo "$as_me:$LINENO: result: no" >&5
14571 echo "${ECHO_T}no" >&6
14574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14575 echo "$as_me:$LINENO: checking for fdatasync" >&5
14576 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h. */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <unistd.h>
14585 main ()
14587 void *x=fdatasync
14589 return 0;
14591 _ACEOF
14592 rm -f conftest.$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -z "$ac_c_werror_flag"
14602 || test ! -s conftest.err'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14615 cat >>confdefs.h <<\_ACEOF
14616 #define HAVE_FDATASYNC 1
14617 _ACEOF
14619 echo "$as_me:$LINENO: result: yes" >&5
14620 echo "${ECHO_T}yes" >&6
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 echo "$as_me:$LINENO: result: no" >&5
14626 echo "${ECHO_T}no" >&6
14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14631 # On some systems (eg. FreeBSD 5), we would find a definition of the
14632 # functions ctermid_r, setgroups in the library, but no prototype
14633 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14634 # address to avoid compiler warnings and potential miscompilations
14635 # because of the missing prototypes.
14637 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14638 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14646 #include "confdefs.h"
14647 #include <stdio.h>
14650 main ()
14652 void* p = ctermid_r
14654 return 0;
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define HAVE_CTERMID_R 1
14682 _ACEOF
14684 echo "$as_me:$LINENO: result: yes" >&5
14685 echo "${ECHO_T}yes" >&6
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 echo "$as_me:$LINENO: result: no" >&5
14691 echo "${ECHO_T}no" >&6
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696 echo "$as_me:$LINENO: checking for flock" >&5
14697 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14705 #include "confdefs.h"
14706 #include <sys/file.h>
14709 main ()
14711 void* p = flock
14713 return 0;
14715 _ACEOF
14716 rm -f conftest.$ac_objext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_FLOCK 1
14741 _ACEOF
14743 echo "$as_me:$LINENO: result: yes" >&5
14744 echo "${ECHO_T}yes" >&6
14745 else
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14749 echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6
14753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14755 echo "$as_me:$LINENO: checking for getpagesize" >&5
14756 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14764 #include "confdefs.h"
14765 #include <unistd.h>
14768 main ()
14770 void* p = getpagesize
14772 return 0;
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_GETPAGESIZE 1
14800 _ACEOF
14802 echo "$as_me:$LINENO: result: yes" >&5
14803 echo "${ECHO_T}yes" >&6
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14814 for ac_prog in true
14816 # Extract the first word of "$ac_prog", so it can be a program name with args.
14817 set dummy $ac_prog; ac_word=$2
14818 echo "$as_me:$LINENO: checking for $ac_word" >&5
14819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14820 if test "${ac_cv_prog_TRUE+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823 if test -n "$TRUE"; then
14824 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14825 else
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14829 IFS=$as_save_IFS
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_TRUE="$ac_prog"
14834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14835 break 2
14837 done
14838 done
14842 TRUE=$ac_cv_prog_TRUE
14843 if test -n "$TRUE"; then
14844 echo "$as_me:$LINENO: result: $TRUE" >&5
14845 echo "${ECHO_T}$TRUE" >&6
14846 else
14847 echo "$as_me:$LINENO: result: no" >&5
14848 echo "${ECHO_T}no" >&6
14851 test -n "$TRUE" && break
14852 done
14853 test -n "$TRUE" || TRUE="/bin/true"
14856 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14857 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14858 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lc $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14870 /* Override any gcc2 internal prototype to avoid an error. */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 /* We use char because int might match the return type of a gcc2
14875 builtin and then its argument prototype would still apply. */
14876 char inet_aton ();
14878 main ()
14880 inet_aton ();
14882 return 0;
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_lib_c_inet_aton=yes
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_lib_c_inet_aton=no
14914 rm -f conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14919 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14920 if test $ac_cv_lib_c_inet_aton = yes; then
14921 $ac_cv_prog_TRUE
14922 else
14924 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14925 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14926 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929 ac_check_lib_save_LIBS=$LIBS
14930 LIBS="-lresolv $LIBS"
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14938 /* Override any gcc2 internal prototype to avoid an error. */
14939 #ifdef __cplusplus
14940 extern "C"
14941 #endif
14942 /* We use char because int might match the return type of a gcc2
14943 builtin and then its argument prototype would still apply. */
14944 char inet_aton ();
14946 main ()
14948 inet_aton ();
14950 return 0;
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_lib_resolv_inet_aton=yes
14976 else
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 ac_cv_lib_resolv_inet_aton=no
14982 rm -f conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LIBS=$ac_check_lib_save_LIBS
14986 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14987 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14988 if test $ac_cv_lib_resolv_inet_aton = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_LIBRESOLV 1
14991 _ACEOF
14993 LIBS="-lresolv $LIBS"
15001 case $ac_sys_system/$ac_sys_release in
15002 Darwin/*)
15003 _CUR_CFLAGS="${CFLAGS}"
15004 _CUR_LDFLAGS="${LDFLAGS}"
15005 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15006 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15008 esac
15010 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15011 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15012 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-lz $LIBS"
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any gcc2 internal prototype to avoid an error. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 /* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15030 char inflateCopy ();
15032 main ()
15034 inflateCopy ();
15036 return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 ac_cv_lib_z_inflateCopy=yes
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_lib_z_inflateCopy=no
15068 rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_check_lib_save_LIBS
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15073 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15074 if test $ac_cv_lib_z_inflateCopy = yes; then
15076 cat >>confdefs.h <<\_ACEOF
15077 #define HAVE_ZLIB_COPY 1
15078 _ACEOF
15083 case $ac_sys_system/$ac_sys_release in
15084 Darwin/*)
15085 CFLAGS="${_CUR_CFLAGS}"
15086 LDFLAGS="${_CUR_LDFLAGS}"
15088 esac
15090 echo "$as_me:$LINENO: checking for hstrerror" >&5
15091 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 #include "confdefs.h"
15100 #include <netdb.h>
15103 main ()
15105 void* p = hstrerror; hstrerror(0)
15107 return 0;
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag"
15120 || test ! -s conftest.err'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest$ac_exeext'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15133 cat >>confdefs.h <<\_ACEOF
15134 #define HAVE_HSTRERROR 1
15135 _ACEOF
15137 echo "$as_me:$LINENO: result: yes" >&5
15138 echo "${ECHO_T}yes" >&6
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 echo "$as_me:$LINENO: result: no" >&5
15144 echo "${ECHO_T}no" >&6
15147 rm -f conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15150 echo "$as_me:$LINENO: checking for inet_aton" >&5
15151 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15159 #include "confdefs.h"
15160 #include <sys/types.h>
15161 #include <sys/socket.h>
15162 #include <netinet/in.h>
15163 #include <arpa/inet.h>
15166 main ()
15168 void* p = inet_aton;inet_aton(0,0)
15170 return 0;
15172 _ACEOF
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_INET_ATON 1
15198 _ACEOF
15200 echo "$as_me:$LINENO: result: yes" >&5
15201 echo "${ECHO_T}yes" >&6
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6
15210 rm -f conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15213 echo "$as_me:$LINENO: checking for inet_pton" >&5
15214 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 #include "confdefs.h"
15223 #include <sys/types.h>
15224 #include <sys/socket.h>
15225 #include <netinet/in.h>
15226 #include <arpa/inet.h>
15229 main ()
15231 void* p = inet_pton
15233 return 0;
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define HAVE_INET_PTON 1
15261 _ACEOF
15263 echo "$as_me:$LINENO: result: yes" >&5
15264 echo "${ECHO_T}yes" >&6
15265 else
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 echo "$as_me:$LINENO: result: no" >&5
15270 echo "${ECHO_T}no" >&6
15273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15275 # On some systems, setgroups is in unistd.h, on others, in grp.h
15276 echo "$as_me:$LINENO: checking for setgroups" >&5
15277 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 #include "confdefs.h"
15286 #include <unistd.h>
15287 #ifdef HAVE_GRP_H
15288 #include <grp.h>
15289 #endif
15292 main ()
15294 void* p = setgroups
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15322 cat >>confdefs.h <<\_ACEOF
15323 #define HAVE_SETGROUPS 1
15324 _ACEOF
15326 echo "$as_me:$LINENO: result: yes" >&5
15327 echo "${ECHO_T}yes" >&6
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 echo "$as_me:$LINENO: result: no" >&5
15333 echo "${ECHO_T}no" >&6
15336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 # check for openpty and forkpty
15341 for ac_func in openpty
15343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 echo "$as_me:$LINENO: checking for $ac_func" >&5
15345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15346 if eval "test \"\${$as_ac_var+set}\" = set"; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h. */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15357 #define $ac_func innocuous_$ac_func
15359 /* System header to define __stub macros and hopefully few prototypes,
15360 which can conflict with char $ac_func (); below.
15361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15362 <limits.h> exists even on freestanding compilers. */
15364 #ifdef __STDC__
15365 # include <limits.h>
15366 #else
15367 # include <assert.h>
15368 #endif
15370 #undef $ac_func
15372 /* Override any gcc2 internal prototype to avoid an error. */
15373 #ifdef __cplusplus
15374 extern "C"
15376 #endif
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15379 char $ac_func ();
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 choke me
15385 #else
15386 char (*f) () = $ac_func;
15387 #endif
15388 #ifdef __cplusplus
15390 #endif
15393 main ()
15395 return f != $ac_func;
15397 return 0;
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest$ac_exeext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 eval "$as_ac_var=yes"
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 eval "$as_ac_var=no"
15429 rm -f conftest.err conftest.$ac_objext \
15430 conftest$ac_exeext conftest.$ac_ext
15432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15434 if test `eval echo '${'$as_ac_var'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15437 _ACEOF
15439 else
15440 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15441 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15442 if test "${ac_cv_lib_util_openpty+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 ac_check_lib_save_LIBS=$LIBS
15446 LIBS="-lutil $LIBS"
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15454 /* Override any gcc2 internal prototype to avoid an error. */
15455 #ifdef __cplusplus
15456 extern "C"
15457 #endif
15458 /* We use char because int might match the return type of a gcc2
15459 builtin and then its argument prototype would still apply. */
15460 char openpty ();
15462 main ()
15464 openpty ();
15466 return 0;
15468 _ACEOF
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_cv_lib_util_openpty=yes
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_lib_util_openpty=no
15498 rm -f conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15502 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15503 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15504 if test $ac_cv_lib_util_openpty = yes; then
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_OPENPTY 1
15507 _ACEOF
15508 LIBS="$LIBS -lutil"
15509 else
15510 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15511 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15512 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 ac_check_lib_save_LIBS=$LIBS
15516 LIBS="-lbsd $LIBS"
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15524 /* Override any gcc2 internal prototype to avoid an error. */
15525 #ifdef __cplusplus
15526 extern "C"
15527 #endif
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15530 char openpty ();
15532 main ()
15534 openpty ();
15536 return 0;
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_lib_bsd_openpty=yes
15562 else
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_lib_bsd_openpty=no
15568 rm -f conftest.err conftest.$ac_objext \
15569 conftest$ac_exeext conftest.$ac_ext
15570 LIBS=$ac_check_lib_save_LIBS
15572 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15573 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15574 if test $ac_cv_lib_bsd_openpty = yes; then
15575 cat >>confdefs.h <<\_ACEOF
15576 #define HAVE_OPENPTY 1
15577 _ACEOF
15578 LIBS="$LIBS -lbsd"
15586 done
15589 for ac_func in forkpty
15591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15592 echo "$as_me:$LINENO: checking for $ac_func" >&5
15593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_var+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15605 #define $ac_func innocuous_$ac_func
15607 /* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char $ac_func (); below.
15609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15610 <limits.h> exists even on freestanding compilers. */
15612 #ifdef __STDC__
15613 # include <limits.h>
15614 #else
15615 # include <assert.h>
15616 #endif
15618 #undef $ac_func
15620 /* Override any gcc2 internal prototype to avoid an error. */
15621 #ifdef __cplusplus
15622 extern "C"
15624 #endif
15625 /* We use char because int might match the return type of a gcc2
15626 builtin and then its argument prototype would still apply. */
15627 char $ac_func ();
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 choke me
15633 #else
15634 char (*f) () = $ac_func;
15635 #endif
15636 #ifdef __cplusplus
15638 #endif
15641 main ()
15643 return f != $ac_func;
15645 return 0;
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 eval "$as_ac_var=yes"
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 eval "$as_ac_var=no"
15677 rm -f conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15682 if test `eval echo '${'$as_ac_var'}'` = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15685 _ACEOF
15687 else
15688 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15689 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15690 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693 ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lutil $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any gcc2 internal prototype to avoid an error. */
15703 #ifdef __cplusplus
15704 extern "C"
15705 #endif
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char forkpty ();
15710 main ()
15712 forkpty ();
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_util_forkpty=yes
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_lib_util_forkpty=no
15746 rm -f conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15751 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15752 if test $ac_cv_lib_util_forkpty = yes; then
15753 cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_FORKPTY 1
15755 _ACEOF
15756 LIBS="$LIBS -lutil"
15757 else
15758 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15759 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15760 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lbsd $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15772 /* Override any gcc2 internal prototype to avoid an error. */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 /* We use char because int might match the return type of a gcc2
15777 builtin and then its argument prototype would still apply. */
15778 char forkpty ();
15780 main ()
15782 forkpty ();
15784 return 0;
15786 _ACEOF
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_lib_bsd_forkpty=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_cv_lib_bsd_forkpty=no
15816 rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15821 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15822 if test $ac_cv_lib_bsd_forkpty = yes; then
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_FORKPTY 1
15825 _ACEOF
15826 LIBS="$LIBS -lbsd"
15834 done
15837 # check for long file support functions
15844 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15847 echo "$as_me:$LINENO: checking for $ac_func" >&5
15848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_var+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15860 #define $ac_func innocuous_$ac_func
15862 /* System header to define __stub macros and hopefully few prototypes,
15863 which can conflict with char $ac_func (); below.
15864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15865 <limits.h> exists even on freestanding compilers. */
15867 #ifdef __STDC__
15868 # include <limits.h>
15869 #else
15870 # include <assert.h>
15871 #endif
15873 #undef $ac_func
15875 /* Override any gcc2 internal prototype to avoid an error. */
15876 #ifdef __cplusplus
15877 extern "C"
15879 #endif
15880 /* We use char because int might match the return type of a gcc2
15881 builtin and then its argument prototype would still apply. */
15882 char $ac_func ();
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15887 choke me
15888 #else
15889 char (*f) () = $ac_func;
15890 #endif
15891 #ifdef __cplusplus
15893 #endif
15896 main ()
15898 return f != $ac_func;
15900 return 0;
15902 _ACEOF
15903 rm -f conftest.$ac_objext conftest$ac_exeext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest$ac_exeext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 eval "$as_ac_var=yes"
15926 else
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 eval "$as_ac_var=no"
15932 rm -f conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15937 if test `eval echo '${'$as_ac_var'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15940 _ACEOF
15943 done
15951 for ac_func in dup2 getcwd strdup strerror memmove
15953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15954 echo "$as_me:$LINENO: checking for $ac_func" >&5
15955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15956 if eval "test \"\${$as_ac_var+set}\" = set"; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15967 #define $ac_func innocuous_$ac_func
15969 /* System header to define __stub macros and hopefully few prototypes,
15970 which can conflict with char $ac_func (); below.
15971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15972 <limits.h> exists even on freestanding compilers. */
15974 #ifdef __STDC__
15975 # include <limits.h>
15976 #else
15977 # include <assert.h>
15978 #endif
15980 #undef $ac_func
15982 /* Override any gcc2 internal prototype to avoid an error. */
15983 #ifdef __cplusplus
15984 extern "C"
15986 #endif
15987 /* We use char because int might match the return type of a gcc2
15988 builtin and then its argument prototype would still apply. */
15989 char $ac_func ();
15990 /* The GNU C library defines this for functions which it implements
15991 to always fail with ENOSYS. Some functions are actually named
15992 something starting with __ and the normal name is an alias. */
15993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15994 choke me
15995 #else
15996 char (*f) () = $ac_func;
15997 #endif
15998 #ifdef __cplusplus
16000 #endif
16003 main ()
16005 return f != $ac_func;
16007 return 0;
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 eval "$as_ac_var=yes"
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 eval "$as_ac_var=no"
16039 rm -f conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16044 if test `eval echo '${'$as_ac_var'}'` = yes; then
16045 cat >>confdefs.h <<_ACEOF
16046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16047 _ACEOF
16049 else
16050 case $LIBOBJS in
16051 "$ac_func.$ac_objext" | \
16052 *" $ac_func.$ac_objext" | \
16053 "$ac_func.$ac_objext "* | \
16054 *" $ac_func.$ac_objext "* ) ;;
16055 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16056 esac
16059 done
16063 for ac_func in getpgrp
16065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16066 echo "$as_me:$LINENO: checking for $ac_func" >&5
16067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16068 if eval "test \"\${$as_ac_var+set}\" = set"; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16079 #define $ac_func innocuous_$ac_func
16081 /* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func (); below.
16083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16084 <limits.h> exists even on freestanding compilers. */
16086 #ifdef __STDC__
16087 # include <limits.h>
16088 #else
16089 # include <assert.h>
16090 #endif
16092 #undef $ac_func
16094 /* Override any gcc2 internal prototype to avoid an error. */
16095 #ifdef __cplusplus
16096 extern "C"
16098 #endif
16099 /* We use char because int might match the return type of a gcc2
16100 builtin and then its argument prototype would still apply. */
16101 char $ac_func ();
16102 /* The GNU C library defines this for functions which it implements
16103 to always fail with ENOSYS. Some functions are actually named
16104 something starting with __ and the normal name is an alias. */
16105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16106 choke me
16107 #else
16108 char (*f) () = $ac_func;
16109 #endif
16110 #ifdef __cplusplus
16112 #endif
16115 main ()
16117 return f != $ac_func;
16119 return 0;
16121 _ACEOF
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16124 (eval $ac_link) 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest$ac_exeext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 eval "$as_ac_var=yes"
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 eval "$as_ac_var=no"
16151 rm -f conftest.err conftest.$ac_objext \
16152 conftest$ac_exeext conftest.$ac_ext
16154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16156 if test `eval echo '${'$as_ac_var'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16159 _ACEOF
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 #include <unistd.h>
16168 main ()
16170 getpgrp(0);
16172 return 0;
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>conftest.er1
16178 ac_status=$?
16179 grep -v '^ *+' conftest.er1 >conftest.err
16180 rm -f conftest.er1
16181 cat conftest.err >&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try='test -z "$ac_c_werror_flag"
16185 || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16198 cat >>confdefs.h <<\_ACEOF
16199 #define GETPGRP_HAVE_ARG 1
16200 _ACEOF
16203 else
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16211 done
16214 for ac_func in setpgrp
16216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16217 echo "$as_me:$LINENO: checking for $ac_func" >&5
16218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16219 if eval "test \"\${$as_ac_var+set}\" = set"; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h. */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16230 #define $ac_func innocuous_$ac_func
16232 /* System header to define __stub macros and hopefully few prototypes,
16233 which can conflict with char $ac_func (); below.
16234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235 <limits.h> exists even on freestanding compilers. */
16237 #ifdef __STDC__
16238 # include <limits.h>
16239 #else
16240 # include <assert.h>
16241 #endif
16243 #undef $ac_func
16245 /* Override any gcc2 internal prototype to avoid an error. */
16246 #ifdef __cplusplus
16247 extern "C"
16249 #endif
16250 /* We use char because int might match the return type of a gcc2
16251 builtin and then its argument prototype would still apply. */
16252 char $ac_func ();
16253 /* The GNU C library defines this for functions which it implements
16254 to always fail with ENOSYS. Some functions are actually named
16255 something starting with __ and the normal name is an alias. */
16256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16257 choke me
16258 #else
16259 char (*f) () = $ac_func;
16260 #endif
16261 #ifdef __cplusplus
16263 #endif
16266 main ()
16268 return f != $ac_func;
16270 return 0;
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 eval "$as_ac_var=yes"
16296 else
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 eval "$as_ac_var=no"
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16307 if test `eval echo '${'$as_ac_var'}'` = yes; then
16308 cat >>confdefs.h <<_ACEOF
16309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16310 _ACEOF
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 #include <unistd.h>
16319 main ()
16321 setpgrp(0,0);
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16349 cat >>confdefs.h <<\_ACEOF
16350 #define SETPGRP_HAVE_ARG 1
16351 _ACEOF
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16362 done
16365 for ac_func in gettimeofday
16367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16381 #define $ac_func innocuous_$ac_func
16383 /* System header to define __stub macros and hopefully few prototypes,
16384 which can conflict with char $ac_func (); below.
16385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16386 <limits.h> exists even on freestanding compilers. */
16388 #ifdef __STDC__
16389 # include <limits.h>
16390 #else
16391 # include <assert.h>
16392 #endif
16394 #undef $ac_func
16396 /* Override any gcc2 internal prototype to avoid an error. */
16397 #ifdef __cplusplus
16398 extern "C"
16400 #endif
16401 /* We use char because int might match the return type of a gcc2
16402 builtin and then its argument prototype would still apply. */
16403 char $ac_func ();
16404 /* The GNU C library defines this for functions which it implements
16405 to always fail with ENOSYS. Some functions are actually named
16406 something starting with __ and the normal name is an alias. */
16407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16408 choke me
16409 #else
16410 char (*f) () = $ac_func;
16411 #endif
16412 #ifdef __cplusplus
16414 #endif
16417 main ()
16419 return f != $ac_func;
16421 return 0;
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag"
16434 || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 eval "$as_ac_var=yes"
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no"
16453 rm -f conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16458 if test `eval echo '${'$as_ac_var'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16461 _ACEOF
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <sys/time.h>
16470 main ()
16472 gettimeofday((struct timeval*)0,(struct timezone*)0);
16474 return 0;
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16505 cat >>confdefs.h <<\_ACEOF
16506 #define GETTIMEOFDAY_NO_TZ 1
16507 _ACEOF
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16514 done
16517 echo "$as_me:$LINENO: checking for major" >&5
16518 echo $ECHO_N "checking for major... $ECHO_C" >&6
16519 cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h. */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16526 #if defined(MAJOR_IN_MKDEV)
16527 #include <sys/mkdev.h>
16528 #elif defined(MAJOR_IN_SYSMACROS)
16529 #include <sys/sysmacros.h>
16530 #else
16531 #include <sys/types.h>
16532 #endif
16535 main ()
16538 makedev(major(0),minor(0));
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest$ac_exeext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16568 cat >>confdefs.h <<\_ACEOF
16569 #define HAVE_DEVICE_MACROS 1
16570 _ACEOF
16572 echo "$as_me:$LINENO: result: yes" >&5
16573 echo "${ECHO_T}yes" >&6
16575 else
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16580 echo "$as_me:$LINENO: result: no" >&5
16581 echo "${ECHO_T}no" >&6
16584 rm -f conftest.err conftest.$ac_objext \
16585 conftest$ac_exeext conftest.$ac_ext
16587 # On OSF/1 V5.1, getaddrinfo is available, but a define
16588 # for [no]getaddrinfo in netdb.h.
16589 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16590 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16591 cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h. */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16598 #include <sys/types.h>
16599 #include <sys/socket.h>
16600 #include <netdb.h>
16601 #include <stdio.h>
16604 main ()
16607 getaddrinfo(NULL, NULL, NULL, NULL);
16610 return 0;
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16636 echo "$as_me:$LINENO: result: yes" >&5
16637 echo "${ECHO_T}yes" >&6
16638 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16639 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16640 if test "$cross_compiling" = yes; then
16641 echo "$as_me:$LINENO: result: buggy" >&5
16642 echo "${ECHO_T}buggy" >&6
16643 buggygetaddrinfo=yes
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 #include <sys/types.h>
16653 #include <netdb.h>
16654 #include <string.h>
16655 #include <sys/socket.h>
16656 #include <netinet/in.h>
16658 main()
16660 int passive, gaierr, inet4 = 0, inet6 = 0;
16661 struct addrinfo hints, *ai, *aitop;
16662 char straddr[INET6_ADDRSTRLEN], strport[16];
16664 for (passive = 0; passive <= 1; passive++) {
16665 memset(&hints, 0, sizeof(hints));
16666 hints.ai_family = AF_UNSPEC;
16667 hints.ai_flags = passive ? AI_PASSIVE : 0;
16668 hints.ai_socktype = SOCK_STREAM;
16669 hints.ai_protocol = IPPROTO_TCP;
16670 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16671 (void)gai_strerror(gaierr);
16672 goto bad;
16674 for (ai = aitop; ai; ai = ai->ai_next) {
16675 if (ai->ai_addr == NULL ||
16676 ai->ai_addrlen == 0 ||
16677 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16678 straddr, sizeof(straddr), strport, sizeof(strport),
16679 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16680 goto bad;
16682 switch (ai->ai_family) {
16683 case AF_INET:
16684 if (strcmp(strport, "54321") != 0) {
16685 goto bad;
16687 if (passive) {
16688 if (strcmp(straddr, "0.0.0.0") != 0) {
16689 goto bad;
16691 } else {
16692 if (strcmp(straddr, "127.0.0.1") != 0) {
16693 goto bad;
16696 inet4++;
16697 break;
16698 case AF_INET6:
16699 if (strcmp(strport, "54321") != 0) {
16700 goto bad;
16702 if (passive) {
16703 if (strcmp(straddr, "::") != 0) {
16704 goto bad;
16706 } else {
16707 if (strcmp(straddr, "::1") != 0) {
16708 goto bad;
16711 inet6++;
16712 break;
16713 case AF_UNSPEC:
16714 goto bad;
16715 break;
16716 default:
16717 /* another family support? */
16718 break;
16723 if (!(inet4 == 0 || inet4 == 2))
16724 goto bad;
16725 if (!(inet6 == 0 || inet6 == 2))
16726 goto bad;
16728 if (aitop)
16729 freeaddrinfo(aitop);
16730 exit(0);
16732 bad:
16733 if (aitop)
16734 freeaddrinfo(aitop);
16735 exit(1);
16738 _ACEOF
16739 rm -f conftest$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 echo "$as_me:$LINENO: result: good" >&5
16751 echo "${ECHO_T}good" >&6
16752 buggygetaddrinfo=no
16753 else
16754 echo "$as_me: program exited with status $ac_status" >&5
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ( exit $ac_status )
16759 echo "$as_me:$LINENO: result: buggy" >&5
16760 echo "${ECHO_T}buggy" >&6
16761 buggygetaddrinfo=yes
16763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16770 echo "$as_me:$LINENO: result: no" >&5
16771 echo "${ECHO_T}no" >&6
16772 buggygetaddrinfo=yes
16775 rm -f conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
16778 if test "$buggygetaddrinfo" = "yes"; then
16779 if test "$ipv6" = "yes"; then
16780 echo 'Fatal: You must get working getaddrinfo() function.'
16781 echo ' or you can specify "--disable-ipv6"'.
16782 exit 1
16784 else
16786 cat >>confdefs.h <<\_ACEOF
16787 #define HAVE_GETADDRINFO 1
16788 _ACEOF
16792 for ac_func in getnameinfo
16794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795 echo "$as_me:$LINENO: checking for $ac_func" >&5
16796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16797 if eval "test \"\${$as_ac_var+set}\" = set"; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16808 #define $ac_func innocuous_$ac_func
16810 /* System header to define __stub macros and hopefully few prototypes,
16811 which can conflict with char $ac_func (); below.
16812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16813 <limits.h> exists even on freestanding compilers. */
16815 #ifdef __STDC__
16816 # include <limits.h>
16817 #else
16818 # include <assert.h>
16819 #endif
16821 #undef $ac_func
16823 /* Override any gcc2 internal prototype to avoid an error. */
16824 #ifdef __cplusplus
16825 extern "C"
16827 #endif
16828 /* We use char because int might match the return type of a gcc2
16829 builtin and then its argument prototype would still apply. */
16830 char $ac_func ();
16831 /* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
16834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16835 choke me
16836 #else
16837 char (*f) () = $ac_func;
16838 #endif
16839 #ifdef __cplusplus
16841 #endif
16844 main ()
16846 return f != $ac_func;
16848 return 0;
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>conftest.er1
16854 ac_status=$?
16855 grep -v '^ *+' conftest.er1 >conftest.err
16856 rm -f conftest.er1
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -z "$ac_c_werror_flag"
16861 || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest$ac_exeext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 eval "$as_ac_var=yes"
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no"
16880 rm -f conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16885 if test `eval echo '${'$as_ac_var'}'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16888 _ACEOF
16891 done
16894 # checks for structures
16895 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16897 if test "${ac_cv_header_time+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 #include <sys/types.h>
16907 #include <sys/time.h>
16908 #include <time.h>
16911 main ()
16913 if ((struct tm *) 0)
16914 return 0;
16916 return 0;
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_header_time=yes
16942 else
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_header_time=no
16948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16950 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16951 echo "${ECHO_T}$ac_cv_header_time" >&6
16952 if test $ac_cv_header_time = yes; then
16954 cat >>confdefs.h <<\_ACEOF
16955 #define TIME_WITH_SYS_TIME 1
16956 _ACEOF
16960 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16961 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16962 if test "${ac_cv_struct_tm+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h. */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 #include <sys/types.h>
16972 #include <time.h>
16975 main ()
16977 struct tm *tp; tp->tm_sec;
16979 return 0;
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -z "$ac_c_werror_flag"
16992 || test ! -s conftest.err'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest.$ac_objext'
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 ac_cv_struct_tm=time.h
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_cv_struct_tm=sys/time.h
17011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17013 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17014 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17015 if test $ac_cv_struct_tm = sys/time.h; then
17017 cat >>confdefs.h <<\_ACEOF
17018 #define TM_IN_SYS_TIME 1
17019 _ACEOF
17023 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17024 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17025 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028 cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h. */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 #include <sys/types.h>
17035 #include <$ac_cv_struct_tm>
17039 main ()
17041 static struct tm ac_aggr;
17042 if (ac_aggr.tm_zone)
17043 return 0;
17045 return 0;
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_member_struct_tm_tm_zone=yes
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 #include <sys/types.h>
17082 #include <$ac_cv_struct_tm>
17086 main ()
17088 static struct tm ac_aggr;
17089 if (sizeof ac_aggr.tm_zone)
17090 return 0;
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097 (eval $ac_compile) 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_member_struct_tm_tm_zone=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_cv_member_struct_tm_tm_zone=no
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17129 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17130 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_STRUCT_TM_TM_ZONE 1
17134 _ACEOF
17139 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_TM_ZONE 1
17143 _ACEOF
17145 else
17146 echo "$as_me:$LINENO: checking for tzname" >&5
17147 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17148 if test "${ac_cv_var_tzname+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 #include <time.h>
17158 #ifndef tzname /* For SGI. */
17159 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17160 #endif
17163 main ()
17165 atoi(*tzname);
17167 return 0;
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_var_tzname=yes
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_var_tzname=no
17199 rm -f conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17202 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17203 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17204 if test $ac_cv_var_tzname = yes; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_TZNAME 1
17208 _ACEOF
17213 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17214 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17215 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 $ac_includes_default
17226 main ()
17228 static struct stat ac_aggr;
17229 if (ac_aggr.st_rdev)
17230 return 0;
17232 return 0;
17234 _ACEOF
17235 rm -f conftest.$ac_objext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17237 (eval $ac_compile) 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag"
17245 || test ! -s conftest.err'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_member_struct_stat_st_rdev=yes
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17270 main ()
17272 static struct stat ac_aggr;
17273 if (sizeof ac_aggr.st_rdev)
17274 return 0;
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_member_struct_stat_st_rdev=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_member_struct_stat_st_rdev=no
17308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17313 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17314 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_STRUCT_STAT_ST_RDEV 1
17318 _ACEOF
17323 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17324 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17325 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328 cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h. */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 $ac_includes_default
17336 main ()
17338 static struct stat ac_aggr;
17339 if (ac_aggr.st_blksize)
17340 return 0;
17342 return 0;
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_member_struct_stat_st_blksize=yes
17368 else
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17380 main ()
17382 static struct stat ac_aggr;
17383 if (sizeof ac_aggr.st_blksize)
17384 return 0;
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest.$ac_objext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_member_struct_stat_st_blksize=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_member_struct_stat_st_blksize=no
17418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17423 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17424 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17428 _ACEOF
17433 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17434 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17435 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 $ac_includes_default
17446 main ()
17448 static struct stat ac_aggr;
17449 if (ac_aggr.st_flags)
17450 return 0;
17452 return 0;
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17457 (eval $ac_compile) 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_member_struct_stat_st_flags=yes
17478 else
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17490 main ()
17492 static struct stat ac_aggr;
17493 if (sizeof ac_aggr.st_flags)
17494 return 0;
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_member_struct_stat_st_flags=yes
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_member_struct_stat_st_flags=no
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17533 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17534 if test $ac_cv_member_struct_stat_st_flags = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17538 _ACEOF
17543 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17544 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17545 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17556 main ()
17558 static struct stat ac_aggr;
17559 if (ac_aggr.st_gen)
17560 return 0;
17562 return 0;
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_member_struct_stat_st_gen=yes
17588 else
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17600 main ()
17602 static struct stat ac_aggr;
17603 if (sizeof ac_aggr.st_gen)
17604 return 0;
17606 return 0;
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest.$ac_objext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_member_struct_stat_st_gen=yes
17632 else
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 ac_cv_member_struct_stat_st_gen=no
17638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17642 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17643 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17644 if test $ac_cv_member_struct_stat_st_gen = yes; then
17646 cat >>confdefs.h <<_ACEOF
17647 #define HAVE_STRUCT_STAT_ST_GEN 1
17648 _ACEOF
17653 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17654 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17655 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 $ac_includes_default
17666 main ()
17668 static struct stat ac_aggr;
17669 if (ac_aggr.st_birthtime)
17670 return 0;
17672 return 0;
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_cv_member_struct_stat_st_birthtime=yes
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17710 main ()
17712 static struct stat ac_aggr;
17713 if (sizeof ac_aggr.st_birthtime)
17714 return 0;
17716 return 0;
17718 _ACEOF
17719 rm -f conftest.$ac_objext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17721 (eval $ac_compile) 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_member_struct_stat_st_birthtime=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_member_struct_stat_st_birthtime=no
17748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17753 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17754 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17758 _ACEOF
17763 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17764 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17765 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 $ac_includes_default
17776 main ()
17778 static struct stat ac_aggr;
17779 if (ac_aggr.st_blocks)
17780 return 0;
17782 return 0;
17784 _ACEOF
17785 rm -f conftest.$ac_objext
17786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17787 (eval $ac_compile) 2>conftest.er1
17788 ac_status=$?
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag"
17795 || test ! -s conftest.err'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try='test -s conftest.$ac_objext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_member_struct_stat_st_blocks=yes
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 $ac_includes_default
17820 main ()
17822 static struct stat ac_aggr;
17823 if (sizeof ac_aggr.st_blocks)
17824 return 0;
17826 return 0;
17828 _ACEOF
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_member_struct_stat_st_blocks=yes
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_cv_member_struct_stat_st_blocks=no
17858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17863 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17864 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17868 _ACEOF
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_ST_BLOCKS 1
17873 _ACEOF
17875 else
17876 case $LIBOBJS in
17877 "fileblocks.$ac_objext" | \
17878 *" fileblocks.$ac_objext" | \
17879 "fileblocks.$ac_objext "* | \
17880 *" fileblocks.$ac_objext "* ) ;;
17881 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17882 esac
17888 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17889 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17890 if test "${ac_cv_header_time_altzone+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 #include <time.h>
17901 main ()
17903 return altzone;
17905 return 0;
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_header_time_altzone=yes
17931 else
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17935 ac_cv_header_time_altzone=no
17937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17940 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17941 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17942 if test $ac_cv_header_time_altzone = yes; then
17944 cat >>confdefs.h <<\_ACEOF
17945 #define HAVE_ALTZONE 1
17946 _ACEOF
17950 was_it_defined=no
17951 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17952 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h. */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17960 #include <sys/types.h>
17961 #include <sys/select.h>
17962 #include <sys/time.h>
17965 main ()
17969 return 0;
17971 _ACEOF
17972 rm -f conftest.$ac_objext
17973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17974 (eval $ac_compile) 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_c_werror_flag"
17982 || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest.$ac_objext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17996 cat >>confdefs.h <<\_ACEOF
17997 #define SYS_SELECT_WITH_SYS_TIME 1
17998 _ACEOF
18000 was_it_defined=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18008 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18009 echo "${ECHO_T}$was_it_defined" >&6
18011 echo "$as_me:$LINENO: checking for addrinfo" >&5
18012 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18013 if test "${ac_cv_struct_addrinfo+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h. */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 # include <netdb.h>
18025 main ()
18027 struct addrinfo a
18029 return 0;
18031 _ACEOF
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_struct_addrinfo=yes
18055 else
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 ac_cv_struct_addrinfo=no
18061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18064 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18065 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18066 if test $ac_cv_struct_addrinfo = yes; then
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_ADDRINFO 1
18070 _ACEOF
18074 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18075 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18076 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079 cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h. */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18086 # include <sys/types.h>
18087 # include <sys/socket.h>
18089 main ()
18091 struct sockaddr_storage s
18093 return 0;
18095 _ACEOF
18096 rm -f conftest.$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_struct_sockaddr_storage=yes
18119 else
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_cv_struct_sockaddr_storage=no
18125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18128 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18129 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18130 if test $ac_cv_struct_sockaddr_storage = yes; then
18132 cat >>confdefs.h <<\_ACEOF
18133 #define HAVE_SOCKADDR_STORAGE 1
18134 _ACEOF
18138 # checks for compiler characteristics
18141 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18142 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18143 if test "${ac_cv_c_char_unsigned+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 $ac_includes_default
18154 main ()
18156 static int test_array [1 - 2 * !(((char) -1) < 0)];
18157 test_array [0] = 0
18160 return 0;
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_c_char_unsigned=no
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_c_char_unsigned=yes
18192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18194 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18195 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18196 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define __CHAR_UNSIGNED__ 1
18199 _ACEOF
18203 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18204 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18205 if test "${ac_cv_c_const+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18216 main ()
18218 /* FIXME: Include the comments suggested by Paul. */
18219 #ifndef __cplusplus
18220 /* Ultrix mips cc rejects this. */
18221 typedef int charset[2];
18222 const charset x;
18223 /* SunOS 4.1.1 cc rejects this. */
18224 char const *const *ccp;
18225 char **p;
18226 /* NEC SVR4.0.2 mips cc rejects this. */
18227 struct point {int x, y;};
18228 static struct point const zero = {0,0};
18229 /* AIX XL C 1.02.0.0 rejects this.
18230 It does not let you subtract one const X* pointer from another in
18231 an arm of an if-expression whose if-part is not a constant
18232 expression */
18233 const char *g = "string";
18234 ccp = &g + (g ? g-g : 0);
18235 /* HPUX 7.0 cc rejects these. */
18236 ++ccp;
18237 p = (char**) ccp;
18238 ccp = (char const *const *) p;
18239 { /* SCO 3.2v4 cc rejects this. */
18240 char *t;
18241 char const *s = 0 ? (char *) 0 : (char const *) 0;
18243 *t++ = 0;
18245 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18246 int x[] = {25, 17};
18247 const int *foo = &x[0];
18248 ++foo;
18250 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18251 typedef const int *iptr;
18252 iptr p = 0;
18253 ++p;
18255 { /* AIX XL C 1.02.0.0 rejects this saying
18256 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18257 struct s { int j; const int *ap[3]; };
18258 struct s *b; b->j = 5;
18260 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18261 const int foo = 10;
18263 #endif
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag"
18279 || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_c_const=yes
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_c_const=no
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18300 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18301 echo "${ECHO_T}$ac_cv_c_const" >&6
18302 if test $ac_cv_c_const = no; then
18304 cat >>confdefs.h <<\_ACEOF
18305 #define const
18306 _ACEOF
18311 works=no
18312 echo "$as_me:$LINENO: checking for working volatile" >&5
18313 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h. */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18322 main ()
18324 volatile int x; x = 0;
18326 return 0;
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 works=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18357 cat >>confdefs.h <<\_ACEOF
18358 #define volatile
18359 _ACEOF
18363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18364 echo "$as_me:$LINENO: result: $works" >&5
18365 echo "${ECHO_T}$works" >&6
18367 works=no
18368 echo "$as_me:$LINENO: checking for working signed char" >&5
18369 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18378 main ()
18380 signed char c;
18382 return 0;
18384 _ACEOF
18385 rm -f conftest.$ac_objext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18387 (eval $ac_compile) 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18407 works=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18413 cat >>confdefs.h <<\_ACEOF
18414 #define signed
18415 _ACEOF
18419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420 echo "$as_me:$LINENO: result: $works" >&5
18421 echo "${ECHO_T}$works" >&6
18423 have_prototypes=no
18424 echo "$as_me:$LINENO: checking for prototypes" >&5
18425 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 int foo(int x) { return 0; }
18434 main ()
18436 return foo(10);
18438 return 0;
18440 _ACEOF
18441 rm -f conftest.$ac_objext
18442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18443 (eval $ac_compile) 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_c_werror_flag"
18451 || test ! -s conftest.err'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest.$ac_objext'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; }; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_PROTOTYPES 1
18467 _ACEOF
18469 have_prototypes=yes
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18477 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18478 echo "${ECHO_T}$have_prototypes" >&6
18480 works=no
18481 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18482 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 #include <stdarg.h>
18491 int foo(int x, ...) {
18492 va_list va;
18493 va_start(va, x);
18494 va_arg(va, int);
18495 va_arg(va, char *);
18496 va_arg(va, double);
18497 return 0;
18501 main ()
18503 return foo(10, "", 3.14);
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE_STDARG_PROTOTYPES 1
18534 _ACEOF
18536 works=yes
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18544 echo "$as_me:$LINENO: result: $works" >&5
18545 echo "${ECHO_T}$works" >&6
18547 # check for socketpair
18548 echo "$as_me:$LINENO: checking for socketpair" >&5
18549 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 #include <sys/types.h>
18558 #include <sys/socket.h>
18561 main ()
18563 void *x=socketpair
18565 return 0;
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>conftest.er1
18571 ac_status=$?
18572 grep -v '^ *+' conftest.er1 >conftest.err
18573 rm -f conftest.er1
18574 cat conftest.err >&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -z "$ac_c_werror_flag"
18578 || test ! -s conftest.err'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest.$ac_objext'
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18591 cat >>confdefs.h <<\_ACEOF
18592 #define HAVE_SOCKETPAIR 1
18593 _ACEOF
18595 echo "$as_me:$LINENO: result: yes" >&5
18596 echo "${ECHO_T}yes" >&6
18597 else
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18601 echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6
18605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18607 # check if sockaddr has sa_len member
18608 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18609 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18610 cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h. */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 #include <sys/types.h>
18617 #include <sys/socket.h>
18619 main ()
18621 struct sockaddr x;
18622 x.sa_len = 0;
18624 return 0;
18626 _ACEOF
18627 rm -f conftest.$ac_objext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629 (eval $ac_compile) 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag"
18637 || test ! -s conftest.err'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest.$ac_objext'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 echo "$as_me:$LINENO: result: yes" >&5
18650 echo "${ECHO_T}yes" >&6
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE_SOCKADDR_SA_LEN 1
18654 _ACEOF
18656 else
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 echo "$as_me:$LINENO: result: no" >&5
18661 echo "${ECHO_T}no" >&6
18663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 va_list_is_array=no
18666 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18667 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 #ifdef HAVE_STDARG_PROTOTYPES
18676 #include <stdarg.h>
18677 #else
18678 #include <varargs.h>
18679 #endif
18682 main ()
18684 va_list list1, list2; list1 = list2;
18686 return 0;
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691 (eval $ac_compile) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try='test -z "$ac_c_werror_flag"
18699 || test ! -s conftest.err'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18718 cat >>confdefs.h <<\_ACEOF
18719 #define VA_LIST_IS_ARRAY 1
18720 _ACEOF
18722 va_list_is_array=yes
18725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18726 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18727 echo "${ECHO_T}$va_list_is_array" >&6
18729 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18733 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18734 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18735 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738 cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h. */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18744 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18746 #define gethostbyname_r innocuous_gethostbyname_r
18748 /* System header to define __stub macros and hopefully few prototypes,
18749 which can conflict with char gethostbyname_r (); below.
18750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751 <limits.h> exists even on freestanding compilers. */
18753 #ifdef __STDC__
18754 # include <limits.h>
18755 #else
18756 # include <assert.h>
18757 #endif
18759 #undef gethostbyname_r
18761 /* Override any gcc2 internal prototype to avoid an error. */
18762 #ifdef __cplusplus
18763 extern "C"
18765 #endif
18766 /* We use char because int might match the return type of a gcc2
18767 builtin and then its argument prototype would still apply. */
18768 char gethostbyname_r ();
18769 /* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18773 choke me
18774 #else
18775 char (*f) () = gethostbyname_r;
18776 #endif
18777 #ifdef __cplusplus
18779 #endif
18782 main ()
18784 return f != gethostbyname_r;
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18791 (eval $ac_link) 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -z "$ac_c_werror_flag"
18799 || test ! -s conftest.err'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try='test -s conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_func_gethostbyname_r=yes
18812 else
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18816 ac_cv_func_gethostbyname_r=no
18818 rm -f conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18822 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18823 if test $ac_cv_func_gethostbyname_r = yes; then
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE_GETHOSTBYNAME_R 1
18827 _ACEOF
18829 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18830 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18831 OLD_CFLAGS=$CFLAGS
18832 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18840 # include <netdb.h>
18843 main ()
18846 char *name;
18847 struct hostent *he, *res;
18848 char buffer[2048];
18849 int buflen = 2048;
18850 int h_errnop;
18852 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18855 return 0;
18857 _ACEOF
18858 rm -f conftest.$ac_objext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18860 (eval $ac_compile) 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag"
18868 || test ! -s conftest.err'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest.$ac_objext'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_GETHOSTBYNAME_R 1
18883 _ACEOF
18886 cat >>confdefs.h <<\_ACEOF
18887 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18888 _ACEOF
18890 echo "$as_me:$LINENO: result: yes" >&5
18891 echo "${ECHO_T}yes" >&6
18893 else
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18898 echo "$as_me:$LINENO: result: no" >&5
18899 echo "${ECHO_T}no" >&6
18900 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18901 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h. */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 # include <netdb.h>
18912 main ()
18915 char *name;
18916 struct hostent *he;
18917 char buffer[2048];
18918 int buflen = 2048;
18919 int h_errnop;
18921 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18924 return 0;
18926 _ACEOF
18927 rm -f conftest.$ac_objext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929 (eval $ac_compile) 2>conftest.er1
18930 ac_status=$?
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -z "$ac_c_werror_flag"
18937 || test ! -s conftest.err'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_GETHOSTBYNAME_R 1
18952 _ACEOF
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18957 _ACEOF
18959 echo "$as_me:$LINENO: result: yes" >&5
18960 echo "${ECHO_T}yes" >&6
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18967 echo "$as_me:$LINENO: result: no" >&5
18968 echo "${ECHO_T}no" >&6
18969 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18970 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 # include <netdb.h>
18981 main ()
18984 char *name;
18985 struct hostent *he;
18986 struct hostent_data data;
18988 (void) gethostbyname_r(name, he, &data);
18991 return 0;
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18996 (eval $ac_compile) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_GETHOSTBYNAME_R 1
19019 _ACEOF
19022 cat >>confdefs.h <<\_ACEOF
19023 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19024 _ACEOF
19026 echo "$as_me:$LINENO: result: yes" >&5
19027 echo "${ECHO_T}yes" >&6
19029 else
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19034 echo "$as_me:$LINENO: result: no" >&5
19035 echo "${ECHO_T}no" >&6
19038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19045 CFLAGS=$OLD_CFLAGS
19047 else
19050 for ac_func in gethostbyname
19052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19053 echo "$as_me:$LINENO: checking for $ac_func" >&5
19054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19055 if eval "test \"\${$as_ac_var+set}\" = set"; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19066 #define $ac_func innocuous_$ac_func
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char $ac_func (); below.
19070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071 <limits.h> exists even on freestanding compilers. */
19073 #ifdef __STDC__
19074 # include <limits.h>
19075 #else
19076 # include <assert.h>
19077 #endif
19079 #undef $ac_func
19081 /* Override any gcc2 internal prototype to avoid an error. */
19082 #ifdef __cplusplus
19083 extern "C"
19085 #endif
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19088 char $ac_func ();
19089 /* The GNU C library defines this for functions which it implements
19090 to always fail with ENOSYS. Some functions are actually named
19091 something starting with __ and the normal name is an alias. */
19092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19093 choke me
19094 #else
19095 char (*f) () = $ac_func;
19096 #endif
19097 #ifdef __cplusplus
19099 #endif
19102 main ()
19104 return f != $ac_func;
19106 return 0;
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19112 ac_status=$?
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 eval "$as_ac_var=yes"
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 eval "$as_ac_var=no"
19138 rm -f conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext conftest.$ac_ext
19141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19143 if test `eval echo '${'$as_ac_var'}'` = yes; then
19144 cat >>confdefs.h <<_ACEOF
19145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19146 _ACEOF
19149 done
19160 # checks for system services
19161 # (none yet)
19163 # Linux requires this for correct f.p. operations
19164 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19165 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19166 if test "${ac_cv_func___fpu_control+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define __fpu_control innocuous___fpu_control
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char __fpu_control (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19184 #ifdef __STDC__
19185 # include <limits.h>
19186 #else
19187 # include <assert.h>
19188 #endif
19190 #undef __fpu_control
19192 /* Override any gcc2 internal prototype to avoid an error. */
19193 #ifdef __cplusplus
19194 extern "C"
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19199 char __fpu_control ();
19200 /* The GNU C library defines this for functions which it implements
19201 to always fail with ENOSYS. Some functions are actually named
19202 something starting with __ and the normal name is an alias. */
19203 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19204 choke me
19205 #else
19206 char (*f) () = __fpu_control;
19207 #endif
19208 #ifdef __cplusplus
19210 #endif
19213 main ()
19215 return f != __fpu_control;
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222 (eval $ac_link) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_func___fpu_control=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_func___fpu_control=no
19249 rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19252 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19253 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19254 if test $ac_cv_func___fpu_control = yes; then
19256 else
19258 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19259 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19260 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263 ac_check_lib_save_LIBS=$LIBS
19264 LIBS="-lieee $LIBS"
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19272 /* Override any gcc2 internal prototype to avoid an error. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 /* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278 char __fpu_control ();
19280 main ()
19282 __fpu_control ();
19284 return 0;
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_lib_ieee___fpu_control=yes
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_lib_ieee___fpu_control=no
19316 rm -f conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19320 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19321 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19322 if test $ac_cv_lib_ieee___fpu_control = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_LIBIEEE 1
19325 _ACEOF
19327 LIBS="-lieee $LIBS"
19335 # Check for --with-fpectl
19336 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19337 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19339 # Check whether --with-fpectl or --without-fpectl was given.
19340 if test "${with_fpectl+set}" = set; then
19341 withval="$with_fpectl"
19343 if test "$withval" != no
19344 then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define WANT_SIGFPE_HANDLER 1
19348 _ACEOF
19350 echo "$as_me:$LINENO: result: yes" >&5
19351 echo "${ECHO_T}yes" >&6
19352 else echo "$as_me:$LINENO: result: no" >&5
19353 echo "${ECHO_T}no" >&6
19355 else
19356 echo "$as_me:$LINENO: result: no" >&5
19357 echo "${ECHO_T}no" >&6
19360 # check for --with-libm=...
19362 case $ac_sys_system in
19363 Darwin) ;;
19364 BeOS) ;;
19365 *) LIBM=-lm
19366 esac
19367 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19368 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19370 # Check whether --with-libm or --without-libm was given.
19371 if test "${with_libm+set}" = set; then
19372 withval="$with_libm"
19374 if test "$withval" = no
19375 then LIBM=
19376 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19377 echo "${ECHO_T}force LIBM empty" >&6
19378 elif test "$withval" != yes
19379 then LIBM=$withval
19380 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19381 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19382 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19383 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19384 { (exit 1); exit 1; }; }
19386 else
19387 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19388 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19391 # check for --with-libc=...
19393 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19394 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19396 # Check whether --with-libc or --without-libc was given.
19397 if test "${with_libc+set}" = set; then
19398 withval="$with_libc"
19400 if test "$withval" = no
19401 then LIBC=
19402 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19403 echo "${ECHO_T}force LIBC empty" >&6
19404 elif test "$withval" != yes
19405 then LIBC=$withval
19406 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19407 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19408 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19409 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19410 { (exit 1); exit 1; }; }
19412 else
19413 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19414 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19417 # check for hypot() in math library
19418 LIBS_SAVE=$LIBS
19419 LIBS="$LIBS $LIBM"
19421 for ac_func in hypot
19423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19424 echo "$as_me:$LINENO: checking for $ac_func" >&5
19425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19426 if eval "test \"\${$as_ac_var+set}\" = set"; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19437 #define $ac_func innocuous_$ac_func
19439 /* System header to define __stub macros and hopefully few prototypes,
19440 which can conflict with char $ac_func (); below.
19441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19442 <limits.h> exists even on freestanding compilers. */
19444 #ifdef __STDC__
19445 # include <limits.h>
19446 #else
19447 # include <assert.h>
19448 #endif
19450 #undef $ac_func
19452 /* Override any gcc2 internal prototype to avoid an error. */
19453 #ifdef __cplusplus
19454 extern "C"
19456 #endif
19457 /* We use char because int might match the return type of a gcc2
19458 builtin and then its argument prototype would still apply. */
19459 char $ac_func ();
19460 /* The GNU C library defines this for functions which it implements
19461 to always fail with ENOSYS. Some functions are actually named
19462 something starting with __ and the normal name is an alias. */
19463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19464 choke me
19465 #else
19466 char (*f) () = $ac_func;
19467 #endif
19468 #ifdef __cplusplus
19470 #endif
19473 main ()
19475 return f != $ac_func;
19477 return 0;
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>conftest.er1
19483 ac_status=$?
19484 grep -v '^ *+' conftest.er1 >conftest.err
19485 rm -f conftest.er1
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 eval "$as_ac_var=yes"
19503 else
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 eval "$as_ac_var=no"
19509 rm -f conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19514 if test `eval echo '${'$as_ac_var'}'` = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19517 _ACEOF
19519 else
19520 case $LIBOBJS in
19521 "$ac_func.$ac_objext" | \
19522 *" $ac_func.$ac_objext" | \
19523 "$ac_func.$ac_objext "* | \
19524 *" $ac_func.$ac_objext "* ) ;;
19525 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19526 esac
19529 done
19532 LIBS=$LIBS_SAVE
19534 # check for wchar.h
19535 if test "${ac_cv_header_wchar_h+set}" = set; then
19536 echo "$as_me:$LINENO: checking for wchar.h" >&5
19537 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19538 if test "${ac_cv_header_wchar_h+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19542 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19543 else
19544 # Is the header compilable?
19545 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19546 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 $ac_includes_default
19554 #include <wchar.h>
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_header_compiler=yes
19579 else
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_header_compiler=no
19585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19587 echo "${ECHO_T}$ac_header_compiler" >&6
19589 # Is the header present?
19590 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19591 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 #include <wchar.h>
19599 _ACEOF
19600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } >/dev/null; then
19608 if test -s conftest.err; then
19609 ac_cpp_err=$ac_c_preproc_warn_flag
19610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19611 else
19612 ac_cpp_err=
19614 else
19615 ac_cpp_err=yes
19617 if test -z "$ac_cpp_err"; then
19618 ac_header_preproc=yes
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_header_preproc=no
19625 rm -f conftest.err conftest.$ac_ext
19626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19627 echo "${ECHO_T}$ac_header_preproc" >&6
19629 # So? What about this header?
19630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19631 yes:no: )
19632 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19633 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19635 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19636 ac_header_preproc=yes
19638 no:yes:* )
19639 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19640 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19642 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19644 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19646 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19648 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19650 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19652 cat <<\_ASBOX
19653 ## ------------------------------------------------ ##
19654 ## Report this to http://www.python.org/python-bugs ##
19655 ## ------------------------------------------------ ##
19656 _ASBOX
19658 sed "s/^/$as_me: WARNING: /" >&2
19660 esac
19661 echo "$as_me:$LINENO: checking for wchar.h" >&5
19662 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19663 if test "${ac_cv_header_wchar_h+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666 ac_cv_header_wchar_h=$ac_header_preproc
19668 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19669 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19672 if test $ac_cv_header_wchar_h = yes; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_WCHAR_H 1
19677 _ACEOF
19679 wchar_h="yes"
19681 else
19682 wchar_h="no"
19688 # determine wchar_t size
19689 if test "$wchar_h" = yes
19690 then
19691 echo "$as_me:$LINENO: checking for wchar_t" >&5
19692 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19693 if test "${ac_cv_type_wchar_t+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 #include <wchar.h>
19705 main ()
19707 if ((wchar_t *) 0)
19708 return 0;
19709 if (sizeof (wchar_t))
19710 return 0;
19712 return 0;
19714 _ACEOF
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_type_wchar_t=yes
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_cv_type_wchar_t=no
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19747 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19749 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19750 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19751 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 if test "$ac_cv_type_wchar_t" = yes; then
19755 # The cast to unsigned long works around a bug in the HP C Compiler
19756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19758 # This bug is HP SR number 8606223364.
19759 if test "$cross_compiling" = yes; then
19760 # Depending upon the size, compute the lo and hi bounds.
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 #include <wchar.h>
19770 main ()
19772 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19773 test_array [0] = 0
19776 return 0;
19778 _ACEOF
19779 rm -f conftest.$ac_objext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781 (eval $ac_compile) 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_lo=0 ac_mid=0
19802 while :; do
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 #include <wchar.h>
19812 main ()
19814 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19815 test_array [0] = 0
19818 return 0;
19820 _ACEOF
19821 rm -f conftest.$ac_objext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823 (eval $ac_compile) 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
19830 { ac_try='test -z "$ac_c_werror_flag"
19831 || test ! -s conftest.err'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest.$ac_objext'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_hi=$ac_mid; break
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 ac_lo=`expr $ac_mid + 1`
19849 if test $ac_lo -le $ac_mid; then
19850 ac_lo= ac_hi=
19851 break
19853 ac_mid=`expr 2 '*' $ac_mid + 1`
19855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19856 done
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h. */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867 #include <wchar.h>
19870 main ()
19872 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19873 test_array [0] = 0
19876 return 0;
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag"
19889 || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_hi=-1 ac_mid=-1
19902 while :; do
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h. */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 #include <wchar.h>
19912 main ()
19914 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19915 test_array [0] = 0
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -z "$ac_c_werror_flag"
19931 || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_lo=$ac_mid; break
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_hi=`expr '(' $ac_mid ')' - 1`
19949 if test $ac_mid -le $ac_hi; then
19950 ac_lo= ac_hi=
19951 break
19953 ac_mid=`expr 2 '*' $ac_mid`
19955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19956 done
19957 else
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_lo= ac_hi=
19963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19966 # Binary search between lo and hi bounds.
19967 while test "x$ac_lo" != "x$ac_hi"; do
19968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 #include <wchar.h>
19978 main ()
19980 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19981 test_array [0] = 0
19984 return 0;
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_hi=$ac_mid
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_lo=`expr '(' $ac_mid ')' + 1`
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 done
20018 case $ac_lo in
20019 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20021 See \`config.log' for more details." >&5
20022 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20023 See \`config.log' for more details." >&2;}
20024 { (exit 1); exit 1; }; } ;;
20025 esac
20026 else
20027 if test "$cross_compiling" = yes; then
20028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20029 See \`config.log' for more details." >&5
20030 echo "$as_me: error: cannot run test program while cross compiling
20031 See \`config.log' for more details." >&2;}
20032 { (exit 1); exit 1; }; }
20033 else
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <wchar.h>
20042 long longval () { return (long) (sizeof (wchar_t)); }
20043 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20044 #include <stdio.h>
20045 #include <stdlib.h>
20047 main ()
20050 FILE *f = fopen ("conftest.val", "w");
20051 if (! f)
20052 exit (1);
20053 if (((long) (sizeof (wchar_t))) < 0)
20055 long i = longval ();
20056 if (i != ((long) (sizeof (wchar_t))))
20057 exit (1);
20058 fprintf (f, "%ld\n", i);
20060 else
20062 unsigned long i = ulongval ();
20063 if (i != ((long) (sizeof (wchar_t))))
20064 exit (1);
20065 fprintf (f, "%lu\n", i);
20067 exit (ferror (f) || fclose (f) != 0);
20070 return 0;
20072 _ACEOF
20073 rm -f conftest$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075 (eval $ac_link) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_sizeof_wchar_t=`cat conftest.val`
20085 else
20086 echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ( exit $ac_status )
20091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20092 See \`config.log' for more details." >&5
20093 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20094 See \`config.log' for more details." >&2;}
20095 { (exit 1); exit 1; }; }
20097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20100 rm -f conftest.val
20101 else
20102 ac_cv_sizeof_wchar_t=0
20105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20106 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20107 cat >>confdefs.h <<_ACEOF
20108 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20109 _ACEOF
20114 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20115 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20116 have_ucs4_tcl=no
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20124 #include <tcl.h>
20125 #if TCL_UTF_MAX != 6
20126 # error "NOT UCS4_TCL"
20127 #endif
20129 main ()
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20160 cat >>confdefs.h <<\_ACEOF
20161 #define HAVE_UCS4_TCL 1
20162 _ACEOF
20164 have_ucs4_tcl=yes
20166 else
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20173 echo "${ECHO_T}$have_ucs4_tcl" >&6
20175 # check whether wchar_t is signed or not
20176 if test "$wchar_h" = yes
20177 then
20178 # check whether wchar_t is signed or not
20179 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20180 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20181 if test "${ac_cv_wchar_t_signed+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20185 if test "$cross_compiling" = yes; then
20186 ac_cv_wchar_t_signed=yes
20187 else
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h. */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20195 #include <wchar.h>
20196 int main()
20198 /* Success: exit code 0 */
20199 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20202 _ACEOF
20203 rm -f conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_wchar_t_signed=yes
20215 else
20216 echo "$as_me: program exited with status $ac_status" >&5
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ( exit $ac_status )
20221 ac_cv_wchar_t_signed=no
20223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20227 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20228 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20231 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20232 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20233 # Check whether --enable-unicode or --disable-unicode was given.
20234 if test "${enable_unicode+set}" = set; then
20235 enableval="$enable_unicode"
20237 else
20238 enable_unicode=yes
20241 if test $enable_unicode = yes
20242 then
20243 # Without any arguments, Py_UNICODE defaults to two-byte mode
20244 case "$have_ucs4_tcl" in
20245 yes) enable_unicode="ucs4"
20247 *) enable_unicode="ucs2"
20249 esac
20254 case "$enable_unicode" in
20255 ucs2) unicode_size="2"
20256 cat >>confdefs.h <<\_ACEOF
20257 #define Py_UNICODE_SIZE 2
20258 _ACEOF
20261 ucs4) unicode_size="4"
20262 cat >>confdefs.h <<\_ACEOF
20263 #define Py_UNICODE_SIZE 4
20264 _ACEOF
20267 esac
20273 if test "$enable_unicode" = "no"
20274 then
20275 UNICODE_OBJS=""
20276 echo "$as_me:$LINENO: result: not used" >&5
20277 echo "${ECHO_T}not used" >&6
20278 else
20279 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20281 cat >>confdefs.h <<\_ACEOF
20282 #define Py_USING_UNICODE 1
20283 _ACEOF
20286 # wchar_t is only usable if it maps to an unsigned type
20287 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20288 -a "$ac_cv_wchar_t_signed" = "no"
20289 then
20290 PY_UNICODE_TYPE="wchar_t"
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_USABLE_WCHAR_T 1
20294 _ACEOF
20296 cat >>confdefs.h <<\_ACEOF
20297 #define PY_UNICODE_TYPE wchar_t
20298 _ACEOF
20300 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20301 then
20302 PY_UNICODE_TYPE="unsigned short"
20303 cat >>confdefs.h <<\_ACEOF
20304 #define PY_UNICODE_TYPE unsigned short
20305 _ACEOF
20307 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20308 then
20309 PY_UNICODE_TYPE="unsigned long"
20310 cat >>confdefs.h <<\_ACEOF
20311 #define PY_UNICODE_TYPE unsigned long
20312 _ACEOF
20314 else
20315 PY_UNICODE_TYPE="no type found"
20317 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20318 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20321 # check for endianness
20322 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20323 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20324 if test "${ac_cv_c_bigendian+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327 # See if sys/param.h defines the BYTE_ORDER macro.
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <sys/types.h>
20335 #include <sys/param.h>
20338 main ()
20340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20341 bogus endian macros
20342 #endif
20345 return 0;
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350 (eval $ac_compile) 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 # It does; now see whether it defined to BIG_ENDIAN or not.
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <sys/types.h>
20378 #include <sys/param.h>
20381 main ()
20383 #if BYTE_ORDER != BIG_ENDIAN
20384 not big endian
20385 #endif
20388 return 0;
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_c_bigendian=yes
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_c_bigendian=no
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 else
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 # It does not; compile a test program.
20426 if test "$cross_compiling" = yes; then
20427 # try to guess the endianness by grepping values into an object file
20428 ac_cv_c_bigendian=unknown
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h. */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20436 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20437 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20438 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20439 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20440 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20442 main ()
20444 _ascii (); _ebcdic ();
20446 return 0;
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest.$ac_objext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20472 ac_cv_c_bigendian=yes
20474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20475 if test "$ac_cv_c_bigendian" = unknown; then
20476 ac_cv_c_bigendian=no
20477 else
20478 # finding both strings is unlikely to happen, but who knows?
20479 ac_cv_c_bigendian=unknown
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20488 else
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h. */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20496 main ()
20498 /* Are we little or big endian? From Harbison&Steele. */
20499 union
20501 long l;
20502 char c[sizeof (long)];
20503 } u;
20504 u.l = 1;
20505 exit (u.c[sizeof (long) - 1] == 1);
20507 _ACEOF
20508 rm -f conftest$ac_exeext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20510 (eval $ac_link) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_c_bigendian=no
20520 else
20521 echo "$as_me: program exited with status $ac_status" >&5
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ( exit $ac_status )
20526 ac_cv_c_bigendian=yes
20528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20534 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20535 case $ac_cv_c_bigendian in
20536 yes)
20538 cat >>confdefs.h <<\_ACEOF
20539 #define WORDS_BIGENDIAN 1
20540 _ACEOF
20545 { { echo "$as_me:$LINENO: error: unknown endianness
20546 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20547 echo "$as_me: error: unknown endianness
20548 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20549 { (exit 1); exit 1; }; } ;;
20550 esac
20555 # Check whether right shifting a negative integer extends the sign bit
20556 # or fills with zeros (like the Cray J90, according to Tim Peters).
20557 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20558 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20559 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20563 if test "$cross_compiling" = yes; then
20564 ac_cv_rshift_extends_sign=yes
20565 else
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h. */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20573 int main()
20575 exit(((-1)>>3 == -1) ? 0 : 1);
20578 _ACEOF
20579 rm -f conftest$ac_exeext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20581 (eval $ac_link) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 ac_cv_rshift_extends_sign=yes
20591 else
20592 echo "$as_me: program exited with status $ac_status" >&5
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ( exit $ac_status )
20597 ac_cv_rshift_extends_sign=no
20599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20603 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20604 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20605 if test "$ac_cv_rshift_extends_sign" = no
20606 then
20608 cat >>confdefs.h <<\_ACEOF
20609 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20610 _ACEOF
20614 # check for getc_unlocked and related locking functions
20615 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20616 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20617 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20621 cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h. */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <stdio.h>
20629 main ()
20632 FILE *f = fopen("/dev/null", "r");
20633 flockfile(f);
20634 getc_unlocked(f);
20635 funlockfile(f);
20638 return 0;
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20643 (eval $ac_link) 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest$ac_exeext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_cv_have_getc_unlocked=yes
20664 else
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_cv_have_getc_unlocked=no
20670 rm -f conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext conftest.$ac_ext
20674 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20675 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20676 if test "$ac_cv_have_getc_unlocked" = yes
20677 then
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_GETC_UNLOCKED 1
20681 _ACEOF
20685 # check where readline lives
20686 # save the value of LIBS so we don't actually link Python with readline
20687 LIBS_no_readline=$LIBS
20689 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20690 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20691 if test "${ac_cv_lib_readline_readline+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 ac_check_lib_save_LIBS=$LIBS
20695 LIBS="-lreadline $LIBS"
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h. */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any gcc2 internal prototype to avoid an error. */
20704 #ifdef __cplusplus
20705 extern "C"
20706 #endif
20707 /* We use char because int might match the return type of a gcc2
20708 builtin and then its argument prototype would still apply. */
20709 char readline ();
20711 main ()
20713 readline ();
20715 return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20720 (eval $ac_link) 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag"
20728 || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try='test -s conftest$ac_exeext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 ac_cv_lib_readline_readline=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_cv_lib_readline_readline=no
20747 rm -f conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_check_lib_save_LIBS
20751 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20752 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20753 if test $ac_cv_lib_readline_readline = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define HAVE_LIBREADLINE 1
20756 _ACEOF
20758 LIBS="-lreadline $LIBS"
20762 if test "$ac_cv_have_readline_readline" = no
20763 then
20765 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20766 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20767 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770 ac_check_lib_save_LIBS=$LIBS
20771 LIBS="-ltermcap $LIBS"
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h. */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20779 /* Override any gcc2 internal prototype to avoid an error. */
20780 #ifdef __cplusplus
20781 extern "C"
20782 #endif
20783 /* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20785 char readline ();
20787 main ()
20789 readline ();
20791 return 0;
20793 _ACEOF
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest$ac_exeext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_cv_lib_termcap_readline=yes
20817 else
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_cv_lib_termcap_readline=no
20823 rm -f conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20825 LIBS=$ac_check_lib_save_LIBS
20827 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20828 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20829 if test $ac_cv_lib_termcap_readline = yes; then
20830 cat >>confdefs.h <<_ACEOF
20831 #define HAVE_LIBTERMCAP 1
20832 _ACEOF
20834 LIBS="-ltermcap $LIBS"
20840 # check for readline 2.1
20841 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20842 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20843 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846 ac_check_lib_save_LIBS=$LIBS
20847 LIBS="-lreadline $LIBS"
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* Override any gcc2 internal prototype to avoid an error. */
20856 #ifdef __cplusplus
20857 extern "C"
20858 #endif
20859 /* We use char because int might match the return type of a gcc2
20860 builtin and then its argument prototype would still apply. */
20861 char rl_callback_handler_install ();
20863 main ()
20865 rl_callback_handler_install ();
20867 return 0;
20869 _ACEOF
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872 (eval $ac_link) 2>conftest.er1
20873 ac_status=$?
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try='test -z "$ac_c_werror_flag"
20880 || test ! -s conftest.err'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_lib_readline_rl_callback_handler_install=yes
20893 else
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ac_cv_lib_readline_rl_callback_handler_install=no
20899 rm -f conftest.err conftest.$ac_objext \
20900 conftest$ac_exeext conftest.$ac_ext
20901 LIBS=$ac_check_lib_save_LIBS
20903 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20904 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20905 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20907 cat >>confdefs.h <<\_ACEOF
20908 #define HAVE_RL_CALLBACK 1
20909 _ACEOF
20914 # check for readline 2.2
20915 cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h. */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <readline/readline.h>
20922 _ACEOF
20923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } >/dev/null; then
20931 if test -s conftest.err; then
20932 ac_cpp_err=$ac_c_preproc_warn_flag
20933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20934 else
20935 ac_cpp_err=
20937 else
20938 ac_cpp_err=yes
20940 if test -z "$ac_cpp_err"; then
20941 have_readline=yes
20942 else
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 have_readline=no
20948 rm -f conftest.err conftest.$ac_ext
20949 if test $have_readline = yes
20950 then
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <readline/readline.h>
20959 _ACEOF
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20963 cat >>confdefs.h <<\_ACEOF
20964 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20965 _ACEOF
20968 rm -f conftest*
20972 # check for readline 4.0
20973 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20974 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20975 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978 ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-lreadline $LIBS"
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h. */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* Override any gcc2 internal prototype to avoid an error. */
20988 #ifdef __cplusplus
20989 extern "C"
20990 #endif
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
20993 char rl_pre_input_hook ();
20995 main ()
20997 rl_pre_input_hook ();
20999 return 0;
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_lib_readline_rl_pre_input_hook=yes
21025 else
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_lib_readline_rl_pre_input_hook=no
21031 rm -f conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21033 LIBS=$ac_check_lib_save_LIBS
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21036 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21037 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_RL_PRE_INPUT_HOOK 1
21041 _ACEOF
21046 # check for readline 4.2
21047 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21048 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21049 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052 ac_check_lib_save_LIBS=$LIBS
21053 LIBS="-lreadline $LIBS"
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21061 /* Override any gcc2 internal prototype to avoid an error. */
21062 #ifdef __cplusplus
21063 extern "C"
21064 #endif
21065 /* We use char because int might match the return type of a gcc2
21066 builtin and then its argument prototype would still apply. */
21067 char rl_completion_matches ();
21069 main ()
21071 rl_completion_matches ();
21073 return 0;
21075 _ACEOF
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest$ac_exeext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_lib_readline_rl_completion_matches=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_cv_lib_readline_rl_completion_matches=no
21105 rm -f conftest.err conftest.$ac_objext \
21106 conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21109 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21110 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21111 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21113 cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_RL_COMPLETION_MATCHES 1
21115 _ACEOF
21120 # also in readline 4.2
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include <readline/readline.h>
21128 _ACEOF
21129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } >/dev/null; then
21137 if test -s conftest.err; then
21138 ac_cpp_err=$ac_c_preproc_warn_flag
21139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21140 else
21141 ac_cpp_err=
21143 else
21144 ac_cpp_err=yes
21146 if test -z "$ac_cpp_err"; then
21147 have_readline=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 have_readline=no
21154 rm -f conftest.err conftest.$ac_ext
21155 if test $have_readline = yes
21156 then
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h. */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <readline/readline.h>
21165 _ACEOF
21166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21167 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21169 cat >>confdefs.h <<\_ACEOF
21170 #define HAVE_RL_CATCH_SIGNAL 1
21171 _ACEOF
21174 rm -f conftest*
21178 # End of readline checks: restore LIBS
21179 LIBS=$LIBS_no_readline
21181 echo "$as_me:$LINENO: checking for broken nice()" >&5
21182 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21183 if test "${ac_cv_broken_nice+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21187 if test "$cross_compiling" = yes; then
21188 ac_cv_broken_nice=no
21189 else
21190 cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h. */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21197 int main()
21199 int val1 = nice(1);
21200 if (val1 != -1 && val1 == nice(2))
21201 exit(0);
21202 exit(1);
21205 _ACEOF
21206 rm -f conftest$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208 (eval $ac_link) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_cv_broken_nice=yes
21218 else
21219 echo "$as_me: program exited with status $ac_status" >&5
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ( exit $ac_status )
21224 ac_cv_broken_nice=no
21226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21230 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21231 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21232 if test "$ac_cv_broken_nice" = yes
21233 then
21235 cat >>confdefs.h <<\_ACEOF
21236 #define HAVE_BROKEN_NICE 1
21237 _ACEOF
21241 echo "$as_me:$LINENO: checking for broken poll()" >&5
21242 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21243 if test "$cross_compiling" = yes; then
21244 ac_cv_broken_poll=no
21245 else
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21253 #include <poll.h>
21255 int main (void)
21257 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21259 close (42);
21261 int poll_test = poll (&poll_struct, 1, 0);
21263 if (poll_test < 0)
21265 exit(0);
21267 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21269 exit(0);
21271 else
21273 exit(1);
21277 _ACEOF
21278 rm -f conftest$ac_exeext
21279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21280 (eval $ac_link) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_broken_poll=yes
21290 else
21291 echo "$as_me: program exited with status $ac_status" >&5
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ( exit $ac_status )
21296 ac_cv_broken_poll=no
21298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21300 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21301 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21302 if test "$ac_cv_broken_poll" = yes
21303 then
21305 cat >>confdefs.h <<\_ACEOF
21306 #define HAVE_BROKEN_POLL 1
21307 _ACEOF
21311 # Before we can test tzset, we need to check if struct tm has a tm_zone
21312 # (which is not required by ISO C or UNIX spec) and/or if we support
21313 # tzname[]
21314 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21315 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21316 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <sys/types.h>
21326 #include <$ac_cv_struct_tm>
21330 main ()
21332 static struct tm ac_aggr;
21333 if (ac_aggr.tm_zone)
21334 return 0;
21336 return 0;
21338 _ACEOF
21339 rm -f conftest.$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341 (eval $ac_compile) 2>conftest.er1
21342 ac_status=$?
21343 grep -v '^ *+' conftest.er1 >conftest.err
21344 rm -f conftest.er1
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } &&
21348 { ac_try='test -z "$ac_c_werror_flag"
21349 || test ! -s conftest.err'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; } &&
21355 { ac_try='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_cv_member_struct_tm_tm_zone=yes
21362 else
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h. */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 #include <sys/types.h>
21373 #include <$ac_cv_struct_tm>
21377 main ()
21379 static struct tm ac_aggr;
21380 if (sizeof ac_aggr.tm_zone)
21381 return 0;
21383 return 0;
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21388 (eval $ac_compile) 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try='test -z "$ac_c_werror_flag"
21396 || test ! -s conftest.err'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; } &&
21402 { ac_try='test -s conftest.$ac_objext'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; }; then
21408 ac_cv_member_struct_tm_tm_zone=yes
21409 else
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_cv_member_struct_tm_tm_zone=no
21415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21419 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21420 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21421 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21423 cat >>confdefs.h <<_ACEOF
21424 #define HAVE_STRUCT_TM_TM_ZONE 1
21425 _ACEOF
21430 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21432 cat >>confdefs.h <<\_ACEOF
21433 #define HAVE_TM_ZONE 1
21434 _ACEOF
21436 else
21437 echo "$as_me:$LINENO: checking for tzname" >&5
21438 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21439 if test "${ac_cv_var_tzname+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h. */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <time.h>
21449 #ifndef tzname /* For SGI. */
21450 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21451 #endif
21454 main ()
21456 atoi(*tzname);
21458 return 0;
21460 _ACEOF
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_var_tzname=yes
21484 else
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_cv_var_tzname=no
21490 rm -f conftest.err conftest.$ac_objext \
21491 conftest$ac_exeext conftest.$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21494 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21495 if test $ac_cv_var_tzname = yes; then
21497 cat >>confdefs.h <<\_ACEOF
21498 #define HAVE_TZNAME 1
21499 _ACEOF
21505 # check tzset(3) exists and works like we expect it to
21506 echo "$as_me:$LINENO: checking for working tzset()" >&5
21507 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21508 if test "${ac_cv_working_tzset+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 else
21512 if test "$cross_compiling" = yes; then
21513 ac_cv_working_tzset=no
21514 else
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21522 #include <stdlib.h>
21523 #include <time.h>
21524 #include <string.h>
21526 #if HAVE_TZNAME
21527 extern char *tzname[];
21528 #endif
21530 int main()
21532 /* Note that we need to ensure that not only does tzset(3)
21533 do 'something' with localtime, but it works as documented
21534 in the library reference and as expected by the test suite.
21535 This includes making sure that tzname is set properly if
21536 tm->tm_zone does not exist since it is the alternative way
21537 of getting timezone info.
21539 Red Hat 6.2 doesn't understand the southern hemisphere
21540 after New Year's Day.
21543 time_t groundhogday = 1044144000; /* GMT-based */
21544 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21546 putenv("TZ=UTC+0");
21547 tzset();
21548 if (localtime(&groundhogday)->tm_hour != 0)
21549 exit(1);
21550 #if HAVE_TZNAME
21551 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21552 if (strcmp(tzname[0], "UTC") ||
21553 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21554 exit(1);
21555 #endif
21557 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21558 tzset();
21559 if (localtime(&groundhogday)->tm_hour != 19)
21560 exit(1);
21561 #if HAVE_TZNAME
21562 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21563 exit(1);
21564 #endif
21566 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21567 tzset();
21568 if (localtime(&groundhogday)->tm_hour != 11)
21569 exit(1);
21570 #if HAVE_TZNAME
21571 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21572 exit(1);
21573 #endif
21575 #if HAVE_STRUCT_TM_TM_ZONE
21576 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21577 exit(1);
21578 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21579 exit(1);
21580 #endif
21582 exit(0);
21585 _ACEOF
21586 rm -f conftest$ac_exeext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_cv_working_tzset=yes
21598 else
21599 echo "$as_me: program exited with status $ac_status" >&5
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ( exit $ac_status )
21604 ac_cv_working_tzset=no
21606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21611 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21612 if test "$ac_cv_working_tzset" = yes
21613 then
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_WORKING_TZSET 1
21617 _ACEOF
21621 # Look for subsecond timestamps in struct stat
21622 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21623 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21624 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <sys/stat.h>
21635 main ()
21638 struct stat st;
21639 st.st_mtim.tv_nsec = 1;
21642 return 0;
21644 _ACEOF
21645 rm -f conftest.$ac_objext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21647 (eval $ac_compile) 2>conftest.er1
21648 ac_status=$?
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
21654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest.$ac_objext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_stat_tv_nsec=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 ac_cv_stat_tv_nsec=no
21674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21677 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21678 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21679 if test "$ac_cv_stat_tv_nsec" = yes
21680 then
21682 cat >>confdefs.h <<\_ACEOF
21683 #define HAVE_STAT_TV_NSEC 1
21684 _ACEOF
21688 # Look for BSD style subsecond timestamps in struct stat
21689 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21690 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21691 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <sys/stat.h>
21702 main ()
21705 struct stat st;
21706 st.st_mtimespec.tv_nsec = 1;
21709 return 0;
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21715 ac_status=$?
21716 grep -v '^ *+' conftest.er1 >conftest.err
21717 rm -f conftest.er1
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ac_cv_stat_tv_nsec2=yes
21735 else
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_cv_stat_tv_nsec2=no
21741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21745 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21746 if test "$ac_cv_stat_tv_nsec2" = yes
21747 then
21749 cat >>confdefs.h <<\_ACEOF
21750 #define HAVE_STAT_TV_NSEC2 1
21751 _ACEOF
21755 # On HP/UX 11.0, mvwdelch is a block with a return statement
21756 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21757 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21758 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 #include <curses.h>
21769 main ()
21772 int rtn;
21773 rtn = mvwdelch(0,0,0);
21776 return 0;
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21781 (eval $ac_compile) 2>conftest.er1
21782 ac_status=$?
21783 grep -v '^ *+' conftest.er1 >conftest.err
21784 rm -f conftest.er1
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
21788 { ac_try='test -z "$ac_c_werror_flag"
21789 || test ! -s conftest.err'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; } &&
21795 { ac_try='test -s conftest.$ac_objext'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 ac_cv_mvwdelch_is_expression=yes
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_cv_mvwdelch_is_expression=no
21808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21811 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21812 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21814 if test "$ac_cv_mvwdelch_is_expression" = yes
21815 then
21817 cat >>confdefs.h <<\_ACEOF
21818 #define MVWDELCH_IS_EXPRESSION 1
21819 _ACEOF
21823 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21824 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21825 if test "${ac_cv_window_has_flags+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828 cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h. */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21834 #include <curses.h>
21836 main ()
21839 WINDOW *w;
21840 w->_flags = 0;
21843 return 0;
21845 _ACEOF
21846 rm -f conftest.$ac_objext
21847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21848 (eval $ac_compile) 2>conftest.er1
21849 ac_status=$?
21850 grep -v '^ *+' conftest.er1 >conftest.err
21851 rm -f conftest.er1
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
21855 { ac_try='test -z "$ac_c_werror_flag"
21856 || test ! -s conftest.err'
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest.$ac_objext'
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_window_has_flags=yes
21869 else
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_cv_window_has_flags=no
21875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21878 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21879 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21882 if test "$ac_cv_window_has_flags" = yes
21883 then
21885 cat >>confdefs.h <<\_ACEOF
21886 #define WINDOW_HAS_FLAGS 1
21887 _ACEOF
21891 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21892 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 #include <curses.h>
21901 main ()
21903 void *x=is_term_resized
21905 return 0;
21907 _ACEOF
21908 rm -f conftest.$ac_objext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21910 (eval $ac_compile) 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try='test -z "$ac_c_werror_flag"
21918 || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try='test -s conftest.$ac_objext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21931 cat >>confdefs.h <<\_ACEOF
21932 #define HAVE_CURSES_IS_TERM_RESIZED 1
21933 _ACEOF
21935 echo "$as_me:$LINENO: result: yes" >&5
21936 echo "${ECHO_T}yes" >&6
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6
21945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 echo "$as_me:$LINENO: checking for resize_term" >&5
21948 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h. */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 #include <curses.h>
21957 main ()
21959 void *x=resize_term
21961 return 0;
21963 _ACEOF
21964 rm -f conftest.$ac_objext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966 (eval $ac_compile) 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try='test -z "$ac_c_werror_flag"
21974 || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_CURSES_RESIZE_TERM 1
21989 _ACEOF
21991 echo "$as_me:$LINENO: result: yes" >&5
21992 echo "${ECHO_T}yes" >&6
21993 else
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 echo "$as_me:$LINENO: result: no" >&5
21998 echo "${ECHO_T}no" >&6
22001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22003 echo "$as_me:$LINENO: checking for resizeterm" >&5
22004 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h. */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 #include <curses.h>
22013 main ()
22015 void *x=resizeterm
22017 return 0;
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22023 ac_status=$?
22024 grep -v '^ *+' conftest.er1 >conftest.err
22025 rm -f conftest.er1
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_CURSES_RESIZETERM 1
22045 _ACEOF
22047 echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 echo "$as_me:$LINENO: result: no" >&5
22054 echo "${ECHO_T}no" >&6
22057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22060 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22062 if test -r /dev/ptmx
22063 then
22064 echo "$as_me:$LINENO: result: yes" >&5
22065 echo "${ECHO_T}yes" >&6
22067 cat >>confdefs.h <<\_ACEOF
22068 #define HAVE_DEV_PTMX 1
22069 _ACEOF
22071 else
22072 echo "$as_me:$LINENO: result: no" >&5
22073 echo "${ECHO_T}no" >&6
22076 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22077 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22079 if test -r /dev/ptc
22080 then
22081 echo "$as_me:$LINENO: result: yes" >&5
22082 echo "${ECHO_T}yes" >&6
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_DEV_PTC 1
22086 _ACEOF
22088 else
22089 echo "$as_me:$LINENO: result: no" >&5
22090 echo "${ECHO_T}no" >&6
22093 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22094 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22095 if test "$cross_compiling" = yes; then
22096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22097 See \`config.log' for more details." >&5
22098 echo "$as_me: error: cannot run test program while cross compiling
22099 See \`config.log' for more details." >&2;}
22100 { (exit 1); exit 1; }; }
22101 else
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h. */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 #include <stdio.h>
22109 #include <stddef.h>
22110 #include <string.h>
22112 int main()
22114 char buffer[256];
22116 #ifdef HAVE_SSIZE_T
22117 typedef ssize_t Py_ssize_t;
22118 #elif SIZEOF_VOID_P == SIZEOF_LONG
22119 typedef long Py_ssize_t;
22120 #else
22121 typedef int Py_ssize_t;
22122 #endif
22124 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22125 return 1;
22127 if (strcmp(buffer, "123"))
22128 return 1;
22130 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22131 return 1;
22133 if (strcmp(buffer, "-123"))
22134 return 1;
22136 return 0;
22138 _ACEOF
22139 rm -f conftest$ac_exeext
22140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; }; then
22150 echo "$as_me:$LINENO: result: yes" >&5
22151 echo "${ECHO_T}yes" >&6
22153 cat >>confdefs.h <<\_ACEOF
22154 #define PY_FORMAT_SIZE_T "z"
22155 _ACEOF
22157 else
22158 echo "$as_me: program exited with status $ac_status" >&5
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ( exit $ac_status )
22163 echo "$as_me:$LINENO: result: no" >&5
22164 echo "${ECHO_T}no" >&6
22166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22169 echo "$as_me:$LINENO: checking for socklen_t" >&5
22170 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22171 if test "${ac_cv_type_socklen_t+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174 cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h. */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22181 #ifdef HAVE_SYS_TYPES_H
22182 #include <sys/types.h>
22183 #endif
22184 #ifdef HAVE_SYS_SOCKET_H
22185 #include <sys/socket.h>
22186 #endif
22190 main ()
22192 if ((socklen_t *) 0)
22193 return 0;
22194 if (sizeof (socklen_t))
22195 return 0;
22197 return 0;
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_type_socklen_t=yes
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_type_socklen_t=no
22229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22233 if test $ac_cv_type_socklen_t = yes; then
22235 else
22237 cat >>confdefs.h <<\_ACEOF
22238 #define socklen_t int
22239 _ACEOF
22246 for h in `(cd $srcdir;echo Python/thread_*.h)`
22248 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22249 done
22252 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22253 echo "$as_me:$LINENO: checking for build directories" >&5
22254 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22255 for dir in $SRCDIRS; do
22256 if test ! -d $dir; then
22257 mkdir $dir
22259 done
22260 echo "$as_me:$LINENO: result: done" >&5
22261 echo "${ECHO_T}done" >&6
22263 # generate output files
22264 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22266 cat >confcache <<\_ACEOF
22267 # This file is a shell script that caches the results of configure
22268 # tests run on this system so they can be shared between configure
22269 # scripts and configure runs, see configure's option --config-cache.
22270 # It is not useful on other systems. If it contains results you don't
22271 # want to keep, you may remove or edit it.
22273 # config.status only pays attention to the cache file if you give it
22274 # the --recheck option to rerun configure.
22276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22278 # following values.
22280 _ACEOF
22282 # The following way of writing the cache mishandles newlines in values,
22283 # but we know of no workaround that is simple, portable, and efficient.
22284 # So, don't put newlines in cache variables' values.
22285 # Ultrix sh set writes to stderr and can't be redirected directly,
22286 # and sets the high bit in the cache file unless we assign to the vars.
22288 (set) 2>&1 |
22289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22290 *ac_space=\ *)
22291 # `set' does not quote correctly, so add quotes (double-quote
22292 # substitution turns \\\\ into \\, and sed turns \\ into \).
22293 sed -n \
22294 "s/'/'\\\\''/g;
22295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22298 # `set' quotes correctly as required by POSIX, so do not add quotes.
22299 sed -n \
22300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22302 esac;
22304 sed '
22305 t clear
22306 : clear
22307 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22308 t end
22309 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22310 : end' >>confcache
22311 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22312 if test -w $cache_file; then
22313 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22314 cat confcache >$cache_file
22315 else
22316 echo "not updating unwritable cache $cache_file"
22319 rm -f confcache
22321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22322 # Let make expand exec_prefix.
22323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22327 # trailing colons and then remove the whole line if VPATH becomes empty
22328 # (actually we leave an empty line to preserve line numbers).
22329 if test "x$srcdir" = x.; then
22330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22331 s/:*\$(srcdir):*/:/;
22332 s/:*\${srcdir}:*/:/;
22333 s/:*@srcdir@:*/:/;
22334 s/^\([^=]*=[ ]*\):*/\1/;
22335 s/:*$//;
22336 s/^[^=]*=[ ]*$//;
22340 DEFS=-DHAVE_CONFIG_H
22342 ac_libobjs=
22343 ac_ltlibobjs=
22344 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22345 # 1. Remove the extension, and $U if already installed.
22346 ac_i=`echo "$ac_i" |
22347 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22348 # 2. Add them.
22349 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22350 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22351 done
22352 LIBOBJS=$ac_libobjs
22354 LTLIBOBJS=$ac_ltlibobjs
22358 : ${CONFIG_STATUS=./config.status}
22359 ac_clean_files_save=$ac_clean_files
22360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22361 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22362 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22363 cat >$CONFIG_STATUS <<_ACEOF
22364 #! $SHELL
22365 # Generated by $as_me.
22366 # Run this file to recreate the current configuration.
22367 # Compiler output produced by configure, useful for debugging
22368 # configure, is in config.log if it exists.
22370 debug=false
22371 ac_cs_recheck=false
22372 ac_cs_silent=false
22373 SHELL=\${CONFIG_SHELL-$SHELL}
22374 _ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22377 ## --------------------- ##
22378 ## M4sh Initialization. ##
22379 ## --------------------- ##
22381 # Be Bourne compatible
22382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22383 emulate sh
22384 NULLCMD=:
22385 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22386 # is contrary to our usage. Disable this feature.
22387 alias -g '${1+"$@"}'='"$@"'
22388 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22389 set -o posix
22391 DUALCASE=1; export DUALCASE # for MKS sh
22393 # Support unset when possible.
22394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22395 as_unset=unset
22396 else
22397 as_unset=false
22401 # Work around bugs in pre-3.0 UWIN ksh.
22402 $as_unset ENV MAIL MAILPATH
22403 PS1='$ '
22404 PS2='> '
22405 PS4='+ '
22407 # NLS nuisances.
22408 for as_var in \
22409 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22410 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22411 LC_TELEPHONE LC_TIME
22413 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22414 eval $as_var=C; export $as_var
22415 else
22416 $as_unset $as_var
22418 done
22420 # Required to use basename.
22421 if expr a : '\(a\)' >/dev/null 2>&1; then
22422 as_expr=expr
22423 else
22424 as_expr=false
22427 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22428 as_basename=basename
22429 else
22430 as_basename=false
22434 # Name of the executable.
22435 as_me=`$as_basename "$0" ||
22436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22437 X"$0" : 'X\(//\)$' \| \
22438 X"$0" : 'X\(/\)$' \| \
22439 . : '\(.\)' 2>/dev/null ||
22440 echo X/"$0" |
22441 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22442 /^X\/\(\/\/\)$/{ s//\1/; q; }
22443 /^X\/\(\/\).*/{ s//\1/; q; }
22444 s/.*/./; q'`
22447 # PATH needs CR, and LINENO needs CR and PATH.
22448 # Avoid depending upon Character Ranges.
22449 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22450 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22451 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22452 as_cr_digits='0123456789'
22453 as_cr_alnum=$as_cr_Letters$as_cr_digits
22455 # The user is always right.
22456 if test "${PATH_SEPARATOR+set}" != set; then
22457 echo "#! /bin/sh" >conf$$.sh
22458 echo "exit 0" >>conf$$.sh
22459 chmod +x conf$$.sh
22460 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22461 PATH_SEPARATOR=';'
22462 else
22463 PATH_SEPARATOR=:
22465 rm -f conf$$.sh
22469 as_lineno_1=$LINENO
22470 as_lineno_2=$LINENO
22471 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22472 test "x$as_lineno_1" != "x$as_lineno_2" &&
22473 test "x$as_lineno_3" = "x$as_lineno_2" || {
22474 # Find who we are. Look in the path if we contain no path at all
22475 # relative or not.
22476 case $0 in
22477 *[\\/]* ) as_myself=$0 ;;
22478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479 for as_dir in $PATH
22481 IFS=$as_save_IFS
22482 test -z "$as_dir" && as_dir=.
22483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22484 done
22487 esac
22488 # We did not find ourselves, most probably we were run as `sh COMMAND'
22489 # in which case we are not to be found in the path.
22490 if test "x$as_myself" = x; then
22491 as_myself=$0
22493 if test ! -f "$as_myself"; then
22494 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22495 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22496 { (exit 1); exit 1; }; }
22498 case $CONFIG_SHELL in
22500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22501 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22503 IFS=$as_save_IFS
22504 test -z "$as_dir" && as_dir=.
22505 for as_base in sh bash ksh sh5; do
22506 case $as_dir in
22508 if ("$as_dir/$as_base" -c '
22509 as_lineno_1=$LINENO
22510 as_lineno_2=$LINENO
22511 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22512 test "x$as_lineno_1" != "x$as_lineno_2" &&
22513 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22514 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22515 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22516 CONFIG_SHELL=$as_dir/$as_base
22517 export CONFIG_SHELL
22518 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22519 fi;;
22520 esac
22521 done
22522 done
22524 esac
22526 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22527 # uniformly replaced by the line number. The first 'sed' inserts a
22528 # line-number line before each line; the second 'sed' does the real
22529 # work. The second script uses 'N' to pair each line-number line
22530 # with the numbered line, and appends trailing '-' during
22531 # substitution so that $LINENO is not a special case at line end.
22532 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22533 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22534 sed '=' <$as_myself |
22535 sed '
22537 s,$,-,
22538 : loop
22539 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22540 t loop
22541 s,-$,,
22542 s,^['$as_cr_digits']*\n,,
22543 ' >$as_me.lineno &&
22544 chmod +x $as_me.lineno ||
22545 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22546 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22547 { (exit 1); exit 1; }; }
22549 # Don't try to exec as it changes $[0], causing all sort of problems
22550 # (the dirname of $[0] is not the place where we might find the
22551 # original and so on. Autoconf is especially sensible to this).
22552 . ./$as_me.lineno
22553 # Exit status is that of the last command.
22554 exit
22558 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22559 *c*,-n*) ECHO_N= ECHO_C='
22560 ' ECHO_T=' ' ;;
22561 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22562 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22563 esac
22565 if expr a : '\(a\)' >/dev/null 2>&1; then
22566 as_expr=expr
22567 else
22568 as_expr=false
22571 rm -f conf$$ conf$$.exe conf$$.file
22572 echo >conf$$.file
22573 if ln -s conf$$.file conf$$ 2>/dev/null; then
22574 # We could just check for DJGPP; but this test a) works b) is more generic
22575 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22576 if test -f conf$$.exe; then
22577 # Don't use ln at all; we don't have any links
22578 as_ln_s='cp -p'
22579 else
22580 as_ln_s='ln -s'
22582 elif ln conf$$.file conf$$ 2>/dev/null; then
22583 as_ln_s=ln
22584 else
22585 as_ln_s='cp -p'
22587 rm -f conf$$ conf$$.exe conf$$.file
22589 if mkdir -p . 2>/dev/null; then
22590 as_mkdir_p=:
22591 else
22592 test -d ./-p && rmdir ./-p
22593 as_mkdir_p=false
22596 as_executable_p="test -f"
22598 # Sed expression to map a string onto a valid CPP name.
22599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22601 # Sed expression to map a string onto a valid variable name.
22602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22605 # IFS
22606 # We need space, tab and new line, in precisely that order.
22607 as_nl='
22609 IFS=" $as_nl"
22611 # CDPATH.
22612 $as_unset CDPATH
22614 exec 6>&1
22616 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22617 # report actual input values of CONFIG_FILES etc. instead of their
22618 # values after options handling. Logging --version etc. is OK.
22619 exec 5>>config.log
22621 echo
22622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22623 ## Running $as_me. ##
22624 _ASBOX
22625 } >&5
22626 cat >&5 <<_CSEOF
22628 This file was extended by python $as_me 2.5, which was
22629 generated by GNU Autoconf 2.59. Invocation command line was
22631 CONFIG_FILES = $CONFIG_FILES
22632 CONFIG_HEADERS = $CONFIG_HEADERS
22633 CONFIG_LINKS = $CONFIG_LINKS
22634 CONFIG_COMMANDS = $CONFIG_COMMANDS
22635 $ $0 $@
22637 _CSEOF
22638 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22639 echo >&5
22640 _ACEOF
22642 # Files that config.status was made for.
22643 if test -n "$ac_config_files"; then
22644 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22647 if test -n "$ac_config_headers"; then
22648 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22651 if test -n "$ac_config_links"; then
22652 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22655 if test -n "$ac_config_commands"; then
22656 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22659 cat >>$CONFIG_STATUS <<\_ACEOF
22661 ac_cs_usage="\
22662 \`$as_me' instantiates files from templates according to the
22663 current configuration.
22665 Usage: $0 [OPTIONS] [FILE]...
22667 -h, --help print this help, then exit
22668 -V, --version print version number, then exit
22669 -q, --quiet do not print progress messages
22670 -d, --debug don't remove temporary files
22671 --recheck update $as_me by reconfiguring in the same conditions
22672 --file=FILE[:TEMPLATE]
22673 instantiate the configuration file FILE
22674 --header=FILE[:TEMPLATE]
22675 instantiate the configuration header FILE
22677 Configuration files:
22678 $config_files
22680 Configuration headers:
22681 $config_headers
22683 Report bugs to <bug-autoconf@gnu.org>."
22684 _ACEOF
22686 cat >>$CONFIG_STATUS <<_ACEOF
22687 ac_cs_version="\\
22688 python config.status 2.5
22689 configured by $0, generated by GNU Autoconf 2.59,
22690 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22692 Copyright (C) 2003 Free Software Foundation, Inc.
22693 This config.status script is free software; the Free Software Foundation
22694 gives unlimited permission to copy, distribute and modify it."
22695 srcdir=$srcdir
22696 INSTALL="$INSTALL"
22697 _ACEOF
22699 cat >>$CONFIG_STATUS <<\_ACEOF
22700 # If no file are specified by the user, then we need to provide default
22701 # value. By we need to know if files were specified by the user.
22702 ac_need_defaults=:
22703 while test $# != 0
22705 case $1 in
22706 --*=*)
22707 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22708 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22709 ac_shift=:
22712 ac_option=$1
22713 ac_optarg=$2
22714 ac_shift=shift
22716 *) # This is not an option, so the user has probably given explicit
22717 # arguments.
22718 ac_option=$1
22719 ac_need_defaults=false;;
22720 esac
22722 case $ac_option in
22723 # Handling of the options.
22724 _ACEOF
22725 cat >>$CONFIG_STATUS <<\_ACEOF
22726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22727 ac_cs_recheck=: ;;
22728 --version | --vers* | -V )
22729 echo "$ac_cs_version"; exit 0 ;;
22730 --he | --h)
22731 # Conflict between --help and --header
22732 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22733 Try \`$0 --help' for more information." >&5
22734 echo "$as_me: error: ambiguous option: $1
22735 Try \`$0 --help' for more information." >&2;}
22736 { (exit 1); exit 1; }; };;
22737 --help | --hel | -h )
22738 echo "$ac_cs_usage"; exit 0 ;;
22739 --debug | --d* | -d )
22740 debug=: ;;
22741 --file | --fil | --fi | --f )
22742 $ac_shift
22743 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22744 ac_need_defaults=false;;
22745 --header | --heade | --head | --hea )
22746 $ac_shift
22747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22748 ac_need_defaults=false;;
22749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22751 ac_cs_silent=: ;;
22753 # This is an error.
22754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22755 Try \`$0 --help' for more information." >&5
22756 echo "$as_me: error: unrecognized option: $1
22757 Try \`$0 --help' for more information." >&2;}
22758 { (exit 1); exit 1; }; } ;;
22760 *) ac_config_targets="$ac_config_targets $1" ;;
22762 esac
22763 shift
22764 done
22766 ac_configure_extra_args=
22768 if $ac_cs_silent; then
22769 exec 6>/dev/null
22770 ac_configure_extra_args="$ac_configure_extra_args --silent"
22773 _ACEOF
22774 cat >>$CONFIG_STATUS <<_ACEOF
22775 if \$ac_cs_recheck; then
22776 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22777 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22780 _ACEOF
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22787 for ac_config_target in $ac_config_targets
22789 case "$ac_config_target" in
22790 # Handling of arguments.
22791 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
22792 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22793 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22794 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22795 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22796 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22797 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22798 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22799 { (exit 1); exit 1; }; };;
22800 esac
22801 done
22803 # If the user did not use the arguments to specify the items to instantiate,
22804 # then the envvar interface is used. Set only those that are not.
22805 # We use the long form for the default assignment because of an extremely
22806 # bizarre bug on SunOS 4.1.3.
22807 if $ac_need_defaults; then
22808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22812 # Have a temporary directory for convenience. Make it in the build tree
22813 # simply because there is no reason to put it here, and in addition,
22814 # creating and moving files from /tmp can sometimes cause problems.
22815 # Create a temporary directory, and hook for its removal unless debugging.
22816 $debug ||
22818 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22819 trap '{ (exit 1); exit 1; }' 1 2 13 15
22822 # Create a (secure) tmp directory for tmp files.
22825 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22826 test -n "$tmp" && test -d "$tmp"
22827 } ||
22829 tmp=./confstat$$-$RANDOM
22830 (umask 077 && mkdir $tmp)
22831 } ||
22833 echo "$me: cannot create a temporary directory in ." >&2
22834 { (exit 1); exit 1; }
22837 _ACEOF
22839 cat >>$CONFIG_STATUS <<_ACEOF
22842 # CONFIG_FILES section.
22845 # No need to generate the scripts if there are no CONFIG_FILES.
22846 # This happens for instance when ./config.status config.h
22847 if test -n "\$CONFIG_FILES"; then
22848 # Protect against being on the right side of a sed subst in config.status.
22849 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22850 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22851 s,@SHELL@,$SHELL,;t t
22852 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22853 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22854 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22855 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22856 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22857 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22858 s,@exec_prefix@,$exec_prefix,;t t
22859 s,@prefix@,$prefix,;t t
22860 s,@program_transform_name@,$program_transform_name,;t t
22861 s,@bindir@,$bindir,;t t
22862 s,@sbindir@,$sbindir,;t t
22863 s,@libexecdir@,$libexecdir,;t t
22864 s,@datadir@,$datadir,;t t
22865 s,@sysconfdir@,$sysconfdir,;t t
22866 s,@sharedstatedir@,$sharedstatedir,;t t
22867 s,@localstatedir@,$localstatedir,;t t
22868 s,@libdir@,$libdir,;t t
22869 s,@includedir@,$includedir,;t t
22870 s,@oldincludedir@,$oldincludedir,;t t
22871 s,@infodir@,$infodir,;t t
22872 s,@mandir@,$mandir,;t t
22873 s,@build_alias@,$build_alias,;t t
22874 s,@host_alias@,$host_alias,;t t
22875 s,@target_alias@,$target_alias,;t t
22876 s,@DEFS@,$DEFS,;t t
22877 s,@ECHO_C@,$ECHO_C,;t t
22878 s,@ECHO_N@,$ECHO_N,;t t
22879 s,@ECHO_T@,$ECHO_T,;t t
22880 s,@LIBS@,$LIBS,;t t
22881 s,@VERSION@,$VERSION,;t t
22882 s,@SOVERSION@,$SOVERSION,;t t
22883 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22884 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22885 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22886 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22887 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22888 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22889 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22890 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22891 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22892 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22893 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22894 s,@MACHDEP@,$MACHDEP,;t t
22895 s,@SGI_ABI@,$SGI_ABI,;t t
22896 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22897 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22898 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22899 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22900 s,@CC@,$CC,;t t
22901 s,@CFLAGS@,$CFLAGS,;t t
22902 s,@LDFLAGS@,$LDFLAGS,;t t
22903 s,@CPPFLAGS@,$CPPFLAGS,;t t
22904 s,@ac_ct_CC@,$ac_ct_CC,;t t
22905 s,@EXEEXT@,$EXEEXT,;t t
22906 s,@OBJEXT@,$OBJEXT,;t t
22907 s,@CXX@,$CXX,;t t
22908 s,@MAINCC@,$MAINCC,;t t
22909 s,@CPP@,$CPP,;t t
22910 s,@EGREP@,$EGREP,;t t
22911 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22912 s,@LIBRARY@,$LIBRARY,;t t
22913 s,@LDLIBRARY@,$LDLIBRARY,;t t
22914 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22915 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22916 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22917 s,@INSTSONAME@,$INSTSONAME,;t t
22918 s,@RUNSHARED@,$RUNSHARED,;t t
22919 s,@LINKCC@,$LINKCC,;t t
22920 s,@RANLIB@,$RANLIB,;t t
22921 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22922 s,@AR@,$AR,;t t
22923 s,@SVNVERSION@,$SVNVERSION,;t t
22924 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22925 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22926 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22927 s,@LN@,$LN,;t t
22928 s,@OPT@,$OPT,;t t
22929 s,@BASECFLAGS@,$BASECFLAGS,;t t
22930 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22931 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22932 s,@SO@,$SO,;t t
22933 s,@LDSHARED@,$LDSHARED,;t t
22934 s,@BLDSHARED@,$BLDSHARED,;t t
22935 s,@CCSHARED@,$CCSHARED,;t t
22936 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22937 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22938 s,@SHLIBS@,$SHLIBS,;t t
22939 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22940 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22941 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22942 s,@LDLAST@,$LDLAST,;t t
22943 s,@THREADOBJ@,$THREADOBJ,;t t
22944 s,@DLINCLDIR@,$DLINCLDIR,;t t
22945 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22946 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22947 s,@TRUE@,$TRUE,;t t
22948 s,@LIBOBJS@,$LIBOBJS,;t t
22949 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22950 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22951 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22952 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22953 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22954 s,@LIBM@,$LIBM,;t t
22955 s,@LIBC@,$LIBC,;t t
22956 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22957 s,@THREADHEADERS@,$THREADHEADERS,;t t
22958 s,@SRCDIRS@,$SRCDIRS,;t t
22959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22960 CEOF
22962 _ACEOF
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Split the substitutions into bite-sized pieces for seds with
22966 # small command number limits, like on Digital OSF/1 and HP-UX.
22967 ac_max_sed_lines=48
22968 ac_sed_frag=1 # Number of current file.
22969 ac_beg=1 # First line for current file.
22970 ac_end=$ac_max_sed_lines # Line after last line for current file.
22971 ac_more_lines=:
22972 ac_sed_cmds=
22973 while $ac_more_lines; do
22974 if test $ac_beg -gt 1; then
22975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22976 else
22977 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22979 if test ! -s $tmp/subs.frag; then
22980 ac_more_lines=false
22981 else
22982 # The purpose of the label and of the branching condition is to
22983 # speed up the sed processing (if there are no `@' at all, there
22984 # is no need to browse any of the substitutions).
22985 # These are the two extra sed commands mentioned above.
22986 (echo ':t
22987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22988 if test -z "$ac_sed_cmds"; then
22989 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22990 else
22991 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22993 ac_sed_frag=`expr $ac_sed_frag + 1`
22994 ac_beg=$ac_end
22995 ac_end=`expr $ac_end + $ac_max_sed_lines`
22997 done
22998 if test -z "$ac_sed_cmds"; then
22999 ac_sed_cmds=cat
23001 fi # test -n "$CONFIG_FILES"
23003 _ACEOF
23004 cat >>$CONFIG_STATUS <<\_ACEOF
23005 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23007 case $ac_file in
23008 - | *:- | *:-:* ) # input from stdin
23009 cat >$tmp/stdin
23010 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23012 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23014 * ) ac_file_in=$ac_file.in ;;
23015 esac
23017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23018 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23020 X"$ac_file" : 'X\(//\)[^/]' \| \
23021 X"$ac_file" : 'X\(//\)$' \| \
23022 X"$ac_file" : 'X\(/\)' \| \
23023 . : '\(.\)' 2>/dev/null ||
23024 echo X"$ac_file" |
23025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23027 /^X\(\/\/\)$/{ s//\1/; q; }
23028 /^X\(\/\).*/{ s//\1/; q; }
23029 s/.*/./; q'`
23030 { if $as_mkdir_p; then
23031 mkdir -p "$ac_dir"
23032 else
23033 as_dir="$ac_dir"
23034 as_dirs=
23035 while test ! -d "$as_dir"; do
23036 as_dirs="$as_dir $as_dirs"
23037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23039 X"$as_dir" : 'X\(//\)[^/]' \| \
23040 X"$as_dir" : 'X\(//\)$' \| \
23041 X"$as_dir" : 'X\(/\)' \| \
23042 . : '\(.\)' 2>/dev/null ||
23043 echo X"$as_dir" |
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23046 /^X\(\/\/\)$/{ s//\1/; q; }
23047 /^X\(\/\).*/{ s//\1/; q; }
23048 s/.*/./; q'`
23049 done
23050 test ! -n "$as_dirs" || mkdir $as_dirs
23051 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23053 { (exit 1); exit 1; }; }; }
23055 ac_builddir=.
23057 if test "$ac_dir" != .; then
23058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23059 # A "../" for each directory in $ac_dir_suffix.
23060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23061 else
23062 ac_dir_suffix= ac_top_builddir=
23065 case $srcdir in
23066 .) # No --srcdir option. We are building in place.
23067 ac_srcdir=.
23068 if test -z "$ac_top_builddir"; then
23069 ac_top_srcdir=.
23070 else
23071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23072 fi ;;
23073 [\\/]* | ?:[\\/]* ) # Absolute path.
23074 ac_srcdir=$srcdir$ac_dir_suffix;
23075 ac_top_srcdir=$srcdir ;;
23076 *) # Relative path.
23077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23079 esac
23081 # Do not use `cd foo && pwd` to compute absolute paths, because
23082 # the directories may not exist.
23083 case `pwd` in
23084 .) ac_abs_builddir="$ac_dir";;
23086 case "$ac_dir" in
23087 .) ac_abs_builddir=`pwd`;;
23088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23090 esac;;
23091 esac
23092 case $ac_abs_builddir in
23093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23095 case ${ac_top_builddir}. in
23096 .) ac_abs_top_builddir=$ac_abs_builddir;;
23097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23099 esac;;
23100 esac
23101 case $ac_abs_builddir in
23102 .) ac_abs_srcdir=$ac_srcdir;;
23104 case $ac_srcdir in
23105 .) ac_abs_srcdir=$ac_abs_builddir;;
23106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23108 esac;;
23109 esac
23110 case $ac_abs_builddir in
23111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23113 case $ac_top_srcdir in
23114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23117 esac;;
23118 esac
23121 case $INSTALL in
23122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23123 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23124 esac
23126 if test x"$ac_file" != x-; then
23127 { echo "$as_me:$LINENO: creating $ac_file" >&5
23128 echo "$as_me: creating $ac_file" >&6;}
23129 rm -f "$ac_file"
23131 # Let's still pretend it is `configure' which instantiates (i.e., don't
23132 # use $as_me), people would be surprised to read:
23133 # /* config.h. Generated by config.status. */
23134 if test x"$ac_file" = x-; then
23135 configure_input=
23136 else
23137 configure_input="$ac_file. "
23139 configure_input=$configure_input"Generated from `echo $ac_file_in |
23140 sed 's,.*/,,'` by configure."
23142 # First look for the input files in the build tree, otherwise in the
23143 # src tree.
23144 ac_file_inputs=`IFS=:
23145 for f in $ac_file_in; do
23146 case $f in
23147 -) echo $tmp/stdin ;;
23148 [\\/$]*)
23149 # Absolute (can't be DOS-style, as IFS=:)
23150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23151 echo "$as_me: error: cannot find input file: $f" >&2;}
23152 { (exit 1); exit 1; }; }
23153 echo "$f";;
23154 *) # Relative
23155 if test -f "$f"; then
23156 # Build tree
23157 echo "$f"
23158 elif test -f "$srcdir/$f"; then
23159 # Source tree
23160 echo "$srcdir/$f"
23161 else
23162 # /dev/null tree
23163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23164 echo "$as_me: error: cannot find input file: $f" >&2;}
23165 { (exit 1); exit 1; }; }
23166 fi;;
23167 esac
23168 done` || { (exit 1); exit 1; }
23169 _ACEOF
23170 cat >>$CONFIG_STATUS <<_ACEOF
23171 sed "$ac_vpsub
23172 $extrasub
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23177 s,@configure_input@,$configure_input,;t t
23178 s,@srcdir@,$ac_srcdir,;t t
23179 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23180 s,@top_srcdir@,$ac_top_srcdir,;t t
23181 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23182 s,@builddir@,$ac_builddir,;t t
23183 s,@abs_builddir@,$ac_abs_builddir,;t t
23184 s,@top_builddir@,$ac_top_builddir,;t t
23185 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23186 s,@INSTALL@,$ac_INSTALL,;t t
23187 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23188 rm -f $tmp/stdin
23189 if test x"$ac_file" != x-; then
23190 mv $tmp/out $ac_file
23191 else
23192 cat $tmp/out
23193 rm -f $tmp/out
23196 done
23197 _ACEOF
23198 cat >>$CONFIG_STATUS <<\_ACEOF
23201 # CONFIG_HEADER section.
23204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23207 # ac_d sets the value in "#define NAME VALUE" lines.
23208 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23209 ac_dB='[ ].*$,\1#\2'
23210 ac_dC=' '
23211 ac_dD=',;t'
23212 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23213 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23214 ac_uB='$,\1#\2define\3'
23215 ac_uC=' '
23216 ac_uD=',;t'
23218 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23220 case $ac_file in
23221 - | *:- | *:-:* ) # input from stdin
23222 cat >$tmp/stdin
23223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23227 * ) ac_file_in=$ac_file.in ;;
23228 esac
23230 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23231 echo "$as_me: creating $ac_file" >&6;}
23233 # First look for the input files in the build tree, otherwise in the
23234 # src tree.
23235 ac_file_inputs=`IFS=:
23236 for f in $ac_file_in; do
23237 case $f in
23238 -) echo $tmp/stdin ;;
23239 [\\/$]*)
23240 # Absolute (can't be DOS-style, as IFS=:)
23241 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23242 echo "$as_me: error: cannot find input file: $f" >&2;}
23243 { (exit 1); exit 1; }; }
23244 # Do quote $f, to prevent DOS paths from being IFS'd.
23245 echo "$f";;
23246 *) # Relative
23247 if test -f "$f"; then
23248 # Build tree
23249 echo "$f"
23250 elif test -f "$srcdir/$f"; then
23251 # Source tree
23252 echo "$srcdir/$f"
23253 else
23254 # /dev/null tree
23255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23256 echo "$as_me: error: cannot find input file: $f" >&2;}
23257 { (exit 1); exit 1; }; }
23258 fi;;
23259 esac
23260 done` || { (exit 1); exit 1; }
23261 # Remove the trailing spaces.
23262 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23264 _ACEOF
23266 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23267 # `conftest.undefs', that substitutes the proper values into
23268 # config.h.in to produce config.h. The first handles `#define'
23269 # templates, and the second `#undef' templates.
23270 # And first: Protect against being on the right side of a sed subst in
23271 # config.status. Protect against being in an unquoted here document
23272 # in config.status.
23273 rm -f conftest.defines conftest.undefs
23274 # Using a here document instead of a string reduces the quoting nightmare.
23275 # Putting comments in sed scripts is not portable.
23277 # `end' is used to avoid that the second main sed command (meant for
23278 # 0-ary CPP macros) applies to n-ary macro definitions.
23279 # See the Autoconf documentation for `clear'.
23280 cat >confdef2sed.sed <<\_ACEOF
23281 s/[\\&,]/\\&/g
23282 s,[\\$`],\\&,g
23283 t clear
23284 : clear
23285 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23286 t end
23287 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23288 : end
23289 _ACEOF
23290 # If some macros were called several times there might be several times
23291 # the same #defines, which is useless. Nevertheless, we may not want to
23292 # sort them, since we want the *last* AC-DEFINE to be honored.
23293 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23294 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23295 rm -f confdef2sed.sed
23297 # This sed command replaces #undef with comments. This is necessary, for
23298 # example, in the case of _POSIX_SOURCE, which is predefined and required
23299 # on some systems where configure will not decide to define it.
23300 cat >>conftest.undefs <<\_ACEOF
23301 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23302 _ACEOF
23304 # Break up conftest.defines because some shells have a limit on the size
23305 # of here documents, and old seds have small limits too (100 cmds).
23306 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23307 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23308 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23309 echo ' :' >>$CONFIG_STATUS
23310 rm -f conftest.tail
23311 while grep . conftest.defines >/dev/null
23313 # Write a limited-size here document to $tmp/defines.sed.
23314 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23315 # Speed up: don't consider the non `#define' lines.
23316 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23317 # Work around the forget-to-reset-the-flag bug.
23318 echo 't clr' >>$CONFIG_STATUS
23319 echo ': clr' >>$CONFIG_STATUS
23320 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23321 echo 'CEOF
23322 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23323 rm -f $tmp/in
23324 mv $tmp/out $tmp/in
23325 ' >>$CONFIG_STATUS
23326 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23327 rm -f conftest.defines
23328 mv conftest.tail conftest.defines
23329 done
23330 rm -f conftest.defines
23331 echo ' fi # grep' >>$CONFIG_STATUS
23332 echo >>$CONFIG_STATUS
23334 # Break up conftest.undefs because some shells have a limit on the size
23335 # of here documents, and old seds have small limits too (100 cmds).
23336 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23337 rm -f conftest.tail
23338 while grep . conftest.undefs >/dev/null
23340 # Write a limited-size here document to $tmp/undefs.sed.
23341 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23342 # Speed up: don't consider the non `#undef'
23343 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23344 # Work around the forget-to-reset-the-flag bug.
23345 echo 't clr' >>$CONFIG_STATUS
23346 echo ': clr' >>$CONFIG_STATUS
23347 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23348 echo 'CEOF
23349 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23350 rm -f $tmp/in
23351 mv $tmp/out $tmp/in
23352 ' >>$CONFIG_STATUS
23353 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23354 rm -f conftest.undefs
23355 mv conftest.tail conftest.undefs
23356 done
23357 rm -f conftest.undefs
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360 # Let's still pretend it is `configure' which instantiates (i.e., don't
23361 # use $as_me), people would be surprised to read:
23362 # /* config.h. Generated by config.status. */
23363 if test x"$ac_file" = x-; then
23364 echo "/* Generated by configure. */" >$tmp/config.h
23365 else
23366 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23368 cat $tmp/in >>$tmp/config.h
23369 rm -f $tmp/in
23370 if test x"$ac_file" != x-; then
23371 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23372 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23373 echo "$as_me: $ac_file is unchanged" >&6;}
23374 else
23375 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$ac_file" : 'X\(//\)[^/]' \| \
23378 X"$ac_file" : 'X\(//\)$' \| \
23379 X"$ac_file" : 'X\(/\)' \| \
23380 . : '\(.\)' 2>/dev/null ||
23381 echo X"$ac_file" |
23382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384 /^X\(\/\/\)$/{ s//\1/; q; }
23385 /^X\(\/\).*/{ s//\1/; q; }
23386 s/.*/./; q'`
23387 { if $as_mkdir_p; then
23388 mkdir -p "$ac_dir"
23389 else
23390 as_dir="$ac_dir"
23391 as_dirs=
23392 while test ! -d "$as_dir"; do
23393 as_dirs="$as_dir $as_dirs"
23394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396 X"$as_dir" : 'X\(//\)[^/]' \| \
23397 X"$as_dir" : 'X\(//\)$' \| \
23398 X"$as_dir" : 'X\(/\)' \| \
23399 . : '\(.\)' 2>/dev/null ||
23400 echo X"$as_dir" |
23401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23403 /^X\(\/\/\)$/{ s//\1/; q; }
23404 /^X\(\/\).*/{ s//\1/; q; }
23405 s/.*/./; q'`
23406 done
23407 test ! -n "$as_dirs" || mkdir $as_dirs
23408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23410 { (exit 1); exit 1; }; }; }
23412 rm -f $ac_file
23413 mv $tmp/config.h $ac_file
23415 else
23416 cat $tmp/config.h
23417 rm -f $tmp/config.h
23419 done
23420 _ACEOF
23422 cat >>$CONFIG_STATUS <<\_ACEOF
23424 { (exit 0); exit 0; }
23425 _ACEOF
23426 chmod +x $CONFIG_STATUS
23427 ac_clean_files=$ac_clean_files_save
23430 # configure is writing to config.log, and then calls config.status.
23431 # config.status does its own redirection, appending to config.log.
23432 # Unfortunately, on DOS this fails, as config.log is still kept open
23433 # by configure, so config.status won't be able to write to it; its
23434 # output is simply discarded. So we exec the FD to /dev/null,
23435 # effectively closing config.log, so it can be properly (re)opened and
23436 # appended to by config.status. When coming back to configure, we
23437 # need to make the FD available again.
23438 if test "$no_create" != yes; then
23439 ac_cs_success=:
23440 ac_config_status_args=
23441 test "$silent" = yes &&
23442 ac_config_status_args="$ac_config_status_args --quiet"
23443 exec 5>/dev/null
23444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23445 exec 5>>config.log
23446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23447 # would make configure fail if this is the last instruction.
23448 $ac_cs_success || { (exit 1); exit 1; }
23452 echo "creating Modules/Setup"
23453 if test ! -f Modules/Setup
23454 then
23455 cp $srcdir/Modules/Setup.dist Modules/Setup
23458 echo "creating Modules/Setup.local"
23459 if test ! -f Modules/Setup.local
23460 then
23461 echo "# Edit this file for local setup changes" >Modules/Setup.local
23464 echo "creating Makefile"
23465 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23466 -s Modules Modules/Setup.config \
23467 Modules/Setup.local Modules/Setup
23468 mv config.c Modules