SF #1499797, Fix for memory leak in WindowsError_str
[python.git] / configure
blob9404d5facb8b6c95b9bcd7494cc6af8e19da1a5b
1 #! /bin/sh
2 # From configure.in Revision: 46295 .
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 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 enable_framework=
1451 PYTHONFRAMEWORK=Python
1452 PYTHONFRAMEWORKDIR=Python.framework
1453 PYTHONFRAMEWORKPREFIX=$enableval
1454 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1455 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1456 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1457 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1459 # Add makefiles for Mac specific code to the list of output
1460 # files:
1461 ac_config_files="$ac_config_files Mac/OSX/Makefile"
1463 ac_config_files="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1465 ac_config_files="$ac_config_files Mac/OSX/IDLE/Makefile"
1467 esac
1469 else
1471 PYTHONFRAMEWORK=
1472 PYTHONFRAMEWORKDIR=no-framework
1473 PYTHONFRAMEWORKPREFIX=
1474 PYTHONFRAMEWORKINSTALLDIR=
1475 FRAMEWORKINSTALLFIRST=
1476 FRAMEWORKINSTALLLAST=
1477 enable_framework=
1487 ##AC_ARG_WITH(dyld,
1488 ## AC_HELP_STRING(--with-dyld,
1489 ## Use (OpenStep|Rhapsody) dynamic linker))
1491 # Set name for machine-dependent library files
1493 echo "$as_me:$LINENO: checking MACHDEP" >&5
1494 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1495 if test -z "$MACHDEP"
1496 then
1497 ac_sys_system=`uname -s`
1498 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1499 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1500 ac_sys_release=`uname -v`
1501 else
1502 ac_sys_release=`uname -r`
1504 ac_md_system=`echo $ac_sys_system |
1505 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1506 ac_md_release=`echo $ac_sys_release |
1507 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1508 MACHDEP="$ac_md_system$ac_md_release"
1510 case $MACHDEP in
1511 cygwin*) MACHDEP="cygwin";;
1512 darwin*) MACHDEP="darwin";;
1513 atheos*) MACHDEP="atheos";;
1514 irix646) MACHDEP="irix6";;
1515 '') MACHDEP="unknown";;
1516 esac
1519 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1520 # disable features if it is defined, without any means to access these
1521 # features as extensions. For these systems, we skip the definition of
1522 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1523 # some feature, make sure there is no alternative way to access this
1524 # feature. Also, when using wildcards, make sure you have verified the
1525 # need for not defining _XOPEN_SOURCE on all systems matching the
1526 # wildcard, and that the wildcard does not include future systems
1527 # (which may remove their limitations).
1528 case $ac_sys_system/$ac_sys_release in
1529 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1530 # even though select is a POSIX function. Reported by J. Ribbens.
1531 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1532 OpenBSD/2.* | OpenBSD/3.[0123456789])
1533 define_xopen_source=no;;
1534 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1535 # of union __?sigval. Reported by Stuart Bishop.
1536 SunOS/5.6)
1537 define_xopen_source=no;;
1538 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1539 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1540 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1541 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1542 define_xopen_source=no;;
1543 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1544 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1545 SCO_SV/3.2)
1546 define_xopen_source=no;;
1547 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1548 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1549 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1550 # This should hopefully be fixed in FreeBSD 4.9
1551 FreeBSD/4.8* | Darwin/6* )
1552 define_xopen_source=no;;
1553 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1554 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1555 # or has another value. By not (re)defining it, the defaults come in place.
1556 AIX/4)
1557 define_xopen_source=no;;
1558 AIX/5)
1559 if test `uname -r` -eq 1; then
1560 define_xopen_source=no
1563 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1564 # disables platform specific features beyond repair.
1565 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1566 # has no effect, don't bother defineing them
1567 Darwin/[78].*)
1568 define_xopen_source=no
1571 esac
1573 if test $define_xopen_source = yes
1574 then
1575 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1576 # defined precisely as g++ defines it
1577 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1578 # compiler
1579 case $ac_sys_system/$ac_sys_release in
1580 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1582 cat >>confdefs.h <<\_ACEOF
1583 #define _XOPEN_SOURCE 500
1584 _ACEOF
1589 cat >>confdefs.h <<\_ACEOF
1590 #define _XOPEN_SOURCE 600
1591 _ACEOF
1594 esac
1596 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1597 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1598 # several APIs are not declared. Since this is also needed in some
1599 # cases for HP-UX, we define it globally.
1600 # except for Solaris 10, where it must not be defined,
1601 # as it implies XPG4.2
1602 case $ac_sys_system/$ac_sys_release in
1603 SunOS/5.10)
1607 cat >>confdefs.h <<\_ACEOF
1608 #define _XOPEN_SOURCE_EXTENDED 1
1609 _ACEOF
1612 esac
1615 cat >>confdefs.h <<\_ACEOF
1616 #define _POSIX_C_SOURCE 200112L
1617 _ACEOF
1623 # SGI compilers allow the specification of the both the ABI and the
1624 # ISA on the command line. Depending on the values of these switches,
1625 # different and often incompatable code will be generated.
1627 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1628 # thus supply support for various ABI/ISA combinations. The MACHDEP
1629 # variable is also adjusted.
1632 if test ! -z "$SGI_ABI"
1633 then
1634 CC="cc $SGI_ABI"
1635 LDFLAGS="$SGI_ABI $LDFLAGS"
1636 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1638 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1639 echo "${ECHO_T}$MACHDEP" >&6
1641 # And add extra plat-mac for darwin
1644 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1645 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1646 if test -z "$EXTRAPLATDIR"
1647 then
1648 case $MACHDEP in
1649 darwin)
1650 EXTRAPLATDIR="\$(PLATMACDIRS)"
1651 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1654 EXTRAPLATDIR=""
1655 EXTRAMACHDEPPATH=""
1657 esac
1659 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1660 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1662 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1663 # it may influence the way we can build extensions, so distutils
1664 # needs to check it
1667 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1668 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1670 # checks for alternative programs
1672 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1673 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1674 # just to get things to compile and link. Users are free to override OPT
1675 # when running configure or make. The build should not break if they do.
1676 # BASECFLAGS should generally not be messed with, however.
1678 # XXX shouldn't some/most/all of this code be merged with the stuff later
1679 # on that fiddles with OPT and BASECFLAGS?
1680 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1681 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1683 # Check whether --with-gcc or --without-gcc was given.
1684 if test "${with_gcc+set}" = set; then
1685 withval="$with_gcc"
1687 case $withval in
1688 no) CC=cc
1689 without_gcc=yes;;
1690 yes) CC=gcc
1691 without_gcc=no;;
1692 *) CC=$withval
1693 without_gcc=$withval;;
1694 esac
1695 else
1697 case $ac_sys_system in
1698 AIX*) CC=cc_r
1699 without_gcc=;;
1700 BeOS*)
1701 case $BE_HOST_CPU in
1702 ppc)
1703 CC=mwcc
1704 without_gcc=yes
1705 BASECFLAGS="$BASECFLAGS -export pragma"
1706 OPT="$OPT -O"
1707 LDFLAGS="$LDFLAGS -nodup"
1709 x86)
1710 CC=gcc
1711 without_gcc=no
1712 OPT="$OPT -O"
1715 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1716 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1717 { (exit 1); exit 1; }; }
1719 esac
1720 AR="\$(srcdir)/Modules/ar_beos"
1721 RANLIB=:
1723 Monterey*)
1724 RANLIB=:
1725 without_gcc=;;
1726 *) without_gcc=no;;
1727 esac
1729 echo "$as_me:$LINENO: result: $without_gcc" >&5
1730 echo "${ECHO_T}$without_gcc" >&6
1732 # If the user switches compilers, we can't believe the cache
1733 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1734 then
1735 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1736 (it is also a good idea to do 'make clean' before compiling)" >&5
1737 echo "$as_me: error: cached CC is different -- throw away $cache_file
1738 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1739 { (exit 1); exit 1; }; }
1742 ac_ext=c
1743 ac_cpp='$CPP $CPPFLAGS'
1744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1769 done
1770 done
1774 CC=$ac_cv_prog_CC
1775 if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1784 if test -z "$ac_cv_prog_CC"; then
1785 ac_ct_CC=$CC
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787 set dummy gcc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1807 done
1808 done
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 CC=$ac_ct_CC
1822 else
1823 CC="$ac_cv_prog_CC"
1826 if test -z "$CC"; then
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1829 set dummy ${ac_tool_prefix}cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "cc", so it can be a program name with args.
1867 set dummy cc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 CC=$ac_ct_CC
1902 else
1903 CC="$ac_cv_prog_CC"
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 ac_prog_rejected=no
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1927 ac_prog_rejected=yes
1928 continue
1930 ac_cv_prog_CC="cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1934 done
1935 done
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy $ac_cv_prog_CC
1940 shift
1941 if test $# != 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1945 shift
1946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1963 for ac_prog in cl
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$CC" && break
2001 done
2003 if test -z "$CC"; then
2004 ac_ct_CC=$CC
2005 for ac_prog in cl
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy $ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CC="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6
2037 else
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$ac_ct_CC" && break
2043 done
2045 CC=$ac_ct_CC
2051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&2;}
2055 { (exit 1); exit 1; }; }
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev/null >&5) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev/null >&5) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2085 main ()
2089 return 0;
2091 _ACEOF
2092 ac_clean_files_save=$ac_clean_files
2093 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2096 # of exeext.
2097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2099 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107 # resort.
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2111 ac_cv_exeext=
2112 # b.out is created by i960 compilers.
2113 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2115 test -f "$ac_file" || continue
2116 case $ac_file in
2117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2119 conftest.$ac_ext )
2120 # This is the source file.
2122 [ab].out )
2123 # We found the default executable, but exeext='' is most
2124 # certainly right.
2125 break;;
2126 *.* )
2127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2131 export ac_cv_exeext
2132 break;;
2134 break;;
2135 esac
2136 done
2137 else
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145 { (exit 77); exit 77; }; }
2148 ac_exeext=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2152 # Check the compiler produces executables we can run. If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159 if { ac_try='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 cross_compiling=no
2166 else
2167 if test "$cross_compiling" = maybe; then
2168 cross_compiling=yes
2169 else
2170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2184 ac_clean_files=$ac_clean_files_save
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2202 # `rm'.
2203 for ac_file in conftest.exe conftest conftest.*; do
2204 test -f "$ac_file" || continue
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 export ac_cv_exeext
2209 break;;
2210 * ) break;;
2211 esac
2212 done
2213 else
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2225 rm -f conftest.$ac_ext
2226 EXEEXT=$ac_cv_exeext
2227 ac_exeext=$EXEEXT
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h. */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2241 main ()
2245 return 0;
2247 _ACEOF
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2255 case $ac_file in
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2258 break;;
2259 esac
2260 done
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT=$ac_cv_objext
2277 ac_objext=$OBJEXT
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2291 main ()
2293 #ifndef __GNUC__
2294 choke me
2295 #endif
2298 return 0;
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2304 ac_status=$?
2305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_compiler_gnu=yes
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 ac_compiler_gnu=no
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2334 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2336 GCC=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CFLAGS=${CFLAGS+set}
2338 ac_save_CFLAGS=$CFLAGS
2339 CFLAGS="-g"
2340 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2341 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cc_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h. */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2353 main ()
2357 return 0;
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2363 ac_status=$?
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_cv_prog_cc_g=yes
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_cv_prog_cc_g=no
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2393 if test "$ac_test_CFLAGS" = set; then
2394 CFLAGS=$ac_save_CFLAGS
2395 elif test $ac_cv_prog_cc_g = yes; then
2396 if test "$GCC" = yes; then
2397 CFLAGS="-g -O2"
2398 else
2399 CFLAGS="-g"
2401 else
2402 if test "$GCC" = yes; then
2403 CFLAGS="-O2"
2404 else
2405 CFLAGS=
2408 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2409 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 ac_cv_prog_cc_stdc=no
2414 ac_save_CC=$CC
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2421 #include <stdarg.h>
2422 #include <stdio.h>
2423 #include <sys/types.h>
2424 #include <sys/stat.h>
2425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2426 struct buf { int x; };
2427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2428 static char *e (p, i)
2429 char **p;
2430 int i;
2432 return p[i];
2434 static char *f (char * (*g) (char **, int), char **p, ...)
2436 char *s;
2437 va_list v;
2438 va_start (v,p);
2439 s = g (p, va_arg (v,int));
2440 va_end (v);
2441 return s;
2444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2445 function prototypes and stuff, but not '\xHH' hex character constants.
2446 These don't provoke an error unfortunately, instead are silently treated
2447 as 'x'. The following induces an error, until -std1 is added to get
2448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2449 array size at least. It's necessary to write '\x00'==0 to get something
2450 that's true only with -std1. */
2451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2453 int test (int i, double x);
2454 struct s1 {int (*f) (int a);};
2455 struct s2 {int (*f) (double a);};
2456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2457 int argc;
2458 char **argv;
2460 main ()
2462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2464 return 0;
2466 _ACEOF
2467 # Don't try gcc -ansi; that turns off useful extensions and
2468 # breaks some systems' header files.
2469 # AIX -qlanglvl=ansi
2470 # Ultrix and OSF/1 -std1
2471 # HP-UX 10.20 and later -Ae
2472 # HP-UX older versions -Aa -D_HPUX_SOURCE
2473 # SVR4 -Xc -D__EXTENSIONS__
2474 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2476 CC="$ac_save_CC $ac_arg"
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_prog_cc_stdc=$ac_arg
2500 break
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.err conftest.$ac_objext
2507 done
2508 rm -f conftest.$ac_ext conftest.$ac_objext
2509 CC=$ac_save_CC
2513 case "x$ac_cv_prog_cc_stdc" in
2514 x|xno)
2515 echo "$as_me:$LINENO: result: none needed" >&5
2516 echo "${ECHO_T}none needed" >&6 ;;
2518 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2519 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2520 CC="$CC $ac_cv_prog_cc_stdc" ;;
2521 esac
2523 # Some people use a C++ compiler to compile C. Since we use `exit',
2524 # in C++ we need to declare it. In case someone uses the same compiler
2525 # for both compiling C and C++ we need to have the C++ compiler decide
2526 # the declaration of exit, since it's the most demanding environment.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #ifndef __cplusplus
2529 choke me
2530 #endif
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 for ac_declaration in \
2555 '' \
2556 'extern "C" void std::exit (int) throw (); using std::exit;' \
2557 'extern "C" void std::exit (int); using std::exit;' \
2558 'extern "C" void exit (int) throw ();' \
2559 'extern "C" void exit (int);' \
2560 'void exit (int);'
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 $ac_declaration
2569 #include <stdlib.h>
2571 main ()
2573 exit (42);
2575 return 0;
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 continue
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 /* confdefs.h. */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2614 $ac_declaration
2616 main ()
2618 exit (42);
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 break
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 done
2653 rm -f conftest*
2654 if test -n "$ac_declaration"; then
2655 echo '#ifdef __cplusplus' >>confdefs.h
2656 echo $ac_declaration >>confdefs.h
2657 echo '#endif' >>confdefs.h
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2676 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2678 # Check whether --with-cxx_main or --without-cxx_main was given.
2679 if test "${with_cxx_main+set}" = set; then
2680 withval="$with_cxx_main"
2683 case $withval in
2684 no) with_cxx_main=no
2685 MAINCC='$(CC)';;
2686 yes) with_cxx_main=yes
2687 MAINCC='$(CXX)';;
2688 *) with_cxx_main=yes
2689 MAINCC=$withval
2690 if test -z "$CXX"
2691 then
2692 CXX=$withval
2693 fi;;
2694 esac
2695 else
2697 with_cxx_main=no
2698 MAINCC='$(CC)'
2701 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2702 echo "${ECHO_T}$with_cxx_main" >&6
2704 preset_cxx="$CXX"
2705 if test -z "$CXX"
2706 then
2707 case "$CC" in
2708 gcc) # Extract the first word of "g++", so it can be a program name with args.
2709 set dummy g++; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_path_CXX+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 case $CXX in
2716 [\\/]* | ?:[\\/]*)
2717 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in notfound
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2734 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2736 esac
2738 CXX=$ac_cv_path_CXX
2740 if test -n "$CXX"; then
2741 echo "$as_me:$LINENO: result: $CXX" >&5
2742 echo "${ECHO_T}$CXX" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2748 cc) # Extract the first word of "c++", so it can be a program name with args.
2749 set dummy c++; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_path_CXX+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 case $CXX in
2756 [\\/]* | ?:[\\/]*)
2757 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in notfound
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2774 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2776 esac
2778 CXX=$ac_cv_path_CXX
2780 if test -n "$CXX"; then
2781 echo "$as_me:$LINENO: result: $CXX" >&5
2782 echo "${ECHO_T}$CXX" >&6
2783 else
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2788 esac
2789 if test "$CXX" = "notfound"
2790 then
2791 CXX=""
2794 if test -z "$CXX"
2795 then
2796 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_CXX+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 if test -n "$CXX"; then
2806 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CXX="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2819 done
2820 done
2824 CXX=$ac_cv_prog_CXX
2825 if test -n "$CXX"; then
2826 echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6
2828 else
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 test -n "$CXX" && break
2834 done
2835 test -n "$CXX" || CXX="notfound"
2837 if test "$CXX" = "notfound"
2838 then
2839 CXX=""
2842 if test "$preset_cxx" != "$CXX"
2843 then
2844 { echo "$as_me:$LINENO: WARNING:
2846 By default, distutils will build C++ extension modules with \"$CXX\".
2847 If this is not intended, then set CXX on the configure command line.
2848 " >&5
2849 echo "$as_me: WARNING:
2851 By default, distutils will build C++ extension modules with \"$CXX\".
2852 If this is not intended, then set CXX on the configure command line.
2853 " >&2;}
2857 # checks for UNIX variants that set C preprocessor variables
2859 ac_ext=c
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2866 # On Suns, sometimes $CPP names a directory.
2867 if test -n "$CPP" && test -d "$CPP"; then
2868 CPP=
2870 if test -z "$CPP"; then
2871 if test "${ac_cv_prog_CPP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 # Double quotes because CPP needs to be expanded
2875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877 ac_preproc_ok=false
2878 for ac_c_preproc_warn_flag in '' yes
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897 Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2910 else
2911 ac_cpp_err=
2913 else
2914 ac_cpp_err=yes
2916 if test -z "$ac_cpp_err"; then
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 # Broken: fails on valid input.
2923 continue
2925 rm -f conftest.err conftest.$ac_ext
2927 # OK, works on sane cases. Now check whether non-existent headers
2928 # can be detected and how.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948 else
2949 ac_cpp_err=
2951 else
2952 ac_cpp_err=yes
2954 if test -z "$ac_cpp_err"; then
2955 # Broken: success on invalid input.
2956 continue
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Passes both tests.
2962 ac_preproc_ok=:
2963 break
2965 rm -f conftest.err conftest.$ac_ext
2967 done
2968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2969 rm -f conftest.err conftest.$ac_ext
2970 if $ac_preproc_ok; then
2971 break
2974 done
2975 ac_cv_prog_CPP=$CPP
2978 CPP=$ac_cv_prog_CPP
2979 else
2980 ac_cv_prog_CPP=$CPP
2982 echo "$as_me:$LINENO: result: $CPP" >&5
2983 echo "${ECHO_T}$CPP" >&6
2984 ac_preproc_ok=false
2985 for ac_c_preproc_warn_flag in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #ifdef __STDC__
3000 # include <limits.h>
3001 #else
3002 # include <assert.h>
3003 #endif
3004 Syntax error
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null; then
3014 if test -s conftest.err; then
3015 ac_cpp_err=$ac_c_preproc_warn_flag
3016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017 else
3018 ac_cpp_err=
3020 else
3021 ac_cpp_err=yes
3023 if test -z "$ac_cpp_err"; then
3025 else
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Broken: fails on valid input.
3030 continue
3032 rm -f conftest.err conftest.$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h. */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 else
3056 ac_cpp_err=
3058 else
3059 ac_cpp_err=yes
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3063 continue
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Passes both tests.
3069 ac_preproc_ok=:
3070 break
3072 rm -f conftest.err conftest.$ac_ext
3074 done
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then
3079 else
3080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking for egrep" >&5
3095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3096 if test "${ac_cv_prog_egrep+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3100 then ac_cv_prog_egrep='grep -E'
3101 else ac_cv_prog_egrep='egrep'
3104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3106 EGREP=$ac_cv_prog_egrep
3110 echo "$as_me:$LINENO: checking for AIX" >&5
3111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #ifdef _AIX
3120 #endif
3122 _ACEOF
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 $EGREP "yes" >/dev/null 2>&1; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126 echo "${ECHO_T}yes" >&6
3127 cat >>confdefs.h <<\_ACEOF
3128 #define _ALL_SOURCE 1
3129 _ACEOF
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3135 rm -f conftest*
3139 # Check for unsupported systems
3140 case $ac_sys_system/$ac_sys_release in
3141 Linux*/1*)
3142 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3143 echo See README for details.
3144 exit 1;;
3145 esac
3148 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3149 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3151 # Check whether --with-suffix or --without-suffix was given.
3152 if test "${with_suffix+set}" = set; then
3153 withval="$with_suffix"
3155 case $withval in
3156 no) EXEEXT=;;
3157 yes) EXEEXT=.exe;;
3158 *) EXEEXT=$withval;;
3159 esac
3161 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3162 echo "${ECHO_T}$EXEEXT" >&6
3164 # Test whether we're running on a non-case-sensitive system, in which
3165 # case we give a warning if no ext is given
3167 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3168 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3169 if test ! -d CaseSensitiveTestDir; then
3170 mkdir CaseSensitiveTestDir
3173 if test -d casesensitivetestdir
3174 then
3175 echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3177 BUILDEXEEXT=.exe
3178 else
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3181 BUILDEXEEXT=$EXEEXT
3183 rmdir CaseSensitiveTestDir
3185 case $MACHDEP in
3186 bsdos*)
3187 case $CC in
3188 gcc) CC="$CC -D_HAVE_BSDI";;
3189 esac;;
3190 esac
3192 case $ac_sys_system in
3193 hp*|HP*)
3194 case $CC in
3195 cc|*/cc) CC="$CC -Ae";;
3196 esac;;
3197 Monterey*)
3198 case $CC in
3199 cc) CC="$CC -Wl,-Bexport";;
3200 esac;;
3201 SunOS*)
3202 # Some functions have a prototype only with that define, e.g. confstr
3204 cat >>confdefs.h <<\_ACEOF
3205 #define __EXTENSIONS__ 1
3206 _ACEOF
3209 esac
3213 echo "$as_me:$LINENO: checking LIBRARY" >&5
3214 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3215 if test -z "$LIBRARY"
3216 then
3217 LIBRARY='libpython$(VERSION).a'
3219 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3220 echo "${ECHO_T}$LIBRARY" >&6
3222 # LDLIBRARY is the name of the library to link against (as opposed to the
3223 # name of the library into which to insert object files). BLDLIBRARY is also
3224 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3225 # is blank as the main program is not linked directly against LDLIBRARY.
3226 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3227 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3228 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3229 # DLLLIBRARY is the shared (i.e., DLL) library.
3231 # RUNSHARED is used to run shared python without installed libraries
3233 # INSTSONAME is the name of the shared library that will be use to install
3234 # on the system - some systems like version suffix, others don't
3241 LDLIBRARY="$LIBRARY"
3242 BLDLIBRARY='$(LDLIBRARY)'
3243 INSTSONAME='$(LDLIBRARY)'
3244 DLLLIBRARY=''
3245 LDLIBRARYDIR=''
3246 RUNSHARED=''
3248 # LINKCC is the command that links the python executable -- default is $(CC).
3249 # If CXX is set, and if it is needed to link a main function that was
3250 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3251 # python might then depend on the C++ runtime
3252 # This is altered for AIX in order to build the export list before
3253 # linking.
3255 echo "$as_me:$LINENO: checking LINKCC" >&5
3256 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3257 if test -z "$LINKCC"
3258 then
3259 LINKCC='$(PURIFY) $(MAINCC)'
3260 case $ac_sys_system in
3261 AIX*)
3262 exp_extra="\"\""
3263 if test $ac_sys_release -ge 5 -o \
3264 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3265 exp_extra="."
3267 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3268 Monterey64*)
3269 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3270 esac
3272 echo "$as_me:$LINENO: result: $LINKCC" >&5
3273 echo "${ECHO_T}$LINKCC" >&6
3275 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3276 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3277 # Check whether --enable-shared or --disable-shared was given.
3278 if test "${enable_shared+set}" = set; then
3279 enableval="$enable_shared"
3283 if test -z "$enable_shared"
3284 then
3285 case $ac_sys_system in
3286 CYGWIN* | atheos*)
3287 enable_shared="yes";;
3289 enable_shared="no";;
3290 esac
3292 echo "$as_me:$LINENO: result: $enable_shared" >&5
3293 echo "${ECHO_T}$enable_shared" >&6
3295 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3296 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3297 # Check whether --enable-profiling or --disable-profiling was given.
3298 if test "${enable_profiling+set}" = set; then
3299 enableval="$enable_profiling"
3300 ac_save_cc="$CC"
3301 CC="$CC -pg"
3302 if test "$cross_compiling" = yes; then
3303 ac_enable_profiling="no"
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 int main() { return 0; }
3312 _ACEOF
3313 rm -f conftest$ac_exeext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3315 (eval $ac_link) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_enable_profiling="yes"
3325 else
3326 echo "$as_me: program exited with status $ac_status" >&5
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ( exit $ac_status )
3331 ac_enable_profiling="no"
3333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 CC="$ac_save_cc"
3337 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3338 echo "${ECHO_T}$ac_enable_profiling" >&6
3340 case "$ac_enable_profiling" in
3341 "yes")
3342 BASECFLAGS="-pg $BASECFLAGS"
3343 LDFLAGS="-pg $LDFLAGS"
3345 esac
3347 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3348 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3350 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3351 # library that we build, but we do not want to link against it (we
3352 # will find it with a -framework option). For this reason there is an
3353 # extra variable BLDLIBRARY against which Python and the extension
3354 # modules are linked, BLDLIBRARY. This is normally the same as
3355 # LDLIBRARY, but empty for MacOSX framework builds.
3356 if test "$enable_framework"
3357 then
3358 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3359 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3360 BLDLIBRARY=''
3361 else
3362 BLDLIBRARY='$(LDLIBRARY)'
3365 # Other platforms follow
3366 if test $enable_shared = "yes"; then
3368 cat >>confdefs.h <<\_ACEOF
3369 #define Py_ENABLE_SHARED 1
3370 _ACEOF
3372 case $ac_sys_system in
3373 BeOS*)
3374 LDLIBRARY='libpython$(VERSION).so'
3376 CYGWIN*)
3377 LDLIBRARY='libpython$(VERSION).dll.a'
3378 DLLLIBRARY='libpython$(VERSION).dll'
3380 SunOS*)
3381 LDLIBRARY='libpython$(VERSION).so'
3382 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3383 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3384 INSTSONAME="$LDLIBRARY".$SOVERSION
3386 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3387 LDLIBRARY='libpython$(VERSION).so'
3388 BLDLIBRARY='-L. -lpython$(VERSION)'
3389 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3390 case $ac_sys_system in
3391 FreeBSD*)
3392 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3394 esac
3395 INSTSONAME="$LDLIBRARY".$SOVERSION
3397 hp*|HP*)
3398 case `uname -m` in
3399 ia64)
3400 LDLIBRARY='libpython$(VERSION).so'
3403 LDLIBRARY='libpython$(VERSION).sl'
3405 esac
3406 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3409 OSF*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 atheos*)
3415 LDLIBRARY='libpython$(VERSION).so'
3416 BLDLIBRARY='-L. -lpython$(VERSION)'
3417 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3419 esac
3420 else # shared is disabled
3421 case $ac_sys_system in
3422 CYGWIN*)
3423 BLDLIBRARY='$(LIBRARY)'
3424 LDLIBRARY='libpython$(VERSION).dll.a'
3426 esac
3429 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3430 echo "${ECHO_T}$LDLIBRARY" >&6
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_RANLIB+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$RANLIB"; then
3441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3459 RANLIB=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461 echo "$as_me:$LINENO: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib; ac_word=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_RANLIB="ranlib"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3492 done
3493 done
3495 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3499 if test -n "$ac_ct_RANLIB"; then
3500 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 RANLIB=$ac_ct_RANLIB
3508 else
3509 RANLIB="$ac_cv_prog_RANLIB"
3513 for ac_prog in ar aal
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_AR+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 if test -n "$AR"; then
3523 ac_cv_prog_AR="$AR" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_AR="$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3541 AR=$ac_cv_prog_AR
3542 if test -n "$AR"; then
3543 echo "$as_me:$LINENO: result: $AR" >&5
3544 echo "${ECHO_T}$AR" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 test -n "$AR" && break
3551 done
3552 test -n "$AR" || AR="ar"
3556 # Extract the first word of "svnversion", so it can be a program name with args.
3557 set dummy svnversion; ac_word=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if test -n "$SVNVERSION"; then
3564 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_SVNVERSION="found"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3580 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3583 SVNVERSION=$ac_cv_prog_SVNVERSION
3584 if test -n "$SVNVERSION"; then
3585 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3586 echo "${ECHO_T}$SVNVERSION" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 if test $SVNVERSION = found
3593 then
3594 SVNVERSION="svnversion \$(srcdir)"
3595 else
3596 SVNVERSION="echo exported"
3599 case $MACHDEP in
3600 bsdos*|hp*|HP*)
3601 # install -d does not work on BSDI or HP-UX
3602 if test -z "$INSTALL"
3603 then
3604 INSTALL="${srcdir}/install-sh -c"
3606 esac
3607 ac_aux_dir=
3608 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3609 if test -f $ac_dir/install-sh; then
3610 ac_aux_dir=$ac_dir
3611 ac_install_sh="$ac_aux_dir/install-sh -c"
3612 break
3613 elif test -f $ac_dir/install.sh; then
3614 ac_aux_dir=$ac_dir
3615 ac_install_sh="$ac_aux_dir/install.sh -c"
3616 break
3617 elif test -f $ac_dir/shtool; then
3618 ac_aux_dir=$ac_dir
3619 ac_install_sh="$ac_aux_dir/shtool install -c"
3620 break
3622 done
3623 if test -z "$ac_aux_dir"; then
3624 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3625 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3626 { (exit 1); exit 1; }; }
3628 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3629 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3630 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3638 # AIX /bin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 # Account for people who put trailing slashes in PATH elements.
3657 case $as_dir/ in
3658 ./ | .// | /cC/* | \
3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3661 /usr/ucb/* ) ;;
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3665 # by default.
3666 for ac_prog in ginstall scoinst install; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3677 else
3678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3679 break 3
3682 done
3683 done
3685 esac
3686 done
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL=$ac_cv_path_install
3692 else
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3712 # Not every filesystem supports hard links
3714 if test -z "$LN" ; then
3715 case $ac_sys_system in
3716 BeOS*) LN="ln -s";;
3717 CYGWIN*) LN="ln -s";;
3718 atheos*) LN="ln -s";;
3719 *) LN=ln;;
3720 esac
3723 # Check for --with-pydebug
3724 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3725 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3727 # Check whether --with-pydebug or --without-pydebug was given.
3728 if test "${with_pydebug+set}" = set; then
3729 withval="$with_pydebug"
3731 if test "$withval" != no
3732 then
3734 cat >>confdefs.h <<\_ACEOF
3735 #define Py_DEBUG 1
3736 _ACEOF
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6;
3740 Py_DEBUG='true'
3741 else echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3750 # merged with this chunk of code?
3752 # Optimizer/debugger flags
3753 # ------------------------
3754 # (The following bit of code is complicated enough - please keep things
3755 # indented properly. Just pretend you're editing Python code. ;-)
3757 # There are two parallel sets of case statements below, one that checks to
3758 # see if OPT was set and one that does BASECFLAGS setting based upon
3759 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3760 # user set OPT.
3762 # tweak OPT based on compiler and platform, only if the user didn't set
3763 # it on the command line
3765 if test -z "$OPT"
3766 then
3767 case $GCC in
3768 yes)
3769 if test "$CC" != 'g++' ; then
3770 STRICT_PROTO="-Wstrict-prototypes"
3772 case $ac_cv_prog_cc_g in
3773 yes)
3774 if test "$Py_DEBUG" = 'true' ; then
3775 # Optimization messes up debuggers, so turn it off for
3776 # debug builds.
3777 OPT="-g -Wall $STRICT_PROTO"
3778 else
3779 OPT="-g -O3 -Wall $STRICT_PROTO"
3783 OPT="-O3 -Wall $STRICT_PROTO"
3785 esac
3786 case $ac_sys_system in
3787 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3789 esac
3793 OPT="-O"
3795 esac
3797 # The current (beta) Monterey compiler dies with optimizations
3798 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3799 case $ac_sys_system in
3800 Monterey*)
3801 OPT=""
3803 esac
3808 # tweak BASECFLAGS based on compiler and platform
3809 case $GCC in
3810 yes)
3811 # Python violates C99 rules, by casting between incompatible
3812 # pointer types. GCC may generate bad code as a result of that,
3813 # so use -fno-strict-aliasing if supported.
3814 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3815 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3816 ac_save_cc="$CC"
3817 CC="$CC -fno-strict-aliasing"
3818 if test "$cross_compiling" = yes; then
3819 ac_cv_no_strict_aliasing_ok=no
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 int main() { return 0; }
3828 _ACEOF
3829 rm -f conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_no_strict_aliasing_ok=yes
3841 else
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ( exit $ac_status )
3847 ac_cv_no_strict_aliasing_ok=no
3849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3851 CC="$ac_save_cc"
3852 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3853 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3854 if test $ac_cv_no_strict_aliasing_ok = yes
3855 then
3856 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3858 case $ac_sys_system in
3859 SCO_SV*)
3860 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3862 # is there any other compiler on Darwin besides gcc?
3863 Darwin*)
3864 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3865 if test "${enable_universalsdk}"; then
3866 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3870 OSF*)
3871 BASECFLAGS="$BASECFLAGS -mieee"
3873 esac
3877 case $ac_sys_system in
3878 OpenUNIX*|UnixWare*)
3879 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3881 OSF*)
3882 BASECFLAGS="$BASECFLAGS -ieee -std"
3884 SCO_SV*)
3885 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3887 esac
3889 esac
3891 if test "$Py_DEBUG" = 'true'; then
3893 else
3894 OPT="-DNDEBUG $OPT"
3897 if test "$ac_arch_flags"
3898 then
3899 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3902 # disable check for icc since it seems to pass, but generates a warning
3903 if test "$CC" = icc
3904 then
3905 ac_cv_opt_olimit_ok=no
3908 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3909 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3910 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 ac_save_cc="$CC"
3914 CC="$CC -OPT:Olimit=0"
3915 if test "$cross_compiling" = yes; then
3916 ac_cv_opt_olimit_ok=no
3917 else
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 int main() { return 0; }
3925 _ACEOF
3926 rm -f conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_opt_olimit_ok=yes
3938 else
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ( exit $ac_status )
3944 ac_cv_opt_olimit_ok=no
3946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3948 CC="$ac_save_cc"
3951 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3952 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3953 if test $ac_cv_opt_olimit_ok = yes; then
3954 case $ac_sys_system in
3955 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3956 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3957 # environment?
3958 Darwin*)
3961 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3963 esac
3964 else
3965 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3966 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3967 if test "${ac_cv_olimit_ok+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 ac_save_cc="$CC"
3971 CC="$CC -Olimit 1500"
3972 if test "$cross_compiling" = yes; then
3973 ac_cv_olimit_ok=no
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 int main() { return 0; }
3982 _ACEOF
3983 rm -f conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_olimit_ok=yes
3995 else
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ( exit $ac_status )
4001 ac_cv_olimit_ok=no
4003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005 CC="$ac_save_cc"
4008 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4009 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4010 if test $ac_cv_olimit_ok = yes; then
4011 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4015 # On some compilers, pthreads are available without further options
4016 # (e.g. MacOS X). On some of these systems, the compiler will not
4017 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4018 # So we have to see first whether pthreads are available without
4019 # options before we can check whether -Kpthread improves anything.
4020 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4021 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4022 if test "${ac_cv_pthread_is_default+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test "$cross_compiling" = yes; then
4026 ac_cv_pthread_is_default=no
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4035 #include <pthread.h>
4037 void* routine(void* p){return NULL;}
4039 int main(){
4040 pthread_t p;
4041 if(pthread_create(&p,NULL,routine,NULL)!=0)
4042 return 1;
4043 (void)pthread_detach(p);
4044 return 0;
4047 _ACEOF
4048 rm -f conftest$ac_exeext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4060 ac_cv_pthread_is_default=yes
4061 ac_cv_kthread=no
4062 ac_cv_pthread=no
4064 else
4065 echo "$as_me: program exited with status $ac_status" >&5
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ( exit $ac_status )
4070 ac_cv_pthread_is_default=no
4072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4081 if test $ac_cv_pthread_is_default = yes
4082 then
4083 ac_cv_kpthread=no
4084 else
4085 # -Kpthread, if available, provides the right #defines
4086 # and linker options to make pthread_create available
4087 # Some compilers won't report that they do not support -Kpthread,
4088 # so we need to run a program to see whether it really made the
4089 # function available.
4090 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4092 if test "${ac_cv_kpthread+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 ac_save_cc="$CC"
4096 CC="$CC -Kpthread"
4097 if test "$cross_compiling" = yes; then
4098 ac_cv_kpthread=no
4099 else
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4107 #include <pthread.h>
4109 void* routine(void* p){return NULL;}
4111 int main(){
4112 pthread_t p;
4113 if(pthread_create(&p,NULL,routine,NULL)!=0)
4114 return 1;
4115 (void)pthread_detach(p);
4116 return 0;
4119 _ACEOF
4120 rm -f conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_kpthread=yes
4132 else
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ( exit $ac_status )
4138 ac_cv_kpthread=no
4140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4142 CC="$ac_save_cc"
4145 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4146 echo "${ECHO_T}$ac_cv_kpthread" >&6
4149 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4150 then
4151 # -Kthread, if available, provides the right #defines
4152 # and linker options to make pthread_create available
4153 # Some compilers won't report that they do not support -Kthread,
4154 # so we need to run a program to see whether it really made the
4155 # function available.
4156 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4157 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4158 if test "${ac_cv_kthread+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 ac_save_cc="$CC"
4162 CC="$CC -Kthread"
4163 if test "$cross_compiling" = yes; then
4164 ac_cv_kthread=no
4165 else
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #include <pthread.h>
4175 void* routine(void* p){return NULL;}
4177 int main(){
4178 pthread_t p;
4179 if(pthread_create(&p,NULL,routine,NULL)!=0)
4180 return 1;
4181 (void)pthread_detach(p);
4182 return 0;
4185 _ACEOF
4186 rm -f conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_kthread=yes
4198 else
4199 echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 ( exit $ac_status )
4204 ac_cv_kthread=no
4206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4208 CC="$ac_save_cc"
4211 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4212 echo "${ECHO_T}$ac_cv_kthread" >&6
4215 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4216 then
4217 # -pthread, if available, provides the right #defines
4218 # and linker options to make pthread_create available
4219 # Some compilers won't report that they do not support -pthread,
4220 # so we need to run a program to see whether it really made the
4221 # function available.
4222 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4223 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4224 if test "${ac_cv_thread+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 ac_save_cc="$CC"
4228 CC="$CC -pthread"
4229 if test "$cross_compiling" = yes; then
4230 ac_cv_pthread=no
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 #include <pthread.h>
4241 void* routine(void* p){return NULL;}
4243 int main(){
4244 pthread_t p;
4245 if(pthread_create(&p,NULL,routine,NULL)!=0)
4246 return 1;
4247 (void)pthread_detach(p);
4248 return 0;
4251 _ACEOF
4252 rm -f conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_pthread=yes
4264 else
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ( exit $ac_status )
4270 ac_cv_pthread=no
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 CC="$ac_save_cc"
4277 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4278 echo "${ECHO_T}$ac_cv_pthread" >&6
4281 # If we have set a CC compiler flag for thread support then
4282 # check if it works for CXX, too.
4283 ac_cv_cxx_thread=no
4284 if test ! -z "$CXX"
4285 then
4286 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4287 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4288 ac_save_cxx="$CXX"
4290 if test "$ac_cv_kpthread" = "yes"
4291 then
4292 CXX="$CXX -Kpthread"
4293 ac_cv_cxx_thread=yes
4294 elif test "$ac_cv_kthread" = "yes"
4295 then
4296 CXX="$CXX -Kthread"
4297 ac_cv_cxx_thread=yes
4298 elif test "$ac_cv_pthread" = "yes"
4299 then
4300 CXX="$CXX -pthread"
4301 ac_cv_cxx_thread=yes
4304 if test $ac_cv_cxx_thread = yes
4305 then
4306 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4307 $CXX -c conftest.$ac_ext 2>&5
4308 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4309 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4310 then
4311 ac_cv_cxx_thread=yes
4312 else
4313 ac_cv_cxx_thread=no
4315 rm -fr conftest*
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4320 CXX="$ac_save_cxx"
4323 # checks for header files
4324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4326 if test "${ac_cv_header_stdc+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <stdlib.h>
4336 #include <stdarg.h>
4337 #include <string.h>
4338 #include <float.h>
4341 main ()
4345 return 0;
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_header_stdc=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_cv_header_stdc=no
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <string.h>
4389 _ACEOF
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then
4393 else
4394 ac_cv_header_stdc=no
4396 rm -f conftest*
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <stdlib.h>
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "free" >/dev/null 2>&1; then
4414 else
4415 ac_cv_header_stdc=no
4417 rm -f conftest*
4421 if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4425 else
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <ctype.h>
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4436 #else
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4442 #endif
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446 main ()
4448 int i;
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4452 exit(2);
4453 exit (0);
4455 _ACEOF
4456 rm -f conftest$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4468 else
4469 echo "$as_me: program exited with status $ac_status" >&5
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ( exit $ac_status )
4474 ac_cv_header_stdc=no
4476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define STDC_HEADERS 1
4486 _ACEOF
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4501 inttypes.h stdint.h unistd.h
4503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504 echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 #include <$ac_header>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 eval "$as_ac_Header=no"
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h <<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555 _ACEOF
4559 done
4602 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4603 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4604 stropts.h termios.h thread.h \
4605 unistd.h utime.h \
4606 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4607 sys/modem.h \
4608 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h \
4609 sys/times.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4610 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4611 bluetooth/bluetooth.h
4613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622 else
4623 # Is the header compilable?
4624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <$ac_header>
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_header_compiler=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_header_compiler=no
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666 echo "${ECHO_T}$ac_header_compiler" >&6
4668 # Is the header present?
4669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <$ac_header>
4678 _ACEOF
4679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev/null; then
4687 if test -s conftest.err; then
4688 ac_cpp_err=$ac_c_preproc_warn_flag
4689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4690 else
4691 ac_cpp_err=
4693 else
4694 ac_cpp_err=yes
4696 if test -z "$ac_cpp_err"; then
4697 ac_header_preproc=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_header_preproc=no
4704 rm -f conftest.err conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4710 yes:no: )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4717 no:yes:* )
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4731 cat <<\_ASBOX
4732 ## ------------------------------------------------ ##
4733 ## Report this to http://www.python.org/python-bugs ##
4734 ## ------------------------------------------------ ##
4735 _ASBOX
4737 sed "s/^/$as_me: WARNING: /" >&2
4739 esac
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 eval "$as_ac_Header=\$ac_header_preproc"
4747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4752 cat >>confdefs.h <<_ACEOF
4753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 _ACEOF
4758 done
4765 ac_header_dirent=no
4766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4767 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4768 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <sys/types.h>
4780 #include <$ac_hdr>
4783 main ()
4785 if ((DIR *) 0)
4786 return 0;
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 eval "$as_ac_Header=yes"
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 eval "$as_ac_Header=no"
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4827 _ACEOF
4829 ac_header_dirent=$ac_hdr; break
4832 done
4833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4834 if test $ac_header_dirent = dirent.h; then
4835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4837 if test "${ac_cv_search_opendir+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 ac_func_search_save_LIBS=$LIBS
4841 ac_cv_search_opendir=no
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 #ifdef __cplusplus
4851 extern "C"
4852 #endif
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4855 char opendir ();
4857 main ()
4859 opendir ();
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_search_opendir="none required"
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4894 if test "$ac_cv_search_opendir" = no; then
4895 for ac_lib in dir; do
4896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 #ifdef __cplusplus
4906 extern "C"
4907 #endif
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char opendir ();
4912 main ()
4914 opendir ();
4916 return 0;
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_search_opendir="-l$ac_lib"
4942 break
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 rm -f conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 done
4952 LIBS=$ac_func_search_save_LIBS
4954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4956 if test "$ac_cv_search_opendir" != no; then
4957 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4961 else
4962 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4963 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4964 if test "${ac_cv_search_opendir+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967 ac_func_search_save_LIBS=$LIBS
4968 ac_cv_search_opendir=no
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 #ifdef __cplusplus
4978 extern "C"
4979 #endif
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char opendir ();
4984 main ()
4986 opendir ();
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_search_opendir="none required"
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 if test "$ac_cv_search_opendir" = no; then
5022 for ac_lib in x; do
5023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 #ifdef __cplusplus
5033 extern "C"
5034 #endif
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5037 char opendir ();
5039 main ()
5041 opendir ();
5043 return 0;
5045 _ACEOF
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_search_opendir="-l$ac_lib"
5069 break
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -f conftest.err conftest.$ac_objext \
5076 conftest$ac_exeext conftest.$ac_ext
5077 done
5079 LIBS=$ac_func_search_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5082 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5083 if test "$ac_cv_search_opendir" != no; then
5084 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5103 main ()
5105 return makedev(0, 0);
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_sys_types_h_makedev=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_cv_header_sys_types_h_makedev=no
5139 rm -f conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5146 if test $ac_cv_header_sys_types_h_makedev = no; then
5147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5155 else
5156 # Is the header compilable?
5157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 #include <sys/mkdev.h>
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_header_compiler=yes
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ac_header_compiler=no
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6
5201 # Is the header present?
5202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <sys/mkdev.h>
5211 _ACEOF
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_c_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5223 else
5224 ac_cpp_err=
5226 else
5227 ac_cpp_err=yes
5229 if test -z "$ac_cpp_err"; then
5230 ac_header_preproc=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_header_preproc=no
5237 rm -f conftest.err conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243 yes:no: )
5244 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5248 ac_header_preproc=yes
5250 no:yes:* )
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5264 cat <<\_ASBOX
5265 ## ------------------------------------------------ ##
5266 ## Report this to http://www.python.org/python-bugs ##
5267 ## ------------------------------------------------ ##
5268 _ASBOX
5270 sed "s/^/$as_me: WARNING: /" >&2
5272 esac
5273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5284 if test $ac_cv_header_sys_mkdev_h = yes; then
5286 cat >>confdefs.h <<\_ACEOF
5287 #define MAJOR_IN_MKDEV 1
5288 _ACEOF
5294 if test $ac_cv_header_sys_mkdev_h = no; then
5295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5296 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5303 else
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 #include <sys/sysmacros.h>
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_header_compiler=no
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <sys/sysmacros.h>
5359 _ACEOF
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371 else
5372 ac_cpp_err=
5374 else
5375 ac_cpp_err=yes
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_preproc=no
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5391 yes:no: )
5392 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc=yes
5398 no:yes:* )
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5412 cat <<\_ASBOX
5413 ## ------------------------------------------------ ##
5414 ## Report this to http://www.python.org/python-bugs ##
5415 ## ------------------------------------------------ ##
5416 _ASBOX
5418 sed "s/^/$as_me: WARNING: /" >&2
5420 esac
5421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5432 if test $ac_cv_header_sys_sysmacros_h = yes; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define MAJOR_IN_SYSMACROS 1
5436 _ACEOF
5445 # On Solaris, term.h requires curses.h
5447 for ac_header in term.h
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 #ifdef HAVE_CURSES_H
5463 #include <curses.h>
5464 #endif
5467 #include <$ac_header>
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 eval "$as_ac_Header=yes"
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 eval "$as_ac_Header=no"
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505 _ACEOF
5509 done
5512 # On Linux, netlink.h requires asm/types.h
5514 for ac_header in linux/netlink.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 #ifdef HAVE_ASM_TYPES_H
5530 #include <asm/types.h>
5531 #endif
5532 #ifdef HAVE_SYS_SOCKET_H
5533 #include <sys/socket.h>
5534 #endif
5537 #include <$ac_header>
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 eval "$as_ac_Header=yes"
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 eval "$as_ac_Header=no"
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5579 done
5582 # checks for typedefs
5583 was_it_defined=no
5584 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5585 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 #include <time.h>
5594 _ACEOF
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "clock_t" >/dev/null 2>&1; then
5597 was_it_defined=yes
5598 else
5601 cat >>confdefs.h <<\_ACEOF
5602 #define clock_t long
5603 _ACEOF
5607 rm -f conftest*
5609 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5610 echo "${ECHO_T}$was_it_defined" >&6
5612 # Check whether using makedev requires defining _OSF_SOURCE
5613 echo "$as_me:$LINENO: checking for makedev" >&5
5614 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5623 main ()
5625 makedev(0, 0)
5627 return 0;
5629 _ACEOF
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_has_makedev=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 ac_cv_has_makedev=no
5659 rm -f conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661 if test "$ac_cv_has_makedev" = "no"; then
5662 # we didn't link, try if _OSF_SOURCE will allow us to link
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 #define _OSF_SOURCE 1
5671 #include <sys/types.h>
5674 main ()
5676 makedev(0, 0)
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_has_makedev=yes
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ac_cv_has_makedev=no
5710 rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 if test "$ac_cv_has_makedev" = "yes"; then
5714 cat >>confdefs.h <<\_ACEOF
5715 #define _OSF_SOURCE 1
5716 _ACEOF
5720 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5721 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5722 if test "$ac_cv_has_makedev" = "yes"; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_MAKEDEV 1
5726 _ACEOF
5730 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5731 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5732 # defined, but the compiler does not support pragma redefine_extname,
5733 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5734 # structures (such as rlimit64) without declaring them. As a
5735 # work-around, disable LFS on such configurations
5737 use_lfs=yes
5738 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5739 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 #define _LARGEFILE_SOURCE 1
5748 #define _FILE_OFFSET_BITS 64
5749 #include <sys/resource.h>
5752 main ()
5754 struct rlimit foo;
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 sol_lfs_bug=no
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 sol_lfs_bug=yes
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5790 echo "${ECHO_T}$sol_lfs_bug" >&6
5791 if test "$sol_lfs_bug" = "yes"; then
5792 use_lfs=no
5795 if test "$use_lfs" = "yes"; then
5796 # Two defines needed to enable largefile support on various platforms
5797 # These may affect some typedefs
5799 cat >>confdefs.h <<\_ACEOF
5800 #define _LARGEFILE_SOURCE 1
5801 _ACEOF
5804 cat >>confdefs.h <<\_ACEOF
5805 #define _FILE_OFFSET_BITS 64
5806 _ACEOF
5810 # Add some code to confdefs.h so that the test for off_t works on SCO
5811 cat >> confdefs.h <<\EOF
5812 #if defined(SCO_DS)
5813 #undef _OFF_T
5814 #endif
5817 # Type availability checks
5818 echo "$as_me:$LINENO: checking for mode_t" >&5
5819 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_mode_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 main ()
5833 if ((mode_t *) 0)
5834 return 0;
5835 if (sizeof (mode_t))
5836 return 0;
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_type_mode_t=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_type_mode_t=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5874 if test $ac_cv_type_mode_t = yes; then
5876 else
5878 cat >>confdefs.h <<_ACEOF
5879 #define mode_t int
5880 _ACEOF
5884 echo "$as_me:$LINENO: checking for off_t" >&5
5885 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_off_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5897 main ()
5899 if ((off_t *) 0)
5900 return 0;
5901 if (sizeof (off_t))
5902 return 0;
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_off_t=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_type_off_t=no
5936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5940 if test $ac_cv_type_off_t = yes; then
5942 else
5944 cat >>confdefs.h <<_ACEOF
5945 #define off_t long
5946 _ACEOF
5950 echo "$as_me:$LINENO: checking for pid_t" >&5
5951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5952 if test "${ac_cv_type_pid_t+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5963 main ()
5965 if ((pid_t *) 0)
5966 return 0;
5967 if (sizeof (pid_t))
5968 return 0;
5970 return 0;
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_pid_t=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_type_pid_t=no
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6006 if test $ac_cv_type_pid_t = yes; then
6008 else
6010 cat >>confdefs.h <<_ACEOF
6011 #define pid_t int
6012 _ACEOF
6016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6018 if test "${ac_cv_type_signal+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6028 #include <signal.h>
6029 #ifdef signal
6030 # undef signal
6031 #endif
6032 #ifdef __cplusplus
6033 extern "C" void (*signal (int, void (*)(int)))(int);
6034 #else
6035 void (*signal ()) ();
6036 #endif
6039 main ()
6041 int i;
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_signal=void
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_type_signal=int
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6078 echo "${ECHO_T}$ac_cv_type_signal" >&6
6080 cat >>confdefs.h <<_ACEOF
6081 #define RETSIGTYPE $ac_cv_type_signal
6082 _ACEOF
6085 echo "$as_me:$LINENO: checking for size_t" >&5
6086 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6087 if test "${ac_cv_type_size_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 $ac_includes_default
6098 main ()
6100 if ((size_t *) 0)
6101 return 0;
6102 if (sizeof (size_t))
6103 return 0;
6105 return 0;
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_type_size_t=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_cv_type_size_t=no
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6141 if test $ac_cv_type_size_t = yes; then
6143 else
6145 cat >>confdefs.h <<_ACEOF
6146 #define size_t unsigned
6147 _ACEOF
6151 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6152 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6153 if test "${ac_cv_type_uid_t+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6164 _ACEOF
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "uid_t" >/dev/null 2>&1; then
6167 ac_cv_type_uid_t=yes
6168 else
6169 ac_cv_type_uid_t=no
6171 rm -f conftest*
6174 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6175 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6176 if test $ac_cv_type_uid_t = no; then
6178 cat >>confdefs.h <<\_ACEOF
6179 #define uid_t int
6180 _ACEOF
6183 cat >>confdefs.h <<\_ACEOF
6184 #define gid_t int
6185 _ACEOF
6189 echo "$as_me:$LINENO: checking for ssize_t" >&5
6190 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6191 if test "${ac_cv_type_ssize_t+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6202 main ()
6204 if ((ssize_t *) 0)
6205 return 0;
6206 if (sizeof (ssize_t))
6207 return 0;
6209 return 0;
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_type_ssize_t=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_cv_type_ssize_t=no
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6244 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6245 if test $ac_cv_type_ssize_t = yes; then
6247 cat >>confdefs.h <<\_ACEOF
6248 #define HAVE_SSIZE_T 1
6249 _ACEOF
6254 # Sizes of various common basic types
6255 # ANSI C requires sizeof(char) == 1, so no need to check it
6256 echo "$as_me:$LINENO: checking for int" >&5
6257 echo $ECHO_N "checking for int... $ECHO_C" >&6
6258 if test "${ac_cv_type_int+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6269 main ()
6271 if ((int *) 0)
6272 return 0;
6273 if (sizeof (int))
6274 return 0;
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_type_int=yes
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_type_int=no
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6311 echo "${ECHO_T}$ac_cv_type_int" >&6
6313 echo "$as_me:$LINENO: checking size of int" >&5
6314 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6315 if test "${ac_cv_sizeof_int+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test "$ac_cv_type_int" = yes; then
6319 # The cast to unsigned long works around a bug in the HP C Compiler
6320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6322 # This bug is HP SR number 8606223364.
6323 if test "$cross_compiling" = yes; then
6324 # Depending upon the size, compute the lo and hi bounds.
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6333 main ()
6335 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6336 test_array [0] = 0
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_lo=0 ac_mid=0
6365 while :; do
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6374 main ()
6376 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6377 test_array [0] = 0
6380 return 0;
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_hi=$ac_mid; break
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_lo=`expr $ac_mid + 1`
6411 if test $ac_lo -le $ac_mid; then
6412 ac_lo= ac_hi=
6413 break
6415 ac_mid=`expr 2 '*' $ac_mid + 1`
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 done
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6431 main ()
6433 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6434 test_array [0] = 0
6437 return 0;
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_hi=-1 ac_mid=-1
6463 while :; do
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 $ac_includes_default
6472 main ()
6474 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6475 test_array [0] = 0
6478 return 0;
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_lo=$ac_mid; break
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_hi=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6510 ac_lo= ac_hi=
6511 break
6513 ac_mid=`expr 2 '*' $ac_mid`
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516 done
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_lo= ac_hi=
6523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 # Binary search between lo and hi bounds.
6527 while test "x$ac_lo" != "x$ac_hi"; do
6528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6537 main ()
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6540 test_array [0] = 0
6543 return 0;
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_hi=$ac_mid
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_lo=`expr '(' $ac_mid ')' + 1`
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576 done
6577 case $ac_lo in
6578 ?*) ac_cv_sizeof_int=$ac_lo;;
6579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int), 77
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; } ;;
6584 esac
6585 else
6586 if test "$cross_compiling" = yes; then
6587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6588 See \`config.log' for more details." >&5
6589 echo "$as_me: error: cannot run test program while cross compiling
6590 See \`config.log' for more details." >&2;}
6591 { (exit 1); exit 1; }; }
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 $ac_includes_default
6600 long longval () { return (long) (sizeof (int)); }
6601 unsigned long ulongval () { return (long) (sizeof (int)); }
6602 #include <stdio.h>
6603 #include <stdlib.h>
6605 main ()
6608 FILE *f = fopen ("conftest.val", "w");
6609 if (! f)
6610 exit (1);
6611 if (((long) (sizeof (int))) < 0)
6613 long i = longval ();
6614 if (i != ((long) (sizeof (int))))
6615 exit (1);
6616 fprintf (f, "%ld\n", i);
6618 else
6620 unsigned long i = ulongval ();
6621 if (i != ((long) (sizeof (int))))
6622 exit (1);
6623 fprintf (f, "%lu\n", i);
6625 exit (ferror (f) || fclose (f) != 0);
6628 return 0;
6630 _ACEOF
6631 rm -f conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_sizeof_int=`cat conftest.val`
6643 else
6644 echo "$as_me: program exited with status $ac_status" >&5
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ( exit $ac_status )
6649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6650 See \`config.log' for more details." >&5
6651 echo "$as_me: error: cannot compute sizeof (int), 77
6652 See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }
6655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6658 rm -f conftest.val
6659 else
6660 ac_cv_sizeof_int=0
6663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6664 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6665 cat >>confdefs.h <<_ACEOF
6666 #define SIZEOF_INT $ac_cv_sizeof_int
6667 _ACEOF
6670 echo "$as_me:$LINENO: checking for long" >&5
6671 echo $ECHO_N "checking for long... $ECHO_C" >&6
6672 if test "${ac_cv_type_long+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6683 main ()
6685 if ((long *) 0)
6686 return 0;
6687 if (sizeof (long))
6688 return 0;
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_type_long=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_type_long=no
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6725 echo "${ECHO_T}$ac_cv_type_long" >&6
6727 echo "$as_me:$LINENO: checking size of long" >&5
6728 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6729 if test "${ac_cv_sizeof_long+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 if test "$ac_cv_type_long" = yes; then
6733 # The cast to unsigned long works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 if test "$cross_compiling" = yes; then
6738 # Depending upon the size, compute the lo and hi bounds.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6747 main ()
6749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6750 test_array [0] = 0
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_lo=0 ac_mid=0
6779 while :; do
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6791 test_array [0] = 0
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi=$ac_mid; break
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_lo=`expr $ac_mid + 1`
6825 if test $ac_lo -le $ac_mid; then
6826 ac_lo= ac_hi=
6827 break
6829 ac_mid=`expr 2 '*' $ac_mid + 1`
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 done
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6845 main ()
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6848 test_array [0] = 0
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_hi=-1 ac_mid=-1
6877 while :; do
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6886 main ()
6888 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6889 test_array [0] = 0
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_lo=$ac_mid; break
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_hi=`expr '(' $ac_mid ')' - 1`
6923 if test $ac_mid -le $ac_hi; then
6924 ac_lo= ac_hi=
6925 break
6927 ac_mid=`expr 2 '*' $ac_mid`
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930 done
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_lo= ac_hi=
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6951 main ()
6953 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6954 test_array [0] = 0
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_hi=$ac_mid
6983 else
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_lo=`expr '(' $ac_mid ')' + 1`
6989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990 done
6991 case $ac_lo in
6992 ?*) ac_cv_sizeof_long=$ac_lo;;
6993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot compute sizeof (long), 77
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; } ;;
6998 esac
6999 else
7000 if test "$cross_compiling" = yes; then
7001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7002 See \`config.log' for more details." >&5
7003 echo "$as_me: error: cannot run test program while cross compiling
7004 See \`config.log' for more details." >&2;}
7005 { (exit 1); exit 1; }; }
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 long longval () { return (long) (sizeof (long)); }
7015 unsigned long ulongval () { return (long) (sizeof (long)); }
7016 #include <stdio.h>
7017 #include <stdlib.h>
7019 main ()
7022 FILE *f = fopen ("conftest.val", "w");
7023 if (! f)
7024 exit (1);
7025 if (((long) (sizeof (long))) < 0)
7027 long i = longval ();
7028 if (i != ((long) (sizeof (long))))
7029 exit (1);
7030 fprintf (f, "%ld\n", i);
7032 else
7034 unsigned long i = ulongval ();
7035 if (i != ((long) (sizeof (long))))
7036 exit (1);
7037 fprintf (f, "%lu\n", i);
7039 exit (ferror (f) || fclose (f) != 0);
7042 return 0;
7044 _ACEOF
7045 rm -f conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_sizeof_long=`cat conftest.val`
7057 else
7058 echo "$as_me: program exited with status $ac_status" >&5
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ( exit $ac_status )
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7064 See \`config.log' for more details." >&5
7065 echo "$as_me: error: cannot compute sizeof (long), 77
7066 See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }
7069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 rm -f conftest.val
7073 else
7074 ac_cv_sizeof_long=0
7077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7078 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7079 cat >>confdefs.h <<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7081 _ACEOF
7084 echo "$as_me:$LINENO: checking for void *" >&5
7085 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7086 if test "${ac_cv_type_void_p+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7097 main ()
7099 if ((void * *) 0)
7100 return 0;
7101 if (sizeof (void *))
7102 return 0;
7104 return 0;
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_type_void_p=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_type_void_p=no
7136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7139 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7141 echo "$as_me:$LINENO: checking size of void *" >&5
7142 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7143 if test "${ac_cv_sizeof_void_p+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 if test "$ac_cv_type_void_p" = yes; then
7147 # The cast to unsigned long works around a bug in the HP C Compiler
7148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7150 # This bug is HP SR number 8606223364.
7151 if test "$cross_compiling" = yes; then
7152 # Depending upon the size, compute the lo and hi bounds.
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7161 main ()
7163 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7164 test_array [0] = 0
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_lo=0 ac_mid=0
7193 while :; do
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7202 main ()
7204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7205 test_array [0] = 0
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_hi=$ac_mid; break
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 ac_lo=`expr $ac_mid + 1`
7239 if test $ac_lo -le $ac_mid; then
7240 ac_lo= ac_hi=
7241 break
7243 ac_mid=`expr 2 '*' $ac_mid + 1`
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 done
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 $ac_includes_default
7259 main ()
7261 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7262 test_array [0] = 0
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_hi=-1 ac_mid=-1
7291 while :; do
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7300 main ()
7302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7303 test_array [0] = 0
7306 return 0;
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -z "$ac_c_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_lo=$ac_mid; break
7332 else
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_hi=`expr '(' $ac_mid ')' - 1`
7337 if test $ac_mid -le $ac_hi; then
7338 ac_lo= ac_hi=
7339 break
7341 ac_mid=`expr 2 '*' $ac_mid`
7343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7344 done
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_lo= ac_hi=
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354 # Binary search between lo and hi bounds.
7355 while test "x$ac_lo" != "x$ac_hi"; do
7356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7365 main ()
7367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7368 test_array [0] = 0
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_hi=$ac_mid
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_lo=`expr '(' $ac_mid ')' + 1`
7403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404 done
7405 case $ac_lo in
7406 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot compute sizeof (void *), 77
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; } ;;
7412 esac
7413 else
7414 if test "$cross_compiling" = yes; then
7415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7416 See \`config.log' for more details." >&5
7417 echo "$as_me: error: cannot run test program while cross compiling
7418 See \`config.log' for more details." >&2;}
7419 { (exit 1); exit 1; }; }
7420 else
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 long longval () { return (long) (sizeof (void *)); }
7429 unsigned long ulongval () { return (long) (sizeof (void *)); }
7430 #include <stdio.h>
7431 #include <stdlib.h>
7433 main ()
7436 FILE *f = fopen ("conftest.val", "w");
7437 if (! f)
7438 exit (1);
7439 if (((long) (sizeof (void *))) < 0)
7441 long i = longval ();
7442 if (i != ((long) (sizeof (void *))))
7443 exit (1);
7444 fprintf (f, "%ld\n", i);
7446 else
7448 unsigned long i = ulongval ();
7449 if (i != ((long) (sizeof (void *))))
7450 exit (1);
7451 fprintf (f, "%lu\n", i);
7453 exit (ferror (f) || fclose (f) != 0);
7456 return 0;
7458 _ACEOF
7459 rm -f conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_void_p=`cat conftest.val`
7471 else
7472 echo "$as_me: program exited with status $ac_status" >&5
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ( exit $ac_status )
7477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: cannot compute sizeof (void *), 77
7480 See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; }
7483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7486 rm -f conftest.val
7487 else
7488 ac_cv_sizeof_void_p=0
7491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7492 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7493 cat >>confdefs.h <<_ACEOF
7494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7495 _ACEOF
7498 echo "$as_me:$LINENO: checking for short" >&5
7499 echo $ECHO_N "checking for short... $ECHO_C" >&6
7500 if test "${ac_cv_type_short+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7511 main ()
7513 if ((short *) 0)
7514 return 0;
7515 if (sizeof (short))
7516 return 0;
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_type_short=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_cv_type_short=no
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7553 echo "${ECHO_T}$ac_cv_type_short" >&6
7555 echo "$as_me:$LINENO: checking size of short" >&5
7556 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7557 if test "${ac_cv_sizeof_short+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 if test "$ac_cv_type_short" = yes; then
7561 # The cast to unsigned long works around a bug in the HP C Compiler
7562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7564 # This bug is HP SR number 8606223364.
7565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 $ac_includes_default
7575 main ()
7577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7578 test_array [0] = 0
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_lo=0 ac_mid=0
7607 while :; do
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7616 main ()
7618 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7619 test_array [0] = 0
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_hi=$ac_mid; break
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_lo=`expr $ac_mid + 1`
7653 if test $ac_lo -le $ac_mid; then
7654 ac_lo= ac_hi=
7655 break
7657 ac_mid=`expr 2 '*' $ac_mid + 1`
7659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7660 done
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7673 main ()
7675 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7676 test_array [0] = 0
7679 return 0;
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag"
7692 || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try='test -s conftest.$ac_objext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_hi=-1 ac_mid=-1
7705 while :; do
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7714 main ()
7716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7717 test_array [0] = 0
7720 return 0;
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_lo=$ac_mid; break
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_hi=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7752 ac_lo= ac_hi=
7753 break
7755 ac_mid=`expr 2 '*' $ac_mid`
7757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 done
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_lo= ac_hi=
7765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7768 # Binary search between lo and hi bounds.
7769 while test "x$ac_lo" != "x$ac_hi"; do
7770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 $ac_includes_default
7779 main ()
7781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7782 test_array [0] = 0
7785 return 0;
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 (eval $ac_try) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_hi=$ac_mid
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_lo=`expr '(' $ac_mid ')' + 1`
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818 done
7819 case $ac_lo in
7820 ?*) ac_cv_sizeof_short=$ac_lo;;
7821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot compute sizeof (short), 77
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; } ;;
7826 esac
7827 else
7828 if test "$cross_compiling" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot run test program while cross compiling
7832 See \`config.log' for more details." >&2;}
7833 { (exit 1); exit 1; }; }
7834 else
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 long longval () { return (long) (sizeof (short)); }
7843 unsigned long ulongval () { return (long) (sizeof (short)); }
7844 #include <stdio.h>
7845 #include <stdlib.h>
7847 main ()
7850 FILE *f = fopen ("conftest.val", "w");
7851 if (! f)
7852 exit (1);
7853 if (((long) (sizeof (short))) < 0)
7855 long i = longval ();
7856 if (i != ((long) (sizeof (short))))
7857 exit (1);
7858 fprintf (f, "%ld\n", i);
7860 else
7862 unsigned long i = ulongval ();
7863 if (i != ((long) (sizeof (short))))
7864 exit (1);
7865 fprintf (f, "%lu\n", i);
7867 exit (ferror (f) || fclose (f) != 0);
7870 return 0;
7872 _ACEOF
7873 rm -f conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_sizeof_short=`cat conftest.val`
7885 else
7886 echo "$as_me: program exited with status $ac_status" >&5
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ( exit $ac_status )
7891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: cannot compute sizeof (short), 77
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; }
7897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7900 rm -f conftest.val
7901 else
7902 ac_cv_sizeof_short=0
7905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7906 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7907 cat >>confdefs.h <<_ACEOF
7908 #define SIZEOF_SHORT $ac_cv_sizeof_short
7909 _ACEOF
7912 echo "$as_me:$LINENO: checking for float" >&5
7913 echo $ECHO_N "checking for float... $ECHO_C" >&6
7914 if test "${ac_cv_type_float+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 $ac_includes_default
7925 main ()
7927 if ((float *) 0)
7928 return 0;
7929 if (sizeof (float))
7930 return 0;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_type_float=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_type_float=no
7964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7967 echo "${ECHO_T}$ac_cv_type_float" >&6
7969 echo "$as_me:$LINENO: checking size of float" >&5
7970 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7971 if test "${ac_cv_sizeof_float+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 if test "$ac_cv_type_float" = yes; then
7975 # The cast to unsigned long works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7989 main ()
7991 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7992 test_array [0] = 0
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_lo=0 ac_mid=0
8021 while :; do
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8030 main ()
8032 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8033 test_array [0] = 0
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_hi=$ac_mid; break
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_lo=`expr $ac_mid + 1`
8067 if test $ac_lo -le $ac_mid; then
8068 ac_lo= ac_hi=
8069 break
8071 ac_mid=`expr 2 '*' $ac_mid + 1`
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074 done
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8087 main ()
8089 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8090 test_array [0] = 0
8093 return 0;
8095 _ACEOF
8096 rm -f conftest.$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try='test -z "$ac_c_werror_flag"
8106 || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_hi=-1 ac_mid=-1
8119 while :; do
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8128 main ()
8130 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8131 test_array [0] = 0
8134 return 0;
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_lo=$ac_mid; break
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_hi=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8166 ac_lo= ac_hi=
8167 break
8169 ac_mid=`expr 2 '*' $ac_mid`
8171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8172 done
8173 else
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_lo= ac_hi=
8179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8182 # Binary search between lo and hi bounds.
8183 while test "x$ac_lo" != "x$ac_hi"; do
8184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8193 main ()
8195 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8196 test_array [0] = 0
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_hi=$ac_mid
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_lo=`expr '(' $ac_mid ')' + 1`
8231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8232 done
8233 case $ac_lo in
8234 ?*) ac_cv_sizeof_float=$ac_lo;;
8235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot compute sizeof (float), 77
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; } ;;
8240 esac
8241 else
8242 if test "$cross_compiling" = yes; then
8243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8244 See \`config.log' for more details." >&5
8245 echo "$as_me: error: cannot run test program while cross compiling
8246 See \`config.log' for more details." >&2;}
8247 { (exit 1); exit 1; }; }
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 long longval () { return (long) (sizeof (float)); }
8257 unsigned long ulongval () { return (long) (sizeof (float)); }
8258 #include <stdio.h>
8259 #include <stdlib.h>
8261 main ()
8264 FILE *f = fopen ("conftest.val", "w");
8265 if (! f)
8266 exit (1);
8267 if (((long) (sizeof (float))) < 0)
8269 long i = longval ();
8270 if (i != ((long) (sizeof (float))))
8271 exit (1);
8272 fprintf (f, "%ld\n", i);
8274 else
8276 unsigned long i = ulongval ();
8277 if (i != ((long) (sizeof (float))))
8278 exit (1);
8279 fprintf (f, "%lu\n", i);
8281 exit (ferror (f) || fclose (f) != 0);
8284 return 0;
8286 _ACEOF
8287 rm -f conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_sizeof_float=`cat conftest.val`
8299 else
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ( exit $ac_status )
8305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8306 See \`config.log' for more details." >&5
8307 echo "$as_me: error: cannot compute sizeof (float), 77
8308 See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; }
8311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8314 rm -f conftest.val
8315 else
8316 ac_cv_sizeof_float=0
8319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8320 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8321 cat >>confdefs.h <<_ACEOF
8322 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8323 _ACEOF
8326 echo "$as_me:$LINENO: checking for double" >&5
8327 echo $ECHO_N "checking for double... $ECHO_C" >&6
8328 if test "${ac_cv_type_double+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8339 main ()
8341 if ((double *) 0)
8342 return 0;
8343 if (sizeof (double))
8344 return 0;
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag"
8359 || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_double=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_type_double=no
8378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8381 echo "${ECHO_T}$ac_cv_type_double" >&6
8383 echo "$as_me:$LINENO: checking size of double" >&5
8384 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8385 if test "${ac_cv_sizeof_double+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 if test "$ac_cv_type_double" = yes; then
8389 # The cast to unsigned long works around a bug in the HP C Compiler
8390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8392 # This bug is HP SR number 8606223364.
8393 if test "$cross_compiling" = yes; then
8394 # Depending upon the size, compute the lo and hi bounds.
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8403 main ()
8405 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8406 test_array [0] = 0
8409 return 0;
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_lo=0 ac_mid=0
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8444 main ()
8446 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8447 test_array [0] = 0
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_hi=$ac_mid; break
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_lo=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8482 ac_lo= ac_hi=
8483 break
8485 ac_mid=`expr 2 '*' $ac_mid + 1`
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 done
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8501 main ()
8503 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8504 test_array [0] = 0
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_hi=-1 ac_mid=-1
8533 while :; do
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8542 main ()
8544 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8545 test_array [0] = 0
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_lo=$ac_mid; break
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_hi=`expr '(' $ac_mid ')' - 1`
8579 if test $ac_mid -le $ac_hi; then
8580 ac_lo= ac_hi=
8581 break
8583 ac_mid=`expr 2 '*' $ac_mid`
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586 done
8587 else
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_lo= ac_hi=
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 # Binary search between lo and hi bounds.
8597 while test "x$ac_lo" != "x$ac_hi"; do
8598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8607 main ()
8609 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8610 test_array [0] = 0
8613 return 0;
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_hi=$ac_mid
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_lo=`expr '(' $ac_mid ')' + 1`
8645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8646 done
8647 case $ac_lo in
8648 ?*) ac_cv_sizeof_double=$ac_lo;;
8649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot compute sizeof (double), 77
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; } ;;
8654 esac
8655 else
8656 if test "$cross_compiling" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8658 See \`config.log' for more details." >&5
8659 echo "$as_me: error: cannot run test program while cross compiling
8660 See \`config.log' for more details." >&2;}
8661 { (exit 1); exit 1; }; }
8662 else
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 long longval () { return (long) (sizeof (double)); }
8671 unsigned long ulongval () { return (long) (sizeof (double)); }
8672 #include <stdio.h>
8673 #include <stdlib.h>
8675 main ()
8678 FILE *f = fopen ("conftest.val", "w");
8679 if (! f)
8680 exit (1);
8681 if (((long) (sizeof (double))) < 0)
8683 long i = longval ();
8684 if (i != ((long) (sizeof (double))))
8685 exit (1);
8686 fprintf (f, "%ld\n", i);
8688 else
8690 unsigned long i = ulongval ();
8691 if (i != ((long) (sizeof (double))))
8692 exit (1);
8693 fprintf (f, "%lu\n", i);
8695 exit (ferror (f) || fclose (f) != 0);
8698 return 0;
8700 _ACEOF
8701 rm -f conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_double=`cat conftest.val`
8713 else
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ( exit $ac_status )
8719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8720 See \`config.log' for more details." >&5
8721 echo "$as_me: error: cannot compute sizeof (double), 77
8722 See \`config.log' for more details." >&2;}
8723 { (exit 1); exit 1; }; }
8725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8728 rm -f conftest.val
8729 else
8730 ac_cv_sizeof_double=0
8733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8735 cat >>confdefs.h <<_ACEOF
8736 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8737 _ACEOF
8740 echo "$as_me:$LINENO: checking for fpos_t" >&5
8741 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8742 if test "${ac_cv_type_fpos_t+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8753 main ()
8755 if ((fpos_t *) 0)
8756 return 0;
8757 if (sizeof (fpos_t))
8758 return 0;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_type_fpos_t=yes
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_type_fpos_t=no
8792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8795 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8797 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8798 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8799 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test "$ac_cv_type_fpos_t" = yes; then
8803 # The cast to unsigned long works around a bug in the HP C Compiler
8804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8806 # This bug is HP SR number 8606223364.
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h. */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8817 main ()
8819 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8820 test_array [0] = 0
8823 return 0;
8825 _ACEOF
8826 rm -f conftest.$ac_objext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8828 (eval $ac_compile) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_lo=0 ac_mid=0
8849 while :; do
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8858 main ()
8860 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8861 test_array [0] = 0
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869 (eval $ac_compile) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_hi=$ac_mid; break
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_lo=`expr $ac_mid + 1`
8895 if test $ac_lo -le $ac_mid; then
8896 ac_lo= ac_hi=
8897 break
8899 ac_mid=`expr 2 '*' $ac_mid + 1`
8901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8902 done
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8915 main ()
8917 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8918 test_array [0] = 0
8921 return 0;
8923 _ACEOF
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_hi=-1 ac_mid=-1
8947 while :; do
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8956 main ()
8958 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8959 test_array [0] = 0
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_lo=$ac_mid; break
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_hi=`expr '(' $ac_mid ')' - 1`
8993 if test $ac_mid -le $ac_hi; then
8994 ac_lo= ac_hi=
8995 break
8997 ac_mid=`expr 2 '*' $ac_mid`
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 done
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_lo= ac_hi=
9007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 # Binary search between lo and hi bounds.
9011 while test "x$ac_lo" != "x$ac_hi"; do
9012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9021 main ()
9023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9024 test_array [0] = 0
9027 return 0;
9029 _ACEOF
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_hi=$ac_mid
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_lo=`expr '(' $ac_mid ')' + 1`
9059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9060 done
9061 case $ac_lo in
9062 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; } ;;
9068 esac
9069 else
9070 if test "$cross_compiling" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot run test program while cross compiling
9074 See \`config.log' for more details." >&2;}
9075 { (exit 1); exit 1; }; }
9076 else
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h. */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 long longval () { return (long) (sizeof (fpos_t)); }
9085 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9086 #include <stdio.h>
9087 #include <stdlib.h>
9089 main ()
9092 FILE *f = fopen ("conftest.val", "w");
9093 if (! f)
9094 exit (1);
9095 if (((long) (sizeof (fpos_t))) < 0)
9097 long i = longval ();
9098 if (i != ((long) (sizeof (fpos_t))))
9099 exit (1);
9100 fprintf (f, "%ld\n", i);
9102 else
9104 unsigned long i = ulongval ();
9105 if (i != ((long) (sizeof (fpos_t))))
9106 exit (1);
9107 fprintf (f, "%lu\n", i);
9109 exit (ferror (f) || fclose (f) != 0);
9112 return 0;
9114 _ACEOF
9115 rm -f conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_sizeof_fpos_t=`cat conftest.val`
9127 else
9128 echo "$as_me: program exited with status $ac_status" >&5
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ( exit $ac_status )
9133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9136 See \`config.log' for more details." >&2;}
9137 { (exit 1); exit 1; }; }
9139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9142 rm -f conftest.val
9143 else
9144 ac_cv_sizeof_fpos_t=0
9147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9148 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9149 cat >>confdefs.h <<_ACEOF
9150 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9151 _ACEOF
9154 echo "$as_me:$LINENO: checking for size_t" >&5
9155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9156 if test "${ac_cv_type_size_t+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9167 main ()
9169 if ((size_t *) 0)
9170 return 0;
9171 if (sizeof (size_t))
9172 return 0;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_type_size_t=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_type_size_t=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9209 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9211 echo "$as_me:$LINENO: checking size of size_t" >&5
9212 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9213 if test "${ac_cv_sizeof_size_t+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216 if test "$ac_cv_type_size_t" = yes; then
9217 # The cast to unsigned long works around a bug in the HP C Compiler
9218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9220 # This bug is HP SR number 8606223364.
9221 if test "$cross_compiling" = yes; then
9222 # Depending upon the size, compute the lo and hi bounds.
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 main ()
9233 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9234 test_array [0] = 0
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_lo=0 ac_mid=0
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9272 main ()
9274 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9275 test_array [0] = 0
9278 return 0;
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_hi=$ac_mid; break
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_lo=`expr $ac_mid + 1`
9309 if test $ac_lo -le $ac_mid; then
9310 ac_lo= ac_hi=
9311 break
9313 ac_mid=`expr 2 '*' $ac_mid + 1`
9315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9316 done
9317 else
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9329 main ()
9331 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9332 test_array [0] = 0
9335 return 0;
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_hi=-1 ac_mid=-1
9361 while :; do
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9370 main ()
9372 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9373 test_array [0] = 0
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_lo=$ac_mid; break
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_hi=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9408 ac_lo= ac_hi=
9409 break
9411 ac_mid=`expr 2 '*' $ac_mid`
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 done
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_lo= ac_hi=
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9424 # Binary search between lo and hi bounds.
9425 while test "x$ac_lo" != "x$ac_hi"; do
9426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9435 main ()
9437 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9438 test_array [0] = 0
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_hi=$ac_mid
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_lo=`expr '(' $ac_mid ')' + 1`
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 done
9475 case $ac_lo in
9476 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot compute sizeof (size_t), 77
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; } ;;
9482 esac
9483 else
9484 if test "$cross_compiling" = yes; then
9485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9486 See \`config.log' for more details." >&5
9487 echo "$as_me: error: cannot run test program while cross compiling
9488 See \`config.log' for more details." >&2;}
9489 { (exit 1); exit 1; }; }
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 $ac_includes_default
9498 long longval () { return (long) (sizeof (size_t)); }
9499 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9500 #include <stdio.h>
9501 #include <stdlib.h>
9503 main ()
9506 FILE *f = fopen ("conftest.val", "w");
9507 if (! f)
9508 exit (1);
9509 if (((long) (sizeof (size_t))) < 0)
9511 long i = longval ();
9512 if (i != ((long) (sizeof (size_t))))
9513 exit (1);
9514 fprintf (f, "%ld\n", i);
9516 else
9518 unsigned long i = ulongval ();
9519 if (i != ((long) (sizeof (size_t))))
9520 exit (1);
9521 fprintf (f, "%lu\n", i);
9523 exit (ferror (f) || fclose (f) != 0);
9526 return 0;
9528 _ACEOF
9529 rm -f conftest$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_sizeof_size_t=`cat conftest.val`
9541 else
9542 echo "$as_me: program exited with status $ac_status" >&5
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ( exit $ac_status )
9547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9548 See \`config.log' for more details." >&5
9549 echo "$as_me: error: cannot compute sizeof (size_t), 77
9550 See \`config.log' for more details." >&2;}
9551 { (exit 1); exit 1; }; }
9553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9556 rm -f conftest.val
9557 else
9558 ac_cv_sizeof_size_t=0
9561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9562 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9563 cat >>confdefs.h <<_ACEOF
9564 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9565 _ACEOF
9569 echo "$as_me:$LINENO: checking for long long support" >&5
9570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9571 have_long_long=no
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9580 main ()
9582 long long x; x = (long long)0;
9584 return 0;
9586 _ACEOF
9587 rm -f conftest.$ac_objext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -z "$ac_c_werror_flag"
9597 || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest.$ac_objext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_LONG_LONG 1
9613 _ACEOF
9615 have_long_long=yes
9617 else
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: $have_long_long" >&5
9624 echo "${ECHO_T}$have_long_long" >&6
9625 if test "$have_long_long" = yes ; then
9626 echo "$as_me:$LINENO: checking for long long" >&5
9627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9628 if test "${ac_cv_type_long_long+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 $ac_includes_default
9639 main ()
9641 if ((long long *) 0)
9642 return 0;
9643 if (sizeof (long long))
9644 return 0;
9646 return 0;
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag"
9659 || test ! -s conftest.err'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 (eval $ac_try) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_type_long_long=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_type_long_long=no
9678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9683 echo "$as_me:$LINENO: checking size of long long" >&5
9684 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9685 if test "${ac_cv_sizeof_long_long+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test "$ac_cv_type_long_long" = yes; then
9689 # The cast to unsigned long works around a bug in the HP C Compiler
9690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9692 # This bug is HP SR number 8606223364.
9693 if test "$cross_compiling" = yes; then
9694 # Depending upon the size, compute the lo and hi bounds.
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9703 main ()
9705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9706 test_array [0] = 0
9709 return 0;
9711 _ACEOF
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest.$ac_objext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_lo=0 ac_mid=0
9735 while :; do
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9744 main ()
9746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9747 test_array [0] = 0
9750 return 0;
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest.$ac_objext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_hi=$ac_mid; break
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_lo=`expr $ac_mid + 1`
9781 if test $ac_lo -le $ac_mid; then
9782 ac_lo= ac_hi=
9783 break
9785 ac_mid=`expr 2 '*' $ac_mid + 1`
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 done
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9801 main ()
9803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9804 test_array [0] = 0
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_hi=-1 ac_mid=-1
9833 while :; do
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9842 main ()
9844 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9845 test_array [0] = 0
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_lo=$ac_mid; break
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_hi=`expr '(' $ac_mid ')' - 1`
9879 if test $ac_mid -le $ac_hi; then
9880 ac_lo= ac_hi=
9881 break
9883 ac_mid=`expr 2 '*' $ac_mid`
9885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9886 done
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_lo= ac_hi=
9893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9896 # Binary search between lo and hi bounds.
9897 while test "x$ac_lo" != "x$ac_hi"; do
9898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9907 main ()
9909 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9910 test_array [0] = 0
9913 return 0;
9915 _ACEOF
9916 rm -f conftest.$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_hi=$ac_mid
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_lo=`expr '(' $ac_mid ')' + 1`
9945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 done
9947 case $ac_lo in
9948 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot compute sizeof (long long), 77
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; } ;;
9954 esac
9955 else
9956 if test "$cross_compiling" = yes; then
9957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9958 See \`config.log' for more details." >&5
9959 echo "$as_me: error: cannot run test program while cross compiling
9960 See \`config.log' for more details." >&2;}
9961 { (exit 1); exit 1; }; }
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 long longval () { return (long) (sizeof (long long)); }
9971 unsigned long ulongval () { return (long) (sizeof (long long)); }
9972 #include <stdio.h>
9973 #include <stdlib.h>
9975 main ()
9978 FILE *f = fopen ("conftest.val", "w");
9979 if (! f)
9980 exit (1);
9981 if (((long) (sizeof (long long))) < 0)
9983 long i = longval ();
9984 if (i != ((long) (sizeof (long long))))
9985 exit (1);
9986 fprintf (f, "%ld\n", i);
9988 else
9990 unsigned long i = ulongval ();
9991 if (i != ((long) (sizeof (long long))))
9992 exit (1);
9993 fprintf (f, "%lu\n", i);
9995 exit (ferror (f) || fclose (f) != 0);
9998 return 0;
10000 _ACEOF
10001 rm -f conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_sizeof_long_long=`cat conftest.val`
10013 else
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 ( exit $ac_status )
10019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot compute sizeof (long long), 77
10022 See \`config.log' for more details." >&2;}
10023 { (exit 1); exit 1; }; }
10025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10028 rm -f conftest.val
10029 else
10030 ac_cv_sizeof_long_long=0
10033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10034 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10035 cat >>confdefs.h <<_ACEOF
10036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10037 _ACEOF
10042 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10043 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10044 have_uintptr_t=no
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10053 main ()
10055 uintptr_t x; x = (uintptr_t)0;
10057 return 0;
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag"
10070 || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_UINTPTR_T 1
10086 _ACEOF
10088 have_uintptr_t=yes
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10097 echo "${ECHO_T}$have_uintptr_t" >&6
10098 if test "$have_uintptr_t" = yes ; then
10099 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10100 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10101 if test "${ac_cv_type_uintptr_t+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10112 main ()
10114 if ((uintptr_t *) 0)
10115 return 0;
10116 if (sizeof (uintptr_t))
10117 return 0;
10119 return 0;
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_type_uintptr_t=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_type_uintptr_t=no
10151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10154 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10156 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10157 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10158 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 if test "$ac_cv_type_uintptr_t" = yes; then
10162 # The cast to unsigned long works around a bug in the HP C Compiler
10163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10165 # This bug is HP SR number 8606223364.
10166 if test "$cross_compiling" = yes; then
10167 # Depending upon the size, compute the lo and hi bounds.
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10176 main ()
10178 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10179 test_array [0] = 0
10182 return 0;
10184 _ACEOF
10185 rm -f conftest.$ac_objext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_lo=0 ac_mid=0
10208 while :; do
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10217 main ()
10219 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10220 test_array [0] = 0
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_hi=$ac_mid; break
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_lo=`expr $ac_mid + 1`
10254 if test $ac_lo -le $ac_mid; then
10255 ac_lo= ac_hi=
10256 break
10258 ac_mid=`expr 2 '*' $ac_mid + 1`
10260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 done
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10274 main ()
10276 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10277 test_array [0] = 0
10280 return 0;
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_hi=-1 ac_mid=-1
10306 while :; do
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10315 main ()
10317 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10318 test_array [0] = 0
10321 return 0;
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_lo=$ac_mid; break
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_hi=`expr '(' $ac_mid ')' - 1`
10352 if test $ac_mid -le $ac_hi; then
10353 ac_lo= ac_hi=
10354 break
10356 ac_mid=`expr 2 '*' $ac_mid`
10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359 done
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 ac_lo= ac_hi=
10366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369 # Binary search between lo and hi bounds.
10370 while test "x$ac_lo" != "x$ac_hi"; do
10371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10380 main ()
10382 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10383 test_array [0] = 0
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 ac_hi=$ac_mid
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 ac_lo=`expr '(' $ac_mid ')' + 1`
10418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10419 done
10420 case $ac_lo in
10421 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; } ;;
10427 esac
10428 else
10429 if test "$cross_compiling" = yes; then
10430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10431 See \`config.log' for more details." >&5
10432 echo "$as_me: error: cannot run test program while cross compiling
10433 See \`config.log' for more details." >&2;}
10434 { (exit 1); exit 1; }; }
10435 else
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 long longval () { return (long) (sizeof (uintptr_t)); }
10444 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10445 #include <stdio.h>
10446 #include <stdlib.h>
10448 main ()
10451 FILE *f = fopen ("conftest.val", "w");
10452 if (! f)
10453 exit (1);
10454 if (((long) (sizeof (uintptr_t))) < 0)
10456 long i = longval ();
10457 if (i != ((long) (sizeof (uintptr_t))))
10458 exit (1);
10459 fprintf (f, "%ld\n", i);
10461 else
10463 unsigned long i = ulongval ();
10464 if (i != ((long) (sizeof (uintptr_t))))
10465 exit (1);
10466 fprintf (f, "%lu\n", i);
10468 exit (ferror (f) || fclose (f) != 0);
10471 return 0;
10473 _ACEOF
10474 rm -f conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10486 else
10487 echo "$as_me: program exited with status $ac_status" >&5
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ( exit $ac_status )
10492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10493 See \`config.log' for more details." >&5
10494 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10495 See \`config.log' for more details." >&2;}
10496 { (exit 1); exit 1; }; }
10498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10501 rm -f conftest.val
10502 else
10503 ac_cv_sizeof_uintptr_t=0
10506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10507 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10508 cat >>confdefs.h <<_ACEOF
10509 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10510 _ACEOF
10515 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10516 echo "$as_me:$LINENO: checking size of off_t" >&5
10517 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10518 if test "${ac_cv_sizeof_off_t+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 if test "$cross_compiling" = yes; then
10522 ac_cv_sizeof_off_t=4
10523 else
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 #include <stdio.h>
10531 #include <sys/types.h>
10532 main()
10534 FILE *f=fopen("conftestval", "w");
10535 if (!f) exit(1);
10536 fprintf(f, "%d\n", sizeof(off_t));
10537 exit(0);
10539 _ACEOF
10540 rm -f conftest$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_off_t=`cat conftestval`
10552 else
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ( exit $ac_status )
10558 ac_cv_sizeof_off_t=0
10560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10566 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10568 cat >>confdefs.h <<_ACEOF
10569 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10570 _ACEOF
10573 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10574 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10575 if test "$have_long_long" = yes -a \
10576 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10577 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_LARGEFILE_SUPPORT 1
10581 _ACEOF
10583 echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6
10585 else
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10590 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10591 echo "$as_me:$LINENO: checking size of time_t" >&5
10592 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10593 if test "${ac_cv_sizeof_time_t+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596 if test "$cross_compiling" = yes; then
10597 ac_cv_sizeof_time_t=4
10598 else
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 #include <stdio.h>
10606 #include <time.h>
10607 main()
10609 FILE *f=fopen("conftestval", "w");
10610 if (!f) exit(1);
10611 fprintf(f, "%d\n", sizeof(time_t));
10612 exit(0);
10614 _ACEOF
10615 rm -f conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_sizeof_time_t=`cat conftestval`
10627 else
10628 echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ( exit $ac_status )
10633 ac_cv_sizeof_time_t=0
10635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10641 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10643 cat >>confdefs.h <<_ACEOF
10644 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10645 _ACEOF
10649 # if have pthread_t then define SIZEOF_PTHREAD_T
10650 ac_save_cc="$CC"
10651 if test "$ac_cv_kpthread" = "yes"
10652 then CC="$CC -Kpthread"
10653 elif test "$ac_cv_kthread" = "yes"
10654 then CC="$CC -Kthread"
10655 elif test "$ac_cv_pthread" = "yes"
10656 then CC="$CC -pthread"
10658 echo "$as_me:$LINENO: checking for pthread_t" >&5
10659 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10660 have_pthread_t=no
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <pthread.h>
10669 main ()
10671 pthread_t x; x = *(pthread_t*)0;
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 have_pthread_t=yes
10699 else
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10706 echo "${ECHO_T}$have_pthread_t" >&6
10707 if test "$have_pthread_t" = yes ; then
10708 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10709 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10710 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10711 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 if test "$cross_compiling" = yes; then
10715 ac_cv_sizeof_pthread_t=4
10716 else
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 #include <stdio.h>
10724 #include <pthread.h>
10725 main()
10727 FILE *f=fopen("conftestval", "w");
10728 if (!f) exit(1);
10729 fprintf(f, "%d\n", sizeof(pthread_t));
10730 exit(0);
10732 _ACEOF
10733 rm -f conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_sizeof_pthread_t=`cat conftestval`
10745 else
10746 echo "$as_me: program exited with status $ac_status" >&5
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ( exit $ac_status )
10751 ac_cv_sizeof_pthread_t=0
10753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10763 _ACEOF
10766 CC="$ac_save_cc"
10768 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10769 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10770 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10771 if test "${enable_toolbox_glue+set}" = set; then
10772 enableval="$enable_toolbox_glue"
10776 if test -z "$enable_toolbox_glue"
10777 then
10778 case $ac_sys_system/$ac_sys_release in
10779 Darwin/*)
10780 enable_toolbox_glue="yes";;
10782 enable_toolbox_glue="no";;
10783 esac
10785 case "$enable_toolbox_glue" in
10786 yes)
10787 extra_machdep_objs="Python/mactoolboxglue.o"
10788 extra_undefs="-u _PyMac_Error"
10790 cat >>confdefs.h <<\_ACEOF
10791 #define USE_TOOLBOX_OBJECT_GLUE 1
10792 _ACEOF
10796 extra_machdep_objs=""
10797 extra_undefs=""
10799 esac
10800 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10801 echo "${ECHO_T}$enable_toolbox_glue" >&6
10804 case $ac_sys_system/$ac_sys_release in
10805 Darwin/[01567]\..*)
10806 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10808 Darwin/*)
10809 OTHER_LIBTOOL_OPT=""
10811 esac
10814 case $ac_sys_system/$ac_sys_release in
10815 Darwin/[01567]\..*)
10816 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10817 if test "${enable_universalsdk}"; then
10819 else
10820 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10822 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10823 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10824 Darwin/*)
10825 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10826 if test ${gcc_version} '<' 4.0
10827 then
10828 LIBTOOL_CRUFT="-lcc_dynamic"
10829 else
10830 LIBTOOL_CRUFT=""
10832 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10833 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10835 esac
10837 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10838 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10839 if test "$enable_framework"
10840 then
10841 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10842 # -F. is needed to allow linking to the framework while
10843 # in the build location.
10845 cat >>confdefs.h <<\_ACEOF
10846 #define WITH_NEXT_FRAMEWORK 1
10847 _ACEOF
10849 echo "$as_me:$LINENO: result: yes" >&5
10850 echo "${ECHO_T}yes" >&6
10851 else
10852 echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6
10856 echo "$as_me:$LINENO: checking for dyld" >&5
10857 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10858 case $ac_sys_system/$ac_sys_release in
10859 Darwin/*)
10861 cat >>confdefs.h <<\_ACEOF
10862 #define WITH_DYLD 1
10863 _ACEOF
10865 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10866 echo "${ECHO_T}always on for Darwin" >&6
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10872 esac
10874 # Set info about shared libraries.
10880 # SO is the extension of shared libraries `(including the dot!)
10881 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10882 echo "$as_me:$LINENO: checking SO" >&5
10883 echo $ECHO_N "checking SO... $ECHO_C" >&6
10884 if test -z "$SO"
10885 then
10886 case $ac_sys_system in
10887 hp*|HP*)
10888 case `uname -m` in
10889 ia64) SO=.so;;
10890 *) SO=.sl;;
10891 esac
10893 CYGWIN*) SO=.dll;;
10894 *) SO=.so;;
10895 esac
10896 else
10897 # this might also be a termcap variable, see #610332
10898 echo
10899 echo '====================================================================='
10900 echo '+ +'
10901 echo '+ WARNING: You have set SO in your environment. +'
10902 echo '+ Do you really mean to change the extension for shared libraries? +'
10903 echo '+ Continuing in 10 seconds to let you to ponder. +'
10904 echo '+ +'
10905 echo '====================================================================='
10906 sleep 10
10908 echo "$as_me:$LINENO: result: $SO" >&5
10909 echo "${ECHO_T}$SO" >&6
10911 cat >>confdefs.h <<_ACEOF
10912 #define SHLIB_EXT "$SO"
10913 _ACEOF
10915 # LDSHARED is the ld *command* used to create shared library
10916 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10917 # (Shared libraries in this instance are shared modules to be loaded into
10918 # Python, as opposed to building Python itself as a shared library.)
10919 echo "$as_me:$LINENO: checking LDSHARED" >&5
10920 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10921 if test -z "$LDSHARED"
10922 then
10923 case $ac_sys_system/$ac_sys_release in
10924 AIX*)
10925 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10926 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10928 BeOS*)
10929 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10930 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10932 IRIX/5*) LDSHARED="ld -shared";;
10933 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10934 SunOS/5*)
10935 if test "$GCC" = "yes"
10936 then LDSHARED='$(CC) -shared'
10937 else LDSHARED='$(CC) -G';
10938 fi ;;
10939 hp*|HP*) LDSHARED="ld -b";;
10940 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10941 Darwin/1.3*)
10942 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10943 if test "$enable_framework" ; then
10944 # Link against the framework. All externals should be defined.
10945 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10946 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10947 else
10948 # No framework. Ignore undefined symbols, assuming they come from Python
10949 LDSHARED="$LDSHARED -undefined suppress"
10950 fi ;;
10951 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10952 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10953 if test "$enable_framework" ; then
10954 # Link against the framework. All externals should be defined.
10955 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10956 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10957 else
10958 # No framework, use the Python app as bundle-loader
10959 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10960 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10961 fi ;;
10962 Darwin/*)
10963 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10964 # This allows an extension to be used in any Python
10965 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10966 if test ${cur_target} '>' 10.2; then
10967 cur_target=10.3
10969 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10970 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10971 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10972 then
10973 if test "${enable_universalsdk}"; then
10974 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10976 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10977 BLDSHARED="$LDSHARED"
10978 else
10979 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10980 if test "$enable_framework" ; then
10981 # Link against the framework. All externals should be defined.
10982 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10983 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10984 else
10985 # No framework, use the Python app as bundle-loader
10986 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10987 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10991 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10992 BSD/OS*/4*) LDSHARED="gcc -shared";;
10993 FreeBSD*)
10994 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10995 then
10996 LDSHARED="$CC -shared ${LDFLAGS}"
10997 else
10998 LDSHARED="ld -Bshareable ${LDFLAGS}"
10999 fi;;
11000 OpenBSD*)
11001 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11002 then
11003 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11004 else
11005 case `uname -r` in
11006 [01].* | 2.[0-7] | 2.[0-7].*)
11007 LDSHARED="ld -Bshareable ${LDFLAGS}"
11010 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11012 esac
11013 fi;;
11014 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11015 OpenUNIX*|UnixWare*)
11016 if test "$GCC" = "yes"
11017 then LDSHARED='$(CC) -shared'
11018 else LDSHARED='$(CC) -G'
11019 fi;;
11020 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11021 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11022 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11023 atheos*) LDSHARED="gcc -shared";;
11024 *) LDSHARED="ld";;
11025 esac
11027 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11028 echo "${ECHO_T}$LDSHARED" >&6
11029 BLDSHARED=${BLDSHARED-$LDSHARED}
11030 # CCSHARED are the C *flags* used to create objects to go into a shared
11031 # library (module) -- this is only needed for a few systems
11032 echo "$as_me:$LINENO: checking CCSHARED" >&5
11033 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11034 if test -z "$CCSHARED"
11035 then
11036 case $ac_sys_system/$ac_sys_release in
11037 SunOS*) if test "$GCC" = yes;
11038 then CCSHARED="-fPIC";
11039 else CCSHARED="-xcode=pic32";
11040 fi;;
11041 hp*|HP*) if test "$GCC" = yes;
11042 then CCSHARED="-fPIC";
11043 else CCSHARED="+z";
11044 fi;;
11045 Linux*|GNU*) CCSHARED="-fPIC";;
11046 BSD/OS*/4*) CCSHARED="-fpic";;
11047 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11048 OpenUNIX*|UnixWare*)
11049 if test "$GCC" = "yes"
11050 then CCSHARED="-fPIC"
11051 else CCSHARED="-KPIC"
11052 fi;;
11053 SCO_SV*)
11054 if test "$GCC" = "yes"
11055 then CCSHARED="-fPIC"
11056 else CCSHARED="-Kpic -belf"
11057 fi;;
11058 Monterey*) CCSHARED="-G";;
11059 IRIX*/6*) case $CC in
11060 *gcc*) CCSHARED="-shared";;
11061 *) CCSHARED="";;
11062 esac;;
11063 atheos*) CCSHARED="-fPIC";;
11064 esac
11066 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11067 echo "${ECHO_T}$CCSHARED" >&6
11068 # LINKFORSHARED are the flags passed to the $(CC) command that links
11069 # the python executable -- this is only needed for a few systems
11070 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11071 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11072 if test -z "$LINKFORSHARED"
11073 then
11074 case $ac_sys_system/$ac_sys_release in
11075 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11076 hp*|HP*)
11077 LINKFORSHARED="-Wl,-E -Wl,+s";;
11078 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11079 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11080 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11081 # -u libsys_s pulls in all symbols in libsys
11082 Darwin/*)
11083 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11084 # which is
11085 # not used by the core itself but which needs to be in the core so
11086 # that dynamically loaded extension modules have access to it.
11087 # -prebind is no longer used, because it actually seems to give a
11088 # slowdown in stead of a speedup, maybe due to the large number of
11089 # dynamic loads Python does.
11091 LINKFORSHARED="$extra_undefs"
11092 if test "$enable_framework"
11093 then
11094 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11096 LINKFORSHARED="$LINKFORSHARED";;
11097 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11098 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11099 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11100 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11101 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11102 then
11103 LINKFORSHARED="-Wl,--export-dynamic"
11104 fi;;
11105 SunOS/5*) case $CC in
11106 *gcc*)
11107 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11108 then
11109 LINKFORSHARED="-Xlinker --export-dynamic"
11110 fi;;
11111 esac;;
11112 CYGWIN*)
11113 if test $enable_shared = "no"
11114 then
11115 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11116 fi;;
11117 esac
11119 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11120 echo "${ECHO_T}$LINKFORSHARED" >&6
11123 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11124 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11125 if test ! "$LIBRARY" = "$LDLIBRARY"
11126 then
11127 case $ac_sys_system in
11128 CYGWIN*)
11129 # Cygwin needs CCSHARED when building extension DLLs
11130 # but not when building the interpreter DLL.
11131 CFLAGSFORSHARED='';;
11133 CFLAGSFORSHARED='$(CCSHARED)'
11134 esac
11136 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11137 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11139 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11140 # library (with --enable-shared).
11141 # For platforms on which shared libraries are not allowed to have unresolved
11142 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11143 # if it is not required, since it creates a dependency of the shared library
11144 # to LIBS. This, in turn, means that applications linking the shared libpython
11145 # don't need to link LIBS explicitly. The default should be only changed
11146 # on systems where this approach causes problems.
11148 echo "$as_me:$LINENO: checking SHLIBS" >&5
11149 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11150 case "$ac_sys_system" in
11152 SHLIBS='$(LIBS)';;
11153 esac
11154 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11155 echo "${ECHO_T}$SHLIBS" >&6
11158 # checks for libraries
11160 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 ac_check_lib_save_LIBS=$LIBS
11166 LIBS="-ldl $LIBS"
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11174 /* Override any gcc2 internal prototype to avoid an error. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 /* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11180 char dlopen ();
11182 main ()
11184 dlopen ();
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_lib_dl_dlopen=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_cv_lib_dl_dlopen=no
11218 rm -f conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11222 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11223 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11224 if test $ac_cv_lib_dl_dlopen = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_LIBDL 1
11227 _ACEOF
11229 LIBS="-ldl $LIBS"
11232 # Dynamic linking for SunOS/Solaris and SYSV
11234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-ldld $LIBS"
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11248 /* Override any gcc2 internal prototype to avoid an error. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254 char shl_load ();
11256 main ()
11258 shl_load ();
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext conftest$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag"
11273 || test ! -s conftest.err'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_lib_dld_shl_load=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_lib_dld_shl_load=no
11292 rm -f conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11297 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11298 if test $ac_cv_lib_dld_shl_load = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_LIBDLD 1
11301 _ACEOF
11303 LIBS="-ldld $LIBS"
11306 # Dynamic linking for HP-UX
11308 # only check for sem_ini if thread support is requested
11309 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11310 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11311 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11312 if test "${ac_cv_search_sem_init+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 ac_func_search_save_LIBS=$LIBS
11316 ac_cv_search_sem_init=no
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11324 /* Override any gcc2 internal prototype to avoid an error. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11330 char sem_init ();
11332 main ()
11334 sem_init ();
11336 return 0;
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest$ac_exeext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_search_sem_init="none required"
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11367 rm -f conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 if test "$ac_cv_search_sem_init" = no; then
11370 for ac_lib in pthread rt posix4; do
11371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11379 /* Override any gcc2 internal prototype to avoid an error. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11385 char sem_init ();
11387 main ()
11389 sem_init ();
11391 return 0;
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_search_sem_init="-l$ac_lib"
11417 break
11418 else
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11423 rm -f conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 done
11427 LIBS=$ac_func_search_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11430 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11431 if test "$ac_cv_search_sem_init" != no; then
11432 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11435 # 'Real Time' functions on Solaris
11436 # posix4 on Solaris 2.6
11437 # pthread (first!) on Linux
11440 # check if we need libintl for locale functions
11441 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11442 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11443 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lintl $LIBS"
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11455 /* Override any gcc2 internal prototype to avoid an error. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 /* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11461 char textdomain ();
11463 main ()
11465 textdomain ();
11467 return 0;
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_lib_intl_textdomain=yes
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_cv_lib_intl_textdomain=no
11499 rm -f conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11504 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11505 if test $ac_cv_lib_intl_textdomain = yes; then
11507 cat >>confdefs.h <<\_ACEOF
11508 #define WITH_LIBINTL 1
11509 _ACEOF
11514 # checks for system dependent C++ extensions support
11515 case "$ac_sys_system" in
11516 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11517 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include "/usr/lpp/xlC/include/load.h"
11526 main ()
11528 loadAndInit("", 0, "")
11530 return 0;
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11556 cat >>confdefs.h <<\_ACEOF
11557 #define AIX_GENUINE_CPLUSPLUS 1
11558 _ACEOF
11560 echo "$as_me:$LINENO: result: yes" >&5
11561 echo "${ECHO_T}yes" >&6
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 echo "$as_me:$LINENO: result: no" >&5
11567 echo "${ECHO_T}no" >&6
11569 rm -f conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext;;
11571 *) ;;
11572 esac
11574 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11575 # BeOS' sockets are stashed in libnet.
11576 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11577 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11578 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lnsl $LIBS"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any gcc2 internal prototype to avoid an error. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596 char t_open ();
11598 main ()
11600 t_open ();
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_lib_nsl_t_open=yes
11628 else
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 ac_cv_lib_nsl_t_open=no
11634 rm -f conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11639 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11640 if test $ac_cv_lib_nsl_t_open = yes; then
11641 LIBS="-lnsl $LIBS"
11643 # SVR4
11644 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11645 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11646 if test "${ac_cv_lib_socket_socket+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lsocket $LIBS $LIBS"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11658 /* Override any gcc2 internal prototype to avoid an error. */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11664 char socket ();
11666 main ()
11668 socket ();
11670 return 0;
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11675 (eval $ac_link) 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag"
11683 || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 ac_cv_lib_socket_socket=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 ac_cv_lib_socket_socket=no
11702 rm -f conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11706 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11707 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11708 if test $ac_cv_lib_socket_socket = yes; then
11709 LIBS="-lsocket $LIBS"
11711 # SVR4 sockets
11713 case "$ac_sys_system" in
11714 BeOS*)
11715 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11716 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11717 if test "${ac_cv_lib_net_socket+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-lnet $LIBS $LIBS"
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 /* Override any gcc2 internal prototype to avoid an error. */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735 char socket ();
11737 main ()
11739 socket ();
11741 return 0;
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_net_socket=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_net_socket=no
11773 rm -f conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11778 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11779 if test $ac_cv_lib_net_socket = yes; then
11780 LIBS="-lnet $LIBS"
11782 # BeOS
11784 esac
11786 echo "$as_me:$LINENO: checking for --with-libs" >&5
11787 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11789 # Check whether --with-libs or --without-libs was given.
11790 if test "${with_libs+set}" = set; then
11791 withval="$with_libs"
11793 echo "$as_me:$LINENO: result: $withval" >&5
11794 echo "${ECHO_T}$withval" >&6
11795 LIBS="$withval $LIBS"
11797 else
11798 echo "$as_me:$LINENO: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11802 # Check for use of the system libffi library
11803 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11804 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11806 # Check whether --with-system_ffi or --without-system_ffi was given.
11807 if test "${with_system_ffi+set}" = set; then
11808 withval="$with_system_ffi"
11812 if test -z "$with_system_ffi"
11813 then with_system_ffi="no"
11815 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11816 echo "${ECHO_T}$with_system_ffi" >&6
11818 # Determine if signalmodule should be used.
11821 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11822 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11824 # Check whether --with-signal-module or --without-signal-module was given.
11825 if test "${with_signal_module+set}" = set; then
11826 withval="$with_signal_module"
11830 if test -z "$with_signal_module"
11831 then with_signal_module="yes"
11833 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11834 echo "${ECHO_T}$with_signal_module" >&6
11836 if test "${with_signal_module}" = "yes"; then
11837 USE_SIGNAL_MODULE=""
11838 SIGNAL_OBJS=""
11839 else
11840 USE_SIGNAL_MODULE="#"
11841 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11844 # This is used to generate Setup.config
11846 USE_THREAD_MODULE=""
11848 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11849 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11852 # Check whether --with-dec-threads or --without-dec-threads was given.
11853 if test "${with_dec_threads+set}" = set; then
11854 withval="$with_dec_threads"
11856 echo "$as_me:$LINENO: result: $withval" >&5
11857 echo "${ECHO_T}$withval" >&6
11858 LDLAST=-threads
11859 if test "${with_thread+set}" != set; then
11860 with_thread="$withval";
11862 else
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11867 # Templates for things AC_DEFINEd more than once.
11868 # For a single AC_DEFINE, no template is needed.
11876 echo "$as_me:$LINENO: checking for --with-threads" >&5
11877 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11879 # Check whether --with-threads or --without-threads was given.
11880 if test "${with_threads+set}" = set; then
11881 withval="$with_threads"
11885 # --with-thread is deprecated, but check for it anyway
11887 # Check whether --with-thread or --without-thread was given.
11888 if test "${with_thread+set}" = set; then
11889 withval="$with_thread"
11890 with_threads=$with_thread
11893 if test -z "$with_threads"
11894 then with_threads="yes"
11896 echo "$as_me:$LINENO: result: $with_threads" >&5
11897 echo "${ECHO_T}$with_threads" >&6
11900 if test "$with_threads" = "no"
11901 then
11902 USE_THREAD_MODULE="#"
11903 elif test "$ac_cv_pthread_is_default" = yes
11904 then
11905 cat >>confdefs.h <<\_ACEOF
11906 #define WITH_THREAD 1
11907 _ACEOF
11909 # Defining _REENTRANT on system with POSIX threads should not hurt.
11910 cat >>confdefs.h <<\_ACEOF
11911 #define _REENTRANT 1
11912 _ACEOF
11914 posix_threads=yes
11915 THREADOBJ="Python/thread.o"
11916 elif test "$ac_cv_kpthread" = "yes"
11917 then
11918 CC="$CC -Kpthread"
11919 if test "$ac_cv_cxx_thread" = "yes"; then
11920 CXX="$CXX -Kpthread"
11922 cat >>confdefs.h <<\_ACEOF
11923 #define WITH_THREAD 1
11924 _ACEOF
11926 posix_threads=yes
11927 THREADOBJ="Python/thread.o"
11928 elif test "$ac_cv_kthread" = "yes"
11929 then
11930 CC="$CC -Kthread"
11931 if test "$ac_cv_cxx_thread" = "yes"; then
11932 CXX="$CXX -Kthread"
11934 cat >>confdefs.h <<\_ACEOF
11935 #define WITH_THREAD 1
11936 _ACEOF
11938 posix_threads=yes
11939 THREADOBJ="Python/thread.o"
11940 elif test "$ac_cv_pthread" = "yes"
11941 then
11942 CC="$CC -pthread"
11943 if test "$ac_cv_cxx_thread" = "yes"; then
11944 CXX="$CXX -pthread"
11946 cat >>confdefs.h <<\_ACEOF
11947 #define WITH_THREAD 1
11948 _ACEOF
11950 posix_threads=yes
11951 THREADOBJ="Python/thread.o"
11952 else
11953 if test ! -z "$with_threads" -a -d "$with_threads"
11954 then LDFLAGS="$LDFLAGS -L$with_threads"
11956 if test ! -z "$withval" -a -d "$withval"
11957 then LDFLAGS="$LDFLAGS -L$withval"
11960 # According to the POSIX spec, a pthreads implementation must
11961 # define _POSIX_THREADS in unistd.h. Some apparently don't
11962 # (e.g. gnu pth with pthread emulation)
11963 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11964 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #include <unistd.h>
11973 #ifdef _POSIX_THREADS
11975 #endif
11977 _ACEOF
11978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11979 $EGREP "yes" >/dev/null 2>&1; then
11980 unistd_defines_pthreads=yes
11981 else
11982 unistd_defines_pthreads=no
11984 rm -f conftest*
11986 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11987 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11989 cat >>confdefs.h <<\_ACEOF
11990 #define _REENTRANT 1
11991 _ACEOF
11993 if test "${ac_cv_header_cthreads_h+set}" = set; then
11994 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11995 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11996 if test "${ac_cv_header_cthreads_h+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12000 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12001 else
12002 # Is the header compilable?
12003 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12004 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 #include <cthreads.h>
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_header_compiler=yes
12037 else
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_header_compiler=no
12043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12045 echo "${ECHO_T}$ac_header_compiler" >&6
12047 # Is the header present?
12048 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12049 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <cthreads.h>
12057 _ACEOF
12058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12069 else
12070 ac_cpp_err=
12072 else
12073 ac_cpp_err=yes
12075 if test -z "$ac_cpp_err"; then
12076 ac_header_preproc=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_header_preproc=no
12083 rm -f conftest.err conftest.$ac_ext
12084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12085 echo "${ECHO_T}$ac_header_preproc" >&6
12087 # So? What about this header?
12088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12089 yes:no: )
12090 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12091 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12093 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12094 ac_header_preproc=yes
12096 no:yes:* )
12097 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12098 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12100 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12102 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12104 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12106 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12108 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12110 cat <<\_ASBOX
12111 ## ------------------------------------------------ ##
12112 ## Report this to http://www.python.org/python-bugs ##
12113 ## ------------------------------------------------ ##
12114 _ASBOX
12116 sed "s/^/$as_me: WARNING: /" >&2
12118 esac
12119 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12120 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12121 if test "${ac_cv_header_cthreads_h+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124 ac_cv_header_cthreads_h=$ac_header_preproc
12126 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12127 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12130 if test $ac_cv_header_cthreads_h = yes; then
12131 cat >>confdefs.h <<\_ACEOF
12132 #define WITH_THREAD 1
12133 _ACEOF
12135 cat >>confdefs.h <<\_ACEOF
12136 #define C_THREADS 1
12137 _ACEOF
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HURD_C_THREADS 1
12142 _ACEOF
12144 LIBS="$LIBS -lthreads"
12145 THREADOBJ="Python/thread.o"
12146 else
12148 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12149 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12150 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12151 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12156 else
12157 # Is the header compilable?
12158 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12159 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 #include <mach/cthreads.h>
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_header_compiler=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_header_compiler=no
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12200 echo "${ECHO_T}$ac_header_compiler" >&6
12202 # Is the header present?
12203 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12204 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <mach/cthreads.h>
12212 _ACEOF
12213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224 else
12225 ac_cpp_err=
12227 else
12228 ac_cpp_err=yes
12230 if test -z "$ac_cpp_err"; then
12231 ac_header_preproc=yes
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_header_preproc=no
12238 rm -f conftest.err conftest.$ac_ext
12239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12240 echo "${ECHO_T}$ac_header_preproc" >&6
12242 # So? What about this header?
12243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 yes:no: )
12245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12246 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12248 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12249 ac_header_preproc=yes
12251 no:yes:* )
12252 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12253 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12255 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12257 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12259 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12263 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12265 cat <<\_ASBOX
12266 ## ------------------------------------------------ ##
12267 ## Report this to http://www.python.org/python-bugs ##
12268 ## ------------------------------------------------ ##
12269 _ASBOX
12271 sed "s/^/$as_me: WARNING: /" >&2
12273 esac
12274 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12275 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12276 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12281 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12282 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12285 if test $ac_cv_header_mach_cthreads_h = yes; then
12286 cat >>confdefs.h <<\_ACEOF
12287 #define WITH_THREAD 1
12288 _ACEOF
12290 cat >>confdefs.h <<\_ACEOF
12291 #define C_THREADS 1
12292 _ACEOF
12295 cat >>confdefs.h <<\_ACEOF
12296 #define MACH_C_THREADS 1
12297 _ACEOF
12299 THREADOBJ="Python/thread.o"
12300 else
12302 echo "$as_me:$LINENO: checking for --with-pth" >&5
12303 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12305 # Check whether --with-pth or --without-pth was given.
12306 if test "${with_pth+set}" = set; then
12307 withval="$with_pth"
12308 echo "$as_me:$LINENO: result: $withval" >&5
12309 echo "${ECHO_T}$withval" >&6
12310 cat >>confdefs.h <<\_ACEOF
12311 #define WITH_THREAD 1
12312 _ACEOF
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_PTH 1
12317 _ACEOF
12319 LIBS="-lpth $LIBS"
12320 THREADOBJ="Python/thread.o"
12321 else
12322 echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6
12325 # Just looking for pthread_create in libpthread is not enough:
12326 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12327 # So we really have to include pthread.h, and then link.
12328 _libs=$LIBS
12329 LIBS="$LIBS -lpthread"
12330 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12331 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 #include <pthread.h>
12340 void * start_routine (void *arg) { exit (0); }
12342 main ()
12345 pthread_create (NULL, NULL, start_routine, NULL)
12347 return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag"
12360 || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12373 echo "$as_me:$LINENO: result: yes" >&5
12374 echo "${ECHO_T}yes" >&6
12375 cat >>confdefs.h <<\_ACEOF
12376 #define WITH_THREAD 1
12377 _ACEOF
12379 posix_threads=yes
12380 THREADOBJ="Python/thread.o"
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12386 LIBS=$_libs
12387 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12388 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12389 if test "${ac_cv_func_pthread_detach+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define pthread_detach innocuous_pthread_detach
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char pthread_detach (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12413 #undef pthread_detach
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 #ifdef __cplusplus
12417 extern "C"
12419 #endif
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char pthread_detach ();
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12427 choke me
12428 #else
12429 char (*f) () = pthread_detach;
12430 #endif
12431 #ifdef __cplusplus
12433 #endif
12436 main ()
12438 return f != pthread_detach;
12440 return 0;
12442 _ACEOF
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_func_pthread_detach=yes
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_func_pthread_detach=no
12472 rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12476 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12477 if test $ac_cv_func_pthread_detach = yes; then
12478 cat >>confdefs.h <<\_ACEOF
12479 #define WITH_THREAD 1
12480 _ACEOF
12482 posix_threads=yes
12483 THREADOBJ="Python/thread.o"
12484 else
12486 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12487 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12488 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12489 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12493 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12494 else
12495 # Is the header compilable?
12496 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12497 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h. */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 $ac_includes_default
12505 #include <atheos/threads.h>
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12509 (eval $ac_compile) 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest.$ac_objext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 ac_header_compiler=yes
12530 else
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ac_header_compiler=no
12536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12538 echo "${ECHO_T}$ac_header_compiler" >&6
12540 # Is the header present?
12541 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12542 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <atheos/threads.h>
12550 _ACEOF
12551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } >/dev/null; then
12559 if test -s conftest.err; then
12560 ac_cpp_err=$ac_c_preproc_warn_flag
12561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12562 else
12563 ac_cpp_err=
12565 else
12566 ac_cpp_err=yes
12568 if test -z "$ac_cpp_err"; then
12569 ac_header_preproc=yes
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_header_preproc=no
12576 rm -f conftest.err conftest.$ac_ext
12577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12578 echo "${ECHO_T}$ac_header_preproc" >&6
12580 # So? What about this header?
12581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12582 yes:no: )
12583 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12584 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12586 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12587 ac_header_preproc=yes
12589 no:yes:* )
12590 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12591 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12593 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12595 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12597 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12599 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12601 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12603 cat <<\_ASBOX
12604 ## ------------------------------------------------ ##
12605 ## Report this to http://www.python.org/python-bugs ##
12606 ## ------------------------------------------------ ##
12607 _ASBOX
12609 sed "s/^/$as_me: WARNING: /" >&2
12611 esac
12612 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12613 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12614 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 ac_cv_header_atheos_threads_h=$ac_header_preproc
12619 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12620 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12623 if test $ac_cv_header_atheos_threads_h = yes; then
12624 cat >>confdefs.h <<\_ACEOF
12625 #define WITH_THREAD 1
12626 _ACEOF
12629 cat >>confdefs.h <<\_ACEOF
12630 #define ATHEOS_THREADS 1
12631 _ACEOF
12633 THREADOBJ="Python/thread.o"
12634 else
12636 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12637 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12638 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12644 else
12645 # Is the header compilable?
12646 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12647 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 #include <kernel/OS.h>
12656 _ACEOF
12657 rm -f conftest.$ac_objext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag"
12667 || test ! -s conftest.err'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest.$ac_objext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_header_compiler=yes
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_header_compiler=no
12686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12688 echo "${ECHO_T}$ac_header_compiler" >&6
12690 # Is the header present?
12691 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12692 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h. */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 #include <kernel/OS.h>
12700 _ACEOF
12701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev/null; then
12709 if test -s conftest.err; then
12710 ac_cpp_err=$ac_c_preproc_warn_flag
12711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12712 else
12713 ac_cpp_err=
12715 else
12716 ac_cpp_err=yes
12718 if test -z "$ac_cpp_err"; then
12719 ac_header_preproc=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_header_preproc=no
12726 rm -f conftest.err conftest.$ac_ext
12727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12728 echo "${ECHO_T}$ac_header_preproc" >&6
12730 # So? What about this header?
12731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12732 yes:no: )
12733 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12734 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12736 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12737 ac_header_preproc=yes
12739 no:yes:* )
12740 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12741 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12743 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12745 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12747 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12749 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12751 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12753 cat <<\_ASBOX
12754 ## ------------------------------------------------ ##
12755 ## Report this to http://www.python.org/python-bugs ##
12756 ## ------------------------------------------------ ##
12757 _ASBOX
12759 sed "s/^/$as_me: WARNING: /" >&2
12761 esac
12762 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12763 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12764 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 ac_cv_header_kernel_OS_h=$ac_header_preproc
12769 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12773 if test $ac_cv_header_kernel_OS_h = yes; then
12774 cat >>confdefs.h <<\_ACEOF
12775 #define WITH_THREAD 1
12776 _ACEOF
12779 cat >>confdefs.h <<\_ACEOF
12780 #define BEOS_THREADS 1
12781 _ACEOF
12783 THREADOBJ="Python/thread.o"
12784 else
12786 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12787 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12788 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 ac_check_lib_save_LIBS=$LIBS
12792 LIBS="-lpthreads $LIBS"
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12800 /* Override any gcc2 internal prototype to avoid an error. */
12801 #ifdef __cplusplus
12802 extern "C"
12803 #endif
12804 /* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12806 char pthread_create ();
12808 main ()
12810 pthread_create ();
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag"
12825 || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_lib_pthreads_pthread_create=yes
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ac_cv_lib_pthreads_pthread_create=no
12844 rm -f conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12848 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12849 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12850 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12851 cat >>confdefs.h <<\_ACEOF
12852 #define WITH_THREAD 1
12853 _ACEOF
12855 posix_threads=yes
12856 LIBS="$LIBS -lpthreads"
12857 THREADOBJ="Python/thread.o"
12858 else
12860 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12861 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12862 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-lc_r $LIBS"
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h. */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any gcc2 internal prototype to avoid an error. */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 /* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880 char pthread_create ();
12882 main ()
12884 pthread_create ();
12886 return 0;
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_lib_c_r_pthread_create=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_lib_c_r_pthread_create=no
12918 rm -f conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920 LIBS=$ac_check_lib_save_LIBS
12922 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12923 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12924 if test $ac_cv_lib_c_r_pthread_create = yes; then
12925 cat >>confdefs.h <<\_ACEOF
12926 #define WITH_THREAD 1
12927 _ACEOF
12929 posix_threads=yes
12930 LIBS="$LIBS -lc_r"
12931 THREADOBJ="Python/thread.o"
12932 else
12934 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12935 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12936 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939 ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-lpthread $LIBS"
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h. */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954 char __pthread_create_system ();
12956 main ()
12958 __pthread_create_system ();
12960 return 0;
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_pthread___pthread_create_system=yes
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_lib_pthread___pthread_create_system=no
12992 rm -f conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12997 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12998 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12999 cat >>confdefs.h <<\_ACEOF
13000 #define WITH_THREAD 1
13001 _ACEOF
13003 posix_threads=yes
13004 LIBS="$LIBS -lpthread"
13005 THREADOBJ="Python/thread.o"
13006 else
13008 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13009 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13010 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lcma $LIBS"
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any gcc2 internal prototype to avoid an error. */
13023 #ifdef __cplusplus
13024 extern "C"
13025 #endif
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13028 char pthread_create ();
13030 main ()
13032 pthread_create ();
13034 return 0;
13036 _ACEOF
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest$ac_exeext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_lib_cma_pthread_create=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_cv_lib_cma_pthread_create=no
13066 rm -f conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13070 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13071 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13072 if test $ac_cv_lib_cma_pthread_create = yes; then
13073 cat >>confdefs.h <<\_ACEOF
13074 #define WITH_THREAD 1
13075 _ACEOF
13077 posix_threads=yes
13078 LIBS="$LIBS -lcma"
13079 THREADOBJ="Python/thread.o"
13080 else
13082 USE_THREAD_MODULE="#"
13101 rm -f conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13111 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13112 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13113 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lmpc $LIBS"
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 /* Override any gcc2 internal prototype to avoid an error. */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13131 char usconfig ();
13133 main ()
13135 usconfig ();
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_mpc_usconfig=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_lib_mpc_usconfig=no
13169 rm -f conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13174 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13175 if test $ac_cv_lib_mpc_usconfig = yes; then
13176 cat >>confdefs.h <<\_ACEOF
13177 #define WITH_THREAD 1
13178 _ACEOF
13180 LIBS="$LIBS -lmpc"
13181 THREADOBJ="Python/thread.o"
13182 USE_THREAD_MODULE=""
13186 if test "$posix_threads" != "yes"; then
13187 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13188 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13189 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lthread $LIBS"
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char thr_create ();
13209 main ()
13211 thr_create ();
13213 return 0;
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_thread_thr_create=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_cv_lib_thread_thr_create=no
13245 rm -f conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13250 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13251 if test $ac_cv_lib_thread_thr_create = yes; then
13252 cat >>confdefs.h <<\_ACEOF
13253 #define WITH_THREAD 1
13254 _ACEOF
13256 LIBS="$LIBS -lthread"
13257 THREADOBJ="Python/thread.o"
13258 USE_THREAD_MODULE=""
13263 if test "$USE_THREAD_MODULE" != "#"
13264 then
13265 # If the above checks didn't disable threads, (at least) OSF1
13266 # needs this '-threads' argument during linking.
13267 case $ac_sys_system in
13268 OSF1) LDLAST=-threads;;
13269 esac
13273 if test "$posix_threads" = "yes"; then
13274 if test "$unistd_defines_pthreads" = "no"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define _POSIX_THREADS 1
13278 _ACEOF
13282 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13283 case $ac_sys_system/$ac_sys_release in
13284 SunOS/5.6)
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_PTHREAD_DESTRUCTOR 1
13287 _ACEOF
13290 SunOS/5.8)
13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13293 _ACEOF
13296 esac
13298 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13299 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13300 if test "${ac_cv_pthread_system_supported+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 if test "$cross_compiling" = yes; then
13304 ac_cv_pthread_system_supported=no
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <pthread.h>
13313 void *foo(void *parm) {
13314 return NULL;
13316 main() {
13317 pthread_attr_t attr;
13318 pthread_t id;
13319 if (pthread_attr_init(&attr)) exit(-1);
13320 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13321 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13322 exit(0);
13324 _ACEOF
13325 rm -f conftest$ac_exeext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13327 (eval $ac_link) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_pthread_system_supported=yes
13337 else
13338 echo "$as_me: program exited with status $ac_status" >&5
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ( exit $ac_status )
13343 ac_cv_pthread_system_supported=no
13345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13350 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13351 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13352 if test "$ac_cv_pthread_system_supported" = "yes"; then
13354 cat >>confdefs.h <<\_ACEOF
13355 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13356 _ACEOF
13360 for ac_func in pthread_sigmask
13362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13363 echo "$as_me:$LINENO: checking for $ac_func" >&5
13364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13365 if eval "test \"\${$as_ac_var+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define $ac_func innocuous_$ac_func
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13383 #ifdef __STDC__
13384 # include <limits.h>
13385 #else
13386 # include <assert.h>
13387 #endif
13389 #undef $ac_func
13391 /* Override any gcc2 internal prototype to avoid an error. */
13392 #ifdef __cplusplus
13393 extern "C"
13395 #endif
13396 /* We use char because int might match the return type of a gcc2
13397 builtin and then its argument prototype would still apply. */
13398 char $ac_func ();
13399 /* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13403 choke me
13404 #else
13405 char (*f) () = $ac_func;
13406 #endif
13407 #ifdef __cplusplus
13409 #endif
13412 main ()
13414 return f != $ac_func;
13416 return 0;
13418 _ACEOF
13419 rm -f conftest.$ac_objext conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 eval "$as_ac_var=yes"
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 eval "$as_ac_var=no"
13448 rm -f conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13453 if test `eval echo '${'$as_ac_var'}'` = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13456 _ACEOF
13457 case $ac_sys_system in
13458 CYGWIN*)
13460 cat >>confdefs.h <<\_ACEOF
13461 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13462 _ACEOF
13465 esac
13467 done
13472 # Check for enable-ipv6
13475 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13476 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13477 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13478 if test "${enable_ipv6+set}" = set; then
13479 enableval="$enable_ipv6"
13480 case "$enableval" in
13482 echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
13484 ipv6=no
13486 *) echo "$as_me:$LINENO: result: yes" >&5
13487 echo "${ECHO_T}yes" >&6
13488 cat >>confdefs.h <<\_ACEOF
13489 #define ENABLE_IPV6 1
13490 _ACEOF
13492 ipv6=yes
13494 esac
13495 else
13497 if test "$cross_compiling" = yes; then
13498 echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13500 ipv6=no
13502 else
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 /* AF_INET6 available check */
13510 #include <sys/types.h>
13511 #include <sys/socket.h>
13512 main()
13514 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13515 exit(1);
13516 else
13517 exit(0);
13520 _ACEOF
13521 rm -f conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6
13534 ipv6=yes
13535 else
13536 echo "$as_me: program exited with status $ac_status" >&5
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ( exit $ac_status )
13541 echo "$as_me:$LINENO: result: no" >&5
13542 echo "${ECHO_T}no" >&6
13543 ipv6=no
13545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13548 if test "$ipv6" = "yes"; then
13549 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13550 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h. */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 #include <sys/types.h>
13558 #include <netinet/in.h>
13560 main ()
13562 struct sockaddr_in6 x;
13563 x.sin6_scope_id;
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
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); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 echo "$as_me:$LINENO: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6
13592 ipv6=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13599 ipv6=no
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 if test "$ipv6" = "yes"; then
13605 cat >>confdefs.h <<\_ACEOF
13606 #define ENABLE_IPV6 1
13607 _ACEOF
13613 ipv6type=unknown
13614 ipv6lib=none
13615 ipv6trylibc=no
13617 if test "$ipv6" = "yes"; then
13618 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13619 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13620 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13622 case $i in
13623 inria)
13624 cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h. */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13631 #include <netinet/in.h>
13632 #ifdef IPV6_INRIA_VERSION
13634 #endif
13635 _ACEOF
13636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13637 $EGREP "yes" >/dev/null 2>&1; then
13638 ipv6type=$i
13640 rm -f conftest*
13643 kame)
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 #include <netinet/in.h>
13652 #ifdef __KAME__
13654 #endif
13655 _ACEOF
13656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13657 $EGREP "yes" >/dev/null 2>&1; then
13658 ipv6type=$i;
13659 ipv6lib=inet6
13660 ipv6libdir=/usr/local/v6/lib
13661 ipv6trylibc=yes
13663 rm -f conftest*
13666 linux-glibc)
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 #include <features.h>
13675 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13677 #endif
13678 _ACEOF
13679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13680 $EGREP "yes" >/dev/null 2>&1; then
13681 ipv6type=$i;
13682 ipv6trylibc=yes
13684 rm -f conftest*
13687 linux-inet6)
13688 if test -d /usr/inet6; then
13689 ipv6type=$i
13690 ipv6lib=inet6
13691 ipv6libdir=/usr/inet6/lib
13692 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13695 solaris)
13696 if test -f /etc/netconfig; then
13697 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13698 ipv6type=$i
13699 ipv6trylibc=yes
13703 toshiba)
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #include <sys/param.h>
13712 #ifdef _TOSHIBA_INET6
13714 #endif
13715 _ACEOF
13716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13717 $EGREP "yes" >/dev/null 2>&1; then
13718 ipv6type=$i;
13719 ipv6lib=inet6;
13720 ipv6libdir=/usr/local/v6/lib
13722 rm -f conftest*
13725 v6d)
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13733 #include </usr/local/v6/include/sys/v6config.h>
13734 #ifdef __V6D__
13736 #endif
13737 _ACEOF
13738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13739 $EGREP "yes" >/dev/null 2>&1; then
13740 ipv6type=$i;
13741 ipv6lib=v6;
13742 ipv6libdir=/usr/local/v6/lib;
13743 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13745 rm -f conftest*
13748 zeta)
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h. */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13756 #include <sys/param.h>
13757 #ifdef _ZETA_MINAMI_INET6
13759 #endif
13760 _ACEOF
13761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13762 $EGREP "yes" >/dev/null 2>&1; then
13763 ipv6type=$i;
13764 ipv6lib=inet6;
13765 ipv6libdir=/usr/local/v6/lib
13767 rm -f conftest*
13770 esac
13771 if test "$ipv6type" != "unknown"; then
13772 break
13774 done
13775 echo "$as_me:$LINENO: result: $ipv6type" >&5
13776 echo "${ECHO_T}$ipv6type" >&6
13779 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13780 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13781 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13782 echo "using lib$ipv6lib"
13783 else
13784 if test $ipv6trylibc = "yes"; then
13785 echo "using libc"
13786 else
13787 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13788 echo "You need to fetch lib$ipv6lib.a from appropriate"
13789 echo 'ipv6 kit and compile beforehand.'
13790 exit 1
13795 # Check for --with-doc-strings
13796 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13797 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13799 # Check whether --with-doc-strings or --without-doc-strings was given.
13800 if test "${with_doc_strings+set}" = set; then
13801 withval="$with_doc_strings"
13805 if test -z "$with_doc_strings"
13806 then with_doc_strings="yes"
13808 if test "$with_doc_strings" != "no"
13809 then
13811 cat >>confdefs.h <<\_ACEOF
13812 #define WITH_DOC_STRINGS 1
13813 _ACEOF
13816 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13817 echo "${ECHO_T}$with_doc_strings" >&6
13819 # Check for Python-specific malloc support
13820 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13821 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13823 # Check whether --with-tsc or --without-tsc was given.
13824 if test "${with_tsc+set}" = set; then
13825 withval="$with_tsc"
13827 if test "$withval" != no
13828 then
13830 cat >>confdefs.h <<\_ACEOF
13831 #define WITH_TSC 1
13832 _ACEOF
13834 echo "$as_me:$LINENO: result: yes" >&5
13835 echo "${ECHO_T}yes" >&6
13836 else echo "$as_me:$LINENO: result: no" >&5
13837 echo "${ECHO_T}no" >&6
13839 else
13840 echo "$as_me:$LINENO: result: no" >&5
13841 echo "${ECHO_T}no" >&6
13844 # Check for Python-specific malloc support
13845 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13846 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13848 # Check whether --with-pymalloc or --without-pymalloc was given.
13849 if test "${with_pymalloc+set}" = set; then
13850 withval="$with_pymalloc"
13854 if test -z "$with_pymalloc"
13855 then with_pymalloc="yes"
13857 if test "$with_pymalloc" != "no"
13858 then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define WITH_PYMALLOC 1
13862 _ACEOF
13865 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13866 echo "${ECHO_T}$with_pymalloc" >&6
13868 # Check for --with-wctype-functions
13869 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13870 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13872 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13873 if test "${with_wctype_functions+set}" = set; then
13874 withval="$with_wctype_functions"
13876 if test "$withval" != no
13877 then
13879 cat >>confdefs.h <<\_ACEOF
13880 #define WANT_WCTYPE_FUNCTIONS 1
13881 _ACEOF
13883 echo "$as_me:$LINENO: result: yes" >&5
13884 echo "${ECHO_T}yes" >&6
13885 else echo "$as_me:$LINENO: result: no" >&5
13886 echo "${ECHO_T}no" >&6
13888 else
13889 echo "$as_me:$LINENO: result: no" >&5
13890 echo "${ECHO_T}no" >&6
13893 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13895 DLINCLDIR=.
13897 # the dlopen() function means we might want to use dynload_shlib.o. some
13898 # platforms, such as AIX, have dlopen(), but don't want to use it.
13900 for ac_func in dlopen
13902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13903 echo "$as_me:$LINENO: checking for $ac_func" >&5
13904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13905 if eval "test \"\${$as_ac_var+set}\" = set"; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h. */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916 #define $ac_func innocuous_$ac_func
13918 /* System header to define __stub macros and hopefully few prototypes,
13919 which can conflict with char $ac_func (); below.
13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921 <limits.h> exists even on freestanding compilers. */
13923 #ifdef __STDC__
13924 # include <limits.h>
13925 #else
13926 # include <assert.h>
13927 #endif
13929 #undef $ac_func
13931 /* Override any gcc2 internal prototype to avoid an error. */
13932 #ifdef __cplusplus
13933 extern "C"
13935 #endif
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938 char $ac_func ();
13939 /* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13943 choke me
13944 #else
13945 char (*f) () = $ac_func;
13946 #endif
13947 #ifdef __cplusplus
13949 #endif
13952 main ()
13954 return f != $ac_func;
13956 return 0;
13958 _ACEOF
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 eval "$as_ac_var=yes"
13982 else
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13986 eval "$as_ac_var=no"
13988 rm -f conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13993 if test `eval echo '${'$as_ac_var'}'` = yes; then
13994 cat >>confdefs.h <<_ACEOF
13995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13996 _ACEOF
13999 done
14002 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14003 # loading of modules.
14005 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14006 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14007 if test -z "$DYNLOADFILE"
14008 then
14009 case $ac_sys_system/$ac_sys_release in
14010 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14011 if test "$ac_cv_func_dlopen" = yes
14012 then DYNLOADFILE="dynload_shlib.o"
14013 else DYNLOADFILE="dynload_aix.o"
14016 BeOS*) DYNLOADFILE="dynload_beos.o";;
14017 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14018 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14019 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14020 atheos*) DYNLOADFILE="dynload_atheos.o";;
14022 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14023 # out any dynamic loading
14024 if test "$ac_cv_func_dlopen" = yes
14025 then DYNLOADFILE="dynload_shlib.o"
14026 else DYNLOADFILE="dynload_stub.o"
14029 esac
14031 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14032 echo "${ECHO_T}$DYNLOADFILE" >&6
14033 if test "$DYNLOADFILE" != "dynload_stub.o"
14034 then
14036 cat >>confdefs.h <<\_ACEOF
14037 #define HAVE_DYNAMIC_LOADING 1
14038 _ACEOF
14042 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14045 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14046 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14047 if test -z "$MACHDEP_OBJS"
14048 then
14049 MACHDEP_OBJS=$extra_machdep_objs
14050 else
14051 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14053 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14054 echo "${ECHO_T}MACHDEP_OBJS" >&6
14056 # checks for library functions
14133 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14134 execv fork fpathconf ftime ftruncate \
14135 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14136 getpriority getpwent getspnam getspent getsid getwd \
14137 kill killpg lchown lstat mkfifo mknod mktime \
14138 mremap nice pathconf pause plock poll pthread_init \
14139 putenv readlink realpath \
14140 select setegid seteuid setgid \
14141 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14142 sigaction siginterrupt sigrelse strftime \
14143 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14144 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14147 echo "$as_me:$LINENO: checking for $ac_func" >&5
14148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_var+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14160 #define $ac_func innocuous_$ac_func
14162 /* System header to define __stub macros and hopefully few prototypes,
14163 which can conflict with char $ac_func (); below.
14164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14165 <limits.h> exists even on freestanding compilers. */
14167 #ifdef __STDC__
14168 # include <limits.h>
14169 #else
14170 # include <assert.h>
14171 #endif
14173 #undef $ac_func
14175 /* Override any gcc2 internal prototype to avoid an error. */
14176 #ifdef __cplusplus
14177 extern "C"
14179 #endif
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14182 char $ac_func ();
14183 /* The GNU C library defines this for functions which it implements
14184 to always fail with ENOSYS. Some functions are actually named
14185 something starting with __ and the normal name is an alias. */
14186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14187 choke me
14188 #else
14189 char (*f) () = $ac_func;
14190 #endif
14191 #ifdef __cplusplus
14193 #endif
14196 main ()
14198 return f != $ac_func;
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 eval "$as_ac_var=yes"
14226 else
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 eval "$as_ac_var=no"
14232 rm -f conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14237 if test `eval echo '${'$as_ac_var'}'` = yes; then
14238 cat >>confdefs.h <<_ACEOF
14239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14240 _ACEOF
14243 done
14246 # For some functions, having a definition is not sufficient, since
14247 # we want to take their address.
14248 echo "$as_me:$LINENO: checking for chroot" >&5
14249 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 #include <unistd.h>
14258 main ()
14260 void *x=chroot
14262 return 0;
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_CHROOT 1
14290 _ACEOF
14292 echo "$as_me:$LINENO: result: yes" >&5
14293 echo "${ECHO_T}yes" >&6
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 echo "$as_me:$LINENO: result: no" >&5
14299 echo "${ECHO_T}no" >&6
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303 echo "$as_me:$LINENO: checking for link" >&5
14304 echo $ECHO_N "checking for link... $ECHO_C" >&6
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <unistd.h>
14313 main ()
14315 void *x=link
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_LINK 1
14345 _ACEOF
14347 echo "$as_me:$LINENO: result: yes" >&5
14348 echo "${ECHO_T}yes" >&6
14349 else
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 echo "$as_me:$LINENO: result: no" >&5
14354 echo "${ECHO_T}no" >&6
14357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358 echo "$as_me:$LINENO: checking for symlink" >&5
14359 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 #include <unistd.h>
14368 main ()
14370 void *x=symlink
14372 return 0;
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_SYMLINK 1
14400 _ACEOF
14402 echo "$as_me:$LINENO: result: yes" >&5
14403 echo "${ECHO_T}yes" >&6
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 echo "$as_me:$LINENO: result: no" >&5
14409 echo "${ECHO_T}no" >&6
14412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14413 echo "$as_me:$LINENO: checking for fchdir" >&5
14414 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <unistd.h>
14423 main ()
14425 void *x=fchdir
14427 return 0;
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag"
14440 || test ! -s conftest.err'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14453 cat >>confdefs.h <<\_ACEOF
14454 #define HAVE_FCHDIR 1
14455 _ACEOF
14457 echo "$as_me:$LINENO: result: yes" >&5
14458 echo "${ECHO_T}yes" >&6
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 echo "$as_me:$LINENO: checking for fsync" >&5
14469 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <unistd.h>
14478 main ()
14480 void *x=fsync
14482 return 0;
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_FSYNC 1
14510 _ACEOF
14512 echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523 echo "$as_me:$LINENO: checking for fdatasync" >&5
14524 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <unistd.h>
14533 main ()
14535 void *x=fdatasync
14537 return 0;
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_FDATASYNC 1
14565 _ACEOF
14567 echo "$as_me:$LINENO: result: yes" >&5
14568 echo "${ECHO_T}yes" >&6
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 echo "$as_me:$LINENO: result: no" >&5
14574 echo "${ECHO_T}no" >&6
14577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579 # On some systems (eg. FreeBSD 5), we would find a definition of the
14580 # functions ctermid_r, setgroups in the library, but no prototype
14581 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14582 # address to avoid compiler warnings and potential miscompilations
14583 # because of the missing prototypes.
14585 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14586 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h. */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14594 #include "confdefs.h"
14595 #include <stdio.h>
14598 main ()
14600 void* p = ctermid_r
14602 return 0;
14604 _ACEOF
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -z "$ac_c_werror_flag"
14615 || test ! -s conftest.err'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_CTERMID_R 1
14630 _ACEOF
14632 echo "$as_me:$LINENO: result: yes" >&5
14633 echo "${ECHO_T}yes" >&6
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 echo "$as_me:$LINENO: result: no" >&5
14639 echo "${ECHO_T}no" >&6
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644 echo "$as_me:$LINENO: checking for flock" >&5
14645 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 #include "confdefs.h"
14654 #include <sys/file.h>
14657 main ()
14659 void* p = flock
14661 return 0;
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_c_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_FLOCK 1
14689 _ACEOF
14691 echo "$as_me:$LINENO: result: yes" >&5
14692 echo "${ECHO_T}yes" >&6
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 echo "$as_me:$LINENO: result: no" >&5
14698 echo "${ECHO_T}no" >&6
14701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703 echo "$as_me:$LINENO: checking for getpagesize" >&5
14704 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h. */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14712 #include "confdefs.h"
14713 #include <unistd.h>
14716 main ()
14718 void* p = getpagesize
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_GETPAGESIZE 1
14748 _ACEOF
14750 echo "$as_me:$LINENO: result: yes" >&5
14751 echo "${ECHO_T}yes" >&6
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 echo "$as_me:$LINENO: result: no" >&5
14757 echo "${ECHO_T}no" >&6
14760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 for ac_prog in true
14764 # Extract the first word of "$ac_prog", so it can be a program name with args.
14765 set dummy $ac_prog; ac_word=$2
14766 echo "$as_me:$LINENO: checking for $ac_word" >&5
14767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14768 if test "${ac_cv_prog_TRUE+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771 if test -n "$TRUE"; then
14772 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14773 else
14774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 for ac_exec_ext in '' $ac_executable_extensions; do
14780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_TRUE="$ac_prog"
14782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14783 break 2
14785 done
14786 done
14790 TRUE=$ac_cv_prog_TRUE
14791 if test -n "$TRUE"; then
14792 echo "$as_me:$LINENO: result: $TRUE" >&5
14793 echo "${ECHO_T}$TRUE" >&6
14794 else
14795 echo "$as_me:$LINENO: result: no" >&5
14796 echo "${ECHO_T}no" >&6
14799 test -n "$TRUE" && break
14800 done
14801 test -n "$TRUE" || TRUE="/bin/true"
14804 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14805 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14806 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lc $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any gcc2 internal prototype to avoid an error. */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14824 char inet_aton ();
14826 main ()
14828 inet_aton ();
14830 return 0;
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest$ac_exeext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_lib_c_inet_aton=yes
14856 else
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_lib_c_inet_aton=no
14862 rm -f conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14867 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14868 if test $ac_cv_lib_c_inet_aton = yes; then
14869 $ac_cv_prog_TRUE
14870 else
14872 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14873 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14874 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lresolv $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14886 /* Override any gcc2 internal prototype to avoid an error. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char inet_aton ();
14894 main ()
14896 inet_aton ();
14898 return 0;
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_resolv_inet_aton=yes
14924 else
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_lib_resolv_inet_aton=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14935 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14936 if test $ac_cv_lib_resolv_inet_aton = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_LIBRESOLV 1
14939 _ACEOF
14941 LIBS="-lresolv $LIBS"
14949 echo "$as_me:$LINENO: checking for hstrerror" >&5
14950 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 #include "confdefs.h"
14959 #include <netdb.h>
14962 main ()
14964 void* p = hstrerror; hstrerror(0)
14966 return 0;
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14971 (eval $ac_link) 2>conftest.er1
14972 ac_status=$?
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -z "$ac_c_werror_flag"
14979 || test ! -s conftest.err'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest$ac_exeext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_HSTRERROR 1
14994 _ACEOF
14996 echo "$as_me:$LINENO: result: yes" >&5
14997 echo "${ECHO_T}yes" >&6
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 echo "$as_me:$LINENO: result: no" >&5
15003 echo "${ECHO_T}no" >&6
15006 rm -f conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15009 echo "$as_me:$LINENO: checking for inet_aton" >&5
15010 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15018 #include "confdefs.h"
15019 #include <sys/types.h>
15020 #include <sys/socket.h>
15021 #include <netinet/in.h>
15022 #include <arpa/inet.h>
15025 main ()
15027 void* p = inet_aton;inet_aton(0,0)
15029 return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15034 (eval $ac_link) 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
15041 { ac_try='test -z "$ac_c_werror_flag"
15042 || test ! -s conftest.err'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest$ac_exeext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define HAVE_INET_ATON 1
15057 _ACEOF
15059 echo "$as_me:$LINENO: result: yes" >&5
15060 echo "${ECHO_T}yes" >&6
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 echo "$as_me:$LINENO: result: no" >&5
15066 echo "${ECHO_T}no" >&6
15069 rm -f conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
15072 echo "$as_me:$LINENO: checking for inet_pton" >&5
15073 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 #include "confdefs.h"
15082 #include <sys/types.h>
15083 #include <sys/socket.h>
15084 #include <netinet/in.h>
15085 #include <arpa/inet.h>
15088 main ()
15090 void* p = inet_pton
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15097 (eval $ac_compile) 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag"
15105 || test ! -s conftest.err'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest.$ac_objext'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_INET_PTON 1
15120 _ACEOF
15122 echo "$as_me:$LINENO: result: yes" >&5
15123 echo "${ECHO_T}yes" >&6
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 echo "$as_me:$LINENO: result: no" >&5
15129 echo "${ECHO_T}no" >&6
15132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15134 # On some systems, setgroups is in unistd.h, on others, in grp.h
15135 echo "$as_me:$LINENO: checking for setgroups" >&5
15136 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 #include "confdefs.h"
15145 #include <unistd.h>
15146 #ifdef HAVE_GRP_H
15147 #include <grp.h>
15148 #endif
15151 main ()
15153 void* p = setgroups
15155 return 0;
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>conftest.er1
15161 ac_status=$?
15162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag"
15168 || test ! -s conftest.err'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_SETGROUPS 1
15183 _ACEOF
15185 echo "$as_me:$LINENO: result: yes" >&5
15186 echo "${ECHO_T}yes" >&6
15187 else
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197 # check for openpty and forkpty
15200 for ac_func in openpty
15202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203 echo "$as_me:$LINENO: checking for $ac_func" >&5
15204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15205 if eval "test \"\${$as_ac_var+set}\" = set"; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15216 #define $ac_func innocuous_$ac_func
15218 /* System header to define __stub macros and hopefully few prototypes,
15219 which can conflict with char $ac_func (); below.
15220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15221 <limits.h> exists even on freestanding compilers. */
15223 #ifdef __STDC__
15224 # include <limits.h>
15225 #else
15226 # include <assert.h>
15227 #endif
15229 #undef $ac_func
15231 /* Override any gcc2 internal prototype to avoid an error. */
15232 #ifdef __cplusplus
15233 extern "C"
15235 #endif
15236 /* We use char because int might match the return type of a gcc2
15237 builtin and then its argument prototype would still apply. */
15238 char $ac_func ();
15239 /* The GNU C library defines this for functions which it implements
15240 to always fail with ENOSYS. Some functions are actually named
15241 something starting with __ and the normal name is an alias. */
15242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15243 choke me
15244 #else
15245 char (*f) () = $ac_func;
15246 #endif
15247 #ifdef __cplusplus
15249 #endif
15252 main ()
15254 return f != $ac_func;
15256 return 0;
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261 (eval $ac_link) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 eval "$as_ac_var=yes"
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 eval "$as_ac_var=no"
15288 rm -f conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15293 if test `eval echo '${'$as_ac_var'}'` = yes; then
15294 cat >>confdefs.h <<_ACEOF
15295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15296 _ACEOF
15298 else
15299 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15300 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15301 if test "${ac_cv_lib_util_openpty+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 ac_check_lib_save_LIBS=$LIBS
15305 LIBS="-lutil $LIBS"
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15313 /* Override any gcc2 internal prototype to avoid an error. */
15314 #ifdef __cplusplus
15315 extern "C"
15316 #endif
15317 /* We use char because int might match the return type of a gcc2
15318 builtin and then its argument prototype would still apply. */
15319 char openpty ();
15321 main ()
15323 openpty ();
15325 return 0;
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest$ac_exeext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_lib_util_openpty=yes
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_cv_lib_util_openpty=no
15357 rm -f conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15361 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15362 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15363 if test $ac_cv_lib_util_openpty = yes; then
15364 cat >>confdefs.h <<\_ACEOF
15365 #define HAVE_OPENPTY 1
15366 _ACEOF
15367 LIBS="$LIBS -lutil"
15368 else
15369 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15370 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15371 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 ac_check_lib_save_LIBS=$LIBS
15375 LIBS="-lbsd $LIBS"
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15383 /* Override any gcc2 internal prototype to avoid an error. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 /* We use char because int might match the return type of a gcc2
15388 builtin and then its argument prototype would still apply. */
15389 char openpty ();
15391 main ()
15393 openpty ();
15395 return 0;
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_lib_bsd_openpty=yes
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_lib_bsd_openpty=no
15427 rm -f conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15431 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15432 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15433 if test $ac_cv_lib_bsd_openpty = yes; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_OPENPTY 1
15436 _ACEOF
15437 LIBS="$LIBS -lbsd"
15445 done
15448 for ac_func in forkpty
15450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15451 echo "$as_me:$LINENO: checking for $ac_func" >&5
15452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15453 if eval "test \"\${$as_ac_var+set}\" = set"; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h. */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15464 #define $ac_func innocuous_$ac_func
15466 /* System header to define __stub macros and hopefully few prototypes,
15467 which can conflict with char $ac_func (); below.
15468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15469 <limits.h> exists even on freestanding compilers. */
15471 #ifdef __STDC__
15472 # include <limits.h>
15473 #else
15474 # include <assert.h>
15475 #endif
15477 #undef $ac_func
15479 /* Override any gcc2 internal prototype to avoid an error. */
15480 #ifdef __cplusplus
15481 extern "C"
15483 #endif
15484 /* We use char because int might match the return type of a gcc2
15485 builtin and then its argument prototype would still apply. */
15486 char $ac_func ();
15487 /* The GNU C library defines this for functions which it implements
15488 to always fail with ENOSYS. Some functions are actually named
15489 something starting with __ and the normal name is an alias. */
15490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15491 choke me
15492 #else
15493 char (*f) () = $ac_func;
15494 #endif
15495 #ifdef __cplusplus
15497 #endif
15500 main ()
15502 return f != $ac_func;
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 eval "$as_ac_var=yes"
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 eval "$as_ac_var=no"
15536 rm -f conftest.err conftest.$ac_objext \
15537 conftest$ac_exeext conftest.$ac_ext
15539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15541 if test `eval echo '${'$as_ac_var'}'` = yes; then
15542 cat >>confdefs.h <<_ACEOF
15543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15544 _ACEOF
15546 else
15547 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15548 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15549 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-lutil $LIBS"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h. */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any gcc2 internal prototype to avoid an error. */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567 char forkpty ();
15569 main ()
15571 forkpty ();
15573 return 0;
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_lib_util_forkpty=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_lib_util_forkpty=no
15605 rm -f conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15607 LIBS=$ac_check_lib_save_LIBS
15609 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15610 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15611 if test $ac_cv_lib_util_forkpty = yes; then
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_FORKPTY 1
15614 _ACEOF
15615 LIBS="$LIBS -lutil"
15616 else
15617 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15618 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15619 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 ac_check_lib_save_LIBS=$LIBS
15623 LIBS="-lbsd $LIBS"
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any gcc2 internal prototype to avoid an error. */
15632 #ifdef __cplusplus
15633 extern "C"
15634 #endif
15635 /* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15637 char forkpty ();
15639 main ()
15641 forkpty ();
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_lib_bsd_forkpty=yes
15669 else
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_cv_lib_bsd_forkpty=no
15675 rm -f conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15677 LIBS=$ac_check_lib_save_LIBS
15679 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15680 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15681 if test $ac_cv_lib_bsd_forkpty = yes; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_FORKPTY 1
15684 _ACEOF
15685 LIBS="$LIBS -lbsd"
15693 done
15696 # check for long file support functions
15703 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15719 #define $ac_func innocuous_$ac_func
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15726 #ifdef __STDC__
15727 # include <limits.h>
15728 #else
15729 # include <assert.h>
15730 #endif
15732 #undef $ac_func
15734 /* Override any gcc2 internal prototype to avoid an error. */
15735 #ifdef __cplusplus
15736 extern "C"
15738 #endif
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15741 char $ac_func ();
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15746 choke me
15747 #else
15748 char (*f) () = $ac_func;
15749 #endif
15750 #ifdef __cplusplus
15752 #endif
15755 main ()
15757 return f != $ac_func;
15759 return 0;
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "$as_ac_var=no"
15791 rm -f conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15799 _ACEOF
15802 done
15810 for ac_func in dup2 getcwd strdup strerror memmove
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15833 #ifdef __STDC__
15834 # include <limits.h>
15835 #else
15836 # include <assert.h>
15837 #endif
15839 #undef $ac_func
15841 /* Override any gcc2 internal prototype to avoid an error. */
15842 #ifdef __cplusplus
15843 extern "C"
15845 #endif
15846 /* We use char because int might match the return type of a gcc2
15847 builtin and then its argument prototype would still apply. */
15848 char $ac_func ();
15849 /* The GNU C library defines this for functions which it implements
15850 to always fail with ENOSYS. Some functions are actually named
15851 something starting with __ and the normal name is an alias. */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15853 choke me
15854 #else
15855 char (*f) () = $ac_func;
15856 #endif
15857 #ifdef __cplusplus
15859 #endif
15862 main ()
15864 return f != $ac_func;
15866 return 0;
15868 _ACEOF
15869 rm -f conftest.$ac_objext conftest$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 _ACEOF
15908 else
15909 case $LIBOBJS in
15910 "$ac_func.$ac_objext" | \
15911 *" $ac_func.$ac_objext" | \
15912 "$ac_func.$ac_objext "* | \
15913 *" $ac_func.$ac_objext "* ) ;;
15914 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15915 esac
15918 done
15922 for ac_func in getpgrp
15924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15925 echo "$as_me:$LINENO: checking for $ac_func" >&5
15926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15927 if eval "test \"\${$as_ac_var+set}\" = set"; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15938 #define $ac_func innocuous_$ac_func
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char $ac_func (); below.
15942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15943 <limits.h> exists even on freestanding compilers. */
15945 #ifdef __STDC__
15946 # include <limits.h>
15947 #else
15948 # include <assert.h>
15949 #endif
15951 #undef $ac_func
15953 /* Override any gcc2 internal prototype to avoid an error. */
15954 #ifdef __cplusplus
15955 extern "C"
15957 #endif
15958 /* We use char because int might match the return type of a gcc2
15959 builtin and then its argument prototype would still apply. */
15960 char $ac_func ();
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15965 choke me
15966 #else
15967 char (*f) () = $ac_func;
15968 #endif
15969 #ifdef __cplusplus
15971 #endif
15974 main ()
15976 return f != $ac_func;
15978 return 0;
15980 _ACEOF
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983 (eval $ac_link) 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -z "$ac_c_werror_flag"
15991 || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest$ac_exeext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 eval "$as_ac_var=yes"
16004 else
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 eval "$as_ac_var=no"
16010 rm -f conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16015 if test `eval echo '${'$as_ac_var'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16018 _ACEOF
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h. */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <unistd.h>
16027 main ()
16029 getpgrp(0);
16031 return 0;
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16057 cat >>confdefs.h <<\_ACEOF
16058 #define GETPGRP_HAVE_ARG 1
16059 _ACEOF
16062 else
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16070 done
16073 for ac_func in setpgrp
16075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16076 echo "$as_me:$LINENO: checking for $ac_func" >&5
16077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_var+set}\" = set"; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16089 #define $ac_func innocuous_$ac_func
16091 /* System header to define __stub macros and hopefully few prototypes,
16092 which can conflict with char $ac_func (); below.
16093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094 <limits.h> exists even on freestanding compilers. */
16096 #ifdef __STDC__
16097 # include <limits.h>
16098 #else
16099 # include <assert.h>
16100 #endif
16102 #undef $ac_func
16104 /* Override any gcc2 internal prototype to avoid an error. */
16105 #ifdef __cplusplus
16106 extern "C"
16108 #endif
16109 /* We use char because int might match the return type of a gcc2
16110 builtin and then its argument prototype would still apply. */
16111 char $ac_func ();
16112 /* The GNU C library defines this for functions which it implements
16113 to always fail with ENOSYS. Some functions are actually named
16114 something starting with __ and the normal name is an alias. */
16115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16116 choke me
16117 #else
16118 char (*f) () = $ac_func;
16119 #endif
16120 #ifdef __cplusplus
16122 #endif
16125 main ()
16127 return f != $ac_func;
16129 return 0;
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 eval "$as_ac_var=yes"
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 eval "$as_ac_var=no"
16161 rm -f conftest.err conftest.$ac_objext \
16162 conftest$ac_exeext conftest.$ac_ext
16164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16166 if test `eval echo '${'$as_ac_var'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16169 _ACEOF
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 #include <unistd.h>
16178 main ()
16180 setpgrp(0,0);
16182 return 0;
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define SETPGRP_HAVE_ARG 1
16210 _ACEOF
16213 else
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 done
16224 for ac_func in gettimeofday
16226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16227 echo "$as_me:$LINENO: checking for $ac_func" >&5
16228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16229 if eval "test \"\${$as_ac_var+set}\" = set"; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16240 #define $ac_func innocuous_$ac_func
16242 /* System header to define __stub macros and hopefully few prototypes,
16243 which can conflict with char $ac_func (); below.
16244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16245 <limits.h> exists even on freestanding compilers. */
16247 #ifdef __STDC__
16248 # include <limits.h>
16249 #else
16250 # include <assert.h>
16251 #endif
16253 #undef $ac_func
16255 /* Override any gcc2 internal prototype to avoid an error. */
16256 #ifdef __cplusplus
16257 extern "C"
16259 #endif
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16262 char $ac_func ();
16263 /* The GNU C library defines this for functions which it implements
16264 to always fail with ENOSYS. Some functions are actually named
16265 something starting with __ and the normal name is an alias. */
16266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 choke me
16268 #else
16269 char (*f) () = $ac_func;
16270 #endif
16271 #ifdef __cplusplus
16273 #endif
16276 main ()
16278 return f != $ac_func;
16280 return 0;
16282 _ACEOF
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16285 (eval $ac_link) 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 eval "$as_ac_var=yes"
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 eval "$as_ac_var=no"
16312 rm -f conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16317 if test `eval echo '${'$as_ac_var'}'` = yes; then
16318 cat >>confdefs.h <<_ACEOF
16319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16320 _ACEOF
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <sys/time.h>
16329 main ()
16331 gettimeofday((struct timeval*)0,(struct timezone*)0);
16333 return 0;
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16364 cat >>confdefs.h <<\_ACEOF
16365 #define GETTIMEOFDAY_NO_TZ 1
16366 _ACEOF
16370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 done
16376 echo "$as_me:$LINENO: checking for major" >&5
16377 echo $ECHO_N "checking for major... $ECHO_C" >&6
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 #if defined(MAJOR_IN_MKDEV)
16386 #include <sys/mkdev.h>
16387 #elif defined(MAJOR_IN_SYSMACROS)
16388 #include <sys/sysmacros.h>
16389 #else
16390 #include <sys/types.h>
16391 #endif
16394 main ()
16397 makedev(major(0),minor(0));
16400 return 0;
16402 _ACEOF
16403 rm -f conftest.$ac_objext conftest$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405 (eval $ac_link) 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16427 cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_DEVICE_MACROS 1
16429 _ACEOF
16431 echo "$as_me:$LINENO: result: yes" >&5
16432 echo "${ECHO_T}yes" >&6
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16439 echo "$as_me:$LINENO: result: no" >&5
16440 echo "${ECHO_T}no" >&6
16443 rm -f conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16446 # On OSF/1 V5.1, getaddrinfo is available, but a define
16447 # for [no]getaddrinfo in netdb.h.
16448 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16449 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 #include <sys/types.h>
16458 #include <sys/socket.h>
16459 #include <netdb.h>
16460 #include <stdio.h>
16463 main ()
16466 getaddrinfo(NULL, NULL, NULL, NULL);
16469 return 0;
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>conftest.er1
16475 ac_status=$?
16476 grep -v '^ *+' conftest.er1 >conftest.err
16477 rm -f conftest.er1
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -z "$ac_c_werror_flag"
16482 || test ! -s conftest.err'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16495 echo "$as_me:$LINENO: result: yes" >&5
16496 echo "${ECHO_T}yes" >&6
16497 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16498 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16499 if test "$cross_compiling" = yes; then
16500 echo "$as_me:$LINENO: result: buggy" >&5
16501 echo "${ECHO_T}buggy" >&6
16502 buggygetaddrinfo=yes
16503 else
16504 cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h. */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16511 #include <sys/types.h>
16512 #include <netdb.h>
16513 #include <string.h>
16514 #include <sys/socket.h>
16515 #include <netinet/in.h>
16517 main()
16519 int passive, gaierr, inet4 = 0, inet6 = 0;
16520 struct addrinfo hints, *ai, *aitop;
16521 char straddr[INET6_ADDRSTRLEN], strport[16];
16523 for (passive = 0; passive <= 1; passive++) {
16524 memset(&hints, 0, sizeof(hints));
16525 hints.ai_family = AF_UNSPEC;
16526 hints.ai_flags = passive ? AI_PASSIVE : 0;
16527 hints.ai_socktype = SOCK_STREAM;
16528 hints.ai_protocol = IPPROTO_TCP;
16529 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16530 (void)gai_strerror(gaierr);
16531 goto bad;
16533 for (ai = aitop; ai; ai = ai->ai_next) {
16534 if (ai->ai_addr == NULL ||
16535 ai->ai_addrlen == 0 ||
16536 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16537 straddr, sizeof(straddr), strport, sizeof(strport),
16538 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16539 goto bad;
16541 switch (ai->ai_family) {
16542 case AF_INET:
16543 if (strcmp(strport, "54321") != 0) {
16544 goto bad;
16546 if (passive) {
16547 if (strcmp(straddr, "0.0.0.0") != 0) {
16548 goto bad;
16550 } else {
16551 if (strcmp(straddr, "127.0.0.1") != 0) {
16552 goto bad;
16555 inet4++;
16556 break;
16557 case AF_INET6:
16558 if (strcmp(strport, "54321") != 0) {
16559 goto bad;
16561 if (passive) {
16562 if (strcmp(straddr, "::") != 0) {
16563 goto bad;
16565 } else {
16566 if (strcmp(straddr, "::1") != 0) {
16567 goto bad;
16570 inet6++;
16571 break;
16572 case AF_UNSPEC:
16573 goto bad;
16574 break;
16575 default:
16576 /* another family support? */
16577 break;
16582 if (!(inet4 == 0 || inet4 == 2))
16583 goto bad;
16584 if (!(inet6 == 0 || inet6 == 2))
16585 goto bad;
16587 if (aitop)
16588 freeaddrinfo(aitop);
16589 exit(0);
16591 bad:
16592 if (aitop)
16593 freeaddrinfo(aitop);
16594 exit(1);
16597 _ACEOF
16598 rm -f conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 echo "$as_me:$LINENO: result: good" >&5
16610 echo "${ECHO_T}good" >&6
16611 buggygetaddrinfo=no
16612 else
16613 echo "$as_me: program exited with status $ac_status" >&5
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ( exit $ac_status )
16618 echo "$as_me:$LINENO: result: buggy" >&5
16619 echo "${ECHO_T}buggy" >&6
16620 buggygetaddrinfo=yes
16622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16629 echo "$as_me:$LINENO: result: no" >&5
16630 echo "${ECHO_T}no" >&6
16631 buggygetaddrinfo=yes
16634 rm -f conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16637 if test "$buggygetaddrinfo" = "yes"; then
16638 if test "$ipv6" = "yes"; then
16639 echo 'Fatal: You must get working getaddrinfo() function.'
16640 echo ' or you can specify "--disable-ipv6"'.
16641 exit 1
16643 else
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_GETADDRINFO 1
16647 _ACEOF
16651 for ac_func in getnameinfo
16653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16654 echo "$as_me:$LINENO: checking for $ac_func" >&5
16655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16656 if eval "test \"\${$as_ac_var+set}\" = set"; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h. */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16667 #define $ac_func innocuous_$ac_func
16669 /* System header to define __stub macros and hopefully few prototypes,
16670 which can conflict with char $ac_func (); below.
16671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16672 <limits.h> exists even on freestanding compilers. */
16674 #ifdef __STDC__
16675 # include <limits.h>
16676 #else
16677 # include <assert.h>
16678 #endif
16680 #undef $ac_func
16682 /* Override any gcc2 internal prototype to avoid an error. */
16683 #ifdef __cplusplus
16684 extern "C"
16686 #endif
16687 /* We use char because int might match the return type of a gcc2
16688 builtin and then its argument prototype would still apply. */
16689 char $ac_func ();
16690 /* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16694 choke me
16695 #else
16696 char (*f) () = $ac_func;
16697 #endif
16698 #ifdef __cplusplus
16700 #endif
16703 main ()
16705 return f != $ac_func;
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 eval "$as_ac_var=yes"
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 eval "$as_ac_var=no"
16739 rm -f conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16744 if test `eval echo '${'$as_ac_var'}'` = yes; then
16745 cat >>confdefs.h <<_ACEOF
16746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16747 _ACEOF
16750 done
16753 # checks for structures
16754 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16755 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16756 if test "${ac_cv_header_time+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16766 #include <sys/time.h>
16767 #include <time.h>
16770 main ()
16772 if ((struct tm *) 0)
16773 return 0;
16775 return 0;
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16780 (eval $ac_compile) 2>conftest.er1
16781 ac_status=$?
16782 grep -v '^ *+' conftest.er1 >conftest.err
16783 rm -f conftest.er1
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag"
16788 || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_header_time=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_header_time=no
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16810 echo "${ECHO_T}$ac_cv_header_time" >&6
16811 if test $ac_cv_header_time = yes; then
16813 cat >>confdefs.h <<\_ACEOF
16814 #define TIME_WITH_SYS_TIME 1
16815 _ACEOF
16819 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16821 if test "${ac_cv_struct_tm+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824 cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h. */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #include <sys/types.h>
16831 #include <time.h>
16834 main ()
16836 struct tm *tp; tp->tm_sec;
16838 return 0;
16840 _ACEOF
16841 rm -f conftest.$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag"
16851 || test ! -s conftest.err'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_struct_tm=time.h
16864 else
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_cv_struct_tm=sys/time.h
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16873 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16874 if test $ac_cv_struct_tm = sys/time.h; then
16876 cat >>confdefs.h <<\_ACEOF
16877 #define TM_IN_SYS_TIME 1
16878 _ACEOF
16882 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16883 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16884 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887 cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h. */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 #include <sys/types.h>
16894 #include <$ac_cv_struct_tm>
16898 main ()
16900 static struct tm ac_aggr;
16901 if (ac_aggr.tm_zone)
16902 return 0;
16904 return 0;
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag"
16917 || test ! -s conftest.err'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; } &&
16923 { ac_try='test -s conftest.$ac_objext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_member_struct_tm_tm_zone=yes
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h. */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 #include <sys/types.h>
16941 #include <$ac_cv_struct_tm>
16945 main ()
16947 static struct tm ac_aggr;
16948 if (sizeof ac_aggr.tm_zone)
16949 return 0;
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_member_struct_tm_tm_zone=yes
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 ac_cv_member_struct_tm_tm_zone=no
16983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16988 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16989 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define HAVE_STRUCT_TM_TM_ZONE 1
16993 _ACEOF
16998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17000 cat >>confdefs.h <<\_ACEOF
17001 #define HAVE_TM_ZONE 1
17002 _ACEOF
17004 else
17005 echo "$as_me:$LINENO: checking for tzname" >&5
17006 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17007 if test "${ac_cv_var_tzname+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <time.h>
17017 #ifndef tzname /* For SGI. */
17018 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17019 #endif
17022 main ()
17024 atoi(*tzname);
17026 return 0;
17028 _ACEOF
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_cv_var_tzname=yes
17052 else
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ac_cv_var_tzname=no
17058 rm -f conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17062 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17063 if test $ac_cv_var_tzname = yes; then
17065 cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_TZNAME 1
17067 _ACEOF
17072 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17073 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17074 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17085 main ()
17087 static struct stat ac_aggr;
17088 if (ac_aggr.st_rdev)
17089 return 0;
17091 return 0;
17093 _ACEOF
17094 rm -f conftest.$ac_objext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest.$ac_objext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_member_struct_stat_st_rdev=yes
17117 else
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h. */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 $ac_includes_default
17129 main ()
17131 static struct stat ac_aggr;
17132 if (sizeof ac_aggr.st_rdev)
17133 return 0;
17135 return 0;
17137 _ACEOF
17138 rm -f conftest.$ac_objext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17140 (eval $ac_compile) 2>conftest.er1
17141 ac_status=$?
17142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -z "$ac_c_werror_flag"
17148 || test ! -s conftest.err'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest.$ac_objext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_member_struct_stat_st_rdev=yes
17161 else
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 ac_cv_member_struct_stat_st_rdev=no
17167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17171 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17172 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17173 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_STRUCT_STAT_ST_RDEV 1
17177 _ACEOF
17182 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17183 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17184 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17195 main ()
17197 static struct stat ac_aggr;
17198 if (ac_aggr.st_blksize)
17199 return 0;
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_member_struct_stat_st_blksize=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17239 main ()
17241 static struct stat ac_aggr;
17242 if (sizeof ac_aggr.st_blksize)
17243 return 0;
17245 return 0;
17247 _ACEOF
17248 rm -f conftest.$ac_objext
17249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -z "$ac_c_werror_flag"
17258 || test ! -s conftest.err'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_member_struct_stat_st_blksize=yes
17271 else
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_member_struct_stat_st_blksize=no
17277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17283 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17285 cat >>confdefs.h <<_ACEOF
17286 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17287 _ACEOF
17292 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17293 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17294 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17305 main ()
17307 static struct stat ac_aggr;
17308 if (ac_aggr.st_flags)
17309 return 0;
17311 return 0;
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_member_struct_stat_st_flags=yes
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 $ac_includes_default
17349 main ()
17351 static struct stat ac_aggr;
17352 if (sizeof ac_aggr.st_flags)
17353 return 0;
17355 return 0;
17357 _ACEOF
17358 rm -f conftest.$ac_objext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_member_struct_stat_st_flags=yes
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_cv_member_struct_stat_st_flags=no
17387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17392 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17393 if test $ac_cv_member_struct_stat_st_flags = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17397 _ACEOF
17402 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17403 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17404 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h. */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17415 main ()
17417 static struct stat ac_aggr;
17418 if (ac_aggr.st_gen)
17419 return 0;
17421 return 0;
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_member_struct_stat_st_gen=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 $ac_includes_default
17459 main ()
17461 static struct stat ac_aggr;
17462 if (sizeof ac_aggr.st_gen)
17463 return 0;
17465 return 0;
17467 _ACEOF
17468 rm -f conftest.$ac_objext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17470 (eval $ac_compile) 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag"
17478 || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_member_struct_stat_st_gen=yes
17491 else
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ac_cv_member_struct_stat_st_gen=no
17497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17502 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17503 if test $ac_cv_member_struct_stat_st_gen = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_STRUCT_STAT_ST_GEN 1
17507 _ACEOF
17512 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17513 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17514 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17525 main ()
17527 static struct stat ac_aggr;
17528 if (ac_aggr.st_birthtime)
17529 return 0;
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17536 (eval $ac_compile) 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_member_struct_stat_st_birthtime=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 $ac_includes_default
17569 main ()
17571 static struct stat ac_aggr;
17572 if (sizeof ac_aggr.st_birthtime)
17573 return 0;
17575 return 0;
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580 (eval $ac_compile) 2>conftest.er1
17581 ac_status=$?
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag"
17588 || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_member_struct_stat_st_birthtime=yes
17601 else
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ac_cv_member_struct_stat_st_birthtime=no
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17613 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17615 cat >>confdefs.h <<_ACEOF
17616 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17617 _ACEOF
17622 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17623 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17624 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17635 main ()
17637 static struct stat ac_aggr;
17638 if (ac_aggr.st_blocks)
17639 return 0;
17641 return 0;
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_member_struct_stat_st_blocks=yes
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 $ac_includes_default
17679 main ()
17681 static struct stat ac_aggr;
17682 if (sizeof ac_aggr.st_blocks)
17683 return 0;
17685 return 0;
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest.$ac_objext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_cv_member_struct_stat_st_blocks=yes
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_cv_member_struct_stat_st_blocks=no
17717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17723 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17727 _ACEOF
17730 cat >>confdefs.h <<\_ACEOF
17731 #define HAVE_ST_BLOCKS 1
17732 _ACEOF
17734 else
17735 case $LIBOBJS in
17736 "fileblocks.$ac_objext" | \
17737 *" fileblocks.$ac_objext" | \
17738 "fileblocks.$ac_objext "* | \
17739 *" fileblocks.$ac_objext "* ) ;;
17740 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17741 esac
17747 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17748 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17749 if test "${ac_cv_header_time_altzone+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 #include <time.h>
17760 main ()
17762 return altzone;
17764 return 0;
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_header_time_altzone=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_header_time_altzone=no
17796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17800 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17801 if test $ac_cv_header_time_altzone = yes; then
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_ALTZONE 1
17805 _ACEOF
17809 was_it_defined=no
17810 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17811 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
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. */
17819 #include <sys/types.h>
17820 #include <sys/select.h>
17821 #include <sys/time.h>
17824 main ()
17828 return 0;
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define SYS_SELECT_WITH_SYS_TIME 1
17857 _ACEOF
17859 was_it_defined=yes
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17867 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17868 echo "${ECHO_T}$was_it_defined" >&6
17870 echo "$as_me:$LINENO: checking for addrinfo" >&5
17871 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17872 if test "${ac_cv_struct_addrinfo+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17882 # include <netdb.h>
17884 main ()
17886 struct addrinfo a
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893 (eval $ac_compile) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_struct_addrinfo=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_cv_struct_addrinfo=no
17920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17923 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17924 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17925 if test $ac_cv_struct_addrinfo = yes; then
17927 cat >>confdefs.h <<\_ACEOF
17928 #define HAVE_ADDRINFO 1
17929 _ACEOF
17933 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17934 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17935 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 # include <sys/types.h>
17946 # include <sys/socket.h>
17948 main ()
17950 struct sockaddr_storage s
17952 return 0;
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957 (eval $ac_compile) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest.$ac_objext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_cv_struct_sockaddr_storage=yes
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ac_cv_struct_sockaddr_storage=no
17984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17987 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17988 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17989 if test $ac_cv_struct_sockaddr_storage = yes; then
17991 cat >>confdefs.h <<\_ACEOF
17992 #define HAVE_SOCKADDR_STORAGE 1
17993 _ACEOF
17997 # checks for compiler characteristics
18000 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18001 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18002 if test "${ac_cv_c_char_unsigned+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h. */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 $ac_includes_default
18013 main ()
18015 static int test_array [1 - 2 * !(((char) -1) < 0)];
18016 test_array [0] = 0
18019 return 0;
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18024 (eval $ac_compile) 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -z "$ac_c_werror_flag"
18032 || test ! -s conftest.err'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_cv_c_char_unsigned=no
18045 else
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ac_cv_c_char_unsigned=yes
18051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18054 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18055 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18056 cat >>confdefs.h <<\_ACEOF
18057 #define __CHAR_UNSIGNED__ 1
18058 _ACEOF
18062 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18064 if test "${ac_cv_c_const+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18075 main ()
18077 /* FIXME: Include the comments suggested by Paul. */
18078 #ifndef __cplusplus
18079 /* Ultrix mips cc rejects this. */
18080 typedef int charset[2];
18081 const charset x;
18082 /* SunOS 4.1.1 cc rejects this. */
18083 char const *const *ccp;
18084 char **p;
18085 /* NEC SVR4.0.2 mips cc rejects this. */
18086 struct point {int x, y;};
18087 static struct point const zero = {0,0};
18088 /* AIX XL C 1.02.0.0 rejects this.
18089 It does not let you subtract one const X* pointer from another in
18090 an arm of an if-expression whose if-part is not a constant
18091 expression */
18092 const char *g = "string";
18093 ccp = &g + (g ? g-g : 0);
18094 /* HPUX 7.0 cc rejects these. */
18095 ++ccp;
18096 p = (char**) ccp;
18097 ccp = (char const *const *) p;
18098 { /* SCO 3.2v4 cc rejects this. */
18099 char *t;
18100 char const *s = 0 ? (char *) 0 : (char const *) 0;
18102 *t++ = 0;
18104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18105 int x[] = {25, 17};
18106 const int *foo = &x[0];
18107 ++foo;
18109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18110 typedef const int *iptr;
18111 iptr p = 0;
18112 ++p;
18114 { /* AIX XL C 1.02.0.0 rejects this saying
18115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18116 struct s { int j; const int *ap[3]; };
18117 struct s *b; b->j = 5;
18119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18120 const int foo = 10;
18122 #endif
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag"
18138 || test ! -s conftest.err'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 ac_cv_c_const=yes
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_cv_c_const=no
18157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18160 echo "${ECHO_T}$ac_cv_c_const" >&6
18161 if test $ac_cv_c_const = no; then
18163 cat >>confdefs.h <<\_ACEOF
18164 #define const
18165 _ACEOF
18170 works=no
18171 echo "$as_me:$LINENO: checking for working volatile" >&5
18172 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18181 main ()
18183 volatile int x; x = 0;
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18190 (eval $ac_compile) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest.$ac_objext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 works=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18216 cat >>confdefs.h <<\_ACEOF
18217 #define volatile
18218 _ACEOF
18222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $works" >&5
18224 echo "${ECHO_T}$works" >&6
18226 works=no
18227 echo "$as_me:$LINENO: checking for working signed char" >&5
18228 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18229 cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h. */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18237 main ()
18239 signed char c;
18241 return 0;
18243 _ACEOF
18244 rm -f conftest.$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 works=yes
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18272 cat >>confdefs.h <<\_ACEOF
18273 #define signed
18274 _ACEOF
18278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18279 echo "$as_me:$LINENO: result: $works" >&5
18280 echo "${ECHO_T}$works" >&6
18282 have_prototypes=no
18283 echo "$as_me:$LINENO: checking for prototypes" >&5
18284 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 int foo(int x) { return 0; }
18293 main ()
18295 return foo(10);
18297 return 0;
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302 (eval $ac_compile) 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag"
18310 || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest.$ac_objext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE_PROTOTYPES 1
18326 _ACEOF
18328 have_prototypes=yes
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18337 echo "${ECHO_T}$have_prototypes" >&6
18339 works=no
18340 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18341 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18342 cat >conftest.$ac_ext <<_ACEOF
18343 /* confdefs.h. */
18344 _ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18349 #include <stdarg.h>
18350 int foo(int x, ...) {
18351 va_list va;
18352 va_start(va, x);
18353 va_arg(va, int);
18354 va_arg(va, char *);
18355 va_arg(va, double);
18356 return 0;
18360 main ()
18362 return foo(10, "", 3.14);
18364 return 0;
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try='test -s conftest.$ac_objext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18391 cat >>confdefs.h <<\_ACEOF
18392 #define HAVE_STDARG_PROTOTYPES 1
18393 _ACEOF
18395 works=yes
18397 else
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18403 echo "$as_me:$LINENO: result: $works" >&5
18404 echo "${ECHO_T}$works" >&6
18406 # check for socketpair
18407 echo "$as_me:$LINENO: checking for socketpair" >&5
18408 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18416 #include <sys/types.h>
18417 #include <sys/socket.h>
18420 main ()
18422 void *x=socketpair
18424 return 0;
18426 _ACEOF
18427 rm -f conftest.$ac_objext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest.$ac_objext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18450 cat >>confdefs.h <<\_ACEOF
18451 #define HAVE_SOCKETPAIR 1
18452 _ACEOF
18454 echo "$as_me:$LINENO: result: yes" >&5
18455 echo "${ECHO_T}yes" >&6
18456 else
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 echo "$as_me:$LINENO: result: no" >&5
18461 echo "${ECHO_T}no" >&6
18464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18466 # check if sockaddr has sa_len member
18467 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18468 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <sys/types.h>
18476 #include <sys/socket.h>
18478 main ()
18480 struct sockaddr x;
18481 x.sa_len = 0;
18483 return 0;
18485 _ACEOF
18486 rm -f conftest.$ac_objext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18488 (eval $ac_compile) 2>conftest.er1
18489 ac_status=$?
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try='test -z "$ac_c_werror_flag"
18496 || test ! -s conftest.err'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest.$ac_objext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 echo "$as_me:$LINENO: result: yes" >&5
18509 echo "${ECHO_T}yes" >&6
18511 cat >>confdefs.h <<\_ACEOF
18512 #define HAVE_SOCKADDR_SA_LEN 1
18513 _ACEOF
18515 else
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6
18522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18524 va_list_is_array=no
18525 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18526 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18534 #ifdef HAVE_STDARG_PROTOTYPES
18535 #include <stdarg.h>
18536 #else
18537 #include <varargs.h>
18538 #endif
18541 main ()
18543 va_list list1, list2; list1 = list2;
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18577 cat >>confdefs.h <<\_ACEOF
18578 #define VA_LIST_IS_ARRAY 1
18579 _ACEOF
18581 va_list_is_array=yes
18584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18585 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18586 echo "${ECHO_T}$va_list_is_array" >&6
18588 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18592 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18593 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18594 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18605 #define gethostbyname_r innocuous_gethostbyname_r
18607 /* System header to define __stub macros and hopefully few prototypes,
18608 which can conflict with char gethostbyname_r (); below.
18609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18610 <limits.h> exists even on freestanding compilers. */
18612 #ifdef __STDC__
18613 # include <limits.h>
18614 #else
18615 # include <assert.h>
18616 #endif
18618 #undef gethostbyname_r
18620 /* Override any gcc2 internal prototype to avoid an error. */
18621 #ifdef __cplusplus
18622 extern "C"
18624 #endif
18625 /* We use char because int might match the return type of a gcc2
18626 builtin and then its argument prototype would still apply. */
18627 char gethostbyname_r ();
18628 /* The GNU C library defines this for functions which it implements
18629 to always fail with ENOSYS. Some functions are actually named
18630 something starting with __ and the normal name is an alias. */
18631 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18632 choke me
18633 #else
18634 char (*f) () = gethostbyname_r;
18635 #endif
18636 #ifdef __cplusplus
18638 #endif
18641 main ()
18643 return f != gethostbyname_r;
18645 return 0;
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_func_gethostbyname_r=yes
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_cv_func_gethostbyname_r=no
18677 rm -f conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18680 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18681 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18682 if test $ac_cv_func_gethostbyname_r = yes; then
18684 cat >>confdefs.h <<\_ACEOF
18685 #define HAVE_GETHOSTBYNAME_R 1
18686 _ACEOF
18688 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18689 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18690 OLD_CFLAGS=$CFLAGS
18691 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18699 # include <netdb.h>
18702 main ()
18705 char *name;
18706 struct hostent *he, *res;
18707 char buffer[2048];
18708 int buflen = 2048;
18709 int h_errnop;
18711 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18714 return 0;
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18740 cat >>confdefs.h <<\_ACEOF
18741 #define HAVE_GETHOSTBYNAME_R 1
18742 _ACEOF
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18747 _ACEOF
18749 echo "$as_me:$LINENO: result: yes" >&5
18750 echo "${ECHO_T}yes" >&6
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18757 echo "$as_me:$LINENO: result: no" >&5
18758 echo "${ECHO_T}no" >&6
18759 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18760 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18761 cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h. */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18768 # include <netdb.h>
18771 main ()
18774 char *name;
18775 struct hostent *he;
18776 char buffer[2048];
18777 int buflen = 2048;
18778 int h_errnop;
18780 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest.$ac_objext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_GETHOSTBYNAME_R 1
18811 _ACEOF
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18816 _ACEOF
18818 echo "$as_me:$LINENO: result: yes" >&5
18819 echo "${ECHO_T}yes" >&6
18821 else
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18826 echo "$as_me:$LINENO: result: no" >&5
18827 echo "${ECHO_T}no" >&6
18828 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18829 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 # include <netdb.h>
18840 main ()
18843 char *name;
18844 struct hostent *he;
18845 struct hostent_data data;
18847 (void) gethostbyname_r(name, he, &data);
18850 return 0;
18852 _ACEOF
18853 rm -f conftest.$ac_objext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855 (eval $ac_compile) 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag"
18863 || test ! -s conftest.err'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest.$ac_objext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define HAVE_GETHOSTBYNAME_R 1
18878 _ACEOF
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18883 _ACEOF
18885 echo "$as_me:$LINENO: result: yes" >&5
18886 echo "${ECHO_T}yes" >&6
18888 else
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18893 echo "$as_me:$LINENO: result: no" >&5
18894 echo "${ECHO_T}no" >&6
18897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18904 CFLAGS=$OLD_CFLAGS
18906 else
18909 for ac_func in gethostbyname
18911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18912 echo "$as_me:$LINENO: checking for $ac_func" >&5
18913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18914 if eval "test \"\${$as_ac_var+set}\" = set"; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h. */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18925 #define $ac_func innocuous_$ac_func
18927 /* System header to define __stub macros and hopefully few prototypes,
18928 which can conflict with char $ac_func (); below.
18929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18930 <limits.h> exists even on freestanding compilers. */
18932 #ifdef __STDC__
18933 # include <limits.h>
18934 #else
18935 # include <assert.h>
18936 #endif
18938 #undef $ac_func
18940 /* Override any gcc2 internal prototype to avoid an error. */
18941 #ifdef __cplusplus
18942 extern "C"
18944 #endif
18945 /* We use char because int might match the return type of a gcc2
18946 builtin and then its argument prototype would still apply. */
18947 char $ac_func ();
18948 /* The GNU C library defines this for functions which it implements
18949 to always fail with ENOSYS. Some functions are actually named
18950 something starting with __ and the normal name is an alias. */
18951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18952 choke me
18953 #else
18954 char (*f) () = $ac_func;
18955 #endif
18956 #ifdef __cplusplus
18958 #endif
18961 main ()
18963 return f != $ac_func;
18965 return 0;
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>conftest.er1
18971 ac_status=$?
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -z "$ac_c_werror_flag"
18978 || test ! -s conftest.err'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 eval "$as_ac_var=yes"
18991 else
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 eval "$as_ac_var=no"
18997 rm -f conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext conftest.$ac_ext
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19002 if test `eval echo '${'$as_ac_var'}'` = yes; then
19003 cat >>confdefs.h <<_ACEOF
19004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19005 _ACEOF
19008 done
19019 # checks for system services
19020 # (none yet)
19022 # Linux requires this for correct f.p. operations
19023 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19024 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19025 if test "${ac_cv_func___fpu_control+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19036 #define __fpu_control innocuous___fpu_control
19038 /* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char __fpu_control (); below.
19040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19041 <limits.h> exists even on freestanding compilers. */
19043 #ifdef __STDC__
19044 # include <limits.h>
19045 #else
19046 # include <assert.h>
19047 #endif
19049 #undef __fpu_control
19051 /* Override any gcc2 internal prototype to avoid an error. */
19052 #ifdef __cplusplus
19053 extern "C"
19055 #endif
19056 /* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058 char __fpu_control ();
19059 /* The GNU C library defines this for functions which it implements
19060 to always fail with ENOSYS. Some functions are actually named
19061 something starting with __ and the normal name is an alias. */
19062 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19063 choke me
19064 #else
19065 char (*f) () = __fpu_control;
19066 #endif
19067 #ifdef __cplusplus
19069 #endif
19072 main ()
19074 return f != __fpu_control;
19076 return 0;
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_func___fpu_control=yes
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_func___fpu_control=no
19108 rm -f conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19111 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19112 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19113 if test $ac_cv_func___fpu_control = yes; then
19115 else
19117 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19118 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19119 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122 ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-lieee $LIBS"
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19131 /* Override any gcc2 internal prototype to avoid an error. */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 /* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137 char __fpu_control ();
19139 main ()
19141 __fpu_control ();
19143 return 0;
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148 (eval $ac_link) 2>conftest.er1
19149 ac_status=$?
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
19155 { ac_try='test -z "$ac_c_werror_flag"
19156 || test ! -s conftest.err'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest$ac_exeext'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 ac_cv_lib_ieee___fpu_control=yes
19169 else
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 ac_cv_lib_ieee___fpu_control=no
19175 rm -f conftest.err conftest.$ac_objext \
19176 conftest$ac_exeext conftest.$ac_ext
19177 LIBS=$ac_check_lib_save_LIBS
19179 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19180 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19181 if test $ac_cv_lib_ieee___fpu_control = yes; then
19182 cat >>confdefs.h <<_ACEOF
19183 #define HAVE_LIBIEEE 1
19184 _ACEOF
19186 LIBS="-lieee $LIBS"
19194 # Check for --with-fpectl
19195 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19196 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19198 # Check whether --with-fpectl or --without-fpectl was given.
19199 if test "${with_fpectl+set}" = set; then
19200 withval="$with_fpectl"
19202 if test "$withval" != no
19203 then
19205 cat >>confdefs.h <<\_ACEOF
19206 #define WANT_SIGFPE_HANDLER 1
19207 _ACEOF
19209 echo "$as_me:$LINENO: result: yes" >&5
19210 echo "${ECHO_T}yes" >&6
19211 else echo "$as_me:$LINENO: result: no" >&5
19212 echo "${ECHO_T}no" >&6
19214 else
19215 echo "$as_me:$LINENO: result: no" >&5
19216 echo "${ECHO_T}no" >&6
19219 # check for --with-libm=...
19221 case $ac_sys_system in
19222 Darwin) ;;
19223 BeOS) ;;
19224 *) LIBM=-lm
19225 esac
19226 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19227 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19229 # Check whether --with-libm or --without-libm was given.
19230 if test "${with_libm+set}" = set; then
19231 withval="$with_libm"
19233 if test "$withval" = no
19234 then LIBM=
19235 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19236 echo "${ECHO_T}force LIBM empty" >&6
19237 elif test "$withval" != yes
19238 then LIBM=$withval
19239 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19240 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19241 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19242 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19243 { (exit 1); exit 1; }; }
19245 else
19246 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19247 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19250 # check for --with-libc=...
19252 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19253 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19255 # Check whether --with-libc or --without-libc was given.
19256 if test "${with_libc+set}" = set; then
19257 withval="$with_libc"
19259 if test "$withval" = no
19260 then LIBC=
19261 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19262 echo "${ECHO_T}force LIBC empty" >&6
19263 elif test "$withval" != yes
19264 then LIBC=$withval
19265 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19266 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19267 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19268 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19269 { (exit 1); exit 1; }; }
19271 else
19272 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19273 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19276 # check for hypot() in math library
19277 LIBS_SAVE=$LIBS
19278 LIBS="$LIBS $LIBM"
19280 for ac_func in hypot
19282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19283 echo "$as_me:$LINENO: checking for $ac_func" >&5
19284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19285 if eval "test \"\${$as_ac_var+set}\" = set"; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h. */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19296 #define $ac_func innocuous_$ac_func
19298 /* System header to define __stub macros and hopefully few prototypes,
19299 which can conflict with char $ac_func (); below.
19300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19301 <limits.h> exists even on freestanding compilers. */
19303 #ifdef __STDC__
19304 # include <limits.h>
19305 #else
19306 # include <assert.h>
19307 #endif
19309 #undef $ac_func
19311 /* Override any gcc2 internal prototype to avoid an error. */
19312 #ifdef __cplusplus
19313 extern "C"
19315 #endif
19316 /* We use char because int might match the return type of a gcc2
19317 builtin and then its argument prototype would still apply. */
19318 char $ac_func ();
19319 /* The GNU C library defines this for functions which it implements
19320 to always fail with ENOSYS. Some functions are actually named
19321 something starting with __ and the normal name is an alias. */
19322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19323 choke me
19324 #else
19325 char (*f) () = $ac_func;
19326 #endif
19327 #ifdef __cplusplus
19329 #endif
19332 main ()
19334 return f != $ac_func;
19336 return 0;
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try='test -z "$ac_c_werror_flag"
19349 || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest$ac_exeext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 eval "$as_ac_var=yes"
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 eval "$as_ac_var=no"
19368 rm -f conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19373 if test `eval echo '${'$as_ac_var'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19376 _ACEOF
19378 else
19379 case $LIBOBJS in
19380 "$ac_func.$ac_objext" | \
19381 *" $ac_func.$ac_objext" | \
19382 "$ac_func.$ac_objext "* | \
19383 *" $ac_func.$ac_objext "* ) ;;
19384 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19385 esac
19388 done
19391 LIBS=$LIBS_SAVE
19393 # check for wchar.h
19394 if test "${ac_cv_header_wchar_h+set}" = set; then
19395 echo "$as_me:$LINENO: checking for wchar.h" >&5
19396 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19397 if test "${ac_cv_header_wchar_h+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19401 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19402 else
19403 # Is the header compilable?
19404 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19405 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19413 #include <wchar.h>
19414 _ACEOF
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_c_werror_flag"
19425 || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_header_compiler=no
19444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19450 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <wchar.h>
19458 _ACEOF
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19470 else
19471 ac_cpp_err=
19473 else
19474 ac_cpp_err=yes
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc=yes
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_header_preproc=no
19484 rm -f conftest.err conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 yes:no: )
19491 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc=yes
19497 no:yes:* )
19498 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19511 cat <<\_ASBOX
19512 ## ------------------------------------------------ ##
19513 ## Report this to http://www.python.org/python-bugs ##
19514 ## ------------------------------------------------ ##
19515 _ASBOX
19517 sed "s/^/$as_me: WARNING: /" >&2
19519 esac
19520 echo "$as_me:$LINENO: checking for wchar.h" >&5
19521 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19522 if test "${ac_cv_header_wchar_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 ac_cv_header_wchar_h=$ac_header_preproc
19527 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19531 if test $ac_cv_header_wchar_h = yes; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_WCHAR_H 1
19536 _ACEOF
19538 wchar_h="yes"
19540 else
19541 wchar_h="no"
19547 # determine wchar_t size
19548 if test "$wchar_h" = yes
19549 then
19550 echo "$as_me:$LINENO: checking for wchar_t" >&5
19551 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19552 if test "${ac_cv_type_wchar_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 #include <wchar.h>
19564 main ()
19566 if ((wchar_t *) 0)
19567 return 0;
19568 if (sizeof (wchar_t))
19569 return 0;
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_cv_type_wchar_t=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 ac_cv_type_wchar_t=no
19603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19606 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19608 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19609 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19610 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 if test "$ac_cv_type_wchar_t" = yes; then
19614 # The cast to unsigned long works around a bug in the HP C Compiler
19615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19617 # This bug is HP SR number 8606223364.
19618 if test "$cross_compiling" = yes; then
19619 # Depending upon the size, compute the lo and hi bounds.
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h. */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 #include <wchar.h>
19629 main ()
19631 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19632 test_array [0] = 0
19635 return 0;
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_lo=0 ac_mid=0
19661 while :; do
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h. */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 #include <wchar.h>
19671 main ()
19673 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19674 test_array [0] = 0
19677 return 0;
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682 (eval $ac_compile) 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest.$ac_objext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_hi=$ac_mid; break
19703 else
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 ac_lo=`expr $ac_mid + 1`
19708 if test $ac_lo -le $ac_mid; then
19709 ac_lo= ac_hi=
19710 break
19712 ac_mid=`expr 2 '*' $ac_mid + 1`
19714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715 done
19716 else
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <wchar.h>
19729 main ()
19731 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19732 test_array [0] = 0
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_hi=-1 ac_mid=-1
19761 while :; do
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <wchar.h>
19771 main ()
19773 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19774 test_array [0] = 0
19777 return 0;
19779 _ACEOF
19780 rm -f conftest.$ac_objext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19782 (eval $ac_compile) 2>conftest.er1
19783 ac_status=$?
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try='test -z "$ac_c_werror_flag"
19790 || test ! -s conftest.err'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_lo=$ac_mid; break
19803 else
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_hi=`expr '(' $ac_mid ')' - 1`
19808 if test $ac_mid -le $ac_hi; then
19809 ac_lo= ac_hi=
19810 break
19812 ac_mid=`expr 2 '*' $ac_mid`
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 done
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_lo= ac_hi=
19822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19825 # Binary search between lo and hi bounds.
19826 while test "x$ac_lo" != "x$ac_hi"; do
19827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19828 cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h. */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #include <wchar.h>
19837 main ()
19839 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19840 test_array [0] = 0
19843 return 0;
19845 _ACEOF
19846 rm -f conftest.$ac_objext
19847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try='test -z "$ac_c_werror_flag"
19856 || test ! -s conftest.err'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_hi=$ac_mid
19869 else
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_lo=`expr '(' $ac_mid ')' + 1`
19875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19876 done
19877 case $ac_lo in
19878 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19880 See \`config.log' for more details." >&5
19881 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19882 See \`config.log' for more details." >&2;}
19883 { (exit 1); exit 1; }; } ;;
19884 esac
19885 else
19886 if test "$cross_compiling" = yes; then
19887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19888 See \`config.log' for more details." >&5
19889 echo "$as_me: error: cannot run test program while cross compiling
19890 See \`config.log' for more details." >&2;}
19891 { (exit 1); exit 1; }; }
19892 else
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <wchar.h>
19901 long longval () { return (long) (sizeof (wchar_t)); }
19902 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19903 #include <stdio.h>
19904 #include <stdlib.h>
19906 main ()
19909 FILE *f = fopen ("conftest.val", "w");
19910 if (! f)
19911 exit (1);
19912 if (((long) (sizeof (wchar_t))) < 0)
19914 long i = longval ();
19915 if (i != ((long) (sizeof (wchar_t))))
19916 exit (1);
19917 fprintf (f, "%ld\n", i);
19919 else
19921 unsigned long i = ulongval ();
19922 if (i != ((long) (sizeof (wchar_t))))
19923 exit (1);
19924 fprintf (f, "%lu\n", i);
19926 exit (ferror (f) || fclose (f) != 0);
19929 return 0;
19931 _ACEOF
19932 rm -f conftest$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_wchar_t=`cat conftest.val`
19944 else
19945 echo "$as_me: program exited with status $ac_status" >&5
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ( exit $ac_status )
19950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19951 See \`config.log' for more details." >&5
19952 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19953 See \`config.log' for more details." >&2;}
19954 { (exit 1); exit 1; }; }
19956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19959 rm -f conftest.val
19960 else
19961 ac_cv_sizeof_wchar_t=0
19964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19965 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19966 cat >>confdefs.h <<_ACEOF
19967 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19968 _ACEOF
19973 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19974 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19975 have_ucs4_tcl=no
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 #include <tcl.h>
19984 #if TCL_UTF_MAX != 6
19985 # error "NOT UCS4_TCL"
19986 #endif
19988 main ()
19992 return 0;
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_UCS4_TCL 1
20021 _ACEOF
20023 have_ucs4_tcl=yes
20025 else
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20032 echo "${ECHO_T}$have_ucs4_tcl" >&6
20034 # check whether wchar_t is signed or not
20035 if test "$wchar_h" = yes
20036 then
20037 # check whether wchar_t is signed or not
20038 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20039 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20040 if test "${ac_cv_wchar_t_signed+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20044 if test "$cross_compiling" = yes; then
20045 ac_cv_wchar_t_signed=yes
20046 else
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h. */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20054 #include <wchar.h>
20055 int main()
20057 /* Success: exit code 0 */
20058 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20061 _ACEOF
20062 rm -f conftest$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064 (eval $ac_link) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_wchar_t_signed=yes
20074 else
20075 echo "$as_me: program exited with status $ac_status" >&5
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ( exit $ac_status )
20080 ac_cv_wchar_t_signed=no
20082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20086 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20087 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20090 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20091 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20092 # Check whether --enable-unicode or --disable-unicode was given.
20093 if test "${enable_unicode+set}" = set; then
20094 enableval="$enable_unicode"
20096 else
20097 enable_unicode=yes
20100 if test $enable_unicode = yes
20101 then
20102 # Without any arguments, Py_UNICODE defaults to two-byte mode
20103 case "$have_ucs4_tcl" in
20104 yes) enable_unicode="ucs4"
20106 *) enable_unicode="ucs2"
20108 esac
20113 case "$enable_unicode" in
20114 ucs2) unicode_size="2"
20115 cat >>confdefs.h <<\_ACEOF
20116 #define Py_UNICODE_SIZE 2
20117 _ACEOF
20120 ucs4) unicode_size="4"
20121 cat >>confdefs.h <<\_ACEOF
20122 #define Py_UNICODE_SIZE 4
20123 _ACEOF
20126 esac
20132 if test "$enable_unicode" = "no"
20133 then
20134 UNICODE_OBJS=""
20135 echo "$as_me:$LINENO: result: not used" >&5
20136 echo "${ECHO_T}not used" >&6
20137 else
20138 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20140 cat >>confdefs.h <<\_ACEOF
20141 #define Py_USING_UNICODE 1
20142 _ACEOF
20145 # wchar_t is only usable if it maps to an unsigned type
20146 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20147 -a "$ac_cv_wchar_t_signed" = "no"
20148 then
20149 PY_UNICODE_TYPE="wchar_t"
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_USABLE_WCHAR_T 1
20153 _ACEOF
20155 cat >>confdefs.h <<\_ACEOF
20156 #define PY_UNICODE_TYPE wchar_t
20157 _ACEOF
20159 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20160 then
20161 PY_UNICODE_TYPE="unsigned short"
20162 cat >>confdefs.h <<\_ACEOF
20163 #define PY_UNICODE_TYPE unsigned short
20164 _ACEOF
20166 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20167 then
20168 PY_UNICODE_TYPE="unsigned long"
20169 cat >>confdefs.h <<\_ACEOF
20170 #define PY_UNICODE_TYPE unsigned long
20171 _ACEOF
20173 else
20174 PY_UNICODE_TYPE="no type found"
20176 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20177 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20180 # check for endianness
20181 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20182 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20183 if test "${ac_cv_c_bigendian+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 else
20186 # See if sys/param.h defines the BYTE_ORDER macro.
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <sys/types.h>
20194 #include <sys/param.h>
20197 main ()
20199 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20200 bogus endian macros
20201 #endif
20204 return 0;
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag"
20217 || test ! -s conftest.err'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 # It does; now see whether it defined to BIG_ENDIAN or not.
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 #include <sys/types.h>
20237 #include <sys/param.h>
20240 main ()
20242 #if BYTE_ORDER != BIG_ENDIAN
20243 not big endian
20244 #endif
20247 return 0;
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>conftest.er1
20253 ac_status=$?
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_c_werror_flag"
20260 || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_c_bigendian=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_c_bigendian=no
20279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 else
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 # It does not; compile a test program.
20285 if test "$cross_compiling" = yes; then
20286 # try to guess the endianness by grepping values into an object file
20287 ac_cv_c_bigendian=unknown
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20295 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20296 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20297 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20298 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20299 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20301 main ()
20303 _ascii (); _ebcdic ();
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20331 ac_cv_c_bigendian=yes
20333 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20334 if test "$ac_cv_c_bigendian" = unknown; then
20335 ac_cv_c_bigendian=no
20336 else
20337 # finding both strings is unlikely to happen, but who knows?
20338 ac_cv_c_bigendian=unknown
20341 else
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20347 else
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20355 main ()
20357 /* Are we little or big endian? From Harbison&Steele. */
20358 union
20360 long l;
20361 char c[sizeof (long)];
20362 } u;
20363 u.l = 1;
20364 exit (u.c[sizeof (long) - 1] == 1);
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_c_bigendian=no
20379 else
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ( exit $ac_status )
20385 ac_cv_c_bigendian=yes
20387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20392 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20393 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20394 case $ac_cv_c_bigendian in
20395 yes)
20397 cat >>confdefs.h <<\_ACEOF
20398 #define WORDS_BIGENDIAN 1
20399 _ACEOF
20404 { { echo "$as_me:$LINENO: error: unknown endianness
20405 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20406 echo "$as_me: error: unknown endianness
20407 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20408 { (exit 1); exit 1; }; } ;;
20409 esac
20414 # Check whether right shifting a negative integer extends the sign bit
20415 # or fills with zeros (like the Cray J90, according to Tim Peters).
20416 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20417 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20418 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20422 if test "$cross_compiling" = yes; then
20423 ac_cv_rshift_extends_sign=yes
20424 else
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20432 int main()
20434 exit(((-1)>>3 == -1) ? 0 : 1);
20437 _ACEOF
20438 rm -f conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_cv_rshift_extends_sign=yes
20450 else
20451 echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ( exit $ac_status )
20456 ac_cv_rshift_extends_sign=no
20458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20463 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20464 if test "$ac_cv_rshift_extends_sign" = no
20465 then
20467 cat >>confdefs.h <<\_ACEOF
20468 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20469 _ACEOF
20473 # check for getc_unlocked and related locking functions
20474 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20475 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20476 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #include <stdio.h>
20488 main ()
20491 FILE *f = fopen("/dev/null", "r");
20492 flockfile(f);
20493 getc_unlocked(f);
20494 funlockfile(f);
20497 return 0;
20499 _ACEOF
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_cv_have_getc_unlocked=yes
20523 else
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_have_getc_unlocked=no
20529 rm -f conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20534 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20535 if test "$ac_cv_have_getc_unlocked" = yes
20536 then
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_GETC_UNLOCKED 1
20540 _ACEOF
20544 # check where readline lives
20545 # save the value of LIBS so we don't actually link Python with readline
20546 LIBS_no_readline=$LIBS
20548 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20549 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20550 if test "${ac_cv_lib_readline_readline+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553 ac_check_lib_save_LIBS=$LIBS
20554 LIBS="-lreadline $LIBS"
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 /* Override any gcc2 internal prototype to avoid an error. */
20563 #ifdef __cplusplus
20564 extern "C"
20565 #endif
20566 /* We use char because int might match the return type of a gcc2
20567 builtin and then its argument prototype would still apply. */
20568 char readline ();
20570 main ()
20572 readline ();
20574 return 0;
20576 _ACEOF
20577 rm -f conftest.$ac_objext conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest$ac_exeext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_lib_readline_readline=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_cv_lib_readline_readline=no
20606 rm -f conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20608 LIBS=$ac_check_lib_save_LIBS
20610 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20611 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20612 if test $ac_cv_lib_readline_readline = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_LIBREADLINE 1
20615 _ACEOF
20617 LIBS="-lreadline $LIBS"
20621 if test "$ac_cv_have_readline_readline" = no
20622 then
20624 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20625 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20626 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 ac_check_lib_save_LIBS=$LIBS
20630 LIBS="-ltermcap $LIBS"
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h. */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20638 /* Override any gcc2 internal prototype to avoid an error. */
20639 #ifdef __cplusplus
20640 extern "C"
20641 #endif
20642 /* We use char because int might match the return type of a gcc2
20643 builtin and then its argument prototype would still apply. */
20644 char readline ();
20646 main ()
20648 readline ();
20650 return 0;
20652 _ACEOF
20653 rm -f conftest.$ac_objext conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655 (eval $ac_link) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest$ac_exeext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_lib_termcap_readline=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_lib_termcap_readline=no
20682 rm -f conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20687 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20688 if test $ac_cv_lib_termcap_readline = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBTERMCAP 1
20691 _ACEOF
20693 LIBS="-ltermcap $LIBS"
20699 # check for readline 2.1
20700 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20701 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20702 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-lreadline $LIBS"
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any gcc2 internal prototype to avoid an error. */
20715 #ifdef __cplusplus
20716 extern "C"
20717 #endif
20718 /* We use char because int might match the return type of a gcc2
20719 builtin and then its argument prototype would still apply. */
20720 char rl_callback_handler_install ();
20722 main ()
20724 rl_callback_handler_install ();
20726 return 0;
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_lib_readline_rl_callback_handler_install=yes
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ac_cv_lib_readline_rl_callback_handler_install=no
20758 rm -f conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
20760 LIBS=$ac_check_lib_save_LIBS
20762 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20763 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20764 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20766 cat >>confdefs.h <<\_ACEOF
20767 #define HAVE_RL_CALLBACK 1
20768 _ACEOF
20773 # check for readline 2.2
20774 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h. */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include <readline/readline.h>
20781 _ACEOF
20782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } >/dev/null; then
20790 if test -s conftest.err; then
20791 ac_cpp_err=$ac_c_preproc_warn_flag
20792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20793 else
20794 ac_cpp_err=
20796 else
20797 ac_cpp_err=yes
20799 if test -z "$ac_cpp_err"; then
20800 have_readline=yes
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 have_readline=no
20807 rm -f conftest.err conftest.$ac_ext
20808 if test $have_readline = yes
20809 then
20810 cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h. */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 #include <readline/readline.h>
20818 _ACEOF
20819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20820 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20822 cat >>confdefs.h <<\_ACEOF
20823 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20824 _ACEOF
20827 rm -f conftest*
20831 # check for readline 4.0
20832 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20833 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20834 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 ac_check_lib_save_LIBS=$LIBS
20838 LIBS="-lreadline $LIBS"
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 /* Override any gcc2 internal prototype to avoid an error. */
20847 #ifdef __cplusplus
20848 extern "C"
20849 #endif
20850 /* We use char because int might match the return type of a gcc2
20851 builtin and then its argument prototype would still apply. */
20852 char rl_pre_input_hook ();
20854 main ()
20856 rl_pre_input_hook ();
20858 return 0;
20860 _ACEOF
20861 rm -f conftest.$ac_objext conftest$ac_exeext
20862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20863 (eval $ac_link) 2>conftest.er1
20864 ac_status=$?
20865 grep -v '^ *+' conftest.er1 >conftest.err
20866 rm -f conftest.er1
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -z "$ac_c_werror_flag"
20871 || test ! -s conftest.err'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try='test -s conftest$ac_exeext'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 ac_cv_lib_readline_rl_pre_input_hook=yes
20884 else
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20888 ac_cv_lib_readline_rl_pre_input_hook=no
20890 rm -f conftest.err conftest.$ac_objext \
20891 conftest$ac_exeext conftest.$ac_ext
20892 LIBS=$ac_check_lib_save_LIBS
20894 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20895 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20896 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20898 cat >>confdefs.h <<\_ACEOF
20899 #define HAVE_RL_PRE_INPUT_HOOK 1
20900 _ACEOF
20905 # check for readline 4.2
20906 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20907 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20908 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 ac_check_lib_save_LIBS=$LIBS
20912 LIBS="-lreadline $LIBS"
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20920 /* Override any gcc2 internal prototype to avoid an error. */
20921 #ifdef __cplusplus
20922 extern "C"
20923 #endif
20924 /* We use char because int might match the return type of a gcc2
20925 builtin and then its argument prototype would still apply. */
20926 char rl_completion_matches ();
20928 main ()
20930 rl_completion_matches ();
20932 return 0;
20934 _ACEOF
20935 rm -f conftest.$ac_objext conftest$ac_exeext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20937 (eval $ac_link) 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest$ac_exeext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_cv_lib_readline_rl_completion_matches=yes
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 ac_cv_lib_readline_rl_completion_matches=no
20964 rm -f conftest.err conftest.$ac_objext \
20965 conftest$ac_exeext conftest.$ac_ext
20966 LIBS=$ac_check_lib_save_LIBS
20968 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20969 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20970 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20972 cat >>confdefs.h <<\_ACEOF
20973 #define HAVE_RL_COMPLETION_MATCHES 1
20974 _ACEOF
20979 # also in readline 4.2
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. */
20986 #include <readline/readline.h>
20987 _ACEOF
20988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } >/dev/null; then
20996 if test -s conftest.err; then
20997 ac_cpp_err=$ac_c_preproc_warn_flag
20998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20999 else
21000 ac_cpp_err=
21002 else
21003 ac_cpp_err=yes
21005 if test -z "$ac_cpp_err"; then
21006 have_readline=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 have_readline=no
21013 rm -f conftest.err conftest.$ac_ext
21014 if test $have_readline = yes
21015 then
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <readline/readline.h>
21024 _ACEOF
21025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21026 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_RL_CATCH_SIGNAL 1
21030 _ACEOF
21033 rm -f conftest*
21037 # End of readline checks: restore LIBS
21038 LIBS=$LIBS_no_readline
21040 echo "$as_me:$LINENO: checking for broken nice()" >&5
21041 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21042 if test "${ac_cv_broken_nice+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21046 if test "$cross_compiling" = yes; then
21047 ac_cv_broken_nice=no
21048 else
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h. */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21056 int main()
21058 int val1 = nice(1);
21059 if (val1 != -1 && val1 == nice(2))
21060 exit(0);
21061 exit(1);
21064 _ACEOF
21065 rm -f conftest$ac_exeext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_broken_nice=yes
21077 else
21078 echo "$as_me: program exited with status $ac_status" >&5
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ( exit $ac_status )
21083 ac_cv_broken_nice=no
21085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21089 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21090 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21091 if test "$ac_cv_broken_nice" = yes
21092 then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_BROKEN_NICE 1
21096 _ACEOF
21100 echo "$as_me:$LINENO: checking for broken poll()" >&5
21101 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21102 if test "$cross_compiling" = yes; then
21103 ac_cv_broken_poll=no
21104 else
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 #include <poll.h>
21114 int main (void)
21116 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21118 close (42);
21120 int poll_test = poll (&poll_struct, 1, 0);
21122 if (poll_test < 0)
21124 exit(0);
21126 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21128 exit(0);
21130 else
21132 exit(1);
21136 _ACEOF
21137 rm -f conftest$ac_exeext
21138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21139 (eval $ac_link) 2>&5
21140 ac_status=$?
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 ac_cv_broken_poll=yes
21149 else
21150 echo "$as_me: program exited with status $ac_status" >&5
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 ( exit $ac_status )
21155 ac_cv_broken_poll=no
21157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21159 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21160 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21161 if test "$ac_cv_broken_poll" = yes
21162 then
21164 cat >>confdefs.h <<\_ACEOF
21165 #define HAVE_BROKEN_POLL 1
21166 _ACEOF
21170 # Before we can test tzset, we need to check if struct tm has a tm_zone
21171 # (which is not required by ISO C or UNIX spec) and/or if we support
21172 # tzname[]
21173 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21174 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21175 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <sys/types.h>
21185 #include <$ac_cv_struct_tm>
21189 main ()
21191 static struct tm ac_aggr;
21192 if (ac_aggr.tm_zone)
21193 return 0;
21195 return 0;
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_member_struct_tm_tm_zone=yes
21221 else
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h. */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 #include <sys/types.h>
21232 #include <$ac_cv_struct_tm>
21236 main ()
21238 static struct tm ac_aggr;
21239 if (sizeof ac_aggr.tm_zone)
21240 return 0;
21242 return 0;
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_member_struct_tm_tm_zone=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_member_struct_tm_tm_zone=no
21274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21279 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21280 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21282 cat >>confdefs.h <<_ACEOF
21283 #define HAVE_STRUCT_TM_TM_ZONE 1
21284 _ACEOF
21289 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21291 cat >>confdefs.h <<\_ACEOF
21292 #define HAVE_TM_ZONE 1
21293 _ACEOF
21295 else
21296 echo "$as_me:$LINENO: checking for tzname" >&5
21297 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21298 if test "${ac_cv_var_tzname+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <time.h>
21308 #ifndef tzname /* For SGI. */
21309 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21310 #endif
21313 main ()
21315 atoi(*tzname);
21317 return 0;
21319 _ACEOF
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21322 (eval $ac_link) 2>conftest.er1
21323 ac_status=$?
21324 grep -v '^ *+' conftest.er1 >conftest.err
21325 rm -f conftest.er1
21326 cat conftest.err >&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } &&
21329 { ac_try='test -z "$ac_c_werror_flag"
21330 || test ! -s conftest.err'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest$ac_exeext'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21342 ac_cv_var_tzname=yes
21343 else
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ac_cv_var_tzname=no
21349 rm -f conftest.err conftest.$ac_objext \
21350 conftest$ac_exeext conftest.$ac_ext
21352 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21353 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21354 if test $ac_cv_var_tzname = yes; then
21356 cat >>confdefs.h <<\_ACEOF
21357 #define HAVE_TZNAME 1
21358 _ACEOF
21364 # check tzset(3) exists and works like we expect it to
21365 echo "$as_me:$LINENO: checking for working tzset()" >&5
21366 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21367 if test "${ac_cv_working_tzset+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21371 if test "$cross_compiling" = yes; then
21372 ac_cv_working_tzset=no
21373 else
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h. */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 #include <stdlib.h>
21382 #include <time.h>
21383 #include <string.h>
21385 #if HAVE_TZNAME
21386 extern char *tzname[];
21387 #endif
21389 int main()
21391 /* Note that we need to ensure that not only does tzset(3)
21392 do 'something' with localtime, but it works as documented
21393 in the library reference and as expected by the test suite.
21394 This includes making sure that tzname is set properly if
21395 tm->tm_zone does not exist since it is the alternative way
21396 of getting timezone info.
21398 Red Hat 6.2 doesn't understand the southern hemisphere
21399 after New Year's Day.
21402 time_t groundhogday = 1044144000; /* GMT-based */
21403 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21405 putenv("TZ=UTC+0");
21406 tzset();
21407 if (localtime(&groundhogday)->tm_hour != 0)
21408 exit(1);
21409 #if HAVE_TZNAME
21410 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21411 if (strcmp(tzname[0], "UTC") ||
21412 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21413 exit(1);
21414 #endif
21416 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21417 tzset();
21418 if (localtime(&groundhogday)->tm_hour != 19)
21419 exit(1);
21420 #if HAVE_TZNAME
21421 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21422 exit(1);
21423 #endif
21425 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21426 tzset();
21427 if (localtime(&groundhogday)->tm_hour != 11)
21428 exit(1);
21429 #if HAVE_TZNAME
21430 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21431 exit(1);
21432 #endif
21434 #if HAVE_STRUCT_TM_TM_ZONE
21435 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21436 exit(1);
21437 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21438 exit(1);
21439 #endif
21441 exit(0);
21444 _ACEOF
21445 rm -f conftest$ac_exeext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21447 (eval $ac_link) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_cv_working_tzset=yes
21457 else
21458 echo "$as_me: program exited with status $ac_status" >&5
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ( exit $ac_status )
21463 ac_cv_working_tzset=no
21465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21469 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21470 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21471 if test "$ac_cv_working_tzset" = yes
21472 then
21474 cat >>confdefs.h <<\_ACEOF
21475 #define HAVE_WORKING_TZSET 1
21476 _ACEOF
21480 # Look for subsecond timestamps in struct stat
21481 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21482 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21483 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 else
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <sys/stat.h>
21494 main ()
21497 struct stat st;
21498 st.st_mtim.tv_nsec = 1;
21501 return 0;
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21506 (eval $ac_compile) 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_c_werror_flag"
21514 || test ! -s conftest.err'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try='test -s conftest.$ac_objext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_stat_tv_nsec=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_cv_stat_tv_nsec=no
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21536 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21537 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21538 if test "$ac_cv_stat_tv_nsec" = yes
21539 then
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_STAT_TV_NSEC 1
21543 _ACEOF
21547 # Look for BSD style subsecond timestamps in struct stat
21548 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21549 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21550 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <sys/stat.h>
21561 main ()
21564 struct stat st;
21565 st.st_mtimespec.tv_nsec = 1;
21568 return 0;
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573 (eval $ac_compile) 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
21580 { ac_try='test -z "$ac_c_werror_flag"
21581 || test ! -s conftest.err'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; } &&
21587 { ac_try='test -s conftest.$ac_objext'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 ac_cv_stat_tv_nsec2=yes
21594 else
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ac_cv_stat_tv_nsec2=no
21600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21604 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21605 if test "$ac_cv_stat_tv_nsec2" = yes
21606 then
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_STAT_TV_NSEC2 1
21610 _ACEOF
21614 # On HP/UX 11.0, mvwdelch is a block with a return statement
21615 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21616 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21617 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620 cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h. */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <curses.h>
21628 main ()
21631 int rtn;
21632 rtn = mvwdelch(0,0,0);
21635 return 0;
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21640 (eval $ac_compile) 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest.$ac_objext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_mvwdelch_is_expression=yes
21661 else
21662 echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 ac_cv_mvwdelch_is_expression=no
21667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21670 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21671 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21673 if test "$ac_cv_mvwdelch_is_expression" = yes
21674 then
21676 cat >>confdefs.h <<\_ACEOF
21677 #define MVWDELCH_IS_EXPRESSION 1
21678 _ACEOF
21682 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21683 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21684 if test "${ac_cv_window_has_flags+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h. */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 #include <curses.h>
21695 main ()
21698 WINDOW *w;
21699 w->_flags = 0;
21702 return 0;
21704 _ACEOF
21705 rm -f conftest.$ac_objext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21707 (eval $ac_compile) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
21714 { ac_try='test -z "$ac_c_werror_flag"
21715 || test ! -s conftest.err'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try='test -s conftest.$ac_objext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_window_has_flags=yes
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_cv_window_has_flags=no
21734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21737 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21738 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21741 if test "$ac_cv_window_has_flags" = yes
21742 then
21744 cat >>confdefs.h <<\_ACEOF
21745 #define WINDOW_HAS_FLAGS 1
21746 _ACEOF
21750 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21751 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21753 if test -e /dev/ptmx
21754 then
21755 echo "$as_me:$LINENO: result: yes" >&5
21756 echo "${ECHO_T}yes" >&6
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_DEV_PTMX 1
21760 _ACEOF
21762 else
21763 echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21767 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21768 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21770 if test -e /dev/ptc
21771 then
21772 echo "$as_me:$LINENO: result: yes" >&5
21773 echo "${ECHO_T}yes" >&6
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_DEV_PTC 1
21777 _ACEOF
21779 else
21780 echo "$as_me:$LINENO: result: no" >&5
21781 echo "${ECHO_T}no" >&6
21784 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21785 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21786 if test "$cross_compiling" = yes; then
21787 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21788 See \`config.log' for more details." >&5
21789 echo "$as_me: error: cannot run test program while cross compiling
21790 See \`config.log' for more details." >&2;}
21791 { (exit 1); exit 1; }; }
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 #include <stdio.h>
21800 #include <stddef.h>
21801 #include <string.h>
21803 int main()
21805 char buffer[4];
21807 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21808 return 1;
21810 if (strncmp(buffer, "123", 3))
21811 return 1;
21813 return 0;
21815 _ACEOF
21816 rm -f conftest$ac_exeext
21817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 echo "$as_me:$LINENO: result: yes" >&5
21828 echo "${ECHO_T}yes" >&6
21830 cat >>confdefs.h <<\_ACEOF
21831 #define PY_FORMAT_SIZE_T "z"
21832 _ACEOF
21834 else
21835 echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ( exit $ac_status )
21840 echo "$as_me:$LINENO: result: no" >&5
21841 echo "${ECHO_T}no" >&6
21843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21846 echo "$as_me:$LINENO: checking for socklen_t" >&5
21847 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21848 if test "${ac_cv_type_socklen_t+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851 cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 #ifdef HAVE_SYS_TYPES_H
21859 #include <sys/types.h>
21860 #endif
21861 #ifdef HAVE_SYS_SOCKET_H
21862 #include <sys/socket.h>
21863 #endif
21867 main ()
21869 if ((socklen_t *) 0)
21870 return 0;
21871 if (sizeof (socklen_t))
21872 return 0;
21874 return 0;
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_type_socklen_t=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_type_socklen_t=no
21906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21908 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21909 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21910 if test $ac_cv_type_socklen_t = yes; then
21912 else
21914 cat >>confdefs.h <<\_ACEOF
21915 #define socklen_t int
21916 _ACEOF
21923 for h in `(cd $srcdir;echo Python/thread_*.h)`
21925 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21926 done
21929 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21930 echo "$as_me:$LINENO: checking for build directories" >&5
21931 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21932 for dir in $SRCDIRS; do
21933 if test ! -d $dir; then
21934 mkdir $dir
21936 done
21937 echo "$as_me:$LINENO: result: done" >&5
21938 echo "${ECHO_T}done" >&6
21940 # generate output files
21941 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21943 cat >confcache <<\_ACEOF
21944 # This file is a shell script that caches the results of configure
21945 # tests run on this system so they can be shared between configure
21946 # scripts and configure runs, see configure's option --config-cache.
21947 # It is not useful on other systems. If it contains results you don't
21948 # want to keep, you may remove or edit it.
21950 # config.status only pays attention to the cache file if you give it
21951 # the --recheck option to rerun configure.
21953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21955 # following values.
21957 _ACEOF
21959 # The following way of writing the cache mishandles newlines in values,
21960 # but we know of no workaround that is simple, portable, and efficient.
21961 # So, don't put newlines in cache variables' values.
21962 # Ultrix sh set writes to stderr and can't be redirected directly,
21963 # and sets the high bit in the cache file unless we assign to the vars.
21965 (set) 2>&1 |
21966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21967 *ac_space=\ *)
21968 # `set' does not quote correctly, so add quotes (double-quote
21969 # substitution turns \\\\ into \\, and sed turns \\ into \).
21970 sed -n \
21971 "s/'/'\\\\''/g;
21972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21975 # `set' quotes correctly as required by POSIX, so do not add quotes.
21976 sed -n \
21977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21979 esac;
21981 sed '
21982 t clear
21983 : clear
21984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21985 t end
21986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21987 : end' >>confcache
21988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21989 if test -w $cache_file; then
21990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21991 cat confcache >$cache_file
21992 else
21993 echo "not updating unwritable cache $cache_file"
21996 rm -f confcache
21998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21999 # Let make expand exec_prefix.
22000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22004 # trailing colons and then remove the whole line if VPATH becomes empty
22005 # (actually we leave an empty line to preserve line numbers).
22006 if test "x$srcdir" = x.; then
22007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22008 s/:*\$(srcdir):*/:/;
22009 s/:*\${srcdir}:*/:/;
22010 s/:*@srcdir@:*/:/;
22011 s/^\([^=]*=[ ]*\):*/\1/;
22012 s/:*$//;
22013 s/^[^=]*=[ ]*$//;
22017 DEFS=-DHAVE_CONFIG_H
22019 ac_libobjs=
22020 ac_ltlibobjs=
22021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22022 # 1. Remove the extension, and $U if already installed.
22023 ac_i=`echo "$ac_i" |
22024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22025 # 2. Add them.
22026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22028 done
22029 LIBOBJS=$ac_libobjs
22031 LTLIBOBJS=$ac_ltlibobjs
22035 : ${CONFIG_STATUS=./config.status}
22036 ac_clean_files_save=$ac_clean_files
22037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22040 cat >$CONFIG_STATUS <<_ACEOF
22041 #! $SHELL
22042 # Generated by $as_me.
22043 # Run this file to recreate the current configuration.
22044 # Compiler output produced by configure, useful for debugging
22045 # configure, is in config.log if it exists.
22047 debug=false
22048 ac_cs_recheck=false
22049 ac_cs_silent=false
22050 SHELL=\${CONFIG_SHELL-$SHELL}
22051 _ACEOF
22053 cat >>$CONFIG_STATUS <<\_ACEOF
22054 ## --------------------- ##
22055 ## M4sh Initialization. ##
22056 ## --------------------- ##
22058 # Be Bourne compatible
22059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22060 emulate sh
22061 NULLCMD=:
22062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22063 # is contrary to our usage. Disable this feature.
22064 alias -g '${1+"$@"}'='"$@"'
22065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22066 set -o posix
22068 DUALCASE=1; export DUALCASE # for MKS sh
22070 # Support unset when possible.
22071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22072 as_unset=unset
22073 else
22074 as_unset=false
22078 # Work around bugs in pre-3.0 UWIN ksh.
22079 $as_unset ENV MAIL MAILPATH
22080 PS1='$ '
22081 PS2='> '
22082 PS4='+ '
22084 # NLS nuisances.
22085 for as_var in \
22086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22088 LC_TELEPHONE LC_TIME
22090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22091 eval $as_var=C; export $as_var
22092 else
22093 $as_unset $as_var
22095 done
22097 # Required to use basename.
22098 if expr a : '\(a\)' >/dev/null 2>&1; then
22099 as_expr=expr
22100 else
22101 as_expr=false
22104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22105 as_basename=basename
22106 else
22107 as_basename=false
22111 # Name of the executable.
22112 as_me=`$as_basename "$0" ||
22113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22114 X"$0" : 'X\(//\)$' \| \
22115 X"$0" : 'X\(/\)$' \| \
22116 . : '\(.\)' 2>/dev/null ||
22117 echo X/"$0" |
22118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22119 /^X\/\(\/\/\)$/{ s//\1/; q; }
22120 /^X\/\(\/\).*/{ s//\1/; q; }
22121 s/.*/./; q'`
22124 # PATH needs CR, and LINENO needs CR and PATH.
22125 # Avoid depending upon Character Ranges.
22126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22129 as_cr_digits='0123456789'
22130 as_cr_alnum=$as_cr_Letters$as_cr_digits
22132 # The user is always right.
22133 if test "${PATH_SEPARATOR+set}" != set; then
22134 echo "#! /bin/sh" >conf$$.sh
22135 echo "exit 0" >>conf$$.sh
22136 chmod +x conf$$.sh
22137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22138 PATH_SEPARATOR=';'
22139 else
22140 PATH_SEPARATOR=:
22142 rm -f conf$$.sh
22146 as_lineno_1=$LINENO
22147 as_lineno_2=$LINENO
22148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22149 test "x$as_lineno_1" != "x$as_lineno_2" &&
22150 test "x$as_lineno_3" = "x$as_lineno_2" || {
22151 # Find who we are. Look in the path if we contain no path at all
22152 # relative or not.
22153 case $0 in
22154 *[\\/]* ) as_myself=$0 ;;
22155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22156 for as_dir in $PATH
22158 IFS=$as_save_IFS
22159 test -z "$as_dir" && as_dir=.
22160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22161 done
22164 esac
22165 # We did not find ourselves, most probably we were run as `sh COMMAND'
22166 # in which case we are not to be found in the path.
22167 if test "x$as_myself" = x; then
22168 as_myself=$0
22170 if test ! -f "$as_myself"; then
22171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22173 { (exit 1); exit 1; }; }
22175 case $CONFIG_SHELL in
22177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22180 IFS=$as_save_IFS
22181 test -z "$as_dir" && as_dir=.
22182 for as_base in sh bash ksh sh5; do
22183 case $as_dir in
22185 if ("$as_dir/$as_base" -c '
22186 as_lineno_1=$LINENO
22187 as_lineno_2=$LINENO
22188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22189 test "x$as_lineno_1" != "x$as_lineno_2" &&
22190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22191 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22192 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22193 CONFIG_SHELL=$as_dir/$as_base
22194 export CONFIG_SHELL
22195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22196 fi;;
22197 esac
22198 done
22199 done
22201 esac
22203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22204 # uniformly replaced by the line number. The first 'sed' inserts a
22205 # line-number line before each line; the second 'sed' does the real
22206 # work. The second script uses 'N' to pair each line-number line
22207 # with the numbered line, and appends trailing '-' during
22208 # substitution so that $LINENO is not a special case at line end.
22209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22211 sed '=' <$as_myself |
22212 sed '
22214 s,$,-,
22215 : loop
22216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22217 t loop
22218 s,-$,,
22219 s,^['$as_cr_digits']*\n,,
22220 ' >$as_me.lineno &&
22221 chmod +x $as_me.lineno ||
22222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22224 { (exit 1); exit 1; }; }
22226 # Don't try to exec as it changes $[0], causing all sort of problems
22227 # (the dirname of $[0] is not the place where we might find the
22228 # original and so on. Autoconf is especially sensible to this).
22229 . ./$as_me.lineno
22230 # Exit status is that of the last command.
22231 exit
22235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22236 *c*,-n*) ECHO_N= ECHO_C='
22237 ' ECHO_T=' ' ;;
22238 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22239 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22240 esac
22242 if expr a : '\(a\)' >/dev/null 2>&1; then
22243 as_expr=expr
22244 else
22245 as_expr=false
22248 rm -f conf$$ conf$$.exe conf$$.file
22249 echo >conf$$.file
22250 if ln -s conf$$.file conf$$ 2>/dev/null; then
22251 # We could just check for DJGPP; but this test a) works b) is more generic
22252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22253 if test -f conf$$.exe; then
22254 # Don't use ln at all; we don't have any links
22255 as_ln_s='cp -p'
22256 else
22257 as_ln_s='ln -s'
22259 elif ln conf$$.file conf$$ 2>/dev/null; then
22260 as_ln_s=ln
22261 else
22262 as_ln_s='cp -p'
22264 rm -f conf$$ conf$$.exe conf$$.file
22266 if mkdir -p . 2>/dev/null; then
22267 as_mkdir_p=:
22268 else
22269 test -d ./-p && rmdir ./-p
22270 as_mkdir_p=false
22273 as_executable_p="test -f"
22275 # Sed expression to map a string onto a valid CPP name.
22276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22278 # Sed expression to map a string onto a valid variable name.
22279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22282 # IFS
22283 # We need space, tab and new line, in precisely that order.
22284 as_nl='
22286 IFS=" $as_nl"
22288 # CDPATH.
22289 $as_unset CDPATH
22291 exec 6>&1
22293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22294 # report actual input values of CONFIG_FILES etc. instead of their
22295 # values after options handling. Logging --version etc. is OK.
22296 exec 5>>config.log
22298 echo
22299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22300 ## Running $as_me. ##
22301 _ASBOX
22302 } >&5
22303 cat >&5 <<_CSEOF
22305 This file was extended by python $as_me 2.5, which was
22306 generated by GNU Autoconf 2.59. Invocation command line was
22308 CONFIG_FILES = $CONFIG_FILES
22309 CONFIG_HEADERS = $CONFIG_HEADERS
22310 CONFIG_LINKS = $CONFIG_LINKS
22311 CONFIG_COMMANDS = $CONFIG_COMMANDS
22312 $ $0 $@
22314 _CSEOF
22315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22316 echo >&5
22317 _ACEOF
22319 # Files that config.status was made for.
22320 if test -n "$ac_config_files"; then
22321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22324 if test -n "$ac_config_headers"; then
22325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22328 if test -n "$ac_config_links"; then
22329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22332 if test -n "$ac_config_commands"; then
22333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22336 cat >>$CONFIG_STATUS <<\_ACEOF
22338 ac_cs_usage="\
22339 \`$as_me' instantiates files from templates according to the
22340 current configuration.
22342 Usage: $0 [OPTIONS] [FILE]...
22344 -h, --help print this help, then exit
22345 -V, --version print version number, then exit
22346 -q, --quiet do not print progress messages
22347 -d, --debug don't remove temporary files
22348 --recheck update $as_me by reconfiguring in the same conditions
22349 --file=FILE[:TEMPLATE]
22350 instantiate the configuration file FILE
22351 --header=FILE[:TEMPLATE]
22352 instantiate the configuration header FILE
22354 Configuration files:
22355 $config_files
22357 Configuration headers:
22358 $config_headers
22360 Report bugs to <bug-autoconf@gnu.org>."
22361 _ACEOF
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364 ac_cs_version="\\
22365 python config.status 2.5
22366 configured by $0, generated by GNU Autoconf 2.59,
22367 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22369 Copyright (C) 2003 Free Software Foundation, Inc.
22370 This config.status script is free software; the Free Software Foundation
22371 gives unlimited permission to copy, distribute and modify it."
22372 srcdir=$srcdir
22373 INSTALL="$INSTALL"
22374 _ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22377 # If no file are specified by the user, then we need to provide default
22378 # value. By we need to know if files were specified by the user.
22379 ac_need_defaults=:
22380 while test $# != 0
22382 case $1 in
22383 --*=*)
22384 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22385 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22386 ac_shift=:
22389 ac_option=$1
22390 ac_optarg=$2
22391 ac_shift=shift
22393 *) # This is not an option, so the user has probably given explicit
22394 # arguments.
22395 ac_option=$1
22396 ac_need_defaults=false;;
22397 esac
22399 case $ac_option in
22400 # Handling of the options.
22401 _ACEOF
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22404 ac_cs_recheck=: ;;
22405 --version | --vers* | -V )
22406 echo "$ac_cs_version"; exit 0 ;;
22407 --he | --h)
22408 # Conflict between --help and --header
22409 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22410 Try \`$0 --help' for more information." >&5
22411 echo "$as_me: error: ambiguous option: $1
22412 Try \`$0 --help' for more information." >&2;}
22413 { (exit 1); exit 1; }; };;
22414 --help | --hel | -h )
22415 echo "$ac_cs_usage"; exit 0 ;;
22416 --debug | --d* | -d )
22417 debug=: ;;
22418 --file | --fil | --fi | --f )
22419 $ac_shift
22420 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22421 ac_need_defaults=false;;
22422 --header | --heade | --head | --hea )
22423 $ac_shift
22424 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22425 ac_need_defaults=false;;
22426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22428 ac_cs_silent=: ;;
22430 # This is an error.
22431 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22432 Try \`$0 --help' for more information." >&5
22433 echo "$as_me: error: unrecognized option: $1
22434 Try \`$0 --help' for more information." >&2;}
22435 { (exit 1); exit 1; }; } ;;
22437 *) ac_config_targets="$ac_config_targets $1" ;;
22439 esac
22440 shift
22441 done
22443 ac_configure_extra_args=
22445 if $ac_cs_silent; then
22446 exec 6>/dev/null
22447 ac_configure_extra_args="$ac_configure_extra_args --silent"
22450 _ACEOF
22451 cat >>$CONFIG_STATUS <<_ACEOF
22452 if \$ac_cs_recheck; then
22453 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22454 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22457 _ACEOF
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 for ac_config_target in $ac_config_targets
22466 case "$ac_config_target" in
22467 # Handling of arguments.
22468 "Mac/OSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/Makefile" ;;
22469 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22470 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22471 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22472 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22473 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22476 { (exit 1); exit 1; }; };;
22477 esac
22478 done
22480 # If the user did not use the arguments to specify the items to instantiate,
22481 # then the envvar interface is used. Set only those that are not.
22482 # We use the long form for the default assignment because of an extremely
22483 # bizarre bug on SunOS 4.1.3.
22484 if $ac_need_defaults; then
22485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22489 # Have a temporary directory for convenience. Make it in the build tree
22490 # simply because there is no reason to put it here, and in addition,
22491 # creating and moving files from /tmp can sometimes cause problems.
22492 # Create a temporary directory, and hook for its removal unless debugging.
22493 $debug ||
22495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22496 trap '{ (exit 1); exit 1; }' 1 2 13 15
22499 # Create a (secure) tmp directory for tmp files.
22502 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22503 test -n "$tmp" && test -d "$tmp"
22504 } ||
22506 tmp=./confstat$$-$RANDOM
22507 (umask 077 && mkdir $tmp)
22508 } ||
22510 echo "$me: cannot create a temporary directory in ." >&2
22511 { (exit 1); exit 1; }
22514 _ACEOF
22516 cat >>$CONFIG_STATUS <<_ACEOF
22519 # CONFIG_FILES section.
22522 # No need to generate the scripts if there are no CONFIG_FILES.
22523 # This happens for instance when ./config.status config.h
22524 if test -n "\$CONFIG_FILES"; then
22525 # Protect against being on the right side of a sed subst in config.status.
22526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22528 s,@SHELL@,$SHELL,;t t
22529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22535 s,@exec_prefix@,$exec_prefix,;t t
22536 s,@prefix@,$prefix,;t t
22537 s,@program_transform_name@,$program_transform_name,;t t
22538 s,@bindir@,$bindir,;t t
22539 s,@sbindir@,$sbindir,;t t
22540 s,@libexecdir@,$libexecdir,;t t
22541 s,@datadir@,$datadir,;t t
22542 s,@sysconfdir@,$sysconfdir,;t t
22543 s,@sharedstatedir@,$sharedstatedir,;t t
22544 s,@localstatedir@,$localstatedir,;t t
22545 s,@libdir@,$libdir,;t t
22546 s,@includedir@,$includedir,;t t
22547 s,@oldincludedir@,$oldincludedir,;t t
22548 s,@infodir@,$infodir,;t t
22549 s,@mandir@,$mandir,;t t
22550 s,@build_alias@,$build_alias,;t t
22551 s,@host_alias@,$host_alias,;t t
22552 s,@target_alias@,$target_alias,;t t
22553 s,@DEFS@,$DEFS,;t t
22554 s,@ECHO_C@,$ECHO_C,;t t
22555 s,@ECHO_N@,$ECHO_N,;t t
22556 s,@ECHO_T@,$ECHO_T,;t t
22557 s,@LIBS@,$LIBS,;t t
22558 s,@VERSION@,$VERSION,;t t
22559 s,@SOVERSION@,$SOVERSION,;t t
22560 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22561 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22562 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22563 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22564 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22565 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22566 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22567 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22568 s,@MACHDEP@,$MACHDEP,;t t
22569 s,@SGI_ABI@,$SGI_ABI,;t t
22570 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22571 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22572 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22573 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22574 s,@CC@,$CC,;t t
22575 s,@CFLAGS@,$CFLAGS,;t t
22576 s,@LDFLAGS@,$LDFLAGS,;t t
22577 s,@CPPFLAGS@,$CPPFLAGS,;t t
22578 s,@ac_ct_CC@,$ac_ct_CC,;t t
22579 s,@EXEEXT@,$EXEEXT,;t t
22580 s,@OBJEXT@,$OBJEXT,;t t
22581 s,@CXX@,$CXX,;t t
22582 s,@MAINCC@,$MAINCC,;t t
22583 s,@CPP@,$CPP,;t t
22584 s,@EGREP@,$EGREP,;t t
22585 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22586 s,@LIBRARY@,$LIBRARY,;t t
22587 s,@LDLIBRARY@,$LDLIBRARY,;t t
22588 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22589 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22590 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22591 s,@INSTSONAME@,$INSTSONAME,;t t
22592 s,@RUNSHARED@,$RUNSHARED,;t t
22593 s,@LINKCC@,$LINKCC,;t t
22594 s,@RANLIB@,$RANLIB,;t t
22595 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22596 s,@AR@,$AR,;t t
22597 s,@SVNVERSION@,$SVNVERSION,;t t
22598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22601 s,@LN@,$LN,;t t
22602 s,@OPT@,$OPT,;t t
22603 s,@BASECFLAGS@,$BASECFLAGS,;t t
22604 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22605 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22606 s,@SO@,$SO,;t t
22607 s,@LDSHARED@,$LDSHARED,;t t
22608 s,@BLDSHARED@,$BLDSHARED,;t t
22609 s,@CCSHARED@,$CCSHARED,;t t
22610 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22611 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22612 s,@SHLIBS@,$SHLIBS,;t t
22613 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22614 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22615 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22616 s,@LDLAST@,$LDLAST,;t t
22617 s,@THREADOBJ@,$THREADOBJ,;t t
22618 s,@DLINCLDIR@,$DLINCLDIR,;t t
22619 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22620 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22621 s,@TRUE@,$TRUE,;t t
22622 s,@LIBOBJS@,$LIBOBJS,;t t
22623 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22624 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22625 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22626 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22627 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22628 s,@LIBM@,$LIBM,;t t
22629 s,@LIBC@,$LIBC,;t t
22630 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22631 s,@THREADHEADERS@,$THREADHEADERS,;t t
22632 s,@SRCDIRS@,$SRCDIRS,;t t
22633 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22634 CEOF
22636 _ACEOF
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 # Split the substitutions into bite-sized pieces for seds with
22640 # small command number limits, like on Digital OSF/1 and HP-UX.
22641 ac_max_sed_lines=48
22642 ac_sed_frag=1 # Number of current file.
22643 ac_beg=1 # First line for current file.
22644 ac_end=$ac_max_sed_lines # Line after last line for current file.
22645 ac_more_lines=:
22646 ac_sed_cmds=
22647 while $ac_more_lines; do
22648 if test $ac_beg -gt 1; then
22649 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22650 else
22651 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22653 if test ! -s $tmp/subs.frag; then
22654 ac_more_lines=false
22655 else
22656 # The purpose of the label and of the branching condition is to
22657 # speed up the sed processing (if there are no `@' at all, there
22658 # is no need to browse any of the substitutions).
22659 # These are the two extra sed commands mentioned above.
22660 (echo ':t
22661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22662 if test -z "$ac_sed_cmds"; then
22663 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22664 else
22665 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22667 ac_sed_frag=`expr $ac_sed_frag + 1`
22668 ac_beg=$ac_end
22669 ac_end=`expr $ac_end + $ac_max_sed_lines`
22671 done
22672 if test -z "$ac_sed_cmds"; then
22673 ac_sed_cmds=cat
22675 fi # test -n "$CONFIG_FILES"
22677 _ACEOF
22678 cat >>$CONFIG_STATUS <<\_ACEOF
22679 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22681 case $ac_file in
22682 - | *:- | *:-:* ) # input from stdin
22683 cat >$tmp/stdin
22684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22688 * ) ac_file_in=$ac_file.in ;;
22689 esac
22691 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694 X"$ac_file" : 'X\(//\)[^/]' \| \
22695 X"$ac_file" : 'X\(//\)$' \| \
22696 X"$ac_file" : 'X\(/\)' \| \
22697 . : '\(.\)' 2>/dev/null ||
22698 echo X"$ac_file" |
22699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22701 /^X\(\/\/\)$/{ s//\1/; q; }
22702 /^X\(\/\).*/{ s//\1/; q; }
22703 s/.*/./; q'`
22704 { if $as_mkdir_p; then
22705 mkdir -p "$ac_dir"
22706 else
22707 as_dir="$ac_dir"
22708 as_dirs=
22709 while test ! -d "$as_dir"; do
22710 as_dirs="$as_dir $as_dirs"
22711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713 X"$as_dir" : 'X\(//\)[^/]' \| \
22714 X"$as_dir" : 'X\(//\)$' \| \
22715 X"$as_dir" : 'X\(/\)' \| \
22716 . : '\(.\)' 2>/dev/null ||
22717 echo X"$as_dir" |
22718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22720 /^X\(\/\/\)$/{ s//\1/; q; }
22721 /^X\(\/\).*/{ s//\1/; q; }
22722 s/.*/./; q'`
22723 done
22724 test ! -n "$as_dirs" || mkdir $as_dirs
22725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22727 { (exit 1); exit 1; }; }; }
22729 ac_builddir=.
22731 if test "$ac_dir" != .; then
22732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22733 # A "../" for each directory in $ac_dir_suffix.
22734 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22735 else
22736 ac_dir_suffix= ac_top_builddir=
22739 case $srcdir in
22740 .) # No --srcdir option. We are building in place.
22741 ac_srcdir=.
22742 if test -z "$ac_top_builddir"; then
22743 ac_top_srcdir=.
22744 else
22745 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22746 fi ;;
22747 [\\/]* | ?:[\\/]* ) # Absolute path.
22748 ac_srcdir=$srcdir$ac_dir_suffix;
22749 ac_top_srcdir=$srcdir ;;
22750 *) # Relative path.
22751 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22752 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22753 esac
22755 # Do not use `cd foo && pwd` to compute absolute paths, because
22756 # the directories may not exist.
22757 case `pwd` in
22758 .) ac_abs_builddir="$ac_dir";;
22760 case "$ac_dir" in
22761 .) ac_abs_builddir=`pwd`;;
22762 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22763 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22764 esac;;
22765 esac
22766 case $ac_abs_builddir in
22767 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22769 case ${ac_top_builddir}. in
22770 .) ac_abs_top_builddir=$ac_abs_builddir;;
22771 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22772 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22773 esac;;
22774 esac
22775 case $ac_abs_builddir in
22776 .) ac_abs_srcdir=$ac_srcdir;;
22778 case $ac_srcdir in
22779 .) ac_abs_srcdir=$ac_abs_builddir;;
22780 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22781 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22782 esac;;
22783 esac
22784 case $ac_abs_builddir in
22785 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22787 case $ac_top_srcdir in
22788 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22789 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22790 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22791 esac;;
22792 esac
22795 case $INSTALL in
22796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22797 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22798 esac
22800 if test x"$ac_file" != x-; then
22801 { echo "$as_me:$LINENO: creating $ac_file" >&5
22802 echo "$as_me: creating $ac_file" >&6;}
22803 rm -f "$ac_file"
22805 # Let's still pretend it is `configure' which instantiates (i.e., don't
22806 # use $as_me), people would be surprised to read:
22807 # /* config.h. Generated by config.status. */
22808 if test x"$ac_file" = x-; then
22809 configure_input=
22810 else
22811 configure_input="$ac_file. "
22813 configure_input=$configure_input"Generated from `echo $ac_file_in |
22814 sed 's,.*/,,'` by configure."
22816 # First look for the input files in the build tree, otherwise in the
22817 # src tree.
22818 ac_file_inputs=`IFS=:
22819 for f in $ac_file_in; do
22820 case $f in
22821 -) echo $tmp/stdin ;;
22822 [\\/$]*)
22823 # Absolute (can't be DOS-style, as IFS=:)
22824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22825 echo "$as_me: error: cannot find input file: $f" >&2;}
22826 { (exit 1); exit 1; }; }
22827 echo "$f";;
22828 *) # Relative
22829 if test -f "$f"; then
22830 # Build tree
22831 echo "$f"
22832 elif test -f "$srcdir/$f"; then
22833 # Source tree
22834 echo "$srcdir/$f"
22835 else
22836 # /dev/null tree
22837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22838 echo "$as_me: error: cannot find input file: $f" >&2;}
22839 { (exit 1); exit 1; }; }
22840 fi;;
22841 esac
22842 done` || { (exit 1); exit 1; }
22843 _ACEOF
22844 cat >>$CONFIG_STATUS <<_ACEOF
22845 sed "$ac_vpsub
22846 $extrasub
22847 _ACEOF
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22851 s,@configure_input@,$configure_input,;t t
22852 s,@srcdir@,$ac_srcdir,;t t
22853 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22854 s,@top_srcdir@,$ac_top_srcdir,;t t
22855 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22856 s,@builddir@,$ac_builddir,;t t
22857 s,@abs_builddir@,$ac_abs_builddir,;t t
22858 s,@top_builddir@,$ac_top_builddir,;t t
22859 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22860 s,@INSTALL@,$ac_INSTALL,;t t
22861 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22862 rm -f $tmp/stdin
22863 if test x"$ac_file" != x-; then
22864 mv $tmp/out $ac_file
22865 else
22866 cat $tmp/out
22867 rm -f $tmp/out
22870 done
22871 _ACEOF
22872 cat >>$CONFIG_STATUS <<\_ACEOF
22875 # CONFIG_HEADER section.
22878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22881 # ac_d sets the value in "#define NAME VALUE" lines.
22882 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22883 ac_dB='[ ].*$,\1#\2'
22884 ac_dC=' '
22885 ac_dD=',;t'
22886 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22887 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22888 ac_uB='$,\1#\2define\3'
22889 ac_uC=' '
22890 ac_uD=',;t'
22892 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22894 case $ac_file in
22895 - | *:- | *:-:* ) # input from stdin
22896 cat >$tmp/stdin
22897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22901 * ) ac_file_in=$ac_file.in ;;
22902 esac
22904 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22905 echo "$as_me: creating $ac_file" >&6;}
22907 # First look for the input files in the build tree, otherwise in the
22908 # src tree.
22909 ac_file_inputs=`IFS=:
22910 for f in $ac_file_in; do
22911 case $f in
22912 -) echo $tmp/stdin ;;
22913 [\\/$]*)
22914 # Absolute (can't be DOS-style, as IFS=:)
22915 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22916 echo "$as_me: error: cannot find input file: $f" >&2;}
22917 { (exit 1); exit 1; }; }
22918 # Do quote $f, to prevent DOS paths from being IFS'd.
22919 echo "$f";;
22920 *) # Relative
22921 if test -f "$f"; then
22922 # Build tree
22923 echo "$f"
22924 elif test -f "$srcdir/$f"; then
22925 # Source tree
22926 echo "$srcdir/$f"
22927 else
22928 # /dev/null tree
22929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22930 echo "$as_me: error: cannot find input file: $f" >&2;}
22931 { (exit 1); exit 1; }; }
22932 fi;;
22933 esac
22934 done` || { (exit 1); exit 1; }
22935 # Remove the trailing spaces.
22936 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22938 _ACEOF
22940 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22941 # `conftest.undefs', that substitutes the proper values into
22942 # config.h.in to produce config.h. The first handles `#define'
22943 # templates, and the second `#undef' templates.
22944 # And first: Protect against being on the right side of a sed subst in
22945 # config.status. Protect against being in an unquoted here document
22946 # in config.status.
22947 rm -f conftest.defines conftest.undefs
22948 # Using a here document instead of a string reduces the quoting nightmare.
22949 # Putting comments in sed scripts is not portable.
22951 # `end' is used to avoid that the second main sed command (meant for
22952 # 0-ary CPP macros) applies to n-ary macro definitions.
22953 # See the Autoconf documentation for `clear'.
22954 cat >confdef2sed.sed <<\_ACEOF
22955 s/[\\&,]/\\&/g
22956 s,[\\$`],\\&,g
22957 t clear
22958 : clear
22959 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22960 t end
22961 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22962 : end
22963 _ACEOF
22964 # If some macros were called several times there might be several times
22965 # the same #defines, which is useless. Nevertheless, we may not want to
22966 # sort them, since we want the *last* AC-DEFINE to be honored.
22967 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22968 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22969 rm -f confdef2sed.sed
22971 # This sed command replaces #undef with comments. This is necessary, for
22972 # example, in the case of _POSIX_SOURCE, which is predefined and required
22973 # on some systems where configure will not decide to define it.
22974 cat >>conftest.undefs <<\_ACEOF
22975 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22976 _ACEOF
22978 # Break up conftest.defines because some shells have a limit on the size
22979 # of here documents, and old seds have small limits too (100 cmds).
22980 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22981 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22982 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22983 echo ' :' >>$CONFIG_STATUS
22984 rm -f conftest.tail
22985 while grep . conftest.defines >/dev/null
22987 # Write a limited-size here document to $tmp/defines.sed.
22988 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22989 # Speed up: don't consider the non `#define' lines.
22990 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22991 # Work around the forget-to-reset-the-flag bug.
22992 echo 't clr' >>$CONFIG_STATUS
22993 echo ': clr' >>$CONFIG_STATUS
22994 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22995 echo 'CEOF
22996 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22997 rm -f $tmp/in
22998 mv $tmp/out $tmp/in
22999 ' >>$CONFIG_STATUS
23000 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23001 rm -f conftest.defines
23002 mv conftest.tail conftest.defines
23003 done
23004 rm -f conftest.defines
23005 echo ' fi # grep' >>$CONFIG_STATUS
23006 echo >>$CONFIG_STATUS
23008 # Break up conftest.undefs because some shells have a limit on the size
23009 # of here documents, and old seds have small limits too (100 cmds).
23010 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23011 rm -f conftest.tail
23012 while grep . conftest.undefs >/dev/null
23014 # Write a limited-size here document to $tmp/undefs.sed.
23015 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23016 # Speed up: don't consider the non `#undef'
23017 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23018 # Work around the forget-to-reset-the-flag bug.
23019 echo 't clr' >>$CONFIG_STATUS
23020 echo ': clr' >>$CONFIG_STATUS
23021 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23022 echo 'CEOF
23023 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23024 rm -f $tmp/in
23025 mv $tmp/out $tmp/in
23026 ' >>$CONFIG_STATUS
23027 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23028 rm -f conftest.undefs
23029 mv conftest.tail conftest.undefs
23030 done
23031 rm -f conftest.undefs
23033 cat >>$CONFIG_STATUS <<\_ACEOF
23034 # Let's still pretend it is `configure' which instantiates (i.e., don't
23035 # use $as_me), people would be surprised to read:
23036 # /* config.h. Generated by config.status. */
23037 if test x"$ac_file" = x-; then
23038 echo "/* Generated by configure. */" >$tmp/config.h
23039 else
23040 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23042 cat $tmp/in >>$tmp/config.h
23043 rm -f $tmp/in
23044 if test x"$ac_file" != x-; then
23045 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23047 echo "$as_me: $ac_file is unchanged" >&6;}
23048 else
23049 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23051 X"$ac_file" : 'X\(//\)[^/]' \| \
23052 X"$ac_file" : 'X\(//\)$' \| \
23053 X"$ac_file" : 'X\(/\)' \| \
23054 . : '\(.\)' 2>/dev/null ||
23055 echo X"$ac_file" |
23056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23058 /^X\(\/\/\)$/{ s//\1/; q; }
23059 /^X\(\/\).*/{ s//\1/; q; }
23060 s/.*/./; q'`
23061 { if $as_mkdir_p; then
23062 mkdir -p "$ac_dir"
23063 else
23064 as_dir="$ac_dir"
23065 as_dirs=
23066 while test ! -d "$as_dir"; do
23067 as_dirs="$as_dir $as_dirs"
23068 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23070 X"$as_dir" : 'X\(//\)[^/]' \| \
23071 X"$as_dir" : 'X\(//\)$' \| \
23072 X"$as_dir" : 'X\(/\)' \| \
23073 . : '\(.\)' 2>/dev/null ||
23074 echo X"$as_dir" |
23075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23077 /^X\(\/\/\)$/{ s//\1/; q; }
23078 /^X\(\/\).*/{ s//\1/; q; }
23079 s/.*/./; q'`
23080 done
23081 test ! -n "$as_dirs" || mkdir $as_dirs
23082 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23083 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23084 { (exit 1); exit 1; }; }; }
23086 rm -f $ac_file
23087 mv $tmp/config.h $ac_file
23089 else
23090 cat $tmp/config.h
23091 rm -f $tmp/config.h
23093 done
23094 _ACEOF
23096 cat >>$CONFIG_STATUS <<\_ACEOF
23098 { (exit 0); exit 0; }
23099 _ACEOF
23100 chmod +x $CONFIG_STATUS
23101 ac_clean_files=$ac_clean_files_save
23104 # configure is writing to config.log, and then calls config.status.
23105 # config.status does its own redirection, appending to config.log.
23106 # Unfortunately, on DOS this fails, as config.log is still kept open
23107 # by configure, so config.status won't be able to write to it; its
23108 # output is simply discarded. So we exec the FD to /dev/null,
23109 # effectively closing config.log, so it can be properly (re)opened and
23110 # appended to by config.status. When coming back to configure, we
23111 # need to make the FD available again.
23112 if test "$no_create" != yes; then
23113 ac_cs_success=:
23114 ac_config_status_args=
23115 test "$silent" = yes &&
23116 ac_config_status_args="$ac_config_status_args --quiet"
23117 exec 5>/dev/null
23118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23119 exec 5>>config.log
23120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23121 # would make configure fail if this is the last instruction.
23122 $ac_cs_success || { (exit 1); exit 1; }
23126 echo "creating Modules/Setup"
23127 if test ! -f Modules/Setup
23128 then
23129 cp $srcdir/Modules/Setup.dist Modules/Setup
23132 echo "creating Modules/Setup.local"
23133 if test ! -f Modules/Setup.local
23134 then
23135 echo "# Edit this file for local setup changes" >Modules/Setup.local
23138 echo "creating Makefile"
23139 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23140 -s Modules Modules/Setup.config \
23141 Modules/Setup.local Modules/Setup
23142 mv config.c Modules