Reword paragraph to clarify
[pytest.git] / configure
blobccdf62eb3e7b9dbdc6a0e87913ee9836409f170d
1 #! /bin/sh
2 # From configure.in Revision: 47267 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789])
1557 define_xopen_source=no;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1560 SunOS/5.6)
1561 define_xopen_source=no;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1566 define_xopen_source=no;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1569 SCO_SV/3.2)
1570 define_xopen_source=no;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD/4.8* | Darwin/6* )
1576 define_xopen_source=no;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1580 AIX/4)
1581 define_xopen_source=no;;
1582 AIX/5)
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defining them
1591 Darwin/[78].*)
1592 define_xopen_source=no
1595 esac
1597 if test $define_xopen_source = yes
1598 then
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1602 # compiler
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1606 cat >>confdefs.h <<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1608 _ACEOF
1613 cat >>confdefs.h <<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1615 _ACEOF
1618 esac
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1627 SunOS/5.10)
1631 cat >>confdefs.h <<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1633 _ACEOF
1636 esac
1639 cat >>confdefs.h <<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1641 _ACEOF
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1657 then
1658 CC="cc $SGI_ABI"
1659 LDFLAGS="$SGI_ABI $LDFLAGS"
1660 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1671 then
1672 case $MACHDEP in
1673 darwin)
1674 EXTRAPLATDIR="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1678 EXTRAPLATDIR=""
1679 EXTRAMACHDEPPATH=""
1681 esac
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1688 # needs to check it
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1709 withval="$with_gcc"
1711 case $withval in
1712 no) CC=cc
1713 without_gcc=yes;;
1714 yes) CC=gcc
1715 without_gcc=no;;
1716 *) CC=$withval
1717 without_gcc=$withval;;
1718 esac
1719 else
1721 case $ac_sys_system in
1722 AIX*) CC=cc_r
1723 without_gcc=;;
1724 BeOS*)
1725 case $BE_HOST_CPU in
1726 ppc)
1727 CC=mwcc
1728 without_gcc=yes
1729 BASECFLAGS="$BASECFLAGS -export pragma"
1730 OPT="$OPT -O"
1731 LDFLAGS="$LDFLAGS -nodup"
1733 x86)
1734 CC=gcc
1735 without_gcc=no
1736 OPT="$OPT -O"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1743 esac
1744 AR="\$(srcdir)/Modules/ar_beos"
1745 RANLIB=:
1747 Monterey*)
1748 RANLIB=:
1749 without_gcc=;;
1750 *) without_gcc=no;;
1751 esac
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1758 then
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1766 ac_ext=c
1767 ac_cpp='$CPP $CPPFLAGS'
1768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 CC=$ac_cv_prog_CC
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1809 ac_ct_CC=$CC
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 CC=$ac_ct_CC
1846 else
1847 CC="$ac_cv_prog_CC"
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy ${ac_tool_prefix}cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1889 ac_ct_CC=$CC
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1911 done
1912 done
1916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1925 CC=$ac_ct_CC
1926 else
1927 CC="$ac_cv_prog_CC"
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 ac_prog_rejected=no
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected=yes
1952 continue
1954 ac_cv_prog_CC="cc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1958 done
1959 done
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy $ac_cv_prog_CC
1964 shift
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1969 shift
1970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1987 for ac_prog in cl
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2010 done
2011 done
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2025 done
2027 if test -z "$CC"; then
2028 ac_ct_CC=$CC
2029 for ac_prog in cl
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2052 done
2053 done
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2067 done
2069 CC=$ac_ct_CC
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2096 (eval $ac_compiler -V </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 main ()
2113 return 0;
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # resort.
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2135 ac_cv_exeext=
2136 # b.out is created by i960 compilers.
2137 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2139 test -f "$ac_file" || continue
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2143 conftest.$ac_ext )
2144 # This is the source file.
2146 [ab].out )
2147 # We found the default executable, but exeext='' is most
2148 # certainly right.
2149 break;;
2150 *.* )
2151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2155 export ac_cv_exeext
2156 break;;
2158 break;;
2159 esac
2160 done
2161 else
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 cross_compiling=no
2190 else
2191 if test "$cross_compiling" = maybe; then
2192 cross_compiling=yes
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2208 ac_clean_files=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2226 # `rm'.
2227 for ac_file in conftest.exe conftest conftest.*; do
2228 test -f "$ac_file" || continue
2229 case $ac_file in
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 export ac_cv_exeext
2233 break;;
2234 * ) break;;
2235 esac
2236 done
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.$ac_ext
2250 EXEEXT=$ac_cv_exeext
2251 ac_exeext=$EXEEXT
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 cat >conftest.$ac_ext <<_ACEOF
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2265 main ()
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284 done
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT=$ac_cv_objext
2301 ac_objext=$OBJEXT
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2317 #ifndef __GNUC__
2318 choke me
2319 #endif
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 ac_compiler_gnu=yes
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 ac_compiler_gnu=no
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS=${CFLAGS+set}
2362 ac_save_CFLAGS=$CFLAGS
2363 CFLAGS="-g"
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 ac_cv_prog_cc_g=yes
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 ac_cv_prog_cc_g=no
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2421 CFLAGS="-g -O2"
2422 else
2423 CFLAGS="-g"
2425 else
2426 if test "$GCC" = yes; then
2427 CFLAGS="-O2"
2428 else
2429 CFLAGS=
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 ac_cv_prog_cc_stdc=no
2438 ac_save_CC=$CC
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #include <stdarg.h>
2446 #include <stdio.h>
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2453 char **p;
2454 int i;
2456 return p[i];
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2460 char *s;
2461 va_list v;
2462 va_start (v,p);
2463 s = g (p, va_arg (v,int));
2464 va_end (v);
2465 return s;
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2481 int argc;
2482 char **argv;
2484 main ()
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 return 0;
2490 _ACEOF
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC="$ac_save_CC $ac_arg"
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc=$ac_arg
2524 break
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext
2531 done
2532 rm -f conftest.$ac_ext conftest.$ac_objext
2533 CC=$ac_save_CC
2537 case "x$ac_cv_prog_cc_stdc" in
2538 x|xno)
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC="$CC $ac_cv_prog_cc_stdc" ;;
2545 esac
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #ifndef __cplusplus
2553 choke me
2554 #endif
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration in \
2579 '' \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2584 'void exit (int);'
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 $ac_declaration
2593 #include <stdlib.h>
2595 main ()
2597 exit (42);
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 continue
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 $ac_declaration
2640 main ()
2642 exit (42);
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 break
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 done
2677 rm -f conftest*
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval="$with_cxx_main"
2707 case $withval in
2708 no) with_cxx_main=no
2709 MAINCC='$(CC)';;
2710 yes) with_cxx_main=yes
2711 MAINCC='$(CXX)';;
2712 *) with_cxx_main=yes
2713 MAINCC=$withval
2714 if test -z "$CXX"
2715 then
2716 CXX=$withval
2717 fi;;
2718 esac
2719 else
2721 with_cxx_main=no
2722 MAINCC='$(CC)'
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2728 preset_cxx="$CXX"
2729 if test -z "$CXX"
2730 then
2731 case "$CC" in
2732 gcc) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g++; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 case $CXX in
2740 [\\/]* | ?:[\\/]*)
2741 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in notfound
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2760 esac
2762 CXX=$ac_cv_path_CXX
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c++; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 case $CXX in
2780 [\\/]* | ?:[\\/]*)
2781 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in notfound
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2800 esac
2802 CXX=$ac_cv_path_CXX
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 esac
2813 if test "$CXX" = "notfound"
2814 then
2815 CXX=""
2818 if test -z "$CXX"
2819 then
2820 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2848 CXX=$ac_cv_prog_CXX
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2852 else
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2858 done
2859 test -n "$CXX" || CXX="notfound"
2861 if test "$CXX" = "notfound"
2862 then
2863 CXX=""
2866 if test "$preset_cxx" != "$CXX"
2867 then
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2872 " >&5
2873 echo "$as_me: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&2;}
2881 # checks for UNIX variants that set C preprocessor variables
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2892 CPP=
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 # Double quotes because CPP needs to be expanded
2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901 ac_preproc_ok=false
2902 for ac_c_preproc_warn_flag in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921 Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Broken: fails on valid input.
2947 continue
2949 rm -f conftest.err conftest.$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2975 else
2976 ac_cpp_err=yes
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 # Passes both tests.
2986 ac_preproc_ok=:
2987 break
2989 rm -f conftest.err conftest.$ac_ext
2991 done
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.$ac_ext
2994 if $ac_preproc_ok; then
2995 break
2998 done
2999 ac_cv_prog_CPP=$CPP
3002 CPP=$ac_cv_prog_CPP
3003 else
3004 ac_cv_prog_CPP=$CPP
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3044 else
3045 ac_cpp_err=yes
3047 if test -z "$ac_cpp_err"; then
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Broken: fails on valid input.
3054 continue
3056 rm -f conftest.err conftest.$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 else
3080 ac_cpp_err=
3082 else
3083 ac_cpp_err=yes
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3096 rm -f conftest.err conftest.$ac_ext
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3103 else
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3124 then ac_cv_prog_egrep='grep -E'
3125 else ac_cv_prog_egrep='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #ifdef _AIX
3144 #endif
3146 _ACEOF
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev/null 2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h <<\_ACEOF
3152 #define _ALL_SOURCE 1
3153 _ACEOF
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3159 rm -f conftest*
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3165 Linux*/1*)
3166 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3167 echo See README for details.
3168 exit 1;;
3169 esac
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval="$with_suffix"
3179 case $withval in
3180 no) EXEEXT=;;
3181 yes) EXEEXT=.exe;;
3182 *) EXEEXT=$withval;;
3183 esac
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3198 then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201 BUILDEXEEXT=.exe
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 BUILDEXEEXT=$EXEEXT
3207 rmdir CaseSensitiveTestDir
3209 case $MACHDEP in
3210 bsdos*)
3211 case $CC in
3212 gcc) CC="$CC -D_HAVE_BSDI";;
3213 esac;;
3214 esac
3216 case $ac_sys_system in
3217 hp*|HP*)
3218 case $CC in
3219 cc|*/cc) CC="$CC -Ae";;
3220 esac;;
3221 Monterey*)
3222 case $CC in
3223 cc) CC="$CC -Wl,-Bexport";;
3224 esac;;
3225 SunOS*)
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h <<\_ACEOF
3229 #define __EXTENSIONS__ 1
3230 _ACEOF
3233 esac
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3240 then
3241 LIBRARY='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY="$LIBRARY"
3266 BLDLIBRARY='$(LDLIBRARY)'
3267 INSTSONAME='$(LDLIBRARY)'
3268 DLLLIBRARY=''
3269 LDLIBRARYDIR=''
3270 RUNSHARED=''
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3277 # linking.
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3282 then
3283 LINKCC='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3285 AIX*)
3286 exp_extra="\"\""
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3289 exp_extra="."
3291 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3292 Monterey64*)
3293 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3294 esac
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval="$enable_shared"
3307 if test -z "$enable_shared"
3308 then
3309 case $ac_sys_system in
3310 CYGWIN* | atheos*)
3311 enable_shared="yes";;
3313 enable_shared="no";;
3314 esac
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval="$enable_profiling"
3324 ac_save_cc="$CC"
3325 CC="$CC -pg"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling="no"
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3336 _ACEOF
3337 rm -f conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling="yes"
3349 else
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ( exit $ac_status )
3355 ac_enable_profiling="no"
3357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3359 CC="$ac_save_cc"
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3365 "yes")
3366 BASECFLAGS="-pg $BASECFLAGS"
3367 LDFLAGS="-pg $LDFLAGS"
3369 esac
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3381 then
3382 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3384 BLDLIBRARY=''
3385 else
3386 BLDLIBRARY='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h <<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3394 _ACEOF
3396 case $ac_sys_system in
3397 BeOS*)
3398 LDLIBRARY='libpython$(VERSION).so'
3400 CYGWIN*)
3401 LDLIBRARY='libpython$(VERSION).dll.a'
3402 DLLLIBRARY='libpython$(VERSION).dll'
3404 SunOS*)
3405 LDLIBRARY='libpython$(VERSION).so'
3406 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME="$LDLIBRARY".$SOVERSION
3410 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3415 FreeBSD*)
3416 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3418 esac
3419 INSTSONAME="$LDLIBRARY".$SOVERSION
3421 hp*|HP*)
3422 case `uname -m` in
3423 ia64)
3424 LDLIBRARY='libpython$(VERSION).so'
3427 LDLIBRARY='libpython$(VERSION).sl'
3429 esac
3430 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3433 OSF*)
3434 LDLIBRARY='libpython$(VERSION).so'
3435 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3438 atheos*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-L. -lpython$(VERSION)'
3441 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 esac
3444 else # shared is disabled
3445 case $ac_sys_system in
3446 CYGWIN*)
3447 BLDLIBRARY='$(LIBRARY)'
3448 LDLIBRARY='libpython$(VERSION).dll.a'
3450 esac
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3483 RANLIB=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB=$ac_ct_RANLIB
3532 else
3533 RANLIB="$ac_cv_prog_RANLIB"
3537 for ac_prog in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR="$AR" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3565 AR=$ac_cv_prog_AR
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3575 done
3576 test -n "$AR" || AR="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3607 SVNVERSION=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3617 then
3618 SVNVERSION="svnversion \$(srcdir)"
3619 else
3620 SVNVERSION="echo exported"
3623 case $MACHDEP in
3624 bsdos*|hp*|HP*)
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3627 then
3628 INSTALL="${srcdir}/install-sh -c"
3630 esac
3631 ac_aux_dir=
3632 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3633 if test -f $ac_dir/install-sh; then
3634 ac_aux_dir=$ac_dir
3635 ac_install_sh="$ac_aux_dir/install-sh -c"
3636 break
3637 elif test -f $ac_dir/install.sh; then
3638 ac_aux_dir=$ac_dir
3639 ac_install_sh="$ac_aux_dir/install.sh -c"
3640 break
3641 elif test -f $ac_dir/shtool; then
3642 ac_aux_dir=$ac_dir
3643 ac_install_sh="$ac_aux_dir/shtool install -c"
3644 break
3646 done
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3662 # AIX /bin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681 case $as_dir/ in
3682 ./ | .// | /cC/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3685 /usr/ucb/* ) ;;
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3701 else
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3706 done
3707 done
3709 esac
3710 done
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL=$ac_cv_path_install
3716 else
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3740 BeOS*) LN="ln -s";;
3741 CYGWIN*) LN="ln -s";;
3742 atheos*) LN="ln -s";;
3743 *) LN=ln;;
3744 esac
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval="$with_pydebug"
3755 if test "$withval" != no
3756 then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define Py_DEBUG 1
3760 _ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3764 Py_DEBUG='true'
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # user set OPT.
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3789 if test -z "$OPT"
3790 then
3791 case $GCC in
3792 yes)
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3797 yes)
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3800 # debug builds.
3801 OPT="-g -Wall $STRICT_PROTO"
3802 else
3803 OPT="-g -O3 -Wall $STRICT_PROTO"
3807 OPT="-O3 -Wall $STRICT_PROTO"
3809 esac
3810 case $ac_sys_system in
3811 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3813 esac
3817 OPT="-O"
3819 esac
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3824 Monterey*)
3825 OPT=""
3827 esac
3832 # tweak BASECFLAGS based on compiler and platform
3833 case $GCC in
3834 yes)
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3840 ac_save_cc="$CC"
3841 CC="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok=no
3844 else
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3852 _ACEOF
3853 rm -f conftest$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok=yes
3865 else
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ( exit $ac_status )
3871 ac_cv_no_strict_aliasing_ok=no
3873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3875 CC="$ac_save_cc"
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3879 then
3880 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3883 SCO_SV*)
3884 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3887 Darwin*)
3888 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3894 OSF*)
3895 BASECFLAGS="$BASECFLAGS -mieee"
3897 esac
3901 case $ac_sys_system in
3902 OpenUNIX*|UnixWare*)
3903 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3905 OSF*)
3906 BASECFLAGS="$BASECFLAGS -ieee -std"
3908 SCO_SV*)
3909 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3911 esac
3913 esac
3915 if test "$Py_DEBUG" = 'true'; then
3917 else
3918 OPT="-DNDEBUG $OPT"
3921 if test "$ac_arch_flags"
3922 then
3923 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3927 if test "$CC" = icc
3928 then
3929 ac_cv_opt_olimit_ok=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_save_cc="$CC"
3938 CC="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok=no
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3949 _ACEOF
3950 rm -f conftest$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok=yes
3962 else
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ( exit $ac_status )
3968 ac_cv_opt_olimit_ok=no
3970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972 CC="$ac_save_cc"
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3981 # environment?
3982 Darwin*)
3985 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3987 esac
3988 else
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 ac_save_cc="$CC"
3995 CC="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3997 ac_cv_olimit_ok=no
3998 else
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4006 _ACEOF
4007 rm -f conftest$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_olimit_ok=yes
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_olimit_ok=no
4027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 CC="$ac_save_cc"
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default=no
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4063 int main(){
4064 pthread_t p;
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4066 return 1;
4067 (void)pthread_detach(p);
4068 return 0;
4071 _ACEOF
4072 rm -f conftest$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default=yes
4085 ac_cv_kthread=no
4086 ac_cv_pthread=no
4088 else
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ( exit $ac_status )
4094 ac_cv_pthread_is_default=no
4096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4106 then
4107 ac_cv_kpthread=no
4108 else
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 ac_save_cc="$CC"
4120 CC="$CC -Kpthread"
4121 if test "$cross_compiling" = yes; then
4122 ac_cv_kpthread=no
4123 else
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4135 int main(){
4136 pthread_t p;
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4138 return 1;
4139 (void)pthread_detach(p);
4140 return 0;
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_kpthread=yes
4156 else
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ( exit $ac_status )
4162 ac_cv_kpthread=no
4164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4166 CC="$ac_save_cc"
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4174 then
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 ac_save_cc="$CC"
4186 CC="$CC -Kthread"
4187 if test "$cross_compiling" = yes; then
4188 ac_cv_kthread=no
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4201 int main(){
4202 pthread_t p;
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4204 return 1;
4205 (void)pthread_detach(p);
4206 return 0;
4209 _ACEOF
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_kthread=yes
4222 else
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ( exit $ac_status )
4228 ac_cv_kthread=no
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 CC="$ac_save_cc"
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4240 then
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 ac_save_cc="$CC"
4252 CC="$CC -pthread"
4253 if test "$cross_compiling" = yes; then
4254 ac_cv_pthread=no
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4267 int main(){
4268 pthread_t p;
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4270 return 1;
4271 (void)pthread_detach(p);
4272 return 0;
4275 _ACEOF
4276 rm -f conftest$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_pthread=yes
4288 else
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ( exit $ac_status )
4294 ac_cv_pthread=no
4296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 CC="$ac_save_cc"
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4307 ac_cv_cxx_thread=no
4308 if test ! -z "$CXX"
4309 then
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4312 ac_save_cxx="$CXX"
4314 if test "$ac_cv_kpthread" = "yes"
4315 then
4316 CXX="$CXX -Kpthread"
4317 ac_cv_cxx_thread=yes
4318 elif test "$ac_cv_kthread" = "yes"
4319 then
4320 CXX="$CXX -Kthread"
4321 ac_cv_cxx_thread=yes
4322 elif test "$ac_cv_pthread" = "yes"
4323 then
4324 CXX="$CXX -pthread"
4325 ac_cv_cxx_thread=yes
4328 if test $ac_cv_cxx_thread = yes
4329 then
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4331 $CXX -c conftest.$ac_ext 2>&5
4332 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4333 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4334 then
4335 ac_cv_cxx_thread=yes
4336 else
4337 ac_cv_cxx_thread=no
4339 rm -fr conftest*
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4344 CXX="$ac_save_cxx"
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4365 main ()
4369 return 0;
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc=yes
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 ac_cv_header_stdc=no
4401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4417 else
4418 ac_cv_header_stdc=no
4420 rm -f conftest*
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4438 else
4439 ac_cv_header_stdc=no
4441 rm -f conftest*
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 main ()
4472 int i;
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4476 exit(2);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 _ACEOF
4583 done
4634 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4635 fcntl.h grp.h \
4636 shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4637 signal.h stropts.h termios.h thread.h \
4638 unistd.h utime.h \
4639 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4640 sys/modem.h \
4641 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4642 sys/time.h \
4643 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4644 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4645 bluetooth/bluetooth.h
4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656 else
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 ac_header_compiler=no
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4712 _ACEOF
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_c_preproc_warn_flag
4723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4724 else
4725 ac_cpp_err=
4727 else
4728 ac_cpp_err=yes
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_header_preproc=no
4738 rm -f conftest.err conftest.$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4744 yes:no: )
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc=yes
4751 no:yes:* )
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4765 cat <<\_ASBOX
4766 ## ------------------------------------------------ ##
4767 ## Report this to http://www.python.org/python-bugs ##
4768 ## ------------------------------------------------ ##
4769 _ASBOX
4771 sed "s/^/$as_me: WARNING: /" >&2
4773 esac
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 eval "$as_ac_Header=\$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4792 done
4799 ac_header_dirent=no
4800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4801 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 #include <$ac_hdr>
4817 main ()
4819 if ((DIR *) 0)
4820 return 0;
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -z "$ac_c_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 eval "$as_ac_Header=yes"
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 eval "$as_ac_Header=no"
4854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4861 _ACEOF
4863 ac_header_dirent=$ac_hdr; break
4866 done
4867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4868 if test $ac_header_dirent = dirent.h; then
4869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4871 if test "${ac_cv_search_opendir+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 ac_func_search_save_LIBS=$LIBS
4875 ac_cv_search_opendir=no
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 #ifdef __cplusplus
4885 extern "C"
4886 #endif
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4889 char opendir ();
4891 main ()
4893 opendir ();
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext conftest$ac_exeext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_search_opendir="none required"
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4926 rm -f conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4928 if test "$ac_cv_search_opendir" = no; then
4929 for ac_lib in dir; do
4930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 #ifdef __cplusplus
4940 extern "C"
4941 #endif
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4944 char opendir ();
4946 main ()
4948 opendir ();
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_search_opendir="-l$ac_lib"
4976 break
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.err conftest.$ac_objext \
4983 conftest$ac_exeext conftest.$ac_ext
4984 done
4986 LIBS=$ac_func_search_save_LIBS
4988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4990 if test "$ac_cv_search_opendir" != no; then
4991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4995 else
4996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4998 if test "${ac_cv_search_opendir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 ac_func_search_save_LIBS=$LIBS
5002 ac_cv_search_opendir=no
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 #ifdef __cplusplus
5012 extern "C"
5013 #endif
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5016 char opendir ();
5018 main ()
5020 opendir ();
5022 return 0;
5024 _ACEOF
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try='test -s conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_search_opendir="none required"
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5053 rm -f conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 if test "$ac_cv_search_opendir" = no; then
5056 for ac_lib in x; do
5057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 #ifdef __cplusplus
5067 extern "C"
5068 #endif
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5071 char opendir ();
5073 main ()
5075 opendir ();
5077 return 0;
5079 _ACEOF
5080 rm -f conftest.$ac_objext conftest$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082 (eval $ac_link) 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try='test -z "$ac_c_werror_flag"
5090 || test ! -s conftest.err'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; } &&
5096 { ac_try='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_search_opendir="-l$ac_lib"
5103 break
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5109 rm -f conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5111 done
5113 LIBS=$ac_func_search_save_LIBS
5115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5117 if test "$ac_cv_search_opendir" != no; then
5118 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5124 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5125 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5126 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/types.h>
5137 main ()
5139 return makedev(0, 0);
5141 return 0;
5143 _ACEOF
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -z "$ac_c_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_header_sys_types_h_makedev=yes
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cv_header_sys_types_h_makedev=no
5173 rm -f conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5180 if test $ac_cv_header_sys_types_h_makedev = no; then
5181 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5182 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5183 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5184 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5188 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5189 else
5190 # Is the header compilable?
5191 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5192 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5200 #include <sys/mkdev.h>
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_header_compiler=yes
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 ac_header_compiler=no
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5237 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/mkdev.h>
5245 _ACEOF
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5257 else
5258 ac_cpp_err=
5260 else
5261 ac_cpp_err=yes
5263 if test -z "$ac_cpp_err"; then
5264 ac_header_preproc=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_header_preproc=no
5271 rm -f conftest.err conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5275 # So? What about this header?
5276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5277 yes:no: )
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5282 ac_header_preproc=yes
5284 no:yes:* )
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5288 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5290 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5298 cat <<\_ASBOX
5299 ## ------------------------------------------------ ##
5300 ## Report this to http://www.python.org/python-bugs ##
5301 ## ------------------------------------------------ ##
5302 _ASBOX
5304 sed "s/^/$as_me: WARNING: /" >&2
5306 esac
5307 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5308 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5314 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5315 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5318 if test $ac_cv_header_sys_mkdev_h = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define MAJOR_IN_MKDEV 1
5322 _ACEOF
5328 if test $ac_cv_header_sys_mkdev_h = no; then
5329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5330 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5331 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5337 else
5338 # Is the header compilable?
5339 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5340 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <sys/sysmacros.h>
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag"
5360 || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest.$ac_objext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_header_compiler=yes
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_header_compiler=no
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5385 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <sys/sysmacros.h>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 else
5406 ac_cpp_err=
5408 else
5409 ac_cpp_err=yes
5411 if test -z "$ac_cpp_err"; then
5412 ac_header_preproc=yes
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_preproc=no
5419 rm -f conftest.err conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5423 # So? What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5425 yes:no: )
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5430 ac_header_preproc=yes
5432 no:yes:* )
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5446 cat <<\_ASBOX
5447 ## ------------------------------------------------ ##
5448 ## Report this to http://www.python.org/python-bugs ##
5449 ## ------------------------------------------------ ##
5450 _ASBOX
5452 sed "s/^/$as_me: WARNING: /" >&2
5454 esac
5455 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5466 if test $ac_cv_header_sys_sysmacros_h = yes; then
5468 cat >>confdefs.h <<\_ACEOF
5469 #define MAJOR_IN_SYSMACROS 1
5470 _ACEOF
5479 # On Solaris, term.h requires curses.h
5481 for ac_header in term.h
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 #ifdef HAVE_CURSES_H
5497 #include <curses.h>
5498 #endif
5501 #include <$ac_header>
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 eval "$as_ac_Header=yes"
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 eval "$as_ac_Header=no"
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539 _ACEOF
5543 done
5546 # On Linux, netlink.h requires asm/types.h
5548 for ac_header in linux/netlink.h
5550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 #ifdef HAVE_ASM_TYPES_H
5564 #include <asm/types.h>
5565 #endif
5566 #ifdef HAVE_SYS_SOCKET_H
5567 #include <sys/socket.h>
5568 #endif
5571 #include <$ac_header>
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 eval "$as_ac_Header=yes"
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 eval "$as_ac_Header=no"
5602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607 cat >>confdefs.h <<_ACEOF
5608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609 _ACEOF
5613 done
5616 # checks for typedefs
5617 was_it_defined=no
5618 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5619 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <time.h>
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "clock_t" >/dev/null 2>&1; then
5631 was_it_defined=yes
5632 else
5635 cat >>confdefs.h <<\_ACEOF
5636 #define clock_t long
5637 _ACEOF
5641 rm -f conftest*
5643 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5644 echo "${ECHO_T}$was_it_defined" >&6
5646 # Check whether using makedev requires defining _OSF_SOURCE
5647 echo "$as_me:$LINENO: checking for makedev" >&5
5648 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5657 main ()
5659 makedev(0, 0)
5661 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_has_makedev=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_cv_has_makedev=no
5693 rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 if test "$ac_cv_has_makedev" = "no"; then
5696 # we didn't link, try if _OSF_SOURCE will allow us to link
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 #define _OSF_SOURCE 1
5705 #include <sys/types.h>
5708 main ()
5710 makedev(0, 0)
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_has_makedev=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_cv_has_makedev=no
5744 rm -f conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h <<\_ACEOF
5749 #define _OSF_SOURCE 1
5750 _ACEOF
5754 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5755 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5756 if test "$ac_cv_has_makedev" = "yes"; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_MAKEDEV 1
5760 _ACEOF
5764 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5765 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5766 # defined, but the compiler does not support pragma redefine_extname,
5767 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5768 # structures (such as rlimit64) without declaring them. As a
5769 # work-around, disable LFS on such configurations
5771 use_lfs=yes
5772 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5773 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 #define _LARGEFILE_SOURCE 1
5782 #define _FILE_OFFSET_BITS 64
5783 #include <sys/resource.h>
5786 main ()
5788 struct rlimit foo;
5790 return 0;
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 sol_lfs_bug=no
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 sol_lfs_bug=yes
5822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5824 echo "${ECHO_T}$sol_lfs_bug" >&6
5825 if test "$sol_lfs_bug" = "yes"; then
5826 use_lfs=no
5829 if test "$use_lfs" = "yes"; then
5830 # Two defines needed to enable largefile support on various platforms
5831 # These may affect some typedefs
5833 cat >>confdefs.h <<\_ACEOF
5834 #define _LARGEFILE_SOURCE 1
5835 _ACEOF
5838 cat >>confdefs.h <<\_ACEOF
5839 #define _FILE_OFFSET_BITS 64
5840 _ACEOF
5844 # Add some code to confdefs.h so that the test for off_t works on SCO
5845 cat >> confdefs.h <<\EOF
5846 #if defined(SCO_DS)
5847 #undef _OFF_T
5848 #endif
5851 # Type availability checks
5852 echo "$as_me:$LINENO: checking for mode_t" >&5
5853 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5854 if test "${ac_cv_type_mode_t+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5865 main ()
5867 if ((mode_t *) 0)
5868 return 0;
5869 if (sizeof (mode_t))
5870 return 0;
5872 return 0;
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_type_mode_t=yes
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_cv_type_mode_t=no
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5907 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5908 if test $ac_cv_type_mode_t = yes; then
5910 else
5912 cat >>confdefs.h <<_ACEOF
5913 #define mode_t int
5914 _ACEOF
5918 echo "$as_me:$LINENO: checking for off_t" >&5
5919 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_off_t+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5931 main ()
5933 if ((off_t *) 0)
5934 return 0;
5935 if (sizeof (off_t))
5936 return 0;
5938 return 0;
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 (eval $ac_try) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_type_off_t=yes
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_cv_type_off_t=no
5970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5973 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5974 if test $ac_cv_type_off_t = yes; then
5976 else
5978 cat >>confdefs.h <<_ACEOF
5979 #define off_t long
5980 _ACEOF
5984 echo "$as_me:$LINENO: checking for pid_t" >&5
5985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5986 if test "${ac_cv_type_pid_t+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5997 main ()
5999 if ((pid_t *) 0)
6000 return 0;
6001 if (sizeof (pid_t))
6002 return 0;
6004 return 0;
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_type_pid_t=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_type_pid_t=no
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6039 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6040 if test $ac_cv_type_pid_t = yes; then
6042 else
6044 cat >>confdefs.h <<_ACEOF
6045 #define pid_t int
6046 _ACEOF
6050 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6051 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6052 if test "${ac_cv_type_signal+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6062 #include <signal.h>
6063 #ifdef signal
6064 # undef signal
6065 #endif
6066 #ifdef __cplusplus
6067 extern "C" void (*signal (int, void (*)(int)))(int);
6068 #else
6069 void (*signal ()) ();
6070 #endif
6073 main ()
6075 int i;
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_signal=void
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_type_signal=int
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6112 echo "${ECHO_T}$ac_cv_type_signal" >&6
6114 cat >>confdefs.h <<_ACEOF
6115 #define RETSIGTYPE $ac_cv_type_signal
6116 _ACEOF
6119 echo "$as_me:$LINENO: checking for size_t" >&5
6120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_size_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6132 main ()
6134 if ((size_t *) 0)
6135 return 0;
6136 if (sizeof (size_t))
6137 return 0;
6139 return 0;
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_size_t=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_type_size_t=no
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6175 if test $ac_cv_type_size_t = yes; then
6177 else
6179 cat >>confdefs.h <<_ACEOF
6180 #define size_t unsigned
6181 _ACEOF
6185 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6186 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6187 if test "${ac_cv_type_uid_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6198 _ACEOF
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "uid_t" >/dev/null 2>&1; then
6201 ac_cv_type_uid_t=yes
6202 else
6203 ac_cv_type_uid_t=no
6205 rm -f conftest*
6208 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no; then
6212 cat >>confdefs.h <<\_ACEOF
6213 #define uid_t int
6214 _ACEOF
6217 cat >>confdefs.h <<\_ACEOF
6218 #define gid_t int
6219 _ACEOF
6223 echo "$as_me:$LINENO: checking for ssize_t" >&5
6224 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6225 if test "${ac_cv_type_ssize_t+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6236 main ()
6238 if ((ssize_t *) 0)
6239 return 0;
6240 if (sizeof (ssize_t))
6241 return 0;
6243 return 0;
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_type_ssize_t=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_type_ssize_t=no
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6278 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6279 if test $ac_cv_type_ssize_t = yes; then
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_SSIZE_T 1
6283 _ACEOF
6288 # Sizes of various common basic types
6289 # ANSI C requires sizeof(char) == 1, so no need to check it
6290 echo "$as_me:$LINENO: checking for int" >&5
6291 echo $ECHO_N "checking for int... $ECHO_C" >&6
6292 if test "${ac_cv_type_int+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6303 main ()
6305 if ((int *) 0)
6306 return 0;
6307 if (sizeof (int))
6308 return 0;
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_type_int=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_type_int=no
6342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6345 echo "${ECHO_T}$ac_cv_type_int" >&6
6347 echo "$as_me:$LINENO: checking size of int" >&5
6348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6349 if test "${ac_cv_sizeof_int+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 if test "$ac_cv_type_int" = yes; then
6353 # The cast to unsigned long works around a bug in the HP C Compiler
6354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6356 # This bug is HP SR number 8606223364.
6357 if test "$cross_compiling" = yes; then
6358 # Depending upon the size, compute the lo and hi bounds.
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 $ac_includes_default
6367 main ()
6369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6370 test_array [0] = 0
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_lo=0 ac_mid=0
6399 while :; do
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6408 main ()
6410 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6411 test_array [0] = 0
6414 return 0;
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_hi=$ac_mid; break
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_lo=`expr $ac_mid + 1`
6445 if test $ac_lo -le $ac_mid; then
6446 ac_lo= ac_hi=
6447 break
6449 ac_mid=`expr 2 '*' $ac_mid + 1`
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 done
6453 else
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6465 main ()
6467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6468 test_array [0] = 0
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_hi=-1 ac_mid=-1
6497 while :; do
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6506 main ()
6508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6509 test_array [0] = 0
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_lo=$ac_mid; break
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 ac_hi=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6544 ac_lo= ac_hi=
6545 break
6547 ac_mid=`expr 2 '*' $ac_mid`
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 done
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_lo= ac_hi=
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 # Binary search between lo and hi bounds.
6561 while test "x$ac_lo" != "x$ac_hi"; do
6562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6571 main ()
6573 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6574 test_array [0] = 0
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_hi=$ac_mid
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_lo=`expr '(' $ac_mid ')' + 1`
6609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6610 done
6611 case $ac_lo in
6612 ?*) ac_cv_sizeof_int=$ac_lo;;
6613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (int), 77
6616 See \`config.log' for more details." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6618 esac
6619 else
6620 if test "$cross_compiling" = yes; then
6621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6622 See \`config.log' for more details." >&5
6623 echo "$as_me: error: cannot run test program while cross compiling
6624 See \`config.log' for more details." >&2;}
6625 { (exit 1); exit 1; }; }
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 long longval () { return (long) (sizeof (int)); }
6635 unsigned long ulongval () { return (long) (sizeof (int)); }
6636 #include <stdio.h>
6637 #include <stdlib.h>
6639 main ()
6642 FILE *f = fopen ("conftest.val", "w");
6643 if (! f)
6644 exit (1);
6645 if (((long) (sizeof (int))) < 0)
6647 long i = longval ();
6648 if (i != ((long) (sizeof (int))))
6649 exit (1);
6650 fprintf (f, "%ld\n", i);
6652 else
6654 unsigned long i = ulongval ();
6655 if (i != ((long) (sizeof (int))))
6656 exit (1);
6657 fprintf (f, "%lu\n", i);
6659 exit (ferror (f) || fclose (f) != 0);
6662 return 0;
6664 _ACEOF
6665 rm -f conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_sizeof_int=`cat conftest.val`
6677 else
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ( exit $ac_status )
6683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6684 See \`config.log' for more details." >&5
6685 echo "$as_me: error: cannot compute sizeof (int), 77
6686 See \`config.log' for more details." >&2;}
6687 { (exit 1); exit 1; }; }
6689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 rm -f conftest.val
6693 else
6694 ac_cv_sizeof_int=0
6697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6699 cat >>confdefs.h <<_ACEOF
6700 #define SIZEOF_INT $ac_cv_sizeof_int
6701 _ACEOF
6704 echo "$as_me:$LINENO: checking for long" >&5
6705 echo $ECHO_N "checking for long... $ECHO_C" >&6
6706 if test "${ac_cv_type_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 $ac_includes_default
6717 main ()
6719 if ((long *) 0)
6720 return 0;
6721 if (sizeof (long))
6722 return 0;
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -z "$ac_c_werror_flag"
6737 || test ! -s conftest.err'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_type_long=yes
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_type_long=no
6756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6759 echo "${ECHO_T}$ac_cv_type_long" >&6
6761 echo "$as_me:$LINENO: checking size of long" >&5
6762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6763 if test "${ac_cv_sizeof_long+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 if test "$ac_cv_type_long" = yes; then
6767 # The cast to unsigned long works around a bug in the HP C Compiler
6768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6770 # This bug is HP SR number 8606223364.
6771 if test "$cross_compiling" = yes; then
6772 # Depending upon the size, compute the lo and hi bounds.
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 $ac_includes_default
6781 main ()
6783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6784 test_array [0] = 0
6787 return 0;
6789 _ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_lo=0 ac_mid=0
6813 while :; do
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6822 main ()
6824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6825 test_array [0] = 0
6828 return 0;
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag"
6841 || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_hi=$ac_mid; break
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_lo=`expr $ac_mid + 1`
6859 if test $ac_lo -le $ac_mid; then
6860 ac_lo= ac_hi=
6861 break
6863 ac_mid=`expr 2 '*' $ac_mid + 1`
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 done
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6879 main ()
6881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6882 test_array [0] = 0
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_hi=-1 ac_mid=-1
6911 while :; do
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6920 main ()
6922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6923 test_array [0] = 0
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_lo=$ac_mid; break
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_hi=`expr '(' $ac_mid ')' - 1`
6957 if test $ac_mid -le $ac_hi; then
6958 ac_lo= ac_hi=
6959 break
6961 ac_mid=`expr 2 '*' $ac_mid`
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 done
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_lo= ac_hi=
6971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 # Binary search between lo and hi bounds.
6975 while test "x$ac_lo" != "x$ac_hi"; do
6976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6985 main ()
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6988 test_array [0] = 0
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_hi=$ac_mid
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_lo=`expr '(' $ac_mid ')' + 1`
7023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 done
7025 case $ac_lo in
7026 ?*) ac_cv_sizeof_long=$ac_lo;;
7027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7028 See \`config.log' for more details." >&5
7029 echo "$as_me: error: cannot compute sizeof (long), 77
7030 See \`config.log' for more details." >&2;}
7031 { (exit 1); exit 1; }; } ;;
7032 esac
7033 else
7034 if test "$cross_compiling" = yes; then
7035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot run test program while cross compiling
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 long longval () { return (long) (sizeof (long)); }
7049 unsigned long ulongval () { return (long) (sizeof (long)); }
7050 #include <stdio.h>
7051 #include <stdlib.h>
7053 main ()
7056 FILE *f = fopen ("conftest.val", "w");
7057 if (! f)
7058 exit (1);
7059 if (((long) (sizeof (long))) < 0)
7061 long i = longval ();
7062 if (i != ((long) (sizeof (long))))
7063 exit (1);
7064 fprintf (f, "%ld\n", i);
7066 else
7068 unsigned long i = ulongval ();
7069 if (i != ((long) (sizeof (long))))
7070 exit (1);
7071 fprintf (f, "%lu\n", i);
7073 exit (ferror (f) || fclose (f) != 0);
7076 return 0;
7078 _ACEOF
7079 rm -f conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_sizeof_long=`cat conftest.val`
7091 else
7092 echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 ( exit $ac_status )
7097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7098 See \`config.log' for more details." >&5
7099 echo "$as_me: error: cannot compute sizeof (long), 77
7100 See \`config.log' for more details." >&2;}
7101 { (exit 1); exit 1; }; }
7103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7106 rm -f conftest.val
7107 else
7108 ac_cv_sizeof_long=0
7111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7112 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7113 cat >>confdefs.h <<_ACEOF
7114 #define SIZEOF_LONG $ac_cv_sizeof_long
7115 _ACEOF
7118 echo "$as_me:$LINENO: checking for void *" >&5
7119 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7120 if test "${ac_cv_type_void_p+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7131 main ()
7133 if ((void * *) 0)
7134 return 0;
7135 if (sizeof (void *))
7136 return 0;
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest.$ac_objext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_type_void_p=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_type_void_p=no
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7173 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7175 echo "$as_me:$LINENO: checking size of void *" >&5
7176 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7177 if test "${ac_cv_sizeof_void_p+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 if test "$ac_cv_type_void_p" = yes; then
7181 # The cast to unsigned long works around a bug in the HP C Compiler
7182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7184 # This bug is HP SR number 8606223364.
7185 if test "$cross_compiling" = yes; then
7186 # Depending upon the size, compute the lo and hi bounds.
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7195 main ()
7197 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7198 test_array [0] = 0
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_lo=0 ac_mid=0
7227 while :; do
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7236 main ()
7238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7239 test_array [0] = 0
7242 return 0;
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_hi=$ac_mid; break
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 ac_lo=`expr $ac_mid + 1`
7273 if test $ac_lo -le $ac_mid; then
7274 ac_lo= ac_hi=
7275 break
7277 ac_mid=`expr 2 '*' $ac_mid + 1`
7279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280 done
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h. */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7293 main ()
7295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7296 test_array [0] = 0
7299 return 0;
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_hi=-1 ac_mid=-1
7325 while :; do
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7334 main ()
7336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7337 test_array [0] = 0
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_lo=$ac_mid; break
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_hi=`expr '(' $ac_mid ')' - 1`
7371 if test $ac_mid -le $ac_hi; then
7372 ac_lo= ac_hi=
7373 break
7375 ac_mid=`expr 2 '*' $ac_mid`
7377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 done
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_lo= ac_hi=
7385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388 # Binary search between lo and hi bounds.
7389 while test "x$ac_lo" != "x$ac_hi"; do
7390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7399 main ()
7401 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7402 test_array [0] = 0
7405 return 0;
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_hi=$ac_mid
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_lo=`expr '(' $ac_mid ')' + 1`
7437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7438 done
7439 case $ac_lo in
7440 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (void *), 77
7444 See \`config.log' for more details." >&2;}
7445 { (exit 1); exit 1; }; } ;;
7446 esac
7447 else
7448 if test "$cross_compiling" = yes; then
7449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7450 See \`config.log' for more details." >&5
7451 echo "$as_me: error: cannot run test program while cross compiling
7452 See \`config.log' for more details." >&2;}
7453 { (exit 1); exit 1; }; }
7454 else
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 long longval () { return (long) (sizeof (void *)); }
7463 unsigned long ulongval () { return (long) (sizeof (void *)); }
7464 #include <stdio.h>
7465 #include <stdlib.h>
7467 main ()
7470 FILE *f = fopen ("conftest.val", "w");
7471 if (! f)
7472 exit (1);
7473 if (((long) (sizeof (void *))) < 0)
7475 long i = longval ();
7476 if (i != ((long) (sizeof (void *))))
7477 exit (1);
7478 fprintf (f, "%ld\n", i);
7480 else
7482 unsigned long i = ulongval ();
7483 if (i != ((long) (sizeof (void *))))
7484 exit (1);
7485 fprintf (f, "%lu\n", i);
7487 exit (ferror (f) || fclose (f) != 0);
7490 return 0;
7492 _ACEOF
7493 rm -f conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_sizeof_void_p=`cat conftest.val`
7505 else
7506 echo "$as_me: program exited with status $ac_status" >&5
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ( exit $ac_status )
7511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7512 See \`config.log' for more details." >&5
7513 echo "$as_me: error: cannot compute sizeof (void *), 77
7514 See \`config.log' for more details." >&2;}
7515 { (exit 1); exit 1; }; }
7517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7520 rm -f conftest.val
7521 else
7522 ac_cv_sizeof_void_p=0
7525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7526 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7527 cat >>confdefs.h <<_ACEOF
7528 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7529 _ACEOF
7532 echo "$as_me:$LINENO: checking for short" >&5
7533 echo $ECHO_N "checking for short... $ECHO_C" >&6
7534 if test "${ac_cv_type_short+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7545 main ()
7547 if ((short *) 0)
7548 return 0;
7549 if (sizeof (short))
7550 return 0;
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_short=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_type_short=no
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7587 echo "${ECHO_T}$ac_cv_type_short" >&6
7589 echo "$as_me:$LINENO: checking size of short" >&5
7590 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7591 if test "${ac_cv_sizeof_short+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 if test "$ac_cv_type_short" = yes; then
7595 # The cast to unsigned long works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7609 main ()
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7612 test_array [0] = 0
7615 return 0;
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_lo=0 ac_mid=0
7641 while :; do
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7650 main ()
7652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7653 test_array [0] = 0
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_hi=$ac_mid; break
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_lo=`expr $ac_mid + 1`
7687 if test $ac_lo -le $ac_mid; then
7688 ac_lo= ac_hi=
7689 break
7691 ac_mid=`expr 2 '*' $ac_mid + 1`
7693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694 done
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7707 main ()
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7710 test_array [0] = 0
7713 return 0;
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_hi=-1 ac_mid=-1
7739 while :; do
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 $ac_includes_default
7748 main ()
7750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7751 test_array [0] = 0
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_lo=$ac_mid; break
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 ac_hi=`expr '(' $ac_mid ')' - 1`
7785 if test $ac_mid -le $ac_hi; then
7786 ac_lo= ac_hi=
7787 break
7789 ac_mid=`expr 2 '*' $ac_mid`
7791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792 done
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_lo= ac_hi=
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802 # Binary search between lo and hi bounds.
7803 while test "x$ac_lo" != "x$ac_hi"; do
7804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7813 main ()
7815 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7816 test_array [0] = 0
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_hi=$ac_mid
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_lo=`expr '(' $ac_mid ')' + 1`
7851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7852 done
7853 case $ac_lo in
7854 ?*) ac_cv_sizeof_short=$ac_lo;;
7855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7856 See \`config.log' for more details." >&5
7857 echo "$as_me: error: cannot compute sizeof (short), 77
7858 See \`config.log' for more details." >&2;}
7859 { (exit 1); exit 1; }; } ;;
7860 esac
7861 else
7862 if test "$cross_compiling" = yes; then
7863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7864 See \`config.log' for more details." >&5
7865 echo "$as_me: error: cannot run test program while cross compiling
7866 See \`config.log' for more details." >&2;}
7867 { (exit 1); exit 1; }; }
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (short)); }
7877 unsigned long ulongval () { return (long) (sizeof (short)); }
7878 #include <stdio.h>
7879 #include <stdlib.h>
7881 main ()
7884 FILE *f = fopen ("conftest.val", "w");
7885 if (! f)
7886 exit (1);
7887 if (((long) (sizeof (short))) < 0)
7889 long i = longval ();
7890 if (i != ((long) (sizeof (short))))
7891 exit (1);
7892 fprintf (f, "%ld\n", i);
7894 else
7896 unsigned long i = ulongval ();
7897 if (i != ((long) (sizeof (short))))
7898 exit (1);
7899 fprintf (f, "%lu\n", i);
7901 exit (ferror (f) || fclose (f) != 0);
7904 return 0;
7906 _ACEOF
7907 rm -f conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_sizeof_short=`cat conftest.val`
7919 else
7920 echo "$as_me: program exited with status $ac_status" >&5
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ( exit $ac_status )
7925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7926 See \`config.log' for more details." >&5
7927 echo "$as_me: error: cannot compute sizeof (short), 77
7928 See \`config.log' for more details." >&2;}
7929 { (exit 1); exit 1; }; }
7931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7934 rm -f conftest.val
7935 else
7936 ac_cv_sizeof_short=0
7939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7940 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7941 cat >>confdefs.h <<_ACEOF
7942 #define SIZEOF_SHORT $ac_cv_sizeof_short
7943 _ACEOF
7946 echo "$as_me:$LINENO: checking for float" >&5
7947 echo $ECHO_N "checking for float... $ECHO_C" >&6
7948 if test "${ac_cv_type_float+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7959 main ()
7961 if ((float *) 0)
7962 return 0;
7963 if (sizeof (float))
7964 return 0;
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_float=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_type_float=no
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8001 echo "${ECHO_T}$ac_cv_type_float" >&6
8003 echo "$as_me:$LINENO: checking size of float" >&5
8004 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8005 if test "${ac_cv_sizeof_float+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 if test "$ac_cv_type_float" = yes; then
8009 # The cast to unsigned long works around a bug in the HP C Compiler
8010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8012 # This bug is HP SR number 8606223364.
8013 if test "$cross_compiling" = yes; then
8014 # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8023 main ()
8025 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8026 test_array [0] = 0
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 ac_lo=0 ac_mid=0
8055 while :; do
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8064 main ()
8066 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8067 test_array [0] = 0
8070 return 0;
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_hi=$ac_mid; break
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_lo=`expr $ac_mid + 1`
8101 if test $ac_lo -le $ac_mid; then
8102 ac_lo= ac_hi=
8103 break
8105 ac_mid=`expr 2 '*' $ac_mid + 1`
8107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108 done
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8121 main ()
8123 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8124 test_array [0] = 0
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_hi=-1 ac_mid=-1
8153 while :; do
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8162 main ()
8164 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8165 test_array [0] = 0
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_lo=$ac_mid; break
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_hi=`expr '(' $ac_mid ')' - 1`
8199 if test $ac_mid -le $ac_hi; then
8200 ac_lo= ac_hi=
8201 break
8203 ac_mid=`expr 2 '*' $ac_mid`
8205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206 done
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_lo= ac_hi=
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 # Binary search between lo and hi bounds.
8217 while test "x$ac_lo" != "x$ac_hi"; do
8218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8227 main ()
8229 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8230 test_array [0] = 0
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_hi=$ac_mid
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_lo=`expr '(' $ac_mid ')' + 1`
8265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266 done
8267 case $ac_lo in
8268 ?*) ac_cv_sizeof_float=$ac_lo;;
8269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8270 See \`config.log' for more details." >&5
8271 echo "$as_me: error: cannot compute sizeof (float), 77
8272 See \`config.log' for more details." >&2;}
8273 { (exit 1); exit 1; }; } ;;
8274 esac
8275 else
8276 if test "$cross_compiling" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot run test program while cross compiling
8280 See \`config.log' for more details." >&2;}
8281 { (exit 1); exit 1; }; }
8282 else
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 long longval () { return (long) (sizeof (float)); }
8291 unsigned long ulongval () { return (long) (sizeof (float)); }
8292 #include <stdio.h>
8293 #include <stdlib.h>
8295 main ()
8298 FILE *f = fopen ("conftest.val", "w");
8299 if (! f)
8300 exit (1);
8301 if (((long) (sizeof (float))) < 0)
8303 long i = longval ();
8304 if (i != ((long) (sizeof (float))))
8305 exit (1);
8306 fprintf (f, "%ld\n", i);
8308 else
8310 unsigned long i = ulongval ();
8311 if (i != ((long) (sizeof (float))))
8312 exit (1);
8313 fprintf (f, "%lu\n", i);
8315 exit (ferror (f) || fclose (f) != 0);
8318 return 0;
8320 _ACEOF
8321 rm -f conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_sizeof_float=`cat conftest.val`
8333 else
8334 echo "$as_me: program exited with status $ac_status" >&5
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 ( exit $ac_status )
8339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8340 See \`config.log' for more details." >&5
8341 echo "$as_me: error: cannot compute sizeof (float), 77
8342 See \`config.log' for more details." >&2;}
8343 { (exit 1); exit 1; }; }
8345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 rm -f conftest.val
8349 else
8350 ac_cv_sizeof_float=0
8353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8354 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8355 cat >>confdefs.h <<_ACEOF
8356 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8357 _ACEOF
8360 echo "$as_me:$LINENO: checking for double" >&5
8361 echo $ECHO_N "checking for double... $ECHO_C" >&6
8362 if test "${ac_cv_type_double+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8373 main ()
8375 if ((double *) 0)
8376 return 0;
8377 if (sizeof (double))
8378 return 0;
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_type_double=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_type_double=no
8412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8415 echo "${ECHO_T}$ac_cv_type_double" >&6
8417 echo "$as_me:$LINENO: checking size of double" >&5
8418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8419 if test "${ac_cv_sizeof_double+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422 if test "$ac_cv_type_double" = yes; then
8423 # The cast to unsigned long works around a bug in the HP C Compiler
8424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8426 # This bug is HP SR number 8606223364.
8427 if test "$cross_compiling" = yes; then
8428 # Depending upon the size, compute the lo and hi bounds.
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8437 main ()
8439 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8440 test_array [0] = 0
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_lo=0 ac_mid=0
8469 while :; do
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8478 main ()
8480 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8481 test_array [0] = 0
8484 return 0;
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_hi=$ac_mid; break
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_lo=`expr $ac_mid + 1`
8515 if test $ac_lo -le $ac_mid; then
8516 ac_lo= ac_hi=
8517 break
8519 ac_mid=`expr 2 '*' $ac_mid + 1`
8521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522 done
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8535 main ()
8537 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8538 test_array [0] = 0
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_hi=-1 ac_mid=-1
8567 while :; do
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8576 main ()
8578 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8579 test_array [0] = 0
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_lo=$ac_mid; break
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_hi=`expr '(' $ac_mid ')' - 1`
8613 if test $ac_mid -le $ac_hi; then
8614 ac_lo= ac_hi=
8615 break
8617 ac_mid=`expr 2 '*' $ac_mid`
8619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620 done
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_lo= ac_hi=
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630 # Binary search between lo and hi bounds.
8631 while test "x$ac_lo" != "x$ac_hi"; do
8632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8641 main ()
8643 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8644 test_array [0] = 0
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_hi=$ac_mid
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_lo=`expr '(' $ac_mid ')' + 1`
8679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8680 done
8681 case $ac_lo in
8682 ?*) ac_cv_sizeof_double=$ac_lo;;
8683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8684 See \`config.log' for more details." >&5
8685 echo "$as_me: error: cannot compute sizeof (double), 77
8686 See \`config.log' for more details." >&2;}
8687 { (exit 1); exit 1; }; } ;;
8688 esac
8689 else
8690 if test "$cross_compiling" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: cannot run test program while cross compiling
8694 See \`config.log' for more details." >&2;}
8695 { (exit 1); exit 1; }; }
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 long longval () { return (long) (sizeof (double)); }
8705 unsigned long ulongval () { return (long) (sizeof (double)); }
8706 #include <stdio.h>
8707 #include <stdlib.h>
8709 main ()
8712 FILE *f = fopen ("conftest.val", "w");
8713 if (! f)
8714 exit (1);
8715 if (((long) (sizeof (double))) < 0)
8717 long i = longval ();
8718 if (i != ((long) (sizeof (double))))
8719 exit (1);
8720 fprintf (f, "%ld\n", i);
8722 else
8724 unsigned long i = ulongval ();
8725 if (i != ((long) (sizeof (double))))
8726 exit (1);
8727 fprintf (f, "%lu\n", i);
8729 exit (ferror (f) || fclose (f) != 0);
8732 return 0;
8734 _ACEOF
8735 rm -f conftest$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_sizeof_double=`cat conftest.val`
8747 else
8748 echo "$as_me: program exited with status $ac_status" >&5
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ( exit $ac_status )
8753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8754 See \`config.log' for more details." >&5
8755 echo "$as_me: error: cannot compute sizeof (double), 77
8756 See \`config.log' for more details." >&2;}
8757 { (exit 1); exit 1; }; }
8759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8762 rm -f conftest.val
8763 else
8764 ac_cv_sizeof_double=0
8767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8768 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8769 cat >>confdefs.h <<_ACEOF
8770 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8771 _ACEOF
8774 echo "$as_me:$LINENO: checking for fpos_t" >&5
8775 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_fpos_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8787 main ()
8789 if ((fpos_t *) 0)
8790 return 0;
8791 if (sizeof (fpos_t))
8792 return 0;
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_type_fpos_t=yes
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_type_fpos_t=no
8826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8829 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8831 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8832 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8833 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 if test "$ac_cv_type_fpos_t" = yes; then
8837 # The cast to unsigned long works around a bug in the HP C Compiler
8838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840 # This bug is HP SR number 8606223364.
8841 if test "$cross_compiling" = yes; then
8842 # Depending upon the size, compute the lo and hi bounds.
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8851 main ()
8853 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8854 test_array [0] = 0
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_lo=0 ac_mid=0
8883 while :; do
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8892 main ()
8894 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8895 test_array [0] = 0
8898 return 0;
8900 _ACEOF
8901 rm -f conftest.$ac_objext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8903 (eval $ac_compile) 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_hi=$ac_mid; break
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_lo=`expr $ac_mid + 1`
8929 if test $ac_lo -le $ac_mid; then
8930 ac_lo= ac_hi=
8931 break
8933 ac_mid=`expr 2 '*' $ac_mid + 1`
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936 done
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8949 main ()
8951 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8952 test_array [0] = 0
8955 return 0;
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_hi=-1 ac_mid=-1
8981 while :; do
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8990 main ()
8992 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8993 test_array [0] = 0
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_lo=$ac_mid; break
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_hi=`expr '(' $ac_mid ')' - 1`
9027 if test $ac_mid -le $ac_hi; then
9028 ac_lo= ac_hi=
9029 break
9031 ac_mid=`expr 2 '*' $ac_mid`
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 done
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_lo= ac_hi=
9041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044 # Binary search between lo and hi bounds.
9045 while test "x$ac_lo" != "x$ac_hi"; do
9046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9055 main ()
9057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9058 test_array [0] = 0
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_hi=$ac_mid
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 ac_lo=`expr '(' $ac_mid ')' + 1`
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 done
9095 case $ac_lo in
9096 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9098 See \`config.log' for more details." >&5
9099 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9100 See \`config.log' for more details." >&2;}
9101 { (exit 1); exit 1; }; } ;;
9102 esac
9103 else
9104 if test "$cross_compiling" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9106 See \`config.log' for more details." >&5
9107 echo "$as_me: error: cannot run test program while cross compiling
9108 See \`config.log' for more details." >&2;}
9109 { (exit 1); exit 1; }; }
9110 else
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 long longval () { return (long) (sizeof (fpos_t)); }
9119 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9120 #include <stdio.h>
9121 #include <stdlib.h>
9123 main ()
9126 FILE *f = fopen ("conftest.val", "w");
9127 if (! f)
9128 exit (1);
9129 if (((long) (sizeof (fpos_t))) < 0)
9131 long i = longval ();
9132 if (i != ((long) (sizeof (fpos_t))))
9133 exit (1);
9134 fprintf (f, "%ld\n", i);
9136 else
9138 unsigned long i = ulongval ();
9139 if (i != ((long) (sizeof (fpos_t))))
9140 exit (1);
9141 fprintf (f, "%lu\n", i);
9143 exit (ferror (f) || fclose (f) != 0);
9146 return 0;
9148 _ACEOF
9149 rm -f conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_sizeof_fpos_t=`cat conftest.val`
9161 else
9162 echo "$as_me: program exited with status $ac_status" >&5
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ( exit $ac_status )
9167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9168 See \`config.log' for more details." >&5
9169 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9170 See \`config.log' for more details." >&2;}
9171 { (exit 1); exit 1; }; }
9173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9176 rm -f conftest.val
9177 else
9178 ac_cv_sizeof_fpos_t=0
9181 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9182 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9183 cat >>confdefs.h <<_ACEOF
9184 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9185 _ACEOF
9188 echo "$as_me:$LINENO: checking for size_t" >&5
9189 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9190 if test "${ac_cv_type_size_t+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9201 main ()
9203 if ((size_t *) 0)
9204 return 0;
9205 if (sizeof (size_t))
9206 return 0;
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_type_size_t=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_type_size_t=no
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9245 echo "$as_me:$LINENO: checking size of size_t" >&5
9246 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9247 if test "${ac_cv_sizeof_size_t+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 if test "$ac_cv_type_size_t" = yes; then
9251 # The cast to unsigned long works around a bug in the HP C Compiler
9252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9254 # This bug is HP SR number 8606223364.
9255 if test "$cross_compiling" = yes; then
9256 # Depending upon the size, compute the lo and hi bounds.
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9265 main ()
9267 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9268 test_array [0] = 0
9271 return 0;
9273 _ACEOF
9274 rm -f conftest.$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_lo=0 ac_mid=0
9297 while :; do
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9306 main ()
9308 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9309 test_array [0] = 0
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_hi=$ac_mid; break
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_lo=`expr $ac_mid + 1`
9343 if test $ac_lo -le $ac_mid; then
9344 ac_lo= ac_hi=
9345 break
9347 ac_mid=`expr 2 '*' $ac_mid + 1`
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350 done
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9363 main ()
9365 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9366 test_array [0] = 0
9369 return 0;
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_hi=-1 ac_mid=-1
9395 while :; do
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 $ac_includes_default
9404 main ()
9406 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9407 test_array [0] = 0
9410 return 0;
9412 _ACEOF
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_lo=$ac_mid; break
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_hi=`expr '(' $ac_mid ')' - 1`
9441 if test $ac_mid -le $ac_hi; then
9442 ac_lo= ac_hi=
9443 break
9445 ac_mid=`expr 2 '*' $ac_mid`
9447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448 done
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_lo= ac_hi=
9455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9458 # Binary search between lo and hi bounds.
9459 while test "x$ac_lo" != "x$ac_hi"; do
9460 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9469 main ()
9471 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9472 test_array [0] = 0
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_hi=$ac_mid
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_lo=`expr '(' $ac_mid ')' + 1`
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508 done
9509 case $ac_lo in
9510 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9511 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9512 See \`config.log' for more details." >&5
9513 echo "$as_me: error: cannot compute sizeof (size_t), 77
9514 See \`config.log' for more details." >&2;}
9515 { (exit 1); exit 1; }; } ;;
9516 esac
9517 else
9518 if test "$cross_compiling" = yes; then
9519 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9520 See \`config.log' for more details." >&5
9521 echo "$as_me: error: cannot run test program while cross compiling
9522 See \`config.log' for more details." >&2;}
9523 { (exit 1); exit 1; }; }
9524 else
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 long longval () { return (long) (sizeof (size_t)); }
9533 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9534 #include <stdio.h>
9535 #include <stdlib.h>
9537 main ()
9540 FILE *f = fopen ("conftest.val", "w");
9541 if (! f)
9542 exit (1);
9543 if (((long) (sizeof (size_t))) < 0)
9545 long i = longval ();
9546 if (i != ((long) (sizeof (size_t))))
9547 exit (1);
9548 fprintf (f, "%ld\n", i);
9550 else
9552 unsigned long i = ulongval ();
9553 if (i != ((long) (sizeof (size_t))))
9554 exit (1);
9555 fprintf (f, "%lu\n", i);
9557 exit (ferror (f) || fclose (f) != 0);
9560 return 0;
9562 _ACEOF
9563 rm -f conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_sizeof_size_t=`cat conftest.val`
9575 else
9576 echo "$as_me: program exited with status $ac_status" >&5
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ( exit $ac_status )
9581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9582 See \`config.log' for more details." >&5
9583 echo "$as_me: error: cannot compute sizeof (size_t), 77
9584 See \`config.log' for more details." >&2;}
9585 { (exit 1); exit 1; }; }
9587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9590 rm -f conftest.val
9591 else
9592 ac_cv_sizeof_size_t=0
9595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9596 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9597 cat >>confdefs.h <<_ACEOF
9598 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9599 _ACEOF
9603 echo "$as_me:$LINENO: checking for long long support" >&5
9604 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9605 have_long_long=no
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9614 main ()
9616 long long x; x = (long long)0;
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_LONG_LONG 1
9647 _ACEOF
9649 have_long_long=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $have_long_long" >&5
9658 echo "${ECHO_T}$have_long_long" >&6
9659 if test "$have_long_long" = yes ; then
9660 echo "$as_me:$LINENO: checking for long long" >&5
9661 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9662 if test "${ac_cv_type_long_long+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9673 main ()
9675 if ((long long *) 0)
9676 return 0;
9677 if (sizeof (long long))
9678 return 0;
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_type_long_long=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_type_long_long=no
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9717 echo "$as_me:$LINENO: checking size of long long" >&5
9718 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9719 if test "${ac_cv_sizeof_long_long+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 if test "$ac_cv_type_long_long" = yes; then
9723 # The cast to unsigned long works around a bug in the HP C Compiler
9724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9726 # This bug is HP SR number 8606223364.
9727 if test "$cross_compiling" = yes; then
9728 # Depending upon the size, compute the lo and hi bounds.
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9737 main ()
9739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9740 test_array [0] = 0
9743 return 0;
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_lo=0 ac_mid=0
9769 while :; do
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $ac_includes_default
9778 main ()
9780 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9781 test_array [0] = 0
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_hi=$ac_mid; break
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_lo=`expr $ac_mid + 1`
9815 if test $ac_lo -le $ac_mid; then
9816 ac_lo= ac_hi=
9817 break
9819 ac_mid=`expr 2 '*' $ac_mid + 1`
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 done
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9835 main ()
9837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9838 test_array [0] = 0
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_hi=-1 ac_mid=-1
9867 while :; do
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9876 main ()
9878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9879 test_array [0] = 0
9882 return 0;
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_lo=$ac_mid; break
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_hi=`expr '(' $ac_mid ')' - 1`
9913 if test $ac_mid -le $ac_hi; then
9914 ac_lo= ac_hi=
9915 break
9917 ac_mid=`expr 2 '*' $ac_mid`
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 done
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_lo= ac_hi=
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9930 # Binary search between lo and hi bounds.
9931 while test "x$ac_lo" != "x$ac_hi"; do
9932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9941 main ()
9943 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9944 test_array [0] = 0
9947 return 0;
9949 _ACEOF
9950 rm -f conftest.$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_hi=$ac_mid
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_lo=`expr '(' $ac_mid ')' + 1`
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9980 done
9981 case $ac_lo in
9982 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9984 See \`config.log' for more details." >&5
9985 echo "$as_me: error: cannot compute sizeof (long long), 77
9986 See \`config.log' for more details." >&2;}
9987 { (exit 1); exit 1; }; } ;;
9988 esac
9989 else
9990 if test "$cross_compiling" = yes; then
9991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9992 See \`config.log' for more details." >&5
9993 echo "$as_me: error: cannot run test program while cross compiling
9994 See \`config.log' for more details." >&2;}
9995 { (exit 1); exit 1; }; }
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 $ac_includes_default
10004 long longval () { return (long) (sizeof (long long)); }
10005 unsigned long ulongval () { return (long) (sizeof (long long)); }
10006 #include <stdio.h>
10007 #include <stdlib.h>
10009 main ()
10012 FILE *f = fopen ("conftest.val", "w");
10013 if (! f)
10014 exit (1);
10015 if (((long) (sizeof (long long))) < 0)
10017 long i = longval ();
10018 if (i != ((long) (sizeof (long long))))
10019 exit (1);
10020 fprintf (f, "%ld\n", i);
10022 else
10024 unsigned long i = ulongval ();
10025 if (i != ((long) (sizeof (long long))))
10026 exit (1);
10027 fprintf (f, "%lu\n", i);
10029 exit (ferror (f) || fclose (f) != 0);
10032 return 0;
10034 _ACEOF
10035 rm -f conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_sizeof_long_long=`cat conftest.val`
10047 else
10048 echo "$as_me: program exited with status $ac_status" >&5
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ( exit $ac_status )
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long), 77
10056 See \`config.log' for more details." >&2;}
10057 { (exit 1); exit 1; }; }
10059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10062 rm -f conftest.val
10063 else
10064 ac_cv_sizeof_long_long=0
10067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10068 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10069 cat >>confdefs.h <<_ACEOF
10070 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10071 _ACEOF
10076 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10077 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10078 have_uintptr_t=no
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10087 main ()
10089 uintptr_t x; x = (uintptr_t)0;
10091 return 0;
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_UINTPTR_T 1
10120 _ACEOF
10122 have_uintptr_t=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10131 echo "${ECHO_T}$have_uintptr_t" >&6
10132 if test "$have_uintptr_t" = yes ; then
10133 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10134 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10135 if test "${ac_cv_type_uintptr_t+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10146 main ()
10148 if ((uintptr_t *) 0)
10149 return 0;
10150 if (sizeof (uintptr_t))
10151 return 0;
10153 return 0;
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_type_uintptr_t=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_type_uintptr_t=no
10185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10187 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10188 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10190 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10191 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10192 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 if test "$ac_cv_type_uintptr_t" = yes; then
10196 # The cast to unsigned long works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 if test "$cross_compiling" = yes; then
10201 # Depending upon the size, compute the lo and hi bounds.
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10210 main ()
10212 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10213 test_array [0] = 0
10216 return 0;
10218 _ACEOF
10219 rm -f conftest.$ac_objext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_c_werror_flag"
10229 || test ! -s conftest.err'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_lo=0 ac_mid=0
10242 while :; do
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10251 main ()
10253 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10254 test_array [0] = 0
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_hi=$ac_mid; break
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_lo=`expr $ac_mid + 1`
10288 if test $ac_lo -le $ac_mid; then
10289 ac_lo= ac_hi=
10290 break
10292 ac_mid=`expr 2 '*' $ac_mid + 1`
10294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10295 done
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10308 main ()
10310 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10311 test_array [0] = 0
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_hi=-1 ac_mid=-1
10340 while :; do
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 $ac_includes_default
10349 main ()
10351 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10352 test_array [0] = 0
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_lo=$ac_mid; break
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_hi=`expr '(' $ac_mid ')' - 1`
10386 if test $ac_mid -le $ac_hi; then
10387 ac_lo= ac_hi=
10388 break
10390 ac_mid=`expr 2 '*' $ac_mid`
10392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393 done
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_lo= ac_hi=
10400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 # Binary search between lo and hi bounds.
10404 while test "x$ac_lo" != "x$ac_hi"; do
10405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10414 main ()
10416 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10417 test_array [0] = 0
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_hi=$ac_mid
10446 else
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_lo=`expr '(' $ac_mid ')' + 1`
10452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10453 done
10454 case $ac_lo in
10455 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10457 See \`config.log' for more details." >&5
10458 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10459 See \`config.log' for more details." >&2;}
10460 { (exit 1); exit 1; }; } ;;
10461 esac
10462 else
10463 if test "$cross_compiling" = yes; then
10464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10465 See \`config.log' for more details." >&5
10466 echo "$as_me: error: cannot run test program while cross compiling
10467 See \`config.log' for more details." >&2;}
10468 { (exit 1); exit 1; }; }
10469 else
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477 long longval () { return (long) (sizeof (uintptr_t)); }
10478 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10479 #include <stdio.h>
10480 #include <stdlib.h>
10482 main ()
10485 FILE *f = fopen ("conftest.val", "w");
10486 if (! f)
10487 exit (1);
10488 if (((long) (sizeof (uintptr_t))) < 0)
10490 long i = longval ();
10491 if (i != ((long) (sizeof (uintptr_t))))
10492 exit (1);
10493 fprintf (f, "%ld\n", i);
10495 else
10497 unsigned long i = ulongval ();
10498 if (i != ((long) (sizeof (uintptr_t))))
10499 exit (1);
10500 fprintf (f, "%lu\n", i);
10502 exit (ferror (f) || fclose (f) != 0);
10505 return 0;
10507 _ACEOF
10508 rm -f conftest$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10520 else
10521 echo "$as_me: program exited with status $ac_status" >&5
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ( exit $ac_status )
10526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10527 See \`config.log' for more details." >&5
10528 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10529 See \`config.log' for more details." >&2;}
10530 { (exit 1); exit 1; }; }
10532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10535 rm -f conftest.val
10536 else
10537 ac_cv_sizeof_uintptr_t=0
10540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10541 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10544 _ACEOF
10549 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10550 echo "$as_me:$LINENO: checking size of off_t" >&5
10551 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10552 if test "${ac_cv_sizeof_off_t+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_off_t=4
10557 else
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 #include <stdio.h>
10565 #include <sys/types.h>
10566 main()
10568 FILE *f=fopen("conftestval", "w");
10569 if (!f) exit(1);
10570 fprintf(f, "%d\n", sizeof(off_t));
10571 exit(0);
10573 _ACEOF
10574 rm -f conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_sizeof_off_t=`cat conftestval`
10586 else
10587 echo "$as_me: program exited with status $ac_status" >&5
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ( exit $ac_status )
10592 ac_cv_sizeof_off_t=0
10594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10600 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10602 cat >>confdefs.h <<_ACEOF
10603 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10604 _ACEOF
10607 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10608 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10609 if test "$have_long_long" = yes -a \
10610 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10611 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_LARGEFILE_SUPPORT 1
10615 _ACEOF
10617 echo "$as_me:$LINENO: result: yes" >&5
10618 echo "${ECHO_T}yes" >&6
10619 else
10620 echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10624 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10625 echo "$as_me:$LINENO: checking size of time_t" >&5
10626 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10627 if test "${ac_cv_sizeof_time_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 if test "$cross_compiling" = yes; then
10631 ac_cv_sizeof_time_t=4
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <stdio.h>
10640 #include <time.h>
10641 main()
10643 FILE *f=fopen("conftestval", "w");
10644 if (!f) exit(1);
10645 fprintf(f, "%d\n", sizeof(time_t));
10646 exit(0);
10648 _ACEOF
10649 rm -f conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_time_t=`cat conftestval`
10661 else
10662 echo "$as_me: program exited with status $ac_status" >&5
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ( exit $ac_status )
10667 ac_cv_sizeof_time_t=0
10669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10675 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10677 cat >>confdefs.h <<_ACEOF
10678 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10679 _ACEOF
10683 # if have pthread_t then define SIZEOF_PTHREAD_T
10684 ac_save_cc="$CC"
10685 if test "$ac_cv_kpthread" = "yes"
10686 then CC="$CC -Kpthread"
10687 elif test "$ac_cv_kthread" = "yes"
10688 then CC="$CC -Kthread"
10689 elif test "$ac_cv_pthread" = "yes"
10690 then CC="$CC -pthread"
10692 echo "$as_me:$LINENO: checking for pthread_t" >&5
10693 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10694 have_pthread_t=no
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <pthread.h>
10703 main ()
10705 pthread_t x; x = *(pthread_t*)0;
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 have_pthread_t=yes
10733 else
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10740 echo "${ECHO_T}$have_pthread_t" >&6
10741 if test "$have_pthread_t" = yes ; then
10742 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10743 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10744 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10745 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 if test "$cross_compiling" = yes; then
10749 ac_cv_sizeof_pthread_t=4
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <stdio.h>
10758 #include <pthread.h>
10759 main()
10761 FILE *f=fopen("conftestval", "w");
10762 if (!f) exit(1);
10763 fprintf(f, "%d\n", sizeof(pthread_t));
10764 exit(0);
10766 _ACEOF
10767 rm -f conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_sizeof_pthread_t=`cat conftestval`
10779 else
10780 echo "$as_me: program exited with status $ac_status" >&5
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_sizeof_pthread_t=0
10787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10793 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10795 cat >>confdefs.h <<_ACEOF
10796 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10797 _ACEOF
10800 CC="$ac_save_cc"
10802 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10803 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10804 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10805 if test "${enable_toolbox_glue+set}" = set; then
10806 enableval="$enable_toolbox_glue"
10810 if test -z "$enable_toolbox_glue"
10811 then
10812 case $ac_sys_system/$ac_sys_release in
10813 Darwin/*)
10814 enable_toolbox_glue="yes";;
10816 enable_toolbox_glue="no";;
10817 esac
10819 case "$enable_toolbox_glue" in
10820 yes)
10821 extra_machdep_objs="Python/mactoolboxglue.o"
10822 extra_undefs="-u _PyMac_Error"
10824 cat >>confdefs.h <<\_ACEOF
10825 #define USE_TOOLBOX_OBJECT_GLUE 1
10826 _ACEOF
10830 extra_machdep_objs=""
10831 extra_undefs=""
10833 esac
10834 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10835 echo "${ECHO_T}$enable_toolbox_glue" >&6
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin/[01567]\..*)
10840 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10842 Darwin/*)
10843 OTHER_LIBTOOL_OPT=""
10845 esac
10848 case $ac_sys_system/$ac_sys_release in
10849 Darwin/[01567]\..*)
10850 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10851 if test "${enable_universalsdk}"; then
10853 else
10854 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10856 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10857 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10858 Darwin/*)
10859 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10860 if test ${gcc_version} '<' 4.0
10861 then
10862 LIBTOOL_CRUFT="-lcc_dynamic"
10863 else
10864 LIBTOOL_CRUFT=""
10866 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10867 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10868 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10869 esac
10871 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10872 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10873 if test "$enable_framework"
10874 then
10875 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10876 # -F. is needed to allow linking to the framework while
10877 # in the build location.
10879 cat >>confdefs.h <<\_ACEOF
10880 #define WITH_NEXT_FRAMEWORK 1
10881 _ACEOF
10883 echo "$as_me:$LINENO: result: yes" >&5
10884 echo "${ECHO_T}yes" >&6
10885 else
10886 echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10890 echo "$as_me:$LINENO: checking for dyld" >&5
10891 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10892 case $ac_sys_system/$ac_sys_release in
10893 Darwin/*)
10895 cat >>confdefs.h <<\_ACEOF
10896 #define WITH_DYLD 1
10897 _ACEOF
10899 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10900 echo "${ECHO_T}always on for Darwin" >&6
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10906 esac
10908 # Set info about shared libraries.
10914 # SO is the extension of shared libraries `(including the dot!)
10915 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10916 echo "$as_me:$LINENO: checking SO" >&5
10917 echo $ECHO_N "checking SO... $ECHO_C" >&6
10918 if test -z "$SO"
10919 then
10920 case $ac_sys_system in
10921 hp*|HP*)
10922 case `uname -m` in
10923 ia64) SO=.so;;
10924 *) SO=.sl;;
10925 esac
10927 CYGWIN*) SO=.dll;;
10928 *) SO=.so;;
10929 esac
10930 else
10931 # this might also be a termcap variable, see #610332
10932 echo
10933 echo '====================================================================='
10934 echo '+ +'
10935 echo '+ WARNING: You have set SO in your environment. +'
10936 echo '+ Do you really mean to change the extension for shared libraries? +'
10937 echo '+ Continuing in 10 seconds to let you to ponder. +'
10938 echo '+ +'
10939 echo '====================================================================='
10940 sleep 10
10942 echo "$as_me:$LINENO: result: $SO" >&5
10943 echo "${ECHO_T}$SO" >&6
10945 cat >>confdefs.h <<_ACEOF
10946 #define SHLIB_EXT "$SO"
10947 _ACEOF
10949 # LDSHARED is the ld *command* used to create shared library
10950 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10951 # (Shared libraries in this instance are shared modules to be loaded into
10952 # Python, as opposed to building Python itself as a shared library.)
10953 echo "$as_me:$LINENO: checking LDSHARED" >&5
10954 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10955 if test -z "$LDSHARED"
10956 then
10957 case $ac_sys_system/$ac_sys_release in
10958 AIX*)
10959 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10960 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10962 BeOS*)
10963 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10964 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10966 IRIX/5*) LDSHARED="ld -shared";;
10967 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10968 SunOS/5*)
10969 if test "$GCC" = "yes"
10970 then LDSHARED='$(CC) -shared'
10971 else LDSHARED='$(CC) -G';
10972 fi ;;
10973 hp*|HP*) LDSHARED="ld -b";;
10974 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10975 Darwin/1.3*)
10976 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10981 else
10982 # No framework. Ignore undefined symbols, assuming they come from Python
10983 LDSHARED="$LDSHARED -undefined suppress"
10984 fi ;;
10985 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10986 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10987 if test "$enable_framework" ; then
10988 # Link against the framework. All externals should be defined.
10989 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10990 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10991 else
10992 # No framework, use the Python app as bundle-loader
10993 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10994 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10995 fi ;;
10996 Darwin/*)
10997 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10998 # This allows an extension to be used in any Python
10999 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11000 if test ${cur_target} '>' 10.2; then
11001 cur_target=10.3
11003 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11004 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11005 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11006 then
11007 if test "${enable_universalsdk}"; then
11008 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11010 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11011 BLDSHARED="$LDSHARED"
11012 else
11013 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11014 if test "$enable_framework" ; then
11015 # Link against the framework. All externals should be defined.
11016 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11017 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11018 else
11019 # No framework, use the Python app as bundle-loader
11020 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11021 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11025 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11026 BSD/OS*/4*) LDSHARED="gcc -shared";;
11027 FreeBSD*)
11028 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11029 then
11030 LDSHARED="$CC -shared ${LDFLAGS}"
11031 else
11032 LDSHARED="ld -Bshareable ${LDFLAGS}"
11033 fi;;
11034 OpenBSD*)
11035 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11036 then
11037 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11038 else
11039 case `uname -r` in
11040 [01].* | 2.[0-7] | 2.[0-7].*)
11041 LDSHARED="ld -Bshareable ${LDFLAGS}"
11044 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11046 esac
11047 fi;;
11048 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11049 OpenUNIX*|UnixWare*)
11050 if test "$GCC" = "yes"
11051 then LDSHARED='$(CC) -shared'
11052 else LDSHARED='$(CC) -G'
11053 fi;;
11054 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11055 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11056 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11057 atheos*) LDSHARED="gcc -shared";;
11058 *) LDSHARED="ld";;
11059 esac
11061 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11062 echo "${ECHO_T}$LDSHARED" >&6
11063 BLDSHARED=${BLDSHARED-$LDSHARED}
11064 # CCSHARED are the C *flags* used to create objects to go into a shared
11065 # library (module) -- this is only needed for a few systems
11066 echo "$as_me:$LINENO: checking CCSHARED" >&5
11067 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11068 if test -z "$CCSHARED"
11069 then
11070 case $ac_sys_system/$ac_sys_release in
11071 SunOS*) if test "$GCC" = yes;
11072 then CCSHARED="-fPIC";
11073 else CCSHARED="-xcode=pic32";
11074 fi;;
11075 hp*|HP*) if test "$GCC" = yes;
11076 then CCSHARED="-fPIC";
11077 else CCSHARED="+z";
11078 fi;;
11079 Linux*|GNU*) CCSHARED="-fPIC";;
11080 BSD/OS*/4*) CCSHARED="-fpic";;
11081 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11082 OpenUNIX*|UnixWare*)
11083 if test "$GCC" = "yes"
11084 then CCSHARED="-fPIC"
11085 else CCSHARED="-KPIC"
11086 fi;;
11087 SCO_SV*)
11088 if test "$GCC" = "yes"
11089 then CCSHARED="-fPIC"
11090 else CCSHARED="-Kpic -belf"
11091 fi;;
11092 Monterey*) CCSHARED="-G";;
11093 IRIX*/6*) case $CC in
11094 *gcc*) CCSHARED="-shared";;
11095 *) CCSHARED="";;
11096 esac;;
11097 atheos*) CCSHARED="-fPIC";;
11098 esac
11100 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11101 echo "${ECHO_T}$CCSHARED" >&6
11102 # LINKFORSHARED are the flags passed to the $(CC) command that links
11103 # the python executable -- this is only needed for a few systems
11104 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11105 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11106 if test -z "$LINKFORSHARED"
11107 then
11108 case $ac_sys_system/$ac_sys_release in
11109 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11110 hp*|HP*)
11111 LINKFORSHARED="-Wl,-E -Wl,+s";;
11112 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11113 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11114 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11115 # -u libsys_s pulls in all symbols in libsys
11116 Darwin/*)
11117 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11118 # which is
11119 # not used by the core itself but which needs to be in the core so
11120 # that dynamically loaded extension modules have access to it.
11121 # -prebind is no longer used, because it actually seems to give a
11122 # slowdown in stead of a speedup, maybe due to the large number of
11123 # dynamic loads Python does.
11125 LINKFORSHARED="$extra_undefs"
11126 if test "$enable_framework"
11127 then
11128 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11130 LINKFORSHARED="$LINKFORSHARED";;
11131 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11132 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11133 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11134 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11135 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11136 then
11137 LINKFORSHARED="-Wl,--export-dynamic"
11138 fi;;
11139 SunOS/5*) case $CC in
11140 *gcc*)
11141 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11142 then
11143 LINKFORSHARED="-Xlinker --export-dynamic"
11144 fi;;
11145 esac;;
11146 CYGWIN*)
11147 if test $enable_shared = "no"
11148 then
11149 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11150 fi;;
11151 esac
11153 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11154 echo "${ECHO_T}$LINKFORSHARED" >&6
11157 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11158 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11159 if test ! "$LIBRARY" = "$LDLIBRARY"
11160 then
11161 case $ac_sys_system in
11162 CYGWIN*)
11163 # Cygwin needs CCSHARED when building extension DLLs
11164 # but not when building the interpreter DLL.
11165 CFLAGSFORSHARED='';;
11167 CFLAGSFORSHARED='$(CCSHARED)'
11168 esac
11170 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11171 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11173 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11174 # library (with --enable-shared).
11175 # For platforms on which shared libraries are not allowed to have unresolved
11176 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11177 # if it is not required, since it creates a dependency of the shared library
11178 # to LIBS. This, in turn, means that applications linking the shared libpython
11179 # don't need to link LIBS explicitly. The default should be only changed
11180 # on systems where this approach causes problems.
11182 echo "$as_me:$LINENO: checking SHLIBS" >&5
11183 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11184 case "$ac_sys_system" in
11186 SHLIBS='$(LIBS)';;
11187 esac
11188 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11189 echo "${ECHO_T}$SHLIBS" >&6
11192 # checks for libraries
11194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldl $LIBS"
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char dlopen ();
11216 main ()
11218 dlopen ();
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_dl_dlopen=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_cv_lib_dl_dlopen=no
11252 rm -f conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11258 if test $ac_cv_lib_dl_dlopen = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_LIBDL 1
11261 _ACEOF
11263 LIBS="-ldl $LIBS"
11266 # Dynamic linking for SunOS/Solaris and SYSV
11268 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldld $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any gcc2 internal prototype to avoid an error. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11288 char shl_load ();
11290 main ()
11292 shl_load ();
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_cv_lib_dld_shl_load=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_cv_lib_dld_shl_load=no
11326 rm -f conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_LIBDLD 1
11335 _ACEOF
11337 LIBS="-ldld $LIBS"
11340 # Dynamic linking for HP-UX
11342 # only check for sem_ini if thread support is requested
11343 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11344 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11345 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11346 if test "${ac_cv_search_sem_init+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_func_search_save_LIBS=$LIBS
11350 ac_cv_search_sem_init=no
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char sem_init ();
11366 main ()
11368 sem_init ();
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_search_sem_init="none required"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11401 rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 if test "$ac_cv_search_sem_init" = no; then
11404 for ac_lib in pthread rt posix4; do
11405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11419 char sem_init ();
11421 main ()
11423 sem_init ();
11425 return 0;
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest$ac_exeext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_search_sem_init="-l$ac_lib"
11451 break
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11457 rm -f conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459 done
11461 LIBS=$ac_func_search_save_LIBS
11463 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11464 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11465 if test "$ac_cv_search_sem_init" != no; then
11466 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11469 # 'Real Time' functions on Solaris
11470 # posix4 on Solaris 2.6
11471 # pthread (first!) on Linux
11474 # check if we need libintl for locale functions
11475 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11476 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11477 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-lintl $LIBS"
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 /* Override any gcc2 internal prototype to avoid an error. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 /* We use char because int might match the return type of a gcc2
11494 builtin and then its argument prototype would still apply. */
11495 char textdomain ();
11497 main ()
11499 textdomain ();
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_lib_intl_textdomain=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_cv_lib_intl_textdomain=no
11533 rm -f conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11537 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11538 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11539 if test $ac_cv_lib_intl_textdomain = yes; then
11541 cat >>confdefs.h <<\_ACEOF
11542 #define WITH_LIBINTL 1
11543 _ACEOF
11548 # checks for system dependent C++ extensions support
11549 case "$ac_sys_system" in
11550 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11551 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include "/usr/lpp/xlC/include/load.h"
11560 main ()
11562 loadAndInit("", 0, "")
11564 return 0;
11566 _ACEOF
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag"
11577 || test ! -s conftest.err'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; } &&
11583 { ac_try='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define AIX_GENUINE_CPLUSPLUS 1
11592 _ACEOF
11594 echo "$as_me:$LINENO: result: yes" >&5
11595 echo "${ECHO_T}yes" >&6
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11603 rm -f conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext;;
11605 *) ;;
11606 esac
11608 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11609 # BeOS' sockets are stashed in libnet.
11610 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11611 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11612 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lnsl $LIBS"
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 /* Override any gcc2 internal prototype to avoid an error. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630 char t_open ();
11632 main ()
11634 t_open ();
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_lib_nsl_t_open=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_lib_nsl_t_open=no
11668 rm -f conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11673 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11674 if test $ac_cv_lib_nsl_t_open = yes; then
11675 LIBS="-lnsl $LIBS"
11677 # SVR4
11678 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11679 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11680 if test "${ac_cv_lib_socket_socket+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-lsocket $LIBS $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char socket ();
11700 main ()
11702 socket ();
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_socket_socket=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_cv_lib_socket_socket=no
11736 rm -f conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11741 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11742 if test $ac_cv_lib_socket_socket = yes; then
11743 LIBS="-lsocket $LIBS"
11745 # SVR4 sockets
11747 case "$ac_sys_system" in
11748 BeOS*)
11749 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11750 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11751 if test "${ac_cv_lib_net_socket+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754 ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-lnet $LIBS $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any gcc2 internal prototype to avoid an error. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11769 char socket ();
11771 main ()
11773 socket ();
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_lib_net_socket=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_lib_net_socket=no
11807 rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11811 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11812 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11813 if test $ac_cv_lib_net_socket = yes; then
11814 LIBS="-lnet $LIBS"
11816 # BeOS
11818 esac
11820 echo "$as_me:$LINENO: checking for --with-libs" >&5
11821 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11823 # Check whether --with-libs or --without-libs was given.
11824 if test "${with_libs+set}" = set; then
11825 withval="$with_libs"
11827 echo "$as_me:$LINENO: result: $withval" >&5
11828 echo "${ECHO_T}$withval" >&6
11829 LIBS="$withval $LIBS"
11831 else
11832 echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11836 # Check for use of the system libffi library
11837 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11838 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11840 # Check whether --with-system_ffi or --without-system_ffi was given.
11841 if test "${with_system_ffi+set}" = set; then
11842 withval="$with_system_ffi"
11846 if test -z "$with_system_ffi"
11847 then with_system_ffi="no"
11849 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11850 echo "${ECHO_T}$with_system_ffi" >&6
11852 # Determine if signalmodule should be used.
11855 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11856 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11858 # Check whether --with-signal-module or --without-signal-module was given.
11859 if test "${with_signal_module+set}" = set; then
11860 withval="$with_signal_module"
11864 if test -z "$with_signal_module"
11865 then with_signal_module="yes"
11867 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11868 echo "${ECHO_T}$with_signal_module" >&6
11870 if test "${with_signal_module}" = "yes"; then
11871 USE_SIGNAL_MODULE=""
11872 SIGNAL_OBJS=""
11873 else
11874 USE_SIGNAL_MODULE="#"
11875 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11878 # This is used to generate Setup.config
11880 USE_THREAD_MODULE=""
11882 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11883 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11886 # Check whether --with-dec-threads or --without-dec-threads was given.
11887 if test "${with_dec_threads+set}" = set; then
11888 withval="$with_dec_threads"
11890 echo "$as_me:$LINENO: result: $withval" >&5
11891 echo "${ECHO_T}$withval" >&6
11892 LDLAST=-threads
11893 if test "${with_thread+set}" != set; then
11894 with_thread="$withval";
11896 else
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11901 # Templates for things AC_DEFINEd more than once.
11902 # For a single AC_DEFINE, no template is needed.
11910 echo "$as_me:$LINENO: checking for --with-threads" >&5
11911 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11913 # Check whether --with-threads or --without-threads was given.
11914 if test "${with_threads+set}" = set; then
11915 withval="$with_threads"
11919 # --with-thread is deprecated, but check for it anyway
11921 # Check whether --with-thread or --without-thread was given.
11922 if test "${with_thread+set}" = set; then
11923 withval="$with_thread"
11924 with_threads=$with_thread
11927 if test -z "$with_threads"
11928 then with_threads="yes"
11930 echo "$as_me:$LINENO: result: $with_threads" >&5
11931 echo "${ECHO_T}$with_threads" >&6
11934 if test "$with_threads" = "no"
11935 then
11936 USE_THREAD_MODULE="#"
11937 elif test "$ac_cv_pthread_is_default" = yes
11938 then
11939 cat >>confdefs.h <<\_ACEOF
11940 #define WITH_THREAD 1
11941 _ACEOF
11943 # Defining _REENTRANT on system with POSIX threads should not hurt.
11944 cat >>confdefs.h <<\_ACEOF
11945 #define _REENTRANT 1
11946 _ACEOF
11948 posix_threads=yes
11949 THREADOBJ="Python/thread.o"
11950 elif test "$ac_cv_kpthread" = "yes"
11951 then
11952 CC="$CC -Kpthread"
11953 if test "$ac_cv_cxx_thread" = "yes"; then
11954 CXX="$CXX -Kpthread"
11956 cat >>confdefs.h <<\_ACEOF
11957 #define WITH_THREAD 1
11958 _ACEOF
11960 posix_threads=yes
11961 THREADOBJ="Python/thread.o"
11962 elif test "$ac_cv_kthread" = "yes"
11963 then
11964 CC="$CC -Kthread"
11965 if test "$ac_cv_cxx_thread" = "yes"; then
11966 CXX="$CXX -Kthread"
11968 cat >>confdefs.h <<\_ACEOF
11969 #define WITH_THREAD 1
11970 _ACEOF
11972 posix_threads=yes
11973 THREADOBJ="Python/thread.o"
11974 elif test "$ac_cv_pthread" = "yes"
11975 then
11976 CC="$CC -pthread"
11977 if test "$ac_cv_cxx_thread" = "yes"; then
11978 CXX="$CXX -pthread"
11980 cat >>confdefs.h <<\_ACEOF
11981 #define WITH_THREAD 1
11982 _ACEOF
11984 posix_threads=yes
11985 THREADOBJ="Python/thread.o"
11986 else
11987 if test ! -z "$with_threads" -a -d "$with_threads"
11988 then LDFLAGS="$LDFLAGS -L$with_threads"
11990 if test ! -z "$withval" -a -d "$withval"
11991 then LDFLAGS="$LDFLAGS -L$withval"
11994 # According to the POSIX spec, a pthreads implementation must
11995 # define _POSIX_THREADS in unistd.h. Some apparently don't
11996 # (e.g. gnu pth with pthread emulation)
11997 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11998 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #include <unistd.h>
12007 #ifdef _POSIX_THREADS
12009 #endif
12011 _ACEOF
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 $EGREP "yes" >/dev/null 2>&1; then
12014 unistd_defines_pthreads=yes
12015 else
12016 unistd_defines_pthreads=no
12018 rm -f conftest*
12020 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12021 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12023 cat >>confdefs.h <<\_ACEOF
12024 #define _REENTRANT 1
12025 _ACEOF
12027 if test "${ac_cv_header_cthreads_h+set}" = set; then
12028 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12029 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12030 if test "${ac_cv_header_cthreads_h+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12035 else
12036 # Is the header compilable?
12037 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12038 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 $ac_includes_default
12046 #include <cthreads.h>
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_header_compiler=no
12077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6
12081 # Is the header present?
12082 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12083 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <cthreads.h>
12091 _ACEOF
12092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } >/dev/null; then
12100 if test -s conftest.err; then
12101 ac_cpp_err=$ac_c_preproc_warn_flag
12102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12103 else
12104 ac_cpp_err=
12106 else
12107 ac_cpp_err=yes
12109 if test -z "$ac_cpp_err"; then
12110 ac_header_preproc=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_header_preproc=no
12117 rm -f conftest.err conftest.$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6
12121 # So? What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 yes:no: )
12124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc=yes
12130 no:yes:* )
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12144 cat <<\_ASBOX
12145 ## ------------------------------------------------ ##
12146 ## Report this to http://www.python.org/python-bugs ##
12147 ## ------------------------------------------------ ##
12148 _ASBOX
12150 sed "s/^/$as_me: WARNING: /" >&2
12152 esac
12153 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12154 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12155 if test "${ac_cv_header_cthreads_h+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 ac_cv_header_cthreads_h=$ac_header_preproc
12160 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12161 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12164 if test $ac_cv_header_cthreads_h = yes; then
12165 cat >>confdefs.h <<\_ACEOF
12166 #define WITH_THREAD 1
12167 _ACEOF
12169 cat >>confdefs.h <<\_ACEOF
12170 #define C_THREADS 1
12171 _ACEOF
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HURD_C_THREADS 1
12176 _ACEOF
12178 LIBS="$LIBS -lthreads"
12179 THREADOBJ="Python/thread.o"
12180 else
12182 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12183 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12184 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12189 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12190 else
12191 # Is the header compilable?
12192 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12193 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <mach/cthreads.h>
12202 _ACEOF
12203 rm -f conftest.$ac_objext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_header_compiler=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_header_compiler=no
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6
12236 # Is the header present?
12237 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12238 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <mach/cthreads.h>
12246 _ACEOF
12247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12258 else
12259 ac_cpp_err=
12261 else
12262 ac_cpp_err=yes
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12272 rm -f conftest.err conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6
12276 # So? What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12278 yes:no: )
12279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12283 ac_header_preproc=yes
12285 no:yes:* )
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12299 cat <<\_ASBOX
12300 ## ------------------------------------------------ ##
12301 ## Report this to http://www.python.org/python-bugs ##
12302 ## ------------------------------------------------ ##
12303 _ASBOX
12305 sed "s/^/$as_me: WARNING: /" >&2
12307 esac
12308 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12309 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12310 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12315 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12316 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12319 if test $ac_cv_header_mach_cthreads_h = yes; then
12320 cat >>confdefs.h <<\_ACEOF
12321 #define WITH_THREAD 1
12322 _ACEOF
12324 cat >>confdefs.h <<\_ACEOF
12325 #define C_THREADS 1
12326 _ACEOF
12329 cat >>confdefs.h <<\_ACEOF
12330 #define MACH_C_THREADS 1
12331 _ACEOF
12333 THREADOBJ="Python/thread.o"
12334 else
12336 echo "$as_me:$LINENO: checking for --with-pth" >&5
12337 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12339 # Check whether --with-pth or --without-pth was given.
12340 if test "${with_pth+set}" = set; then
12341 withval="$with_pth"
12342 echo "$as_me:$LINENO: result: $withval" >&5
12343 echo "${ECHO_T}$withval" >&6
12344 cat >>confdefs.h <<\_ACEOF
12345 #define WITH_THREAD 1
12346 _ACEOF
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAVE_PTH 1
12351 _ACEOF
12353 LIBS="-lpth $LIBS"
12354 THREADOBJ="Python/thread.o"
12355 else
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12359 # Just looking for pthread_create in libpthread is not enough:
12360 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12361 # So we really have to include pthread.h, and then link.
12362 _libs=$LIBS
12363 LIBS="$LIBS -lpthread"
12364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <pthread.h>
12374 void * start_routine (void *arg) { exit (0); }
12376 main ()
12379 pthread_create (NULL, NULL, start_routine, NULL)
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12407 echo "$as_me:$LINENO: result: yes" >&5
12408 echo "${ECHO_T}yes" >&6
12409 cat >>confdefs.h <<\_ACEOF
12410 #define WITH_THREAD 1
12411 _ACEOF
12413 posix_threads=yes
12414 THREADOBJ="Python/thread.o"
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12420 LIBS=$_libs
12421 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12422 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12423 if test "${ac_cv_func_pthread_detach+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12434 #define pthread_detach innocuous_pthread_detach
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char pthread_detach (); below.
12438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 <limits.h> exists even on freestanding compilers. */
12441 #ifdef __STDC__
12442 # include <limits.h>
12443 #else
12444 # include <assert.h>
12445 #endif
12447 #undef pthread_detach
12449 /* Override any gcc2 internal prototype to avoid an error. */
12450 #ifdef __cplusplus
12451 extern "C"
12453 #endif
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char pthread_detach ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12461 choke me
12462 #else
12463 char (*f) () = pthread_detach;
12464 #endif
12465 #ifdef __cplusplus
12467 #endif
12470 main ()
12472 return f != pthread_detach;
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func_pthread_detach=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 ac_cv_func_pthread_detach=no
12506 rm -f conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12510 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12511 if test $ac_cv_func_pthread_detach = yes; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define WITH_THREAD 1
12514 _ACEOF
12516 posix_threads=yes
12517 THREADOBJ="Python/thread.o"
12518 else
12520 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12521 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12522 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12528 else
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12531 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <atheos/threads.h>
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_compiler=no
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12576 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <atheos/threads.h>
12584 _ACEOF
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev/null; then
12593 if test -s conftest.err; then
12594 ac_cpp_err=$ac_c_preproc_warn_flag
12595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12596 else
12597 ac_cpp_err=
12599 else
12600 ac_cpp_err=yes
12602 if test -z "$ac_cpp_err"; then
12603 ac_header_preproc=yes
12604 else
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_header_preproc=no
12610 rm -f conftest.err conftest.$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12637 cat <<\_ASBOX
12638 ## ------------------------------------------------ ##
12639 ## Report this to http://www.python.org/python-bugs ##
12640 ## ------------------------------------------------ ##
12641 _ASBOX
12643 sed "s/^/$as_me: WARNING: /" >&2
12645 esac
12646 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12647 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12648 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 ac_cv_header_atheos_threads_h=$ac_header_preproc
12653 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12654 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12657 if test $ac_cv_header_atheos_threads_h = yes; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define WITH_THREAD 1
12660 _ACEOF
12663 cat >>confdefs.h <<\_ACEOF
12664 #define ATHEOS_THREADS 1
12665 _ACEOF
12667 THREADOBJ="Python/thread.o"
12668 else
12670 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12671 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12672 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12673 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12677 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12678 else
12679 # Is the header compilable?
12680 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12681 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <kernel/OS.h>
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_header_compiler=yes
12714 else
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_header_compiler=no
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 echo "${ECHO_T}$ac_header_compiler" >&6
12724 # Is the header present?
12725 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12726 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <kernel/OS.h>
12734 _ACEOF
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev/null; then
12743 if test -s conftest.err; then
12744 ac_cpp_err=$ac_c_preproc_warn_flag
12745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12746 else
12747 ac_cpp_err=
12749 else
12750 ac_cpp_err=yes
12752 if test -z "$ac_cpp_err"; then
12753 ac_header_preproc=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 ac_header_preproc=no
12760 rm -f conftest.err conftest.$ac_ext
12761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 echo "${ECHO_T}$ac_header_preproc" >&6
12764 # So? What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12766 yes:no: )
12767 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12768 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12770 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12771 ac_header_preproc=yes
12773 no:yes:* )
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12777 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12779 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12781 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12785 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12787 cat <<\_ASBOX
12788 ## ------------------------------------------------ ##
12789 ## Report this to http://www.python.org/python-bugs ##
12790 ## ------------------------------------------------ ##
12791 _ASBOX
12793 sed "s/^/$as_me: WARNING: /" >&2
12795 esac
12796 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12797 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 ac_cv_header_kernel_OS_h=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12807 if test $ac_cv_header_kernel_OS_h = yes; then
12808 cat >>confdefs.h <<\_ACEOF
12809 #define WITH_THREAD 1
12810 _ACEOF
12813 cat >>confdefs.h <<\_ACEOF
12814 #define BEOS_THREADS 1
12815 _ACEOF
12817 THREADOBJ="Python/thread.o"
12818 else
12820 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12821 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12822 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lpthreads $LIBS"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 /* Override any gcc2 internal prototype to avoid an error. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 /* We use char because int might match the return type of a gcc2
12839 builtin and then its argument prototype would still apply. */
12840 char pthread_create ();
12842 main ()
12844 pthread_create ();
12846 return 0;
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -z "$ac_c_werror_flag"
12859 || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_pthreads_pthread_create=yes
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_cv_lib_pthreads_pthread_create=no
12878 rm -f conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12884 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12885 cat >>confdefs.h <<\_ACEOF
12886 #define WITH_THREAD 1
12887 _ACEOF
12889 posix_threads=yes
12890 LIBS="$LIBS -lpthreads"
12891 THREADOBJ="Python/thread.o"
12892 else
12894 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12895 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12896 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lc_r $LIBS"
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12914 char pthread_create ();
12916 main ()
12918 pthread_create ();
12920 return 0;
12922 _ACEOF
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_c_r_pthread_create=yes
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_c_r_pthread_create=no
12952 rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12957 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12958 if test $ac_cv_lib_c_r_pthread_create = yes; then
12959 cat >>confdefs.h <<\_ACEOF
12960 #define WITH_THREAD 1
12961 _ACEOF
12963 posix_threads=yes
12964 LIBS="$LIBS -lc_r"
12965 THREADOBJ="Python/thread.o"
12966 else
12968 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12969 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12970 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-lpthread $LIBS"
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h. */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any gcc2 internal prototype to avoid an error. */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char __pthread_create_system ();
12990 main ()
12992 __pthread_create_system ();
12994 return 0;
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_pthread___pthread_create_system=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_cv_lib_pthread___pthread_create_system=no
13026 rm -f conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13031 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13032 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define WITH_THREAD 1
13035 _ACEOF
13037 posix_threads=yes
13038 LIBS="$LIBS -lpthread"
13039 THREADOBJ="Python/thread.o"
13040 else
13042 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13043 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13044 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lcma $LIBS"
13049 cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h. */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 /* Override any gcc2 internal prototype to avoid an error. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 /* We use char because int might match the return type of a gcc2
13061 builtin and then its argument prototype would still apply. */
13062 char pthread_create ();
13064 main ()
13066 pthread_create ();
13068 return 0;
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_cma_pthread_create=yes
13094 else
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_cv_lib_cma_pthread_create=no
13100 rm -f conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13104 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13105 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13106 if test $ac_cv_lib_cma_pthread_create = yes; then
13107 cat >>confdefs.h <<\_ACEOF
13108 #define WITH_THREAD 1
13109 _ACEOF
13111 posix_threads=yes
13112 LIBS="$LIBS -lcma"
13113 THREADOBJ="Python/thread.o"
13114 else
13116 USE_THREAD_MODULE="#"
13135 rm -f conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13145 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13146 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13147 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-lmpc $LIBS"
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any gcc2 internal prototype to avoid an error. */
13160 #ifdef __cplusplus
13161 extern "C"
13162 #endif
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165 char usconfig ();
13167 main ()
13169 usconfig ();
13171 return 0;
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_lib_mpc_usconfig=yes
13197 else
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ac_cv_lib_mpc_usconfig=no
13203 rm -f conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13208 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13209 if test $ac_cv_lib_mpc_usconfig = yes; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define WITH_THREAD 1
13212 _ACEOF
13214 LIBS="$LIBS -lmpc"
13215 THREADOBJ="Python/thread.o"
13216 USE_THREAD_MODULE=""
13220 if test "$posix_threads" != "yes"; then
13221 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13222 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13223 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lthread $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241 char thr_create ();
13243 main ()
13245 thr_create ();
13247 return 0;
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_thread_thr_create=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_lib_thread_thr_create=no
13279 rm -f conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13284 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13285 if test $ac_cv_lib_thread_thr_create = yes; then
13286 cat >>confdefs.h <<\_ACEOF
13287 #define WITH_THREAD 1
13288 _ACEOF
13290 LIBS="$LIBS -lthread"
13291 THREADOBJ="Python/thread.o"
13292 USE_THREAD_MODULE=""
13297 if test "$USE_THREAD_MODULE" != "#"
13298 then
13299 # If the above checks didn't disable threads, (at least) OSF1
13300 # needs this '-threads' argument during linking.
13301 case $ac_sys_system in
13302 OSF1) LDLAST=-threads;;
13303 esac
13307 if test "$posix_threads" = "yes"; then
13308 if test "$unistd_defines_pthreads" = "no"; then
13310 cat >>confdefs.h <<\_ACEOF
13311 #define _POSIX_THREADS 1
13312 _ACEOF
13316 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13317 case $ac_sys_system/$ac_sys_release in
13318 SunOS/5.6)
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_PTHREAD_DESTRUCTOR 1
13321 _ACEOF
13324 SunOS/5.8)
13325 cat >>confdefs.h <<\_ACEOF
13326 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13327 _ACEOF
13330 esac
13332 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13333 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13334 if test "${ac_cv_pthread_system_supported+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 if test "$cross_compiling" = yes; then
13338 ac_cv_pthread_system_supported=no
13339 else
13340 cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h. */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <pthread.h>
13347 void *foo(void *parm) {
13348 return NULL;
13350 main() {
13351 pthread_attr_t attr;
13352 pthread_t id;
13353 if (pthread_attr_init(&attr)) exit(-1);
13354 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13355 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13356 exit(0);
13358 _ACEOF
13359 rm -f conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_pthread_system_supported=yes
13371 else
13372 echo "$as_me: program exited with status $ac_status" >&5
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 ( exit $ac_status )
13377 ac_cv_pthread_system_supported=no
13379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13385 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13386 if test "$ac_cv_pthread_system_supported" = "yes"; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13390 _ACEOF
13394 for ac_func in pthread_sigmask
13396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13397 echo "$as_me:$LINENO: checking for $ac_func" >&5
13398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_var+set}\" = set"; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13410 #define $ac_func innocuous_$ac_func
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char $ac_func (); below.
13414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 <limits.h> exists even on freestanding compilers. */
13417 #ifdef __STDC__
13418 # include <limits.h>
13419 #else
13420 # include <assert.h>
13421 #endif
13423 #undef $ac_func
13425 /* Override any gcc2 internal prototype to avoid an error. */
13426 #ifdef __cplusplus
13427 extern "C"
13429 #endif
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13432 char $ac_func ();
13433 /* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13437 choke me
13438 #else
13439 char (*f) () = $ac_func;
13440 #endif
13441 #ifdef __cplusplus
13443 #endif
13446 main ()
13448 return f != $ac_func;
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_var=yes"
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 eval "$as_ac_var=no"
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13487 if test `eval echo '${'$as_ac_var'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13490 _ACEOF
13491 case $ac_sys_system in
13492 CYGWIN*)
13494 cat >>confdefs.h <<\_ACEOF
13495 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13496 _ACEOF
13499 esac
13501 done
13506 # Check for enable-ipv6
13509 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13510 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13512 if test "${enable_ipv6+set}" = set; then
13513 enableval="$enable_ipv6"
13514 case "$enableval" in
13516 echo "$as_me:$LINENO: result: no" >&5
13517 echo "${ECHO_T}no" >&6
13518 ipv6=no
13520 *) echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6
13522 cat >>confdefs.h <<\_ACEOF
13523 #define ENABLE_IPV6 1
13524 _ACEOF
13526 ipv6=yes
13528 esac
13529 else
13531 if test "$cross_compiling" = yes; then
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534 ipv6=no
13536 else
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 /* AF_INET6 available check */
13544 #include <sys/types.h>
13545 #include <sys/socket.h>
13546 main()
13548 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13549 exit(1);
13550 else
13551 exit(0);
13554 _ACEOF
13555 rm -f conftest$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6
13568 ipv6=yes
13569 else
13570 echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ( exit $ac_status )
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13577 ipv6=no
13579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13584 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <netinet/in.h>
13594 main ()
13596 struct sockaddr_in6 x;
13597 x.sin6_scope_id;
13599 return 0;
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6
13626 ipv6=yes
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6
13633 ipv6=no
13635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 if test "$ipv6" = "yes"; then
13639 cat >>confdefs.h <<\_ACEOF
13640 #define ENABLE_IPV6 1
13641 _ACEOF
13647 ipv6type=unknown
13648 ipv6lib=none
13649 ipv6trylibc=no
13651 if test "$ipv6" = "yes"; then
13652 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13653 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13654 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13656 case $i in
13657 inria)
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 #include <netinet/in.h>
13666 #ifdef IPV6_INRIA_VERSION
13668 #endif
13669 _ACEOF
13670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13671 $EGREP "yes" >/dev/null 2>&1; then
13672 ipv6type=$i
13674 rm -f conftest*
13677 kame)
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 #include <netinet/in.h>
13686 #ifdef __KAME__
13688 #endif
13689 _ACEOF
13690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691 $EGREP "yes" >/dev/null 2>&1; then
13692 ipv6type=$i;
13693 ipv6lib=inet6
13694 ipv6libdir=/usr/local/v6/lib
13695 ipv6trylibc=yes
13697 rm -f conftest*
13700 linux-glibc)
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h. */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 #include <features.h>
13709 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13711 #endif
13712 _ACEOF
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "yes" >/dev/null 2>&1; then
13715 ipv6type=$i;
13716 ipv6trylibc=yes
13718 rm -f conftest*
13721 linux-inet6)
13722 if test -d /usr/inet6; then
13723 ipv6type=$i
13724 ipv6lib=inet6
13725 ipv6libdir=/usr/inet6/lib
13726 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13729 solaris)
13730 if test -f /etc/netconfig; then
13731 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13732 ipv6type=$i
13733 ipv6trylibc=yes
13737 toshiba)
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 #include <sys/param.h>
13746 #ifdef _TOSHIBA_INET6
13748 #endif
13749 _ACEOF
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "yes" >/dev/null 2>&1; then
13752 ipv6type=$i;
13753 ipv6lib=inet6;
13754 ipv6libdir=/usr/local/v6/lib
13756 rm -f conftest*
13759 v6d)
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 #include </usr/local/v6/include/sys/v6config.h>
13768 #ifdef __V6D__
13770 #endif
13771 _ACEOF
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "yes" >/dev/null 2>&1; then
13774 ipv6type=$i;
13775 ipv6lib=v6;
13776 ipv6libdir=/usr/local/v6/lib;
13777 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13779 rm -f conftest*
13782 zeta)
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <sys/param.h>
13791 #ifdef _ZETA_MINAMI_INET6
13793 #endif
13794 _ACEOF
13795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13796 $EGREP "yes" >/dev/null 2>&1; then
13797 ipv6type=$i;
13798 ipv6lib=inet6;
13799 ipv6libdir=/usr/local/v6/lib
13801 rm -f conftest*
13804 esac
13805 if test "$ipv6type" != "unknown"; then
13806 break
13808 done
13809 echo "$as_me:$LINENO: result: $ipv6type" >&5
13810 echo "${ECHO_T}$ipv6type" >&6
13813 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13814 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13815 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13816 echo "using lib$ipv6lib"
13817 else
13818 if test $ipv6trylibc = "yes"; then
13819 echo "using libc"
13820 else
13821 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13822 echo "You need to fetch lib$ipv6lib.a from appropriate"
13823 echo 'ipv6 kit and compile beforehand.'
13824 exit 1
13829 # Check for --with-doc-strings
13830 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13831 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13833 # Check whether --with-doc-strings or --without-doc-strings was given.
13834 if test "${with_doc_strings+set}" = set; then
13835 withval="$with_doc_strings"
13839 if test -z "$with_doc_strings"
13840 then with_doc_strings="yes"
13842 if test "$with_doc_strings" != "no"
13843 then
13845 cat >>confdefs.h <<\_ACEOF
13846 #define WITH_DOC_STRINGS 1
13847 _ACEOF
13850 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13851 echo "${ECHO_T}$with_doc_strings" >&6
13853 # Check for Python-specific malloc support
13854 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13855 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13857 # Check whether --with-tsc or --without-tsc was given.
13858 if test "${with_tsc+set}" = set; then
13859 withval="$with_tsc"
13861 if test "$withval" != no
13862 then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define WITH_TSC 1
13866 _ACEOF
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13873 else
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # Check for Python-specific malloc support
13879 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13880 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13882 # Check whether --with-pymalloc or --without-pymalloc was given.
13883 if test "${with_pymalloc+set}" = set; then
13884 withval="$with_pymalloc"
13888 if test -z "$with_pymalloc"
13889 then with_pymalloc="yes"
13891 if test "$with_pymalloc" != "no"
13892 then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define WITH_PYMALLOC 1
13896 _ACEOF
13899 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13900 echo "${ECHO_T}$with_pymalloc" >&6
13902 # Check for --with-wctype-functions
13903 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13904 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13906 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13907 if test "${with_wctype_functions+set}" = set; then
13908 withval="$with_wctype_functions"
13910 if test "$withval" != no
13911 then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define WANT_WCTYPE_FUNCTIONS 1
13915 _ACEOF
13917 echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6
13919 else echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6
13922 else
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13927 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13929 DLINCLDIR=.
13931 # the dlopen() function means we might want to use dynload_shlib.o. some
13932 # platforms, such as AIX, have dlopen(), but don't want to use it.
13934 for ac_func in dlopen
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13957 #ifdef __STDC__
13958 # include <limits.h>
13959 #else
13960 # include <assert.h>
13961 #endif
13963 #undef $ac_func
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 #ifdef __cplusplus
13967 extern "C"
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char $ac_func ();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13977 choke me
13978 #else
13979 char (*f) () = $ac_func;
13980 #endif
13981 #ifdef __cplusplus
13983 #endif
13986 main ()
13988 return f != $ac_func;
13990 return 0;
13992 _ACEOF
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 eval "$as_ac_var=no"
14022 rm -f conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14027 if test `eval echo '${'$as_ac_var'}'` = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14030 _ACEOF
14033 done
14036 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14037 # loading of modules.
14039 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14040 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14041 if test -z "$DYNLOADFILE"
14042 then
14043 case $ac_sys_system/$ac_sys_release in
14044 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14045 if test "$ac_cv_func_dlopen" = yes
14046 then DYNLOADFILE="dynload_shlib.o"
14047 else DYNLOADFILE="dynload_aix.o"
14050 BeOS*) DYNLOADFILE="dynload_beos.o";;
14051 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14052 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14053 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14054 atheos*) DYNLOADFILE="dynload_atheos.o";;
14056 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14057 # out any dynamic loading
14058 if test "$ac_cv_func_dlopen" = yes
14059 then DYNLOADFILE="dynload_shlib.o"
14060 else DYNLOADFILE="dynload_stub.o"
14063 esac
14065 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14066 echo "${ECHO_T}$DYNLOADFILE" >&6
14067 if test "$DYNLOADFILE" != "dynload_stub.o"
14068 then
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_DYNAMIC_LOADING 1
14072 _ACEOF
14076 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14079 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14080 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14081 if test -z "$MACHDEP_OBJS"
14082 then
14083 MACHDEP_OBJS=$extra_machdep_objs
14084 else
14085 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14087 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14088 echo "${ECHO_T}MACHDEP_OBJS" >&6
14090 # checks for library functions
14167 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14168 execv fork fpathconf ftime ftruncate \
14169 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14170 getpriority getpwent getspnam getspent getsid getwd \
14171 kill killpg lchown lstat mkfifo mknod mktime \
14172 mremap nice pathconf pause plock poll pthread_init \
14173 putenv readlink realpath \
14174 select setegid seteuid setgid \
14175 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14176 sigaction siginterrupt sigrelse strftime \
14177 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14178 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14194 #define $ac_func innocuous_$ac_func
14196 /* System header to define __stub macros and hopefully few prototypes,
14197 which can conflict with char $ac_func (); below.
14198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199 <limits.h> exists even on freestanding compilers. */
14201 #ifdef __STDC__
14202 # include <limits.h>
14203 #else
14204 # include <assert.h>
14205 #endif
14207 #undef $ac_func
14209 /* Override any gcc2 internal prototype to avoid an error. */
14210 #ifdef __cplusplus
14211 extern "C"
14213 #endif
14214 /* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14216 char $ac_func ();
14217 /* The GNU C library defines this for functions which it implements
14218 to always fail with ENOSYS. Some functions are actually named
14219 something starting with __ and the normal name is an alias. */
14220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14221 choke me
14222 #else
14223 char (*f) () = $ac_func;
14224 #endif
14225 #ifdef __cplusplus
14227 #endif
14230 main ()
14232 return f != $ac_func;
14234 return 0;
14236 _ACEOF
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14239 (eval $ac_link) 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try='test -s conftest$ac_exeext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 eval "$as_ac_var=yes"
14260 else
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 eval "$as_ac_var=no"
14266 rm -f conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14271 if test `eval echo '${'$as_ac_var'}'` = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14274 _ACEOF
14277 done
14280 # For some functions, having a definition is not sufficient, since
14281 # we want to take their address.
14282 echo "$as_me:$LINENO: checking for chroot" >&5
14283 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <unistd.h>
14292 main ()
14294 void *x=chroot
14296 return 0;
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14322 cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_CHROOT 1
14324 _ACEOF
14326 echo "$as_me:$LINENO: result: yes" >&5
14327 echo "${ECHO_T}yes" >&6
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 echo "$as_me:$LINENO: result: no" >&5
14333 echo "${ECHO_T}no" >&6
14336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14337 echo "$as_me:$LINENO: checking for link" >&5
14338 echo $ECHO_N "checking for link... $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <unistd.h>
14347 main ()
14349 void *x=link
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14377 cat >>confdefs.h <<\_ACEOF
14378 #define HAVE_LINK 1
14379 _ACEOF
14381 echo "$as_me:$LINENO: result: yes" >&5
14382 echo "${ECHO_T}yes" >&6
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6
14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 echo "$as_me:$LINENO: checking for symlink" >&5
14393 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <unistd.h>
14402 main ()
14404 void *x=symlink
14406 return 0;
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_SYMLINK 1
14434 _ACEOF
14436 echo "$as_me:$LINENO: result: yes" >&5
14437 echo "${ECHO_T}yes" >&6
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6
14446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447 echo "$as_me:$LINENO: checking for fchdir" >&5
14448 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <unistd.h>
14457 main ()
14459 void *x=fchdir
14461 return 0;
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 cat >>confdefs.h <<\_ACEOF
14488 #define HAVE_FCHDIR 1
14489 _ACEOF
14491 echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502 echo "$as_me:$LINENO: checking for fsync" >&5
14503 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <unistd.h>
14512 main ()
14514 void *x=fsync
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_FSYNC 1
14544 _ACEOF
14546 echo "$as_me:$LINENO: result: yes" >&5
14547 echo "${ECHO_T}yes" >&6
14548 else
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557 echo "$as_me:$LINENO: checking for fdatasync" >&5
14558 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <unistd.h>
14567 main ()
14569 void *x=fdatasync
14571 return 0;
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_FDATASYNC 1
14599 _ACEOF
14601 echo "$as_me:$LINENO: result: yes" >&5
14602 echo "${ECHO_T}yes" >&6
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6
14611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 # On some systems (eg. FreeBSD 5), we would find a definition of the
14614 # functions ctermid_r, setgroups in the library, but no prototype
14615 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14616 # address to avoid compiler warnings and potential miscompilations
14617 # because of the missing prototypes.
14619 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14620 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 #include "confdefs.h"
14629 #include <stdio.h>
14632 main ()
14634 void* p = ctermid_r
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_CTERMID_R 1
14664 _ACEOF
14666 echo "$as_me:$LINENO: result: yes" >&5
14667 echo "${ECHO_T}yes" >&6
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 echo "$as_me:$LINENO: result: no" >&5
14673 echo "${ECHO_T}no" >&6
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678 echo "$as_me:$LINENO: checking for flock" >&5
14679 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 #include "confdefs.h"
14688 #include <sys/file.h>
14691 main ()
14693 void* p = flock
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest.$ac_objext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_FLOCK 1
14723 _ACEOF
14725 echo "$as_me:$LINENO: result: yes" >&5
14726 echo "${ECHO_T}yes" >&6
14727 else
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: checking for getpagesize" >&5
14738 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 #include "confdefs.h"
14747 #include <unistd.h>
14750 main ()
14752 void* p = getpagesize
14754 return 0;
14756 _ACEOF
14757 rm -f conftest.$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>conftest.er1
14760 ac_status=$?
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_GETPAGESIZE 1
14782 _ACEOF
14784 echo "$as_me:$LINENO: result: yes" >&5
14785 echo "${ECHO_T}yes" >&6
14786 else
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 echo "$as_me:$LINENO: result: no" >&5
14791 echo "${ECHO_T}no" >&6
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 for ac_prog in true
14798 # Extract the first word of "$ac_prog", so it can be a program name with args.
14799 set dummy $ac_prog; ac_word=$2
14800 echo "$as_me:$LINENO: checking for $ac_word" >&5
14801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14802 if test "${ac_cv_prog_TRUE+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 if test -n "$TRUE"; then
14806 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14807 else
14808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_TRUE="$ac_prog"
14816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14817 break 2
14819 done
14820 done
14824 TRUE=$ac_cv_prog_TRUE
14825 if test -n "$TRUE"; then
14826 echo "$as_me:$LINENO: result: $TRUE" >&5
14827 echo "${ECHO_T}$TRUE" >&6
14828 else
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14833 test -n "$TRUE" && break
14834 done
14835 test -n "$TRUE" || TRUE="/bin/true"
14838 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14839 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14840 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 ac_check_lib_save_LIBS=$LIBS
14844 LIBS="-lc $LIBS"
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any gcc2 internal prototype to avoid an error. */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14858 char inet_aton ();
14860 main ()
14862 inet_aton ();
14864 return 0;
14866 _ACEOF
14867 rm -f conftest.$ac_objext conftest$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_lib_c_inet_aton=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_lib_c_inet_aton=no
14896 rm -f conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14898 LIBS=$ac_check_lib_save_LIBS
14900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14901 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14902 if test $ac_cv_lib_c_inet_aton = yes; then
14903 $ac_cv_prog_TRUE
14904 else
14906 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14907 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14908 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 ac_check_lib_save_LIBS=$LIBS
14912 LIBS="-lresolv $LIBS"
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 #ifdef __cplusplus
14922 extern "C"
14923 #endif
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char inet_aton ();
14928 main ()
14930 inet_aton ();
14932 return 0;
14934 _ACEOF
14935 rm -f conftest.$ac_objext conftest$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -z "$ac_c_werror_flag"
14945 || test ! -s conftest.err'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try='test -s conftest$ac_exeext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_cv_lib_resolv_inet_aton=yes
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 ac_cv_lib_resolv_inet_aton=no
14964 rm -f conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14968 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14969 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14970 if test $ac_cv_lib_resolv_inet_aton = yes; then
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_LIBRESOLV 1
14973 _ACEOF
14975 LIBS="-lresolv $LIBS"
14983 case $ac_sys_system/$ac_sys_release in
14984 Darwin/*)
14985 _CUR_CFLAGS="${CFLAGS}"
14986 _CUR_LDFLAGS="${LDFLAGS}"
14987 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
14988 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
14990 esac
14992 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
14993 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
14994 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 ac_check_lib_save_LIBS=$LIBS
14998 LIBS="-lz $LIBS"
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15006 /* Override any gcc2 internal prototype to avoid an error. */
15007 #ifdef __cplusplus
15008 extern "C"
15009 #endif
15010 /* We use char because int might match the return type of a gcc2
15011 builtin and then its argument prototype would still apply. */
15012 char inflateCopy ();
15014 main ()
15016 inflateCopy ();
15018 return 0;
15020 _ACEOF
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -z "$ac_c_werror_flag"
15031 || test ! -s conftest.err'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_lib_z_inflateCopy=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_lib_z_inflateCopy=no
15050 rm -f conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$ac_check_lib_save_LIBS
15054 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15055 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15056 if test $ac_cv_lib_z_inflateCopy = yes; then
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_ZLIB_COPY 1
15060 _ACEOF
15065 case $ac_sys_system/$ac_sys_release in
15066 Darwin/*)
15067 CFLAGS="${_CUR_CFLAGS}"
15068 LDFLAGS="${_CUR_LDFLAGS}"
15070 esac
15072 echo "$as_me:$LINENO: checking for hstrerror" >&5
15073 echo $ECHO_N "checking for hstrerror... $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 <netdb.h>
15085 main ()
15087 void* p = hstrerror; hstrerror(0)
15089 return 0;
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15115 cat >>confdefs.h <<\_ACEOF
15116 #define HAVE_HSTRERROR 1
15117 _ACEOF
15119 echo "$as_me:$LINENO: result: yes" >&5
15120 echo "${ECHO_T}yes" >&6
15121 else
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 echo "$as_me:$LINENO: result: no" >&5
15126 echo "${ECHO_T}no" >&6
15129 rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15132 echo "$as_me:$LINENO: checking for inet_aton" >&5
15133 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h. */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15141 #include "confdefs.h"
15142 #include <sys/types.h>
15143 #include <sys/socket.h>
15144 #include <netinet/in.h>
15145 #include <arpa/inet.h>
15148 main ()
15150 void* p = inet_aton;inet_aton(0,0)
15152 return 0;
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15157 (eval $ac_link) 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15178 cat >>confdefs.h <<\_ACEOF
15179 #define HAVE_INET_ATON 1
15180 _ACEOF
15182 echo "$as_me:$LINENO: result: yes" >&5
15183 echo "${ECHO_T}yes" >&6
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 echo "$as_me:$LINENO: result: no" >&5
15189 echo "${ECHO_T}no" >&6
15192 rm -f conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15195 echo "$as_me:$LINENO: checking for inet_pton" >&5
15196 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15204 #include "confdefs.h"
15205 #include <sys/types.h>
15206 #include <sys/socket.h>
15207 #include <netinet/in.h>
15208 #include <arpa/inet.h>
15211 main ()
15213 void* p = inet_pton
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define HAVE_INET_PTON 1
15243 _ACEOF
15245 echo "$as_me:$LINENO: result: yes" >&5
15246 echo "${ECHO_T}yes" >&6
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15257 # On some systems, setgroups is in unistd.h, on others, in grp.h
15258 echo "$as_me:$LINENO: checking for setgroups" >&5
15259 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15267 #include "confdefs.h"
15268 #include <unistd.h>
15269 #ifdef HAVE_GRP_H
15270 #include <grp.h>
15271 #endif
15274 main ()
15276 void* p = setgroups
15278 return 0;
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15283 (eval $ac_compile) 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -z "$ac_c_werror_flag"
15291 || test ! -s conftest.err'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15304 cat >>confdefs.h <<\_ACEOF
15305 #define HAVE_SETGROUPS 1
15306 _ACEOF
15308 echo "$as_me:$LINENO: result: yes" >&5
15309 echo "${ECHO_T}yes" >&6
15310 else
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6
15318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15320 # check for openpty and forkpty
15323 for ac_func in openpty
15325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15346 #ifdef __STDC__
15347 # include <limits.h>
15348 #else
15349 # include <assert.h>
15350 #endif
15352 #undef $ac_func
15354 /* Override any gcc2 internal prototype to avoid an error. */
15355 #ifdef __cplusplus
15356 extern "C"
15358 #endif
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15361 char $ac_func ();
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15366 choke me
15367 #else
15368 char (*f) () = $ac_func;
15369 #endif
15370 #ifdef __cplusplus
15372 #endif
15375 main ()
15377 return f != $ac_func;
15379 return 0;
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 eval "$as_ac_var=yes"
15405 else
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 eval "$as_ac_var=no"
15411 rm -f conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h <<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15419 _ACEOF
15421 else
15422 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15423 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15424 if test "${ac_cv_lib_util_openpty+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 ac_check_lib_save_LIBS=$LIBS
15428 LIBS="-lutil $LIBS"
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15436 /* Override any gcc2 internal prototype to avoid an error. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442 char openpty ();
15444 main ()
15446 openpty ();
15448 return 0;
15450 _ACEOF
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_lib_util_openpty=yes
15474 else
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_cv_lib_util_openpty=no
15480 rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15485 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15486 if test $ac_cv_lib_util_openpty = yes; then
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_OPENPTY 1
15489 _ACEOF
15490 LIBS="$LIBS -lutil"
15491 else
15492 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15493 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15494 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-lbsd $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any gcc2 internal prototype to avoid an error. */
15507 #ifdef __cplusplus
15508 extern "C"
15509 #endif
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15512 char openpty ();
15514 main ()
15516 openpty ();
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15523 (eval $ac_link) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_lib_bsd_openpty=yes
15544 else
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_cv_lib_bsd_openpty=no
15550 rm -f conftest.err conftest.$ac_objext \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15555 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15556 if test $ac_cv_lib_bsd_openpty = yes; then
15557 cat >>confdefs.h <<\_ACEOF
15558 #define HAVE_OPENPTY 1
15559 _ACEOF
15560 LIBS="$LIBS -lbsd"
15568 done
15571 for ac_func in forkpty
15573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 echo "$as_me:$LINENO: checking for $ac_func" >&5
15575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587 #define $ac_func innocuous_$ac_func
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15594 #ifdef __STDC__
15595 # include <limits.h>
15596 #else
15597 # include <assert.h>
15598 #endif
15600 #undef $ac_func
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 #ifdef __cplusplus
15604 extern "C"
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 choke me
15615 #else
15616 char (*f) () = $ac_func;
15617 #endif
15618 #ifdef __cplusplus
15620 #endif
15623 main ()
15625 return f != $ac_func;
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest$ac_exeext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 eval "$as_ac_var=yes"
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 eval "$as_ac_var=no"
15659 rm -f conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15664 if test `eval echo '${'$as_ac_var'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15667 _ACEOF
15669 else
15670 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15671 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15672 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 ac_check_lib_save_LIBS=$LIBS
15676 LIBS="-lutil $LIBS"
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15684 /* Override any gcc2 internal prototype to avoid an error. */
15685 #ifdef __cplusplus
15686 extern "C"
15687 #endif
15688 /* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15690 char forkpty ();
15692 main ()
15694 forkpty ();
15696 return 0;
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag"
15709 || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_lib_util_forkpty=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_cv_lib_util_forkpty=no
15728 rm -f conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LIBS=$ac_check_lib_save_LIBS
15732 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15733 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15734 if test $ac_cv_lib_util_forkpty = yes; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_FORKPTY 1
15737 _ACEOF
15738 LIBS="$LIBS -lutil"
15739 else
15740 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15741 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15742 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745 ac_check_lib_save_LIBS=$LIBS
15746 LIBS="-lbsd $LIBS"
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15754 /* Override any gcc2 internal prototype to avoid an error. */
15755 #ifdef __cplusplus
15756 extern "C"
15757 #endif
15758 /* We use char because int might match the return type of a gcc2
15759 builtin and then its argument prototype would still apply. */
15760 char forkpty ();
15762 main ()
15764 forkpty ();
15766 return 0;
15768 _ACEOF
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_lib_bsd_forkpty=yes
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_cv_lib_bsd_forkpty=no
15798 rm -f conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800 LIBS=$ac_check_lib_save_LIBS
15802 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15803 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15804 if test $ac_cv_lib_bsd_forkpty = yes; then
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_FORKPTY 1
15807 _ACEOF
15808 LIBS="$LIBS -lbsd"
15816 done
15819 # check for long file support functions
15826 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15829 echo "$as_me:$LINENO: checking for $ac_func" >&5
15830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15831 if eval "test \"\${$as_ac_var+set}\" = set"; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15842 #define $ac_func innocuous_$ac_func
15844 /* System header to define __stub macros and hopefully few prototypes,
15845 which can conflict with char $ac_func (); below.
15846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847 <limits.h> exists even on freestanding compilers. */
15849 #ifdef __STDC__
15850 # include <limits.h>
15851 #else
15852 # include <assert.h>
15853 #endif
15855 #undef $ac_func
15857 /* Override any gcc2 internal prototype to avoid an error. */
15858 #ifdef __cplusplus
15859 extern "C"
15861 #endif
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15864 char $ac_func ();
15865 /* The GNU C library defines this for functions which it implements
15866 to always fail with ENOSYS. Some functions are actually named
15867 something starting with __ and the normal name is an alias. */
15868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15869 choke me
15870 #else
15871 char (*f) () = $ac_func;
15872 #endif
15873 #ifdef __cplusplus
15875 #endif
15878 main ()
15880 return f != $ac_func;
15882 return 0;
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest$ac_exeext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 eval "$as_ac_var=yes"
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 eval "$as_ac_var=no"
15914 rm -f conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15919 if test `eval echo '${'$as_ac_var'}'` = yes; then
15920 cat >>confdefs.h <<_ACEOF
15921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15922 _ACEOF
15925 done
15933 for ac_func in dup2 getcwd strdup strerror memmove
15935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15936 echo "$as_me:$LINENO: checking for $ac_func" >&5
15937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_var+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15949 #define $ac_func innocuous_$ac_func
15951 /* System header to define __stub macros and hopefully few prototypes,
15952 which can conflict with char $ac_func (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
15956 #ifdef __STDC__
15957 # include <limits.h>
15958 #else
15959 # include <assert.h>
15960 #endif
15962 #undef $ac_func
15964 /* Override any gcc2 internal prototype to avoid an error. */
15965 #ifdef __cplusplus
15966 extern "C"
15968 #endif
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15971 char $ac_func ();
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976 choke me
15977 #else
15978 char (*f) () = $ac_func;
15979 #endif
15980 #ifdef __cplusplus
15982 #endif
15985 main ()
15987 return f != $ac_func;
15989 return 0;
15991 _ACEOF
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 eval "$as_ac_var=yes"
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 eval "$as_ac_var=no"
16021 rm -f conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16026 if test `eval echo '${'$as_ac_var'}'` = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16029 _ACEOF
16031 else
16032 case $LIBOBJS in
16033 "$ac_func.$ac_objext" | \
16034 *" $ac_func.$ac_objext" | \
16035 "$ac_func.$ac_objext "* | \
16036 *" $ac_func.$ac_objext "* ) ;;
16037 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16038 esac
16041 done
16045 for ac_func in getpgrp
16047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048 echo "$as_me:$LINENO: checking for $ac_func" >&5
16049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16050 if eval "test \"\${$as_ac_var+set}\" = set"; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16061 #define $ac_func innocuous_$ac_func
16063 /* System header to define __stub macros and hopefully few prototypes,
16064 which can conflict with char $ac_func (); below.
16065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16066 <limits.h> exists even on freestanding compilers. */
16068 #ifdef __STDC__
16069 # include <limits.h>
16070 #else
16071 # include <assert.h>
16072 #endif
16074 #undef $ac_func
16076 /* Override any gcc2 internal prototype to avoid an error. */
16077 #ifdef __cplusplus
16078 extern "C"
16080 #endif
16081 /* We use char because int might match the return type of a gcc2
16082 builtin and then its argument prototype would still apply. */
16083 char $ac_func ();
16084 /* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16088 choke me
16089 #else
16090 char (*f) () = $ac_func;
16091 #endif
16092 #ifdef __cplusplus
16094 #endif
16097 main ()
16099 return f != $ac_func;
16101 return 0;
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16107 ac_status=$?
16108 grep -v '^ *+' conftest.er1 >conftest.err
16109 rm -f conftest.er1
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 eval "$as_ac_var=yes"
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 eval "$as_ac_var=no"
16133 rm -f conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16138 if test `eval echo '${'$as_ac_var'}'` = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16141 _ACEOF
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <unistd.h>
16150 main ()
16152 getpgrp(0);
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16180 cat >>confdefs.h <<\_ACEOF
16181 #define GETPGRP_HAVE_ARG 1
16182 _ACEOF
16185 else
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16193 done
16196 for ac_func in setpgrp
16198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 echo "$as_me:$LINENO: checking for $ac_func" >&5
16200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16201 if eval "test \"\${$as_ac_var+set}\" = set"; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16212 #define $ac_func innocuous_$ac_func
16214 /* System header to define __stub macros and hopefully few prototypes,
16215 which can conflict with char $ac_func (); below.
16216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217 <limits.h> exists even on freestanding compilers. */
16219 #ifdef __STDC__
16220 # include <limits.h>
16221 #else
16222 # include <assert.h>
16223 #endif
16225 #undef $ac_func
16227 /* Override any gcc2 internal prototype to avoid an error. */
16228 #ifdef __cplusplus
16229 extern "C"
16231 #endif
16232 /* We use char because int might match the return type of a gcc2
16233 builtin and then its argument prototype would still apply. */
16234 char $ac_func ();
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16239 choke me
16240 #else
16241 char (*f) () = $ac_func;
16242 #endif
16243 #ifdef __cplusplus
16245 #endif
16248 main ()
16250 return f != $ac_func;
16252 return 0;
16254 _ACEOF
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 eval "$as_ac_var=yes"
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 eval "$as_ac_var=no"
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16289 if test `eval echo '${'$as_ac_var'}'` = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16292 _ACEOF
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <unistd.h>
16301 main ()
16303 setpgrp(0,0);
16305 return 0;
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16331 cat >>confdefs.h <<\_ACEOF
16332 #define SETPGRP_HAVE_ARG 1
16333 _ACEOF
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16344 done
16347 for ac_func in gettimeofday
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16352 if eval "test \"\${$as_ac_var+set}\" = set"; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16370 #ifdef __STDC__
16371 # include <limits.h>
16372 #else
16373 # include <assert.h>
16374 #endif
16376 #undef $ac_func
16378 /* Override any gcc2 internal prototype to avoid an error. */
16379 #ifdef __cplusplus
16380 extern "C"
16382 #endif
16383 /* We use char because int might match the return type of a gcc2
16384 builtin and then its argument prototype would still apply. */
16385 char $ac_func ();
16386 /* The GNU C library defines this for functions which it implements
16387 to always fail with ENOSYS. Some functions are actually named
16388 something starting with __ and the normal name is an alias. */
16389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16390 choke me
16391 #else
16392 char (*f) () = $ac_func;
16393 #endif
16394 #ifdef __cplusplus
16396 #endif
16399 main ()
16401 return f != $ac_func;
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408 (eval $ac_link) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest$ac_exeext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 eval "$as_ac_var=yes"
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 eval "$as_ac_var=no"
16435 rm -f conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16440 if test `eval echo '${'$as_ac_var'}'` = yes; then
16441 cat >>confdefs.h <<_ACEOF
16442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16443 _ACEOF
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <sys/time.h>
16452 main ()
16454 gettimeofday((struct timeval*)0,(struct timezone*)0);
16456 return 0;
16458 _ACEOF
16459 rm -f conftest.$ac_objext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest.$ac_objext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16482 else
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16487 cat >>confdefs.h <<\_ACEOF
16488 #define GETTIMEOFDAY_NO_TZ 1
16489 _ACEOF
16493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 done
16499 echo "$as_me:$LINENO: checking for major" >&5
16500 echo $ECHO_N "checking for major... $ECHO_C" >&6
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 #if defined(MAJOR_IN_MKDEV)
16509 #include <sys/mkdev.h>
16510 #elif defined(MAJOR_IN_SYSMACROS)
16511 #include <sys/sysmacros.h>
16512 #else
16513 #include <sys/types.h>
16514 #endif
16517 main ()
16520 makedev(major(0),minor(0));
16523 return 0;
16525 _ACEOF
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16528 (eval $ac_link) 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag"
16536 || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE_DEVICE_MACROS 1
16552 _ACEOF
16554 echo "$as_me:$LINENO: result: yes" >&5
16555 echo "${ECHO_T}yes" >&6
16557 else
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16562 echo "$as_me:$LINENO: result: no" >&5
16563 echo "${ECHO_T}no" >&6
16566 rm -f conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16569 # On OSF/1 V5.1, getaddrinfo is available, but a define
16570 # for [no]getaddrinfo in netdb.h.
16571 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16572 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16580 #include <sys/types.h>
16581 #include <sys/socket.h>
16582 #include <netdb.h>
16583 #include <stdio.h>
16586 main ()
16589 getaddrinfo(NULL, NULL, NULL, NULL);
16592 return 0;
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16618 echo "$as_me:$LINENO: result: yes" >&5
16619 echo "${ECHO_T}yes" >&6
16620 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16621 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16622 if test "$cross_compiling" = yes; then
16623 echo "$as_me:$LINENO: result: buggy" >&5
16624 echo "${ECHO_T}buggy" >&6
16625 buggygetaddrinfo=yes
16626 else
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h. */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 #include <sys/types.h>
16635 #include <netdb.h>
16636 #include <string.h>
16637 #include <sys/socket.h>
16638 #include <netinet/in.h>
16640 main()
16642 int passive, gaierr, inet4 = 0, inet6 = 0;
16643 struct addrinfo hints, *ai, *aitop;
16644 char straddr[INET6_ADDRSTRLEN], strport[16];
16646 for (passive = 0; passive <= 1; passive++) {
16647 memset(&hints, 0, sizeof(hints));
16648 hints.ai_family = AF_UNSPEC;
16649 hints.ai_flags = passive ? AI_PASSIVE : 0;
16650 hints.ai_socktype = SOCK_STREAM;
16651 hints.ai_protocol = IPPROTO_TCP;
16652 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16653 (void)gai_strerror(gaierr);
16654 goto bad;
16656 for (ai = aitop; ai; ai = ai->ai_next) {
16657 if (ai->ai_addr == NULL ||
16658 ai->ai_addrlen == 0 ||
16659 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16660 straddr, sizeof(straddr), strport, sizeof(strport),
16661 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16662 goto bad;
16664 switch (ai->ai_family) {
16665 case AF_INET:
16666 if (strcmp(strport, "54321") != 0) {
16667 goto bad;
16669 if (passive) {
16670 if (strcmp(straddr, "0.0.0.0") != 0) {
16671 goto bad;
16673 } else {
16674 if (strcmp(straddr, "127.0.0.1") != 0) {
16675 goto bad;
16678 inet4++;
16679 break;
16680 case AF_INET6:
16681 if (strcmp(strport, "54321") != 0) {
16682 goto bad;
16684 if (passive) {
16685 if (strcmp(straddr, "::") != 0) {
16686 goto bad;
16688 } else {
16689 if (strcmp(straddr, "::1") != 0) {
16690 goto bad;
16693 inet6++;
16694 break;
16695 case AF_UNSPEC:
16696 goto bad;
16697 break;
16698 default:
16699 /* another family support? */
16700 break;
16705 if (!(inet4 == 0 || inet4 == 2))
16706 goto bad;
16707 if (!(inet6 == 0 || inet6 == 2))
16708 goto bad;
16710 if (aitop)
16711 freeaddrinfo(aitop);
16712 exit(0);
16714 bad:
16715 if (aitop)
16716 freeaddrinfo(aitop);
16717 exit(1);
16720 _ACEOF
16721 rm -f conftest$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723 (eval $ac_link) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && { ac_try='./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 echo "$as_me:$LINENO: result: good" >&5
16733 echo "${ECHO_T}good" >&6
16734 buggygetaddrinfo=no
16735 else
16736 echo "$as_me: program exited with status $ac_status" >&5
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ( exit $ac_status )
16741 echo "$as_me:$LINENO: result: buggy" >&5
16742 echo "${ECHO_T}buggy" >&6
16743 buggygetaddrinfo=yes
16745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16752 echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6
16754 buggygetaddrinfo=yes
16757 rm -f conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext conftest.$ac_ext
16760 if test "$buggygetaddrinfo" = "yes"; then
16761 if test "$ipv6" = "yes"; then
16762 echo 'Fatal: You must get working getaddrinfo() function.'
16763 echo ' or you can specify "--disable-ipv6"'.
16764 exit 1
16766 else
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_GETADDRINFO 1
16770 _ACEOF
16774 for ac_func in getnameinfo
16776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782 cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h. */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16797 #ifdef __STDC__
16798 # include <limits.h>
16799 #else
16800 # include <assert.h>
16801 #endif
16803 #undef $ac_func
16805 /* Override any gcc2 internal prototype to avoid an error. */
16806 #ifdef __cplusplus
16807 extern "C"
16809 #endif
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16812 char $ac_func ();
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16817 choke me
16818 #else
16819 char (*f) () = $ac_func;
16820 #endif
16821 #ifdef __cplusplus
16823 #endif
16826 main ()
16828 return f != $ac_func;
16830 return 0;
16832 _ACEOF
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835 (eval $ac_link) 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 eval "$as_ac_var=yes"
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 eval "$as_ac_var=no"
16862 rm -f conftest.err conftest.$ac_objext \
16863 conftest$ac_exeext conftest.$ac_ext
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16873 done
16876 # checks for structures
16877 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16878 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16879 if test "${ac_cv_header_time+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #include <sys/types.h>
16889 #include <sys/time.h>
16890 #include <time.h>
16893 main ()
16895 if ((struct tm *) 0)
16896 return 0;
16898 return 0;
16900 _ACEOF
16901 rm -f conftest.$ac_objext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_header_time=yes
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_cv_header_time=no
16930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16932 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16933 echo "${ECHO_T}$ac_cv_header_time" >&6
16934 if test $ac_cv_header_time = yes; then
16936 cat >>confdefs.h <<\_ACEOF
16937 #define TIME_WITH_SYS_TIME 1
16938 _ACEOF
16942 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16943 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16944 if test "${ac_cv_struct_tm+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <sys/types.h>
16954 #include <time.h>
16957 main ()
16959 struct tm *tp; tp->tm_sec;
16961 return 0;
16963 _ACEOF
16964 rm -f conftest.$ac_objext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_struct_tm=time.h
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_struct_tm=sys/time.h
16993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16996 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16997 if test $ac_cv_struct_tm = sys/time.h; then
16999 cat >>confdefs.h <<\_ACEOF
17000 #define TM_IN_SYS_TIME 1
17001 _ACEOF
17005 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17006 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17007 if test "${ac_cv_member_struct_tm_tm_zone+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 <sys/types.h>
17017 #include <$ac_cv_struct_tm>
17021 main ()
17023 static struct tm ac_aggr;
17024 if (ac_aggr.tm_zone)
17025 return 0;
17027 return 0;
17029 _ACEOF
17030 rm -f conftest.$ac_objext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag"
17040 || test ! -s conftest.err'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_member_struct_tm_tm_zone=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <sys/types.h>
17064 #include <$ac_cv_struct_tm>
17068 main ()
17070 static struct tm ac_aggr;
17071 if (sizeof ac_aggr.tm_zone)
17072 return 0;
17074 return 0;
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_member_struct_tm_tm_zone=yes
17100 else
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_member_struct_tm_tm_zone=no
17106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17111 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17112 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_STRUCT_TM_TM_ZONE 1
17116 _ACEOF
17121 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17123 cat >>confdefs.h <<\_ACEOF
17124 #define HAVE_TM_ZONE 1
17125 _ACEOF
17127 else
17128 echo "$as_me:$LINENO: checking for tzname" >&5
17129 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17130 if test "${ac_cv_var_tzname+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <time.h>
17140 #ifndef tzname /* For SGI. */
17141 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17142 #endif
17145 main ()
17147 atoi(*tzname);
17149 return 0;
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag"
17162 || test ! -s conftest.err'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_cv_var_tzname=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_cv_var_tzname=no
17181 rm -f conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17184 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17185 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17186 if test $ac_cv_var_tzname = yes; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_TZNAME 1
17190 _ACEOF
17195 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17196 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17197 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 $ac_includes_default
17208 main ()
17210 static struct stat ac_aggr;
17211 if (ac_aggr.st_rdev)
17212 return 0;
17214 return 0;
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_member_struct_stat_st_rdev=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 $ac_includes_default
17252 main ()
17254 static struct stat ac_aggr;
17255 if (sizeof ac_aggr.st_rdev)
17256 return 0;
17258 return 0;
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17263 (eval $ac_compile) 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest.$ac_objext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_member_struct_stat_st_rdev=yes
17284 else
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_cv_member_struct_stat_st_rdev=no
17290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17295 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17296 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define HAVE_STRUCT_STAT_ST_RDEV 1
17300 _ACEOF
17305 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17306 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17307 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310 cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 $ac_includes_default
17318 main ()
17320 static struct stat ac_aggr;
17321 if (ac_aggr.st_blksize)
17322 return 0;
17324 return 0;
17326 _ACEOF
17327 rm -f conftest.$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_member_struct_stat_st_blksize=yes
17350 else
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h. */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 $ac_includes_default
17362 main ()
17364 static struct stat ac_aggr;
17365 if (sizeof ac_aggr.st_blksize)
17366 return 0;
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17374 ac_status=$?
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 ac_cv_member_struct_stat_st_blksize=yes
17394 else
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 ac_cv_member_struct_stat_st_blksize=no
17400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17405 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17406 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17410 _ACEOF
17415 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17416 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17417 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 $ac_includes_default
17428 main ()
17430 static struct stat ac_aggr;
17431 if (ac_aggr.st_flags)
17432 return 0;
17434 return 0;
17436 _ACEOF
17437 rm -f conftest.$ac_objext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17439 (eval $ac_compile) 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag"
17447 || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try='test -s conftest.$ac_objext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_member_struct_stat_st_flags=yes
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 $ac_includes_default
17472 main ()
17474 static struct stat ac_aggr;
17475 if (sizeof ac_aggr.st_flags)
17476 return 0;
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_member_struct_stat_st_flags=yes
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_cv_member_struct_stat_st_flags=no
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17516 if test $ac_cv_member_struct_stat_st_flags = yes; then
17518 cat >>confdefs.h <<_ACEOF
17519 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17520 _ACEOF
17525 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17526 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17527 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 $ac_includes_default
17538 main ()
17540 static struct stat ac_aggr;
17541 if (ac_aggr.st_gen)
17542 return 0;
17544 return 0;
17546 _ACEOF
17547 rm -f conftest.$ac_objext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -z "$ac_c_werror_flag"
17557 || test ! -s conftest.err'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } &&
17563 { ac_try='test -s conftest.$ac_objext'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; }; then
17569 ac_cv_member_struct_stat_st_gen=yes
17570 else
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 $ac_includes_default
17582 main ()
17584 static struct stat ac_aggr;
17585 if (sizeof ac_aggr.st_gen)
17586 return 0;
17588 return 0;
17590 _ACEOF
17591 rm -f conftest.$ac_objext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593 (eval $ac_compile) 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag"
17601 || test ! -s conftest.err'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest.$ac_objext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_member_struct_stat_st_gen=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_cv_member_struct_stat_st_gen=no
17620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17624 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17626 if test $ac_cv_member_struct_stat_st_gen = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define HAVE_STRUCT_STAT_ST_GEN 1
17630 _ACEOF
17635 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17636 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17637 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17648 main ()
17650 static struct stat ac_aggr;
17651 if (ac_aggr.st_birthtime)
17652 return 0;
17654 return 0;
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659 (eval $ac_compile) 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_member_struct_stat_st_birthtime=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 $ac_includes_default
17692 main ()
17694 static struct stat ac_aggr;
17695 if (sizeof ac_aggr.st_birthtime)
17696 return 0;
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_member_struct_stat_st_birthtime=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_cv_member_struct_stat_st_birthtime=no
17730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17735 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17736 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17740 _ACEOF
17745 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17746 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17747 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17758 main ()
17760 static struct stat ac_aggr;
17761 if (ac_aggr.st_blocks)
17762 return 0;
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_member_struct_stat_st_blocks=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h. */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 $ac_includes_default
17802 main ()
17804 static struct stat ac_aggr;
17805 if (sizeof ac_aggr.st_blocks)
17806 return 0;
17808 return 0;
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag"
17821 || test ! -s conftest.err'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest.$ac_objext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_member_struct_stat_st_blocks=yes
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_cv_member_struct_stat_st_blocks=no
17840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17846 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17848 cat >>confdefs.h <<_ACEOF
17849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17850 _ACEOF
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_ST_BLOCKS 1
17855 _ACEOF
17857 else
17858 case $LIBOBJS in
17859 "fileblocks.$ac_objext" | \
17860 *" fileblocks.$ac_objext" | \
17861 "fileblocks.$ac_objext "* | \
17862 *" fileblocks.$ac_objext "* ) ;;
17863 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17864 esac
17870 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17871 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17872 if test "${ac_cv_header_time_altzone+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. */
17881 #include <time.h>
17883 main ()
17885 return altzone;
17887 return 0;
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892 (eval $ac_compile) 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag"
17900 || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest.$ac_objext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_header_time_altzone=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_header_time_altzone=no
17919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17922 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17923 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17924 if test $ac_cv_header_time_altzone = yes; then
17926 cat >>confdefs.h <<\_ACEOF
17927 #define HAVE_ALTZONE 1
17928 _ACEOF
17932 was_it_defined=no
17933 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17934 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h. */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17942 #include <sys/types.h>
17943 #include <sys/select.h>
17944 #include <sys/time.h>
17947 main ()
17951 return 0;
17953 _ACEOF
17954 rm -f conftest.$ac_objext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956 (eval $ac_compile) 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest.$ac_objext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define SYS_SELECT_WITH_SYS_TIME 1
17980 _ACEOF
17982 was_it_defined=yes
17984 else
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17990 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17991 echo "${ECHO_T}$was_it_defined" >&6
17993 echo "$as_me:$LINENO: checking for addrinfo" >&5
17994 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17995 if test "${ac_cv_struct_addrinfo+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18005 # include <netdb.h>
18007 main ()
18009 struct addrinfo a
18011 return 0;
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18016 (eval $ac_compile) 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_struct_addrinfo=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_cv_struct_addrinfo=no
18043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18047 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18048 if test $ac_cv_struct_addrinfo = yes; then
18050 cat >>confdefs.h <<\_ACEOF
18051 #define HAVE_ADDRINFO 1
18052 _ACEOF
18056 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18057 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18058 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18068 # include <sys/types.h>
18069 # include <sys/socket.h>
18071 main ()
18073 struct sockaddr_storage s
18075 return 0;
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_struct_sockaddr_storage=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_struct_sockaddr_storage=no
18107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18111 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18112 if test $ac_cv_struct_sockaddr_storage = yes; then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_SOCKADDR_STORAGE 1
18116 _ACEOF
18120 # checks for compiler characteristics
18123 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18124 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18125 if test "${ac_cv_c_char_unsigned+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 else
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h. */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 $ac_includes_default
18136 main ()
18138 static int test_array [1 - 2 * !(((char) -1) < 0)];
18139 test_array [0] = 0
18142 return 0;
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147 (eval $ac_compile) 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -z "$ac_c_werror_flag"
18155 || test ! -s conftest.err'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 ac_cv_c_char_unsigned=no
18168 else
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 ac_cv_c_char_unsigned=yes
18174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18176 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18177 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18178 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18179 cat >>confdefs.h <<\_ACEOF
18180 #define __CHAR_UNSIGNED__ 1
18181 _ACEOF
18185 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18187 if test "${ac_cv_c_const+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18198 main ()
18200 /* FIXME: Include the comments suggested by Paul. */
18201 #ifndef __cplusplus
18202 /* Ultrix mips cc rejects this. */
18203 typedef int charset[2];
18204 const charset x;
18205 /* SunOS 4.1.1 cc rejects this. */
18206 char const *const *ccp;
18207 char **p;
18208 /* NEC SVR4.0.2 mips cc rejects this. */
18209 struct point {int x, y;};
18210 static struct point const zero = {0,0};
18211 /* AIX XL C 1.02.0.0 rejects this.
18212 It does not let you subtract one const X* pointer from another in
18213 an arm of an if-expression whose if-part is not a constant
18214 expression */
18215 const char *g = "string";
18216 ccp = &g + (g ? g-g : 0);
18217 /* HPUX 7.0 cc rejects these. */
18218 ++ccp;
18219 p = (char**) ccp;
18220 ccp = (char const *const *) p;
18221 { /* SCO 3.2v4 cc rejects this. */
18222 char *t;
18223 char const *s = 0 ? (char *) 0 : (char const *) 0;
18225 *t++ = 0;
18227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18228 int x[] = {25, 17};
18229 const int *foo = &x[0];
18230 ++foo;
18232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18233 typedef const int *iptr;
18234 iptr p = 0;
18235 ++p;
18237 { /* AIX XL C 1.02.0.0 rejects this saying
18238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18239 struct s { int j; const int *ap[3]; };
18240 struct s *b; b->j = 5;
18242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18243 const int foo = 10;
18245 #endif
18248 return 0;
18250 _ACEOF
18251 rm -f conftest.$ac_objext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18253 (eval $ac_compile) 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest.$ac_objext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 ac_cv_c_const=yes
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ac_cv_c_const=no
18280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18282 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18283 echo "${ECHO_T}$ac_cv_c_const" >&6
18284 if test $ac_cv_c_const = no; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define const
18288 _ACEOF
18293 works=no
18294 echo "$as_me:$LINENO: checking for working volatile" >&5
18295 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18304 main ()
18306 volatile int x; x = 0;
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18313 (eval $ac_compile) 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 works=yes
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18339 cat >>confdefs.h <<\_ACEOF
18340 #define volatile
18341 _ACEOF
18345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $works" >&5
18347 echo "${ECHO_T}$works" >&6
18349 works=no
18350 echo "$as_me:$LINENO: checking for working signed char" >&5
18351 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h. */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18360 main ()
18362 signed char c;
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
18389 works=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18395 cat >>confdefs.h <<\_ACEOF
18396 #define signed
18397 _ACEOF
18401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 echo "$as_me:$LINENO: result: $works" >&5
18403 echo "${ECHO_T}$works" >&6
18405 have_prototypes=no
18406 echo "$as_me:$LINENO: checking for prototypes" >&5
18407 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 int foo(int x) { return 0; }
18416 main ()
18418 return foo(10);
18420 return 0;
18422 _ACEOF
18423 rm -f conftest.$ac_objext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18447 cat >>confdefs.h <<\_ACEOF
18448 #define HAVE_PROTOTYPES 1
18449 _ACEOF
18451 have_prototypes=yes
18453 else
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18459 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18460 echo "${ECHO_T}$have_prototypes" >&6
18462 works=no
18463 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18464 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18465 cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h. */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18472 #include <stdarg.h>
18473 int foo(int x, ...) {
18474 va_list va;
18475 va_start(va, x);
18476 va_arg(va, int);
18477 va_arg(va, char *);
18478 va_arg(va, double);
18479 return 0;
18483 main ()
18485 return foo(10, "", 3.14);
18487 return 0;
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest.$ac_objext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18514 cat >>confdefs.h <<\_ACEOF
18515 #define HAVE_STDARG_PROTOTYPES 1
18516 _ACEOF
18518 works=yes
18520 else
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18526 echo "$as_me:$LINENO: result: $works" >&5
18527 echo "${ECHO_T}$works" >&6
18529 # check for socketpair
18530 echo "$as_me:$LINENO: checking for socketpair" >&5
18531 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18539 #include <sys/types.h>
18540 #include <sys/socket.h>
18543 main ()
18545 void *x=socketpair
18547 return 0;
18549 _ACEOF
18550 rm -f conftest.$ac_objext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_SOCKETPAIR 1
18575 _ACEOF
18577 echo "$as_me:$LINENO: result: yes" >&5
18578 echo "${ECHO_T}yes" >&6
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 echo "$as_me:$LINENO: result: no" >&5
18584 echo "${ECHO_T}no" >&6
18587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18589 # check if sockaddr has sa_len member
18590 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18591 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h. */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 #include <sys/types.h>
18599 #include <sys/socket.h>
18601 main ()
18603 struct sockaddr x;
18604 x.sa_len = 0;
18606 return 0;
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 echo "$as_me:$LINENO: result: yes" >&5
18632 echo "${ECHO_T}yes" >&6
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE_SOCKADDR_SA_LEN 1
18636 _ACEOF
18638 else
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 echo "$as_me:$LINENO: result: no" >&5
18643 echo "${ECHO_T}no" >&6
18645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18647 va_list_is_array=no
18648 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18649 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 #ifdef HAVE_STDARG_PROTOTYPES
18658 #include <stdarg.h>
18659 #else
18660 #include <varargs.h>
18661 #endif
18664 main ()
18666 va_list list1, list2; list1 = list2;
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18700 cat >>confdefs.h <<\_ACEOF
18701 #define VA_LIST_IS_ARRAY 1
18702 _ACEOF
18704 va_list_is_array=yes
18707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18709 echo "${ECHO_T}$va_list_is_array" >&6
18711 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18715 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18716 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18717 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720 cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h. */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define gethostbyname_r innocuous_gethostbyname_r
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char gethostbyname_r (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18735 #ifdef __STDC__
18736 # include <limits.h>
18737 #else
18738 # include <assert.h>
18739 #endif
18741 #undef gethostbyname_r
18743 /* Override any gcc2 internal prototype to avoid an error. */
18744 #ifdef __cplusplus
18745 extern "C"
18747 #endif
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18750 char gethostbyname_r ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18755 choke me
18756 #else
18757 char (*f) () = gethostbyname_r;
18758 #endif
18759 #ifdef __cplusplus
18761 #endif
18764 main ()
18766 return f != gethostbyname_r;
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_func_gethostbyname_r=yes
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 ac_cv_func_gethostbyname_r=no
18800 rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18803 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18804 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18805 if test $ac_cv_func_gethostbyname_r = yes; then
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_GETHOSTBYNAME_R 1
18809 _ACEOF
18811 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18812 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18813 OLD_CFLAGS=$CFLAGS
18814 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 # include <netdb.h>
18825 main ()
18828 char *name;
18829 struct hostent *he, *res;
18830 char buffer[2048];
18831 int buflen = 2048;
18832 int h_errnop;
18834 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18837 return 0;
18839 _ACEOF
18840 rm -f conftest.$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18863 cat >>confdefs.h <<\_ACEOF
18864 #define HAVE_GETHOSTBYNAME_R 1
18865 _ACEOF
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18870 _ACEOF
18872 echo "$as_me:$LINENO: result: yes" >&5
18873 echo "${ECHO_T}yes" >&6
18875 else
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18880 echo "$as_me:$LINENO: result: no" >&5
18881 echo "${ECHO_T}no" >&6
18882 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18883 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18891 # include <netdb.h>
18894 main ()
18897 char *name;
18898 struct hostent *he;
18899 char buffer[2048];
18900 int buflen = 2048;
18901 int h_errnop;
18903 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18906 return 0;
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_GETHOSTBYNAME_R 1
18934 _ACEOF
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18939 _ACEOF
18941 echo "$as_me:$LINENO: result: yes" >&5
18942 echo "${ECHO_T}yes" >&6
18944 else
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18949 echo "$as_me:$LINENO: result: no" >&5
18950 echo "${ECHO_T}no" >&6
18951 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18952 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18953 cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h. */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18960 # include <netdb.h>
18963 main ()
18966 char *name;
18967 struct hostent *he;
18968 struct hostent_data data;
18970 (void) gethostbyname_r(name, he, &data);
18973 return 0;
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_GETHOSTBYNAME_R 1
19001 _ACEOF
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19006 _ACEOF
19008 echo "$as_me:$LINENO: result: yes" >&5
19009 echo "${ECHO_T}yes" >&6
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19016 echo "$as_me:$LINENO: result: no" >&5
19017 echo "${ECHO_T}no" >&6
19020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027 CFLAGS=$OLD_CFLAGS
19029 else
19032 for ac_func in gethostbyname
19034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19035 echo "$as_me:$LINENO: checking for $ac_func" >&5
19036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19037 if eval "test \"\${$as_ac_var+set}\" = set"; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19048 #define $ac_func innocuous_$ac_func
19050 /* System header to define __stub macros and hopefully few prototypes,
19051 which can conflict with char $ac_func (); below.
19052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19053 <limits.h> exists even on freestanding compilers. */
19055 #ifdef __STDC__
19056 # include <limits.h>
19057 #else
19058 # include <assert.h>
19059 #endif
19061 #undef $ac_func
19063 /* Override any gcc2 internal prototype to avoid an error. */
19064 #ifdef __cplusplus
19065 extern "C"
19067 #endif
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19070 char $ac_func ();
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19075 choke me
19076 #else
19077 char (*f) () = $ac_func;
19078 #endif
19079 #ifdef __cplusplus
19081 #endif
19084 main ()
19086 return f != $ac_func;
19088 return 0;
19090 _ACEOF
19091 rm -f conftest.$ac_objext conftest$ac_exeext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19093 (eval $ac_link) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest$ac_exeext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 eval "$as_ac_var=yes"
19114 else
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19118 eval "$as_ac_var=no"
19120 rm -f conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19125 if test `eval echo '${'$as_ac_var'}'` = yes; then
19126 cat >>confdefs.h <<_ACEOF
19127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19128 _ACEOF
19131 done
19142 # checks for system services
19143 # (none yet)
19145 # Linux requires this for correct f.p. operations
19146 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19147 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19148 if test "${ac_cv_func___fpu_control+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19159 #define __fpu_control innocuous___fpu_control
19161 /* System header to define __stub macros and hopefully few prototypes,
19162 which can conflict with char __fpu_control (); below.
19163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19164 <limits.h> exists even on freestanding compilers. */
19166 #ifdef __STDC__
19167 # include <limits.h>
19168 #else
19169 # include <assert.h>
19170 #endif
19172 #undef __fpu_control
19174 /* Override any gcc2 internal prototype to avoid an error. */
19175 #ifdef __cplusplus
19176 extern "C"
19178 #endif
19179 /* We use char because int might match the return type of a gcc2
19180 builtin and then its argument prototype would still apply. */
19181 char __fpu_control ();
19182 /* The GNU C library defines this for functions which it implements
19183 to always fail with ENOSYS. Some functions are actually named
19184 something starting with __ and the normal name is an alias. */
19185 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19186 choke me
19187 #else
19188 char (*f) () = __fpu_control;
19189 #endif
19190 #ifdef __cplusplus
19192 #endif
19195 main ()
19197 return f != __fpu_control;
19199 return 0;
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest$ac_exeext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_func___fpu_control=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_cv_func___fpu_control=no
19231 rm -f conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext conftest.$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19235 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19236 if test $ac_cv_func___fpu_control = yes; then
19238 else
19240 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19241 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19242 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 ac_check_lib_save_LIBS=$LIBS
19246 LIBS="-lieee $LIBS"
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19254 /* Override any gcc2 internal prototype to avoid an error. */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19260 char __fpu_control ();
19262 main ()
19264 __fpu_control ();
19266 return 0;
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest$ac_exeext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_ieee___fpu_control=yes
19292 else
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_lib_ieee___fpu_control=no
19298 rm -f conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19303 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19304 if test $ac_cv_lib_ieee___fpu_control = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_LIBIEEE 1
19307 _ACEOF
19309 LIBS="-lieee $LIBS"
19317 # Check for --with-fpectl
19318 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19319 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19321 # Check whether --with-fpectl or --without-fpectl was given.
19322 if test "${with_fpectl+set}" = set; then
19323 withval="$with_fpectl"
19325 if test "$withval" != no
19326 then
19328 cat >>confdefs.h <<\_ACEOF
19329 #define WANT_SIGFPE_HANDLER 1
19330 _ACEOF
19332 echo "$as_me:$LINENO: result: yes" >&5
19333 echo "${ECHO_T}yes" >&6
19334 else echo "$as_me:$LINENO: result: no" >&5
19335 echo "${ECHO_T}no" >&6
19337 else
19338 echo "$as_me:$LINENO: result: no" >&5
19339 echo "${ECHO_T}no" >&6
19342 # check for --with-libm=...
19344 case $ac_sys_system in
19345 Darwin) ;;
19346 BeOS) ;;
19347 *) LIBM=-lm
19348 esac
19349 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19350 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19352 # Check whether --with-libm or --without-libm was given.
19353 if test "${with_libm+set}" = set; then
19354 withval="$with_libm"
19356 if test "$withval" = no
19357 then LIBM=
19358 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19359 echo "${ECHO_T}force LIBM empty" >&6
19360 elif test "$withval" != yes
19361 then LIBM=$withval
19362 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19363 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19364 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19365 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19366 { (exit 1); exit 1; }; }
19368 else
19369 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19370 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19373 # check for --with-libc=...
19375 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19376 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19378 # Check whether --with-libc or --without-libc was given.
19379 if test "${with_libc+set}" = set; then
19380 withval="$with_libc"
19382 if test "$withval" = no
19383 then LIBC=
19384 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19385 echo "${ECHO_T}force LIBC empty" >&6
19386 elif test "$withval" != yes
19387 then LIBC=$withval
19388 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19389 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19390 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19391 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19392 { (exit 1); exit 1; }; }
19394 else
19395 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19396 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19399 # check for hypot() in math library
19400 LIBS_SAVE=$LIBS
19401 LIBS="$LIBS $LIBM"
19403 for ac_func in hypot
19405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19406 echo "$as_me:$LINENO: checking for $ac_func" >&5
19407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19408 if eval "test \"\${$as_ac_var+set}\" = set"; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411 cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h. */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19419 #define $ac_func innocuous_$ac_func
19421 /* System header to define __stub macros and hopefully few prototypes,
19422 which can conflict with char $ac_func (); below.
19423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19424 <limits.h> exists even on freestanding compilers. */
19426 #ifdef __STDC__
19427 # include <limits.h>
19428 #else
19429 # include <assert.h>
19430 #endif
19432 #undef $ac_func
19434 /* Override any gcc2 internal prototype to avoid an error. */
19435 #ifdef __cplusplus
19436 extern "C"
19438 #endif
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19441 char $ac_func ();
19442 /* The GNU C library defines this for functions which it implements
19443 to always fail with ENOSYS. Some functions are actually named
19444 something starting with __ and the normal name is an alias. */
19445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19446 choke me
19447 #else
19448 char (*f) () = $ac_func;
19449 #endif
19450 #ifdef __cplusplus
19452 #endif
19455 main ()
19457 return f != $ac_func;
19459 return 0;
19461 _ACEOF
19462 rm -f conftest.$ac_objext conftest$ac_exeext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 (eval $ac_link) 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 eval "$as_ac_var=yes"
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 eval "$as_ac_var=no"
19491 rm -f conftest.err conftest.$ac_objext \
19492 conftest$ac_exeext conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19496 if test `eval echo '${'$as_ac_var'}'` = yes; then
19497 cat >>confdefs.h <<_ACEOF
19498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19499 _ACEOF
19501 else
19502 case $LIBOBJS in
19503 "$ac_func.$ac_objext" | \
19504 *" $ac_func.$ac_objext" | \
19505 "$ac_func.$ac_objext "* | \
19506 *" $ac_func.$ac_objext "* ) ;;
19507 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19508 esac
19511 done
19514 LIBS=$LIBS_SAVE
19516 # check for wchar.h
19517 if test "${ac_cv_header_wchar_h+set}" = set; then
19518 echo "$as_me:$LINENO: checking for wchar.h" >&5
19519 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19520 if test "${ac_cv_header_wchar_h+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19524 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19525 else
19526 # Is the header compilable?
19527 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19528 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19536 #include <wchar.h>
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_header_compiler=no
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19569 echo "${ECHO_T}$ac_header_compiler" >&6
19571 # Is the header present?
19572 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19573 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <wchar.h>
19581 _ACEOF
19582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } >/dev/null; then
19590 if test -s conftest.err; then
19591 ac_cpp_err=$ac_c_preproc_warn_flag
19592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19593 else
19594 ac_cpp_err=
19596 else
19597 ac_cpp_err=yes
19599 if test -z "$ac_cpp_err"; then
19600 ac_header_preproc=yes
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 ac_header_preproc=no
19607 rm -f conftest.err conftest.$ac_ext
19608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19609 echo "${ECHO_T}$ac_header_preproc" >&6
19611 # So? What about this header?
19612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19613 yes:no: )
19614 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19615 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19616 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19617 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19618 ac_header_preproc=yes
19620 no:yes:* )
19621 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19622 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19624 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19626 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19628 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19630 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19632 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19634 cat <<\_ASBOX
19635 ## ------------------------------------------------ ##
19636 ## Report this to http://www.python.org/python-bugs ##
19637 ## ------------------------------------------------ ##
19638 _ASBOX
19640 sed "s/^/$as_me: WARNING: /" >&2
19642 esac
19643 echo "$as_me:$LINENO: checking for wchar.h" >&5
19644 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19645 if test "${ac_cv_header_wchar_h+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 ac_cv_header_wchar_h=$ac_header_preproc
19650 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19651 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19654 if test $ac_cv_header_wchar_h = yes; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_WCHAR_H 1
19659 _ACEOF
19661 wchar_h="yes"
19663 else
19664 wchar_h="no"
19670 # determine wchar_t size
19671 if test "$wchar_h" = yes
19672 then
19673 echo "$as_me:$LINENO: checking for wchar_t" >&5
19674 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19675 if test "${ac_cv_type_wchar_t+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678 cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h. */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <wchar.h>
19687 main ()
19689 if ((wchar_t *) 0)
19690 return 0;
19691 if (sizeof (wchar_t))
19692 return 0;
19694 return 0;
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_type_wchar_t=yes
19720 else
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 ac_cv_type_wchar_t=no
19726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19728 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19729 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19731 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19732 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19733 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 if test "$ac_cv_type_wchar_t" = yes; then
19737 # The cast to unsigned long works around a bug in the HP C Compiler
19738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19740 # This bug is HP SR number 8606223364.
19741 if test "$cross_compiling" = yes; then
19742 # Depending upon the size, compute the lo and hi bounds.
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h. */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 #include <wchar.h>
19752 main ()
19754 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19755 test_array [0] = 0
19758 return 0;
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_lo=0 ac_mid=0
19784 while :; do
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 #include <wchar.h>
19794 main ()
19796 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19797 test_array [0] = 0
19800 return 0;
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_hi=$ac_mid; break
19826 else
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_lo=`expr $ac_mid + 1`
19831 if test $ac_lo -le $ac_mid; then
19832 ac_lo= ac_hi=
19833 break
19835 ac_mid=`expr 2 '*' $ac_mid + 1`
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 done
19839 else
19840 echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h. */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 #include <wchar.h>
19852 main ()
19854 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19855 test_array [0] = 0
19858 return 0;
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_hi=-1 ac_mid=-1
19884 while :; do
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <wchar.h>
19894 main ()
19896 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19897 test_array [0] = 0
19900 return 0;
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905 (eval $ac_compile) 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -z "$ac_c_werror_flag"
19913 || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 ac_lo=$ac_mid; break
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 ac_hi=`expr '(' $ac_mid ')' - 1`
19931 if test $ac_mid -le $ac_hi; then
19932 ac_lo= ac_hi=
19933 break
19935 ac_mid=`expr 2 '*' $ac_mid`
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 done
19939 else
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_lo= ac_hi=
19945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948 # Binary search between lo and hi bounds.
19949 while test "x$ac_lo" != "x$ac_hi"; do
19950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 #include <wchar.h>
19960 main ()
19962 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19963 test_array [0] = 0
19966 return 0;
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_hi=$ac_mid
19992 else
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_lo=`expr '(' $ac_mid ')' + 1`
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 done
20000 case $ac_lo in
20001 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20002 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20003 See \`config.log' for more details." >&5
20004 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20005 See \`config.log' for more details." >&2;}
20006 { (exit 1); exit 1; }; } ;;
20007 esac
20008 else
20009 if test "$cross_compiling" = yes; then
20010 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20011 See \`config.log' for more details." >&5
20012 echo "$as_me: error: cannot run test program while cross compiling
20013 See \`config.log' for more details." >&2;}
20014 { (exit 1); exit 1; }; }
20015 else
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <wchar.h>
20024 long longval () { return (long) (sizeof (wchar_t)); }
20025 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20026 #include <stdio.h>
20027 #include <stdlib.h>
20029 main ()
20032 FILE *f = fopen ("conftest.val", "w");
20033 if (! f)
20034 exit (1);
20035 if (((long) (sizeof (wchar_t))) < 0)
20037 long i = longval ();
20038 if (i != ((long) (sizeof (wchar_t))))
20039 exit (1);
20040 fprintf (f, "%ld\n", i);
20042 else
20044 unsigned long i = ulongval ();
20045 if (i != ((long) (sizeof (wchar_t))))
20046 exit (1);
20047 fprintf (f, "%lu\n", i);
20049 exit (ferror (f) || fclose (f) != 0);
20052 return 0;
20054 _ACEOF
20055 rm -f conftest$ac_exeext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_cv_sizeof_wchar_t=`cat conftest.val`
20067 else
20068 echo "$as_me: program exited with status $ac_status" >&5
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ( exit $ac_status )
20073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20074 See \`config.log' for more details." >&5
20075 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20076 See \`config.log' for more details." >&2;}
20077 { (exit 1); exit 1; }; }
20079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20082 rm -f conftest.val
20083 else
20084 ac_cv_sizeof_wchar_t=0
20087 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20088 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20089 cat >>confdefs.h <<_ACEOF
20090 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20091 _ACEOF
20096 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20097 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20098 have_ucs4_tcl=no
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 #include <tcl.h>
20107 #if TCL_UTF_MAX != 6
20108 # error "NOT UCS4_TCL"
20109 #endif
20111 main ()
20115 return 0;
20117 _ACEOF
20118 rm -f conftest.$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag"
20128 || test ! -s conftest.err'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest.$ac_objext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_UCS4_TCL 1
20144 _ACEOF
20146 have_ucs4_tcl=yes
20148 else
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20154 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20155 echo "${ECHO_T}$have_ucs4_tcl" >&6
20157 # check whether wchar_t is signed or not
20158 if test "$wchar_h" = yes
20159 then
20160 # check whether wchar_t is signed or not
20161 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20162 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20163 if test "${ac_cv_wchar_t_signed+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20167 if test "$cross_compiling" = yes; then
20168 ac_cv_wchar_t_signed=yes
20169 else
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h. */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20177 #include <wchar.h>
20178 int main()
20180 /* Success: exit code 0 */
20181 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20184 _ACEOF
20185 rm -f conftest$ac_exeext
20186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187 (eval $ac_link) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_wchar_t_signed=yes
20197 else
20198 echo "$as_me: program exited with status $ac_status" >&5
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 ( exit $ac_status )
20203 ac_cv_wchar_t_signed=no
20205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20210 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20213 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20214 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20215 # Check whether --enable-unicode or --disable-unicode was given.
20216 if test "${enable_unicode+set}" = set; then
20217 enableval="$enable_unicode"
20219 else
20220 enable_unicode=yes
20223 if test $enable_unicode = yes
20224 then
20225 # Without any arguments, Py_UNICODE defaults to two-byte mode
20226 case "$have_ucs4_tcl" in
20227 yes) enable_unicode="ucs4"
20229 *) enable_unicode="ucs2"
20231 esac
20236 case "$enable_unicode" in
20237 ucs2) unicode_size="2"
20238 cat >>confdefs.h <<\_ACEOF
20239 #define Py_UNICODE_SIZE 2
20240 _ACEOF
20243 ucs4) unicode_size="4"
20244 cat >>confdefs.h <<\_ACEOF
20245 #define Py_UNICODE_SIZE 4
20246 _ACEOF
20249 esac
20255 if test "$enable_unicode" = "no"
20256 then
20257 UNICODE_OBJS=""
20258 echo "$as_me:$LINENO: result: not used" >&5
20259 echo "${ECHO_T}not used" >&6
20260 else
20261 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20263 cat >>confdefs.h <<\_ACEOF
20264 #define Py_USING_UNICODE 1
20265 _ACEOF
20268 # wchar_t is only usable if it maps to an unsigned type
20269 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20270 -a "$ac_cv_wchar_t_signed" = "no"
20271 then
20272 PY_UNICODE_TYPE="wchar_t"
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_USABLE_WCHAR_T 1
20276 _ACEOF
20278 cat >>confdefs.h <<\_ACEOF
20279 #define PY_UNICODE_TYPE wchar_t
20280 _ACEOF
20282 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20283 then
20284 PY_UNICODE_TYPE="unsigned short"
20285 cat >>confdefs.h <<\_ACEOF
20286 #define PY_UNICODE_TYPE unsigned short
20287 _ACEOF
20289 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20290 then
20291 PY_UNICODE_TYPE="unsigned long"
20292 cat >>confdefs.h <<\_ACEOF
20293 #define PY_UNICODE_TYPE unsigned long
20294 _ACEOF
20296 else
20297 PY_UNICODE_TYPE="no type found"
20299 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20300 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20303 # check for endianness
20304 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20305 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20306 if test "${ac_cv_c_bigendian+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 # See if sys/param.h defines the BYTE_ORDER macro.
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <sys/types.h>
20317 #include <sys/param.h>
20320 main ()
20322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20323 bogus endian macros
20324 #endif
20327 return 0;
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 # It does; now see whether it defined to BIG_ENDIAN or not.
20353 cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h. */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20359 #include <sys/types.h>
20360 #include <sys/param.h>
20363 main ()
20365 #if BYTE_ORDER != BIG_ENDIAN
20366 not big endian
20367 #endif
20370 return 0;
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_c_bigendian=yes
20396 else
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 ac_cv_c_bigendian=no
20402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 else
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 # It does not; compile a test program.
20408 if test "$cross_compiling" = yes; then
20409 # try to guess the endianness by grepping values into an object file
20410 ac_cv_c_bigendian=unknown
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20419 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20422 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20424 main ()
20426 _ascii (); _ebcdic ();
20428 return 0;
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20454 ac_cv_c_bigendian=yes
20456 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20457 if test "$ac_cv_c_bigendian" = unknown; then
20458 ac_cv_c_bigendian=no
20459 else
20460 # finding both strings is unlikely to happen, but who knows?
20461 ac_cv_c_bigendian=unknown
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20478 main ()
20480 /* Are we little or big endian? From Harbison&Steele. */
20481 union
20483 long l;
20484 char c[sizeof (long)];
20485 } u;
20486 u.l = 1;
20487 exit (u.c[sizeof (long) - 1] == 1);
20489 _ACEOF
20490 rm -f conftest$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492 (eval $ac_link) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ac_cv_c_bigendian=no
20502 else
20503 echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ( exit $ac_status )
20508 ac_cv_c_bigendian=yes
20510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20516 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20517 case $ac_cv_c_bigendian in
20518 yes)
20520 cat >>confdefs.h <<\_ACEOF
20521 #define WORDS_BIGENDIAN 1
20522 _ACEOF
20527 { { echo "$as_me:$LINENO: error: unknown endianness
20528 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20529 echo "$as_me: error: unknown endianness
20530 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20531 { (exit 1); exit 1; }; } ;;
20532 esac
20537 # Check whether right shifting a negative integer extends the sign bit
20538 # or fills with zeros (like the Cray J90, according to Tim Peters).
20539 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20540 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20541 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20545 if test "$cross_compiling" = yes; then
20546 ac_cv_rshift_extends_sign=yes
20547 else
20548 cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h. */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20555 int main()
20557 exit(((-1)>>3 == -1) ? 0 : 1);
20560 _ACEOF
20561 rm -f conftest$ac_exeext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_rshift_extends_sign=yes
20573 else
20574 echo "$as_me: program exited with status $ac_status" >&5
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ( exit $ac_status )
20579 ac_cv_rshift_extends_sign=no
20581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20585 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20586 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20587 if test "$ac_cv_rshift_extends_sign" = no
20588 then
20590 cat >>confdefs.h <<\_ACEOF
20591 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20592 _ACEOF
20596 # check for getc_unlocked and related locking functions
20597 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20598 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20599 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609 #include <stdio.h>
20611 main ()
20614 FILE *f = fopen("/dev/null", "r");
20615 flockfile(f);
20616 getc_unlocked(f);
20617 funlockfile(f);
20620 return 0;
20622 _ACEOF
20623 rm -f conftest.$ac_objext conftest$ac_exeext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
20632 { ac_try='test -z "$ac_c_werror_flag"
20633 || test ! -s conftest.err'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 ac_cv_have_getc_unlocked=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_cv_have_getc_unlocked=no
20652 rm -f conftest.err conftest.$ac_objext \
20653 conftest$ac_exeext conftest.$ac_ext
20656 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20657 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20658 if test "$ac_cv_have_getc_unlocked" = yes
20659 then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_GETC_UNLOCKED 1
20663 _ACEOF
20667 # check where readline lives
20668 # save the value of LIBS so we don't actually link Python with readline
20669 LIBS_no_readline=$LIBS
20671 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20672 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20673 if test "${ac_cv_lib_readline_readline+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lreadline $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any gcc2 internal prototype to avoid an error. */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 /* We use char because int might match the return type of a gcc2
20690 builtin and then its argument prototype would still apply. */
20691 char readline ();
20693 main ()
20695 readline ();
20697 return 0;
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20702 (eval $ac_link) 2>conftest.er1
20703 ac_status=$?
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_c_werror_flag"
20710 || test ! -s conftest.err'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try='test -s conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_lib_readline_readline=yes
20723 else
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_cv_lib_readline_readline=no
20729 rm -f conftest.err conftest.$ac_objext \
20730 conftest$ac_exeext conftest.$ac_ext
20731 LIBS=$ac_check_lib_save_LIBS
20733 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20734 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20735 if test $ac_cv_lib_readline_readline = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_LIBREADLINE 1
20738 _ACEOF
20740 LIBS="-lreadline $LIBS"
20744 if test "$ac_cv_have_readline_readline" = no
20745 then
20747 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20748 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20749 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752 ac_check_lib_save_LIBS=$LIBS
20753 LIBS="-ltermcap $LIBS"
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20761 /* Override any gcc2 internal prototype to avoid an error. */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 /* We use char because int might match the return type of a gcc2
20766 builtin and then its argument prototype would still apply. */
20767 char readline ();
20769 main ()
20771 readline ();
20773 return 0;
20775 _ACEOF
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20778 (eval $ac_link) 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } &&
20785 { ac_try='test -z "$ac_c_werror_flag"
20786 || test ! -s conftest.err'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try='test -s conftest$ac_exeext'
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; }; then
20798 ac_cv_lib_termcap_readline=yes
20799 else
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_lib_termcap_readline=no
20805 rm -f conftest.err conftest.$ac_objext \
20806 conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20809 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20810 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20811 if test $ac_cv_lib_termcap_readline = yes; then
20812 cat >>confdefs.h <<_ACEOF
20813 #define HAVE_LIBTERMCAP 1
20814 _ACEOF
20816 LIBS="-ltermcap $LIBS"
20822 # check for readline 2.1
20823 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20824 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20825 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828 ac_check_lib_save_LIBS=$LIBS
20829 LIBS="-lreadline $LIBS"
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 /* Override any gcc2 internal prototype to avoid an error. */
20838 #ifdef __cplusplus
20839 extern "C"
20840 #endif
20841 /* We use char because int might match the return type of a gcc2
20842 builtin and then its argument prototype would still apply. */
20843 char rl_callback_handler_install ();
20845 main ()
20847 rl_callback_handler_install ();
20849 return 0;
20851 _ACEOF
20852 rm -f conftest.$ac_objext conftest$ac_exeext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854 (eval $ac_link) 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest$ac_exeext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_lib_readline_rl_callback_handler_install=yes
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_cv_lib_readline_rl_callback_handler_install=no
20881 rm -f conftest.err conftest.$ac_objext \
20882 conftest$ac_exeext conftest.$ac_ext
20883 LIBS=$ac_check_lib_save_LIBS
20885 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20886 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20887 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20889 cat >>confdefs.h <<\_ACEOF
20890 #define HAVE_RL_CALLBACK 1
20891 _ACEOF
20896 # check for readline 2.2
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 #include <readline/readline.h>
20904 _ACEOF
20905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null; then
20913 if test -s conftest.err; then
20914 ac_cpp_err=$ac_c_preproc_warn_flag
20915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20916 else
20917 ac_cpp_err=
20919 else
20920 ac_cpp_err=yes
20922 if test -z "$ac_cpp_err"; then
20923 have_readline=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20928 have_readline=no
20930 rm -f conftest.err conftest.$ac_ext
20931 if test $have_readline = yes
20932 then
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <readline/readline.h>
20941 _ACEOF
20942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20943 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20947 _ACEOF
20950 rm -f conftest*
20954 # check for readline 4.0
20955 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20956 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20957 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960 ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-lreadline $LIBS"
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 /* Override any gcc2 internal prototype to avoid an error. */
20970 #ifdef __cplusplus
20971 extern "C"
20972 #endif
20973 /* We use char because int might match the return type of a gcc2
20974 builtin and then its argument prototype would still apply. */
20975 char rl_pre_input_hook ();
20977 main ()
20979 rl_pre_input_hook ();
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986 (eval $ac_link) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest$ac_exeext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_lib_readline_rl_pre_input_hook=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_lib_readline_rl_pre_input_hook=no
21013 rm -f conftest.err conftest.$ac_objext \
21014 conftest$ac_exeext conftest.$ac_ext
21015 LIBS=$ac_check_lib_save_LIBS
21017 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21018 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21019 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_RL_PRE_INPUT_HOOK 1
21023 _ACEOF
21028 # check for readline 4.2
21029 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21030 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21031 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034 ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-lreadline $LIBS"
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 /* Override any gcc2 internal prototype to avoid an error. */
21044 #ifdef __cplusplus
21045 extern "C"
21046 #endif
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21049 char rl_completion_matches ();
21051 main ()
21053 rl_completion_matches ();
21055 return 0;
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest$ac_exeext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_lib_readline_rl_completion_matches=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_cv_lib_readline_rl_completion_matches=no
21087 rm -f conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21091 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21092 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21093 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21095 cat >>confdefs.h <<\_ACEOF
21096 #define HAVE_RL_COMPLETION_MATCHES 1
21097 _ACEOF
21102 # also in readline 4.2
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 #include <readline/readline.h>
21110 _ACEOF
21111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev/null; then
21119 if test -s conftest.err; then
21120 ac_cpp_err=$ac_c_preproc_warn_flag
21121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21122 else
21123 ac_cpp_err=
21125 else
21126 ac_cpp_err=yes
21128 if test -z "$ac_cpp_err"; then
21129 have_readline=yes
21130 else
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 have_readline=no
21136 rm -f conftest.err conftest.$ac_ext
21137 if test $have_readline = yes
21138 then
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <readline/readline.h>
21147 _ACEOF
21148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21149 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21151 cat >>confdefs.h <<\_ACEOF
21152 #define HAVE_RL_CATCH_SIGNAL 1
21153 _ACEOF
21156 rm -f conftest*
21160 # End of readline checks: restore LIBS
21161 LIBS=$LIBS_no_readline
21163 echo "$as_me:$LINENO: checking for broken nice()" >&5
21164 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21165 if test "${ac_cv_broken_nice+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21169 if test "$cross_compiling" = yes; then
21170 ac_cv_broken_nice=no
21171 else
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21179 int main()
21181 int val1 = nice(1);
21182 if (val1 != -1 && val1 == nice(2))
21183 exit(0);
21184 exit(1);
21187 _ACEOF
21188 rm -f conftest$ac_exeext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_broken_nice=yes
21200 else
21201 echo "$as_me: program exited with status $ac_status" >&5
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ( exit $ac_status )
21206 ac_cv_broken_nice=no
21208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21213 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21214 if test "$ac_cv_broken_nice" = yes
21215 then
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_BROKEN_NICE 1
21219 _ACEOF
21223 echo "$as_me:$LINENO: checking for broken poll()" >&5
21224 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21225 if test "$cross_compiling" = yes; then
21226 ac_cv_broken_poll=no
21227 else
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21235 #include <poll.h>
21237 int main (void)
21239 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21241 close (42);
21243 int poll_test = poll (&poll_struct, 1, 0);
21245 if (poll_test < 0)
21247 exit(0);
21249 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21251 exit(0);
21253 else
21255 exit(1);
21259 _ACEOF
21260 rm -f conftest$ac_exeext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21262 (eval $ac_link) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_broken_poll=yes
21272 else
21273 echo "$as_me: program exited with status $ac_status" >&5
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ( exit $ac_status )
21278 ac_cv_broken_poll=no
21280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21282 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21283 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21284 if test "$ac_cv_broken_poll" = yes
21285 then
21287 cat >>confdefs.h <<\_ACEOF
21288 #define HAVE_BROKEN_POLL 1
21289 _ACEOF
21293 # Before we can test tzset, we need to check if struct tm has a tm_zone
21294 # (which is not required by ISO C or UNIX spec) and/or if we support
21295 # tzname[]
21296 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21297 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21298 if test "${ac_cv_member_struct_tm_tm_zone+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 <sys/types.h>
21308 #include <$ac_cv_struct_tm>
21312 main ()
21314 static struct tm ac_aggr;
21315 if (ac_aggr.tm_zone)
21316 return 0;
21318 return 0;
21320 _ACEOF
21321 rm -f conftest.$ac_objext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21323 (eval $ac_compile) 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest.$ac_objext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_member_struct_tm_tm_zone=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <sys/types.h>
21355 #include <$ac_cv_struct_tm>
21359 main ()
21361 static struct tm ac_aggr;
21362 if (sizeof ac_aggr.tm_zone)
21363 return 0;
21365 return 0;
21367 _ACEOF
21368 rm -f conftest.$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>conftest.er1
21371 ac_status=$?
21372 grep -v '^ *+' conftest.er1 >conftest.err
21373 rm -f conftest.er1
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try='test -z "$ac_c_werror_flag"
21378 || test ! -s conftest.err'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; } &&
21384 { ac_try='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_member_struct_tm_tm_zone=yes
21391 else
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_cv_member_struct_tm_tm_zone=no
21397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21401 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21402 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21403 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define HAVE_STRUCT_TM_TM_ZONE 1
21407 _ACEOF
21412 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_TM_ZONE 1
21416 _ACEOF
21418 else
21419 echo "$as_me:$LINENO: checking for tzname" >&5
21420 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21421 if test "${ac_cv_var_tzname+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 #include <time.h>
21431 #ifndef tzname /* For SGI. */
21432 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21433 #endif
21436 main ()
21438 atoi(*tzname);
21440 return 0;
21442 _ACEOF
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } &&
21452 { ac_try='test -z "$ac_c_werror_flag"
21453 || test ! -s conftest.err'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest$ac_exeext'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_cv_var_tzname=yes
21466 else
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_cv_var_tzname=no
21472 rm -f conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21475 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21476 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21477 if test $ac_cv_var_tzname = yes; then
21479 cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_TZNAME 1
21481 _ACEOF
21487 # check tzset(3) exists and works like we expect it to
21488 echo "$as_me:$LINENO: checking for working tzset()" >&5
21489 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21490 if test "${ac_cv_working_tzset+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21494 if test "$cross_compiling" = yes; then
21495 ac_cv_working_tzset=no
21496 else
21497 cat >conftest.$ac_ext <<_ACEOF
21498 /* confdefs.h. */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21504 #include <stdlib.h>
21505 #include <time.h>
21506 #include <string.h>
21508 #if HAVE_TZNAME
21509 extern char *tzname[];
21510 #endif
21512 int main()
21514 /* Note that we need to ensure that not only does tzset(3)
21515 do 'something' with localtime, but it works as documented
21516 in the library reference and as expected by the test suite.
21517 This includes making sure that tzname is set properly if
21518 tm->tm_zone does not exist since it is the alternative way
21519 of getting timezone info.
21521 Red Hat 6.2 doesn't understand the southern hemisphere
21522 after New Year's Day.
21525 time_t groundhogday = 1044144000; /* GMT-based */
21526 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21528 putenv("TZ=UTC+0");
21529 tzset();
21530 if (localtime(&groundhogday)->tm_hour != 0)
21531 exit(1);
21532 #if HAVE_TZNAME
21533 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21534 if (strcmp(tzname[0], "UTC") ||
21535 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21536 exit(1);
21537 #endif
21539 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21540 tzset();
21541 if (localtime(&groundhogday)->tm_hour != 19)
21542 exit(1);
21543 #if HAVE_TZNAME
21544 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21545 exit(1);
21546 #endif
21548 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21549 tzset();
21550 if (localtime(&groundhogday)->tm_hour != 11)
21551 exit(1);
21552 #if HAVE_TZNAME
21553 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21554 exit(1);
21555 #endif
21557 #if HAVE_STRUCT_TM_TM_ZONE
21558 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21559 exit(1);
21560 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21561 exit(1);
21562 #endif
21564 exit(0);
21567 _ACEOF
21568 rm -f conftest$ac_exeext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570 (eval $ac_link) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_working_tzset=yes
21580 else
21581 echo "$as_me: program exited with status $ac_status" >&5
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ( exit $ac_status )
21586 ac_cv_working_tzset=no
21588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21592 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21593 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21594 if test "$ac_cv_working_tzset" = yes
21595 then
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_WORKING_TZSET 1
21599 _ACEOF
21603 # Look for subsecond timestamps in struct stat
21604 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21605 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21606 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <sys/stat.h>
21617 main ()
21620 struct stat st;
21621 st.st_mtim.tv_nsec = 1;
21624 return 0;
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629 (eval $ac_compile) 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -z "$ac_c_werror_flag"
21637 || test ! -s conftest.err'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_stat_tv_nsec=yes
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_cv_stat_tv_nsec=no
21656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21659 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21660 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21661 if test "$ac_cv_stat_tv_nsec" = yes
21662 then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_STAT_TV_NSEC 1
21666 _ACEOF
21670 # Look for BSD style subsecond timestamps in struct stat
21671 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21672 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21673 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 #include <sys/stat.h>
21684 main ()
21687 struct stat st;
21688 st.st_mtimespec.tv_nsec = 1;
21691 return 0;
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21696 (eval $ac_compile) 2>conftest.er1
21697 ac_status=$?
21698 grep -v '^ *+' conftest.er1 >conftest.err
21699 rm -f conftest.er1
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try='test -s conftest.$ac_objext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_cv_stat_tv_nsec2=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_stat_tv_nsec2=no
21723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21727 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21728 if test "$ac_cv_stat_tv_nsec2" = yes
21729 then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_STAT_TV_NSEC2 1
21733 _ACEOF
21737 # On HP/UX 11.0, mvwdelch is a block with a return statement
21738 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21739 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21740 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 #include <curses.h>
21751 main ()
21754 int rtn;
21755 rtn = mvwdelch(0,0,0);
21758 return 0;
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_mvwdelch_is_expression=yes
21784 else
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_cv_mvwdelch_is_expression=no
21790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21794 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21796 if test "$ac_cv_mvwdelch_is_expression" = yes
21797 then
21799 cat >>confdefs.h <<\_ACEOF
21800 #define MVWDELCH_IS_EXPRESSION 1
21801 _ACEOF
21805 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21806 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21807 if test "${ac_cv_window_has_flags+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810 cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h. */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 #include <curses.h>
21818 main ()
21821 WINDOW *w;
21822 w->_flags = 0;
21825 return 0;
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21830 (eval $ac_compile) 2>conftest.er1
21831 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
21837 { ac_try='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_window_has_flags=yes
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_cv_window_has_flags=no
21857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21861 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21864 if test "$ac_cv_window_has_flags" = yes
21865 then
21867 cat >>confdefs.h <<\_ACEOF
21868 #define WINDOW_HAS_FLAGS 1
21869 _ACEOF
21873 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21874 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #include <curses.h>
21883 main ()
21885 void *x=is_term_resized
21887 return 0;
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21892 (eval $ac_compile) 2>conftest.er1
21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } &&
21899 { ac_try='test -z "$ac_c_werror_flag"
21900 || test ! -s conftest.err'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_CURSES_IS_TERM_RESIZED 1
21915 _ACEOF
21917 echo "$as_me:$LINENO: result: yes" >&5
21918 echo "${ECHO_T}yes" >&6
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 echo "$as_me:$LINENO: result: no" >&5
21924 echo "${ECHO_T}no" >&6
21927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21929 echo "$as_me:$LINENO: checking for resize_term" >&5
21930 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 #include <curses.h>
21939 main ()
21941 void *x=resize_term
21943 return 0;
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21948 (eval $ac_compile) 2>conftest.er1
21949 ac_status=$?
21950 grep -v '^ *+' conftest.er1 >conftest.err
21951 rm -f conftest.er1
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } &&
21955 { ac_try='test -z "$ac_c_werror_flag"
21956 || test ! -s conftest.err'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; } &&
21962 { ac_try='test -s conftest.$ac_objext'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_CURSES_RESIZE_TERM 1
21971 _ACEOF
21973 echo "$as_me:$LINENO: result: yes" >&5
21974 echo "${ECHO_T}yes" >&6
21975 else
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21979 echo "$as_me:$LINENO: result: no" >&5
21980 echo "${ECHO_T}no" >&6
21983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21985 echo "$as_me:$LINENO: checking for resizeterm" >&5
21986 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h. */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 #include <curses.h>
21995 main ()
21997 void *x=resizeterm
21999 return 0;
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag"
22012 || test ! -s conftest.err'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }; then
22025 cat >>confdefs.h <<\_ACEOF
22026 #define HAVE_CURSES_RESIZETERM 1
22027 _ACEOF
22029 echo "$as_me:$LINENO: result: yes" >&5
22030 echo "${ECHO_T}yes" >&6
22031 else
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 echo "$as_me:$LINENO: result: no" >&5
22036 echo "${ECHO_T}no" >&6
22039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22041 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22042 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22043 if test "${ac_cv_file__dev_ptmx+set}" = set; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046 test "$cross_compiling" = yes &&
22047 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22048 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22049 { (exit 1); exit 1; }; }
22050 if test -r "/dev/ptmx"; then
22051 ac_cv_file__dev_ptmx=yes
22052 else
22053 ac_cv_file__dev_ptmx=no
22056 echo "$as_me:$LINENO: result: $ac_cv_file__dev_ptmx" >&5
22057 echo "${ECHO_T}$ac_cv_file__dev_ptmx" >&6
22058 if test $ac_cv_file__dev_ptmx = yes; then
22060 cat >>confdefs.h <<\_ACEOF
22061 #define HAVE_DEV_PTMX 1
22062 _ACEOF
22066 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22067 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22068 if test "${ac_cv_file__dev_ptc+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071 test "$cross_compiling" = yes &&
22072 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22073 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22074 { (exit 1); exit 1; }; }
22075 if test -r "/dev/ptc"; then
22076 ac_cv_file__dev_ptc=yes
22077 else
22078 ac_cv_file__dev_ptc=no
22081 echo "$as_me:$LINENO: result: $ac_cv_file__dev_ptc" >&5
22082 echo "${ECHO_T}$ac_cv_file__dev_ptc" >&6
22083 if test $ac_cv_file__dev_ptc = yes; then
22085 cat >>confdefs.h <<\_ACEOF
22086 #define HAVE_DEV_PTC 1
22087 _ACEOF
22092 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22093 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22094 if test "$cross_compiling" = yes; then
22095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22096 See \`config.log' for more details." >&5
22097 echo "$as_me: error: cannot run test program while cross compiling
22098 See \`config.log' for more details." >&2;}
22099 { (exit 1); exit 1; }; }
22100 else
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <stdio.h>
22108 #include <stddef.h>
22109 #include <string.h>
22111 int main()
22113 char buffer[4];
22115 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22116 return 1;
22118 if (strncmp(buffer, "123", 3))
22119 return 1;
22121 return 0;
22123 _ACEOF
22124 rm -f conftest$ac_exeext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22126 (eval $ac_link) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 echo "$as_me:$LINENO: result: yes" >&5
22136 echo "${ECHO_T}yes" >&6
22138 cat >>confdefs.h <<\_ACEOF
22139 #define PY_FORMAT_SIZE_T "z"
22140 _ACEOF
22142 else
22143 echo "$as_me: program exited with status $ac_status" >&5
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ( exit $ac_status )
22148 echo "$as_me:$LINENO: result: no" >&5
22149 echo "${ECHO_T}no" >&6
22151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154 echo "$as_me:$LINENO: checking for socklen_t" >&5
22155 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22156 if test "${ac_cv_type_socklen_t+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h. */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22166 #ifdef HAVE_SYS_TYPES_H
22167 #include <sys/types.h>
22168 #endif
22169 #ifdef HAVE_SYS_SOCKET_H
22170 #include <sys/socket.h>
22171 #endif
22175 main ()
22177 if ((socklen_t *) 0)
22178 return 0;
22179 if (sizeof (socklen_t))
22180 return 0;
22182 return 0;
22184 _ACEOF
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187 (eval $ac_compile) 2>conftest.er1
22188 ac_status=$?
22189 grep -v '^ *+' conftest.er1 >conftest.err
22190 rm -f conftest.er1
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -z "$ac_c_werror_flag"
22195 || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_type_socklen_t=yes
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_cv_type_socklen_t=no
22214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22216 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22217 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22218 if test $ac_cv_type_socklen_t = yes; then
22220 else
22222 cat >>confdefs.h <<\_ACEOF
22223 #define socklen_t int
22224 _ACEOF
22231 for h in `(cd $srcdir;echo Python/thread_*.h)`
22233 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22234 done
22237 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22238 echo "$as_me:$LINENO: checking for build directories" >&5
22239 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22240 for dir in $SRCDIRS; do
22241 if test ! -d $dir; then
22242 mkdir $dir
22244 done
22245 echo "$as_me:$LINENO: result: done" >&5
22246 echo "${ECHO_T}done" >&6
22248 # generate output files
22249 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22251 cat >confcache <<\_ACEOF
22252 # This file is a shell script that caches the results of configure
22253 # tests run on this system so they can be shared between configure
22254 # scripts and configure runs, see configure's option --config-cache.
22255 # It is not useful on other systems. If it contains results you don't
22256 # want to keep, you may remove or edit it.
22258 # config.status only pays attention to the cache file if you give it
22259 # the --recheck option to rerun configure.
22261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22263 # following values.
22265 _ACEOF
22267 # The following way of writing the cache mishandles newlines in values,
22268 # but we know of no workaround that is simple, portable, and efficient.
22269 # So, don't put newlines in cache variables' values.
22270 # Ultrix sh set writes to stderr and can't be redirected directly,
22271 # and sets the high bit in the cache file unless we assign to the vars.
22273 (set) 2>&1 |
22274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22275 *ac_space=\ *)
22276 # `set' does not quote correctly, so add quotes (double-quote
22277 # substitution turns \\\\ into \\, and sed turns \\ into \).
22278 sed -n \
22279 "s/'/'\\\\''/g;
22280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22283 # `set' quotes correctly as required by POSIX, so do not add quotes.
22284 sed -n \
22285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22287 esac;
22289 sed '
22290 t clear
22291 : clear
22292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22293 t end
22294 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22295 : end' >>confcache
22296 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22297 if test -w $cache_file; then
22298 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22299 cat confcache >$cache_file
22300 else
22301 echo "not updating unwritable cache $cache_file"
22304 rm -f confcache
22306 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22307 # Let make expand exec_prefix.
22308 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22310 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22311 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22312 # trailing colons and then remove the whole line if VPATH becomes empty
22313 # (actually we leave an empty line to preserve line numbers).
22314 if test "x$srcdir" = x.; then
22315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22316 s/:*\$(srcdir):*/:/;
22317 s/:*\${srcdir}:*/:/;
22318 s/:*@srcdir@:*/:/;
22319 s/^\([^=]*=[ ]*\):*/\1/;
22320 s/:*$//;
22321 s/^[^=]*=[ ]*$//;
22325 DEFS=-DHAVE_CONFIG_H
22327 ac_libobjs=
22328 ac_ltlibobjs=
22329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22330 # 1. Remove the extension, and $U if already installed.
22331 ac_i=`echo "$ac_i" |
22332 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22333 # 2. Add them.
22334 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22335 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22336 done
22337 LIBOBJS=$ac_libobjs
22339 LTLIBOBJS=$ac_ltlibobjs
22343 : ${CONFIG_STATUS=./config.status}
22344 ac_clean_files_save=$ac_clean_files
22345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22348 cat >$CONFIG_STATUS <<_ACEOF
22349 #! $SHELL
22350 # Generated by $as_me.
22351 # Run this file to recreate the current configuration.
22352 # Compiler output produced by configure, useful for debugging
22353 # configure, is in config.log if it exists.
22355 debug=false
22356 ac_cs_recheck=false
22357 ac_cs_silent=false
22358 SHELL=\${CONFIG_SHELL-$SHELL}
22359 _ACEOF
22361 cat >>$CONFIG_STATUS <<\_ACEOF
22362 ## --------------------- ##
22363 ## M4sh Initialization. ##
22364 ## --------------------- ##
22366 # Be Bourne compatible
22367 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22368 emulate sh
22369 NULLCMD=:
22370 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22371 # is contrary to our usage. Disable this feature.
22372 alias -g '${1+"$@"}'='"$@"'
22373 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22374 set -o posix
22376 DUALCASE=1; export DUALCASE # for MKS sh
22378 # Support unset when possible.
22379 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22380 as_unset=unset
22381 else
22382 as_unset=false
22386 # Work around bugs in pre-3.0 UWIN ksh.
22387 $as_unset ENV MAIL MAILPATH
22388 PS1='$ '
22389 PS2='> '
22390 PS4='+ '
22392 # NLS nuisances.
22393 for as_var in \
22394 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22395 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22396 LC_TELEPHONE LC_TIME
22398 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22399 eval $as_var=C; export $as_var
22400 else
22401 $as_unset $as_var
22403 done
22405 # Required to use basename.
22406 if expr a : '\(a\)' >/dev/null 2>&1; then
22407 as_expr=expr
22408 else
22409 as_expr=false
22412 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22413 as_basename=basename
22414 else
22415 as_basename=false
22419 # Name of the executable.
22420 as_me=`$as_basename "$0" ||
22421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22422 X"$0" : 'X\(//\)$' \| \
22423 X"$0" : 'X\(/\)$' \| \
22424 . : '\(.\)' 2>/dev/null ||
22425 echo X/"$0" |
22426 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22427 /^X\/\(\/\/\)$/{ s//\1/; q; }
22428 /^X\/\(\/\).*/{ s//\1/; q; }
22429 s/.*/./; q'`
22432 # PATH needs CR, and LINENO needs CR and PATH.
22433 # Avoid depending upon Character Ranges.
22434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22437 as_cr_digits='0123456789'
22438 as_cr_alnum=$as_cr_Letters$as_cr_digits
22440 # The user is always right.
22441 if test "${PATH_SEPARATOR+set}" != set; then
22442 echo "#! /bin/sh" >conf$$.sh
22443 echo "exit 0" >>conf$$.sh
22444 chmod +x conf$$.sh
22445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22446 PATH_SEPARATOR=';'
22447 else
22448 PATH_SEPARATOR=:
22450 rm -f conf$$.sh
22454 as_lineno_1=$LINENO
22455 as_lineno_2=$LINENO
22456 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22457 test "x$as_lineno_1" != "x$as_lineno_2" &&
22458 test "x$as_lineno_3" = "x$as_lineno_2" || {
22459 # Find who we are. Look in the path if we contain no path at all
22460 # relative or not.
22461 case $0 in
22462 *[\\/]* ) as_myself=$0 ;;
22463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22464 for as_dir in $PATH
22466 IFS=$as_save_IFS
22467 test -z "$as_dir" && as_dir=.
22468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22469 done
22472 esac
22473 # We did not find ourselves, most probably we were run as `sh COMMAND'
22474 # in which case we are not to be found in the path.
22475 if test "x$as_myself" = x; then
22476 as_myself=$0
22478 if test ! -f "$as_myself"; then
22479 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22480 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22481 { (exit 1); exit 1; }; }
22483 case $CONFIG_SHELL in
22485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22486 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22488 IFS=$as_save_IFS
22489 test -z "$as_dir" && as_dir=.
22490 for as_base in sh bash ksh sh5; do
22491 case $as_dir in
22493 if ("$as_dir/$as_base" -c '
22494 as_lineno_1=$LINENO
22495 as_lineno_2=$LINENO
22496 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22497 test "x$as_lineno_1" != "x$as_lineno_2" &&
22498 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22499 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22500 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22501 CONFIG_SHELL=$as_dir/$as_base
22502 export CONFIG_SHELL
22503 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22504 fi;;
22505 esac
22506 done
22507 done
22509 esac
22511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22512 # uniformly replaced by the line number. The first 'sed' inserts a
22513 # line-number line before each line; the second 'sed' does the real
22514 # work. The second script uses 'N' to pair each line-number line
22515 # with the numbered line, and appends trailing '-' during
22516 # substitution so that $LINENO is not a special case at line end.
22517 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22518 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22519 sed '=' <$as_myself |
22520 sed '
22522 s,$,-,
22523 : loop
22524 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22525 t loop
22526 s,-$,,
22527 s,^['$as_cr_digits']*\n,,
22528 ' >$as_me.lineno &&
22529 chmod +x $as_me.lineno ||
22530 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22531 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22532 { (exit 1); exit 1; }; }
22534 # Don't try to exec as it changes $[0], causing all sort of problems
22535 # (the dirname of $[0] is not the place where we might find the
22536 # original and so on. Autoconf is especially sensible to this).
22537 . ./$as_me.lineno
22538 # Exit status is that of the last command.
22539 exit
22543 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22544 *c*,-n*) ECHO_N= ECHO_C='
22545 ' ECHO_T=' ' ;;
22546 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22547 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22548 esac
22550 if expr a : '\(a\)' >/dev/null 2>&1; then
22551 as_expr=expr
22552 else
22553 as_expr=false
22556 rm -f conf$$ conf$$.exe conf$$.file
22557 echo >conf$$.file
22558 if ln -s conf$$.file conf$$ 2>/dev/null; then
22559 # We could just check for DJGPP; but this test a) works b) is more generic
22560 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22561 if test -f conf$$.exe; then
22562 # Don't use ln at all; we don't have any links
22563 as_ln_s='cp -p'
22564 else
22565 as_ln_s='ln -s'
22567 elif ln conf$$.file conf$$ 2>/dev/null; then
22568 as_ln_s=ln
22569 else
22570 as_ln_s='cp -p'
22572 rm -f conf$$ conf$$.exe conf$$.file
22574 if mkdir -p . 2>/dev/null; then
22575 as_mkdir_p=:
22576 else
22577 test -d ./-p && rmdir ./-p
22578 as_mkdir_p=false
22581 as_executable_p="test -f"
22583 # Sed expression to map a string onto a valid CPP name.
22584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22586 # Sed expression to map a string onto a valid variable name.
22587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22590 # IFS
22591 # We need space, tab and new line, in precisely that order.
22592 as_nl='
22594 IFS=" $as_nl"
22596 # CDPATH.
22597 $as_unset CDPATH
22599 exec 6>&1
22601 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22602 # report actual input values of CONFIG_FILES etc. instead of their
22603 # values after options handling. Logging --version etc. is OK.
22604 exec 5>>config.log
22606 echo
22607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22608 ## Running $as_me. ##
22609 _ASBOX
22610 } >&5
22611 cat >&5 <<_CSEOF
22613 This file was extended by python $as_me 2.5, which was
22614 generated by GNU Autoconf 2.59. Invocation command line was
22616 CONFIG_FILES = $CONFIG_FILES
22617 CONFIG_HEADERS = $CONFIG_HEADERS
22618 CONFIG_LINKS = $CONFIG_LINKS
22619 CONFIG_COMMANDS = $CONFIG_COMMANDS
22620 $ $0 $@
22622 _CSEOF
22623 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22624 echo >&5
22625 _ACEOF
22627 # Files that config.status was made for.
22628 if test -n "$ac_config_files"; then
22629 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22632 if test -n "$ac_config_headers"; then
22633 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22636 if test -n "$ac_config_links"; then
22637 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22640 if test -n "$ac_config_commands"; then
22641 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22646 ac_cs_usage="\
22647 \`$as_me' instantiates files from templates according to the
22648 current configuration.
22650 Usage: $0 [OPTIONS] [FILE]...
22652 -h, --help print this help, then exit
22653 -V, --version print version number, then exit
22654 -q, --quiet do not print progress messages
22655 -d, --debug don't remove temporary files
22656 --recheck update $as_me by reconfiguring in the same conditions
22657 --file=FILE[:TEMPLATE]
22658 instantiate the configuration file FILE
22659 --header=FILE[:TEMPLATE]
22660 instantiate the configuration header FILE
22662 Configuration files:
22663 $config_files
22665 Configuration headers:
22666 $config_headers
22668 Report bugs to <bug-autoconf@gnu.org>."
22669 _ACEOF
22671 cat >>$CONFIG_STATUS <<_ACEOF
22672 ac_cs_version="\\
22673 python config.status 2.5
22674 configured by $0, generated by GNU Autoconf 2.59,
22675 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22677 Copyright (C) 2003 Free Software Foundation, Inc.
22678 This config.status script is free software; the Free Software Foundation
22679 gives unlimited permission to copy, distribute and modify it."
22680 srcdir=$srcdir
22681 INSTALL="$INSTALL"
22682 _ACEOF
22684 cat >>$CONFIG_STATUS <<\_ACEOF
22685 # If no file are specified by the user, then we need to provide default
22686 # value. By we need to know if files were specified by the user.
22687 ac_need_defaults=:
22688 while test $# != 0
22690 case $1 in
22691 --*=*)
22692 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22693 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22694 ac_shift=:
22697 ac_option=$1
22698 ac_optarg=$2
22699 ac_shift=shift
22701 *) # This is not an option, so the user has probably given explicit
22702 # arguments.
22703 ac_option=$1
22704 ac_need_defaults=false;;
22705 esac
22707 case $ac_option in
22708 # Handling of the options.
22709 _ACEOF
22710 cat >>$CONFIG_STATUS <<\_ACEOF
22711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22712 ac_cs_recheck=: ;;
22713 --version | --vers* | -V )
22714 echo "$ac_cs_version"; exit 0 ;;
22715 --he | --h)
22716 # Conflict between --help and --header
22717 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22718 Try \`$0 --help' for more information." >&5
22719 echo "$as_me: error: ambiguous option: $1
22720 Try \`$0 --help' for more information." >&2;}
22721 { (exit 1); exit 1; }; };;
22722 --help | --hel | -h )
22723 echo "$ac_cs_usage"; exit 0 ;;
22724 --debug | --d* | -d )
22725 debug=: ;;
22726 --file | --fil | --fi | --f )
22727 $ac_shift
22728 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22729 ac_need_defaults=false;;
22730 --header | --heade | --head | --hea )
22731 $ac_shift
22732 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22733 ac_need_defaults=false;;
22734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22736 ac_cs_silent=: ;;
22738 # This is an error.
22739 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22740 Try \`$0 --help' for more information." >&5
22741 echo "$as_me: error: unrecognized option: $1
22742 Try \`$0 --help' for more information." >&2;}
22743 { (exit 1); exit 1; }; } ;;
22745 *) ac_config_targets="$ac_config_targets $1" ;;
22747 esac
22748 shift
22749 done
22751 ac_configure_extra_args=
22753 if $ac_cs_silent; then
22754 exec 6>/dev/null
22755 ac_configure_extra_args="$ac_configure_extra_args --silent"
22758 _ACEOF
22759 cat >>$CONFIG_STATUS <<_ACEOF
22760 if \$ac_cs_recheck; then
22761 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22762 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22765 _ACEOF
22771 cat >>$CONFIG_STATUS <<\_ACEOF
22772 for ac_config_target in $ac_config_targets
22774 case "$ac_config_target" in
22775 # Handling of arguments.
22776 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
22777 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22778 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22779 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22780 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22781 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22783 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22784 { (exit 1); exit 1; }; };;
22785 esac
22786 done
22788 # If the user did not use the arguments to specify the items to instantiate,
22789 # then the envvar interface is used. Set only those that are not.
22790 # We use the long form for the default assignment because of an extremely
22791 # bizarre bug on SunOS 4.1.3.
22792 if $ac_need_defaults; then
22793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22797 # Have a temporary directory for convenience. Make it in the build tree
22798 # simply because there is no reason to put it here, and in addition,
22799 # creating and moving files from /tmp can sometimes cause problems.
22800 # Create a temporary directory, and hook for its removal unless debugging.
22801 $debug ||
22803 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22804 trap '{ (exit 1); exit 1; }' 1 2 13 15
22807 # Create a (secure) tmp directory for tmp files.
22810 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22811 test -n "$tmp" && test -d "$tmp"
22812 } ||
22814 tmp=./confstat$$-$RANDOM
22815 (umask 077 && mkdir $tmp)
22816 } ||
22818 echo "$me: cannot create a temporary directory in ." >&2
22819 { (exit 1); exit 1; }
22822 _ACEOF
22824 cat >>$CONFIG_STATUS <<_ACEOF
22827 # CONFIG_FILES section.
22830 # No need to generate the scripts if there are no CONFIG_FILES.
22831 # This happens for instance when ./config.status config.h
22832 if test -n "\$CONFIG_FILES"; then
22833 # Protect against being on the right side of a sed subst in config.status.
22834 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22835 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22836 s,@SHELL@,$SHELL,;t t
22837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22838 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22839 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22840 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22841 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22842 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22843 s,@exec_prefix@,$exec_prefix,;t t
22844 s,@prefix@,$prefix,;t t
22845 s,@program_transform_name@,$program_transform_name,;t t
22846 s,@bindir@,$bindir,;t t
22847 s,@sbindir@,$sbindir,;t t
22848 s,@libexecdir@,$libexecdir,;t t
22849 s,@datadir@,$datadir,;t t
22850 s,@sysconfdir@,$sysconfdir,;t t
22851 s,@sharedstatedir@,$sharedstatedir,;t t
22852 s,@localstatedir@,$localstatedir,;t t
22853 s,@libdir@,$libdir,;t t
22854 s,@includedir@,$includedir,;t t
22855 s,@oldincludedir@,$oldincludedir,;t t
22856 s,@infodir@,$infodir,;t t
22857 s,@mandir@,$mandir,;t t
22858 s,@build_alias@,$build_alias,;t t
22859 s,@host_alias@,$host_alias,;t t
22860 s,@target_alias@,$target_alias,;t t
22861 s,@DEFS@,$DEFS,;t t
22862 s,@ECHO_C@,$ECHO_C,;t t
22863 s,@ECHO_N@,$ECHO_N,;t t
22864 s,@ECHO_T@,$ECHO_T,;t t
22865 s,@LIBS@,$LIBS,;t t
22866 s,@VERSION@,$VERSION,;t t
22867 s,@SOVERSION@,$SOVERSION,;t t
22868 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22869 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22870 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22871 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22872 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22873 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22874 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22875 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22876 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22877 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22878 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22879 s,@MACHDEP@,$MACHDEP,;t t
22880 s,@SGI_ABI@,$SGI_ABI,;t t
22881 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22882 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22883 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22884 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22885 s,@CC@,$CC,;t t
22886 s,@CFLAGS@,$CFLAGS,;t t
22887 s,@LDFLAGS@,$LDFLAGS,;t t
22888 s,@CPPFLAGS@,$CPPFLAGS,;t t
22889 s,@ac_ct_CC@,$ac_ct_CC,;t t
22890 s,@EXEEXT@,$EXEEXT,;t t
22891 s,@OBJEXT@,$OBJEXT,;t t
22892 s,@CXX@,$CXX,;t t
22893 s,@MAINCC@,$MAINCC,;t t
22894 s,@CPP@,$CPP,;t t
22895 s,@EGREP@,$EGREP,;t t
22896 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22897 s,@LIBRARY@,$LIBRARY,;t t
22898 s,@LDLIBRARY@,$LDLIBRARY,;t t
22899 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22900 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22901 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22902 s,@INSTSONAME@,$INSTSONAME,;t t
22903 s,@RUNSHARED@,$RUNSHARED,;t t
22904 s,@LINKCC@,$LINKCC,;t t
22905 s,@RANLIB@,$RANLIB,;t t
22906 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22907 s,@AR@,$AR,;t t
22908 s,@SVNVERSION@,$SVNVERSION,;t t
22909 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22910 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22911 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22912 s,@LN@,$LN,;t t
22913 s,@OPT@,$OPT,;t t
22914 s,@BASECFLAGS@,$BASECFLAGS,;t t
22915 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22916 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22917 s,@SO@,$SO,;t t
22918 s,@LDSHARED@,$LDSHARED,;t t
22919 s,@BLDSHARED@,$BLDSHARED,;t t
22920 s,@CCSHARED@,$CCSHARED,;t t
22921 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22922 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22923 s,@SHLIBS@,$SHLIBS,;t t
22924 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22925 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22926 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22927 s,@LDLAST@,$LDLAST,;t t
22928 s,@THREADOBJ@,$THREADOBJ,;t t
22929 s,@DLINCLDIR@,$DLINCLDIR,;t t
22930 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22931 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22932 s,@TRUE@,$TRUE,;t t
22933 s,@LIBOBJS@,$LIBOBJS,;t t
22934 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22935 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22936 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22937 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22938 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22939 s,@LIBM@,$LIBM,;t t
22940 s,@LIBC@,$LIBC,;t t
22941 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22942 s,@THREADHEADERS@,$THREADHEADERS,;t t
22943 s,@SRCDIRS@,$SRCDIRS,;t t
22944 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22945 CEOF
22947 _ACEOF
22949 cat >>$CONFIG_STATUS <<\_ACEOF
22950 # Split the substitutions into bite-sized pieces for seds with
22951 # small command number limits, like on Digital OSF/1 and HP-UX.
22952 ac_max_sed_lines=48
22953 ac_sed_frag=1 # Number of current file.
22954 ac_beg=1 # First line for current file.
22955 ac_end=$ac_max_sed_lines # Line after last line for current file.
22956 ac_more_lines=:
22957 ac_sed_cmds=
22958 while $ac_more_lines; do
22959 if test $ac_beg -gt 1; then
22960 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22961 else
22962 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22964 if test ! -s $tmp/subs.frag; then
22965 ac_more_lines=false
22966 else
22967 # The purpose of the label and of the branching condition is to
22968 # speed up the sed processing (if there are no `@' at all, there
22969 # is no need to browse any of the substitutions).
22970 # These are the two extra sed commands mentioned above.
22971 (echo ':t
22972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22973 if test -z "$ac_sed_cmds"; then
22974 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22975 else
22976 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22978 ac_sed_frag=`expr $ac_sed_frag + 1`
22979 ac_beg=$ac_end
22980 ac_end=`expr $ac_end + $ac_max_sed_lines`
22982 done
22983 if test -z "$ac_sed_cmds"; then
22984 ac_sed_cmds=cat
22986 fi # test -n "$CONFIG_FILES"
22988 _ACEOF
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22990 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22992 case $ac_file in
22993 - | *:- | *:-:* ) # input from stdin
22994 cat >$tmp/stdin
22995 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22997 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22999 * ) ac_file_in=$ac_file.in ;;
23000 esac
23002 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23003 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23005 X"$ac_file" : 'X\(//\)[^/]' \| \
23006 X"$ac_file" : 'X\(//\)$' \| \
23007 X"$ac_file" : 'X\(/\)' \| \
23008 . : '\(.\)' 2>/dev/null ||
23009 echo X"$ac_file" |
23010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23012 /^X\(\/\/\)$/{ s//\1/; q; }
23013 /^X\(\/\).*/{ s//\1/; q; }
23014 s/.*/./; q'`
23015 { if $as_mkdir_p; then
23016 mkdir -p "$ac_dir"
23017 else
23018 as_dir="$ac_dir"
23019 as_dirs=
23020 while test ! -d "$as_dir"; do
23021 as_dirs="$as_dir $as_dirs"
23022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23024 X"$as_dir" : 'X\(//\)[^/]' \| \
23025 X"$as_dir" : 'X\(//\)$' \| \
23026 X"$as_dir" : 'X\(/\)' \| \
23027 . : '\(.\)' 2>/dev/null ||
23028 echo X"$as_dir" |
23029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23031 /^X\(\/\/\)$/{ s//\1/; q; }
23032 /^X\(\/\).*/{ s//\1/; q; }
23033 s/.*/./; q'`
23034 done
23035 test ! -n "$as_dirs" || mkdir $as_dirs
23036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23038 { (exit 1); exit 1; }; }; }
23040 ac_builddir=.
23042 if test "$ac_dir" != .; then
23043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23044 # A "../" for each directory in $ac_dir_suffix.
23045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23046 else
23047 ac_dir_suffix= ac_top_builddir=
23050 case $srcdir in
23051 .) # No --srcdir option. We are building in place.
23052 ac_srcdir=.
23053 if test -z "$ac_top_builddir"; then
23054 ac_top_srcdir=.
23055 else
23056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23057 fi ;;
23058 [\\/]* | ?:[\\/]* ) # Absolute path.
23059 ac_srcdir=$srcdir$ac_dir_suffix;
23060 ac_top_srcdir=$srcdir ;;
23061 *) # Relative path.
23062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23064 esac
23066 # Do not use `cd foo && pwd` to compute absolute paths, because
23067 # the directories may not exist.
23068 case `pwd` in
23069 .) ac_abs_builddir="$ac_dir";;
23071 case "$ac_dir" in
23072 .) ac_abs_builddir=`pwd`;;
23073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23075 esac;;
23076 esac
23077 case $ac_abs_builddir in
23078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23080 case ${ac_top_builddir}. in
23081 .) ac_abs_top_builddir=$ac_abs_builddir;;
23082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23084 esac;;
23085 esac
23086 case $ac_abs_builddir in
23087 .) ac_abs_srcdir=$ac_srcdir;;
23089 case $ac_srcdir in
23090 .) ac_abs_srcdir=$ac_abs_builddir;;
23091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23093 esac;;
23094 esac
23095 case $ac_abs_builddir in
23096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23098 case $ac_top_srcdir in
23099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23102 esac;;
23103 esac
23106 case $INSTALL in
23107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23108 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23109 esac
23111 if test x"$ac_file" != x-; then
23112 { echo "$as_me:$LINENO: creating $ac_file" >&5
23113 echo "$as_me: creating $ac_file" >&6;}
23114 rm -f "$ac_file"
23116 # Let's still pretend it is `configure' which instantiates (i.e., don't
23117 # use $as_me), people would be surprised to read:
23118 # /* config.h. Generated by config.status. */
23119 if test x"$ac_file" = x-; then
23120 configure_input=
23121 else
23122 configure_input="$ac_file. "
23124 configure_input=$configure_input"Generated from `echo $ac_file_in |
23125 sed 's,.*/,,'` by configure."
23127 # First look for the input files in the build tree, otherwise in the
23128 # src tree.
23129 ac_file_inputs=`IFS=:
23130 for f in $ac_file_in; do
23131 case $f in
23132 -) echo $tmp/stdin ;;
23133 [\\/$]*)
23134 # Absolute (can't be DOS-style, as IFS=:)
23135 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23136 echo "$as_me: error: cannot find input file: $f" >&2;}
23137 { (exit 1); exit 1; }; }
23138 echo "$f";;
23139 *) # Relative
23140 if test -f "$f"; then
23141 # Build tree
23142 echo "$f"
23143 elif test -f "$srcdir/$f"; then
23144 # Source tree
23145 echo "$srcdir/$f"
23146 else
23147 # /dev/null tree
23148 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23149 echo "$as_me: error: cannot find input file: $f" >&2;}
23150 { (exit 1); exit 1; }; }
23151 fi;;
23152 esac
23153 done` || { (exit 1); exit 1; }
23154 _ACEOF
23155 cat >>$CONFIG_STATUS <<_ACEOF
23156 sed "$ac_vpsub
23157 $extrasub
23158 _ACEOF
23159 cat >>$CONFIG_STATUS <<\_ACEOF
23161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23162 s,@configure_input@,$configure_input,;t t
23163 s,@srcdir@,$ac_srcdir,;t t
23164 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23165 s,@top_srcdir@,$ac_top_srcdir,;t t
23166 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23167 s,@builddir@,$ac_builddir,;t t
23168 s,@abs_builddir@,$ac_abs_builddir,;t t
23169 s,@top_builddir@,$ac_top_builddir,;t t
23170 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23171 s,@INSTALL@,$ac_INSTALL,;t t
23172 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23173 rm -f $tmp/stdin
23174 if test x"$ac_file" != x-; then
23175 mv $tmp/out $ac_file
23176 else
23177 cat $tmp/out
23178 rm -f $tmp/out
23181 done
23182 _ACEOF
23183 cat >>$CONFIG_STATUS <<\_ACEOF
23186 # CONFIG_HEADER section.
23189 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23190 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23192 # ac_d sets the value in "#define NAME VALUE" lines.
23193 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23194 ac_dB='[ ].*$,\1#\2'
23195 ac_dC=' '
23196 ac_dD=',;t'
23197 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23198 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23199 ac_uB='$,\1#\2define\3'
23200 ac_uC=' '
23201 ac_uD=',;t'
23203 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23204 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23205 case $ac_file in
23206 - | *:- | *:-:* ) # input from stdin
23207 cat >$tmp/stdin
23208 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23210 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23212 * ) ac_file_in=$ac_file.in ;;
23213 esac
23215 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23216 echo "$as_me: creating $ac_file" >&6;}
23218 # First look for the input files in the build tree, otherwise in the
23219 # src tree.
23220 ac_file_inputs=`IFS=:
23221 for f in $ac_file_in; do
23222 case $f in
23223 -) echo $tmp/stdin ;;
23224 [\\/$]*)
23225 # Absolute (can't be DOS-style, as IFS=:)
23226 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23227 echo "$as_me: error: cannot find input file: $f" >&2;}
23228 { (exit 1); exit 1; }; }
23229 # Do quote $f, to prevent DOS paths from being IFS'd.
23230 echo "$f";;
23231 *) # Relative
23232 if test -f "$f"; then
23233 # Build tree
23234 echo "$f"
23235 elif test -f "$srcdir/$f"; then
23236 # Source tree
23237 echo "$srcdir/$f"
23238 else
23239 # /dev/null tree
23240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23241 echo "$as_me: error: cannot find input file: $f" >&2;}
23242 { (exit 1); exit 1; }; }
23243 fi;;
23244 esac
23245 done` || { (exit 1); exit 1; }
23246 # Remove the trailing spaces.
23247 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23249 _ACEOF
23251 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23252 # `conftest.undefs', that substitutes the proper values into
23253 # config.h.in to produce config.h. The first handles `#define'
23254 # templates, and the second `#undef' templates.
23255 # And first: Protect against being on the right side of a sed subst in
23256 # config.status. Protect against being in an unquoted here document
23257 # in config.status.
23258 rm -f conftest.defines conftest.undefs
23259 # Using a here document instead of a string reduces the quoting nightmare.
23260 # Putting comments in sed scripts is not portable.
23262 # `end' is used to avoid that the second main sed command (meant for
23263 # 0-ary CPP macros) applies to n-ary macro definitions.
23264 # See the Autoconf documentation for `clear'.
23265 cat >confdef2sed.sed <<\_ACEOF
23266 s/[\\&,]/\\&/g
23267 s,[\\$`],\\&,g
23268 t clear
23269 : clear
23270 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23271 t end
23272 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23273 : end
23274 _ACEOF
23275 # If some macros were called several times there might be several times
23276 # the same #defines, which is useless. Nevertheless, we may not want to
23277 # sort them, since we want the *last* AC-DEFINE to be honored.
23278 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23279 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23280 rm -f confdef2sed.sed
23282 # This sed command replaces #undef with comments. This is necessary, for
23283 # example, in the case of _POSIX_SOURCE, which is predefined and required
23284 # on some systems where configure will not decide to define it.
23285 cat >>conftest.undefs <<\_ACEOF
23286 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23287 _ACEOF
23289 # Break up conftest.defines because some shells have a limit on the size
23290 # of here documents, and old seds have small limits too (100 cmds).
23291 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23292 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23293 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23294 echo ' :' >>$CONFIG_STATUS
23295 rm -f conftest.tail
23296 while grep . conftest.defines >/dev/null
23298 # Write a limited-size here document to $tmp/defines.sed.
23299 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23300 # Speed up: don't consider the non `#define' lines.
23301 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23302 # Work around the forget-to-reset-the-flag bug.
23303 echo 't clr' >>$CONFIG_STATUS
23304 echo ': clr' >>$CONFIG_STATUS
23305 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23306 echo 'CEOF
23307 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23308 rm -f $tmp/in
23309 mv $tmp/out $tmp/in
23310 ' >>$CONFIG_STATUS
23311 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23312 rm -f conftest.defines
23313 mv conftest.tail conftest.defines
23314 done
23315 rm -f conftest.defines
23316 echo ' fi # grep' >>$CONFIG_STATUS
23317 echo >>$CONFIG_STATUS
23319 # Break up conftest.undefs because some shells have a limit on the size
23320 # of here documents, and old seds have small limits too (100 cmds).
23321 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23322 rm -f conftest.tail
23323 while grep . conftest.undefs >/dev/null
23325 # Write a limited-size here document to $tmp/undefs.sed.
23326 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23327 # Speed up: don't consider the non `#undef'
23328 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23329 # Work around the forget-to-reset-the-flag bug.
23330 echo 't clr' >>$CONFIG_STATUS
23331 echo ': clr' >>$CONFIG_STATUS
23332 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23333 echo 'CEOF
23334 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23335 rm -f $tmp/in
23336 mv $tmp/out $tmp/in
23337 ' >>$CONFIG_STATUS
23338 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23339 rm -f conftest.undefs
23340 mv conftest.tail conftest.undefs
23341 done
23342 rm -f conftest.undefs
23344 cat >>$CONFIG_STATUS <<\_ACEOF
23345 # Let's still pretend it is `configure' which instantiates (i.e., don't
23346 # use $as_me), people would be surprised to read:
23347 # /* config.h. Generated by config.status. */
23348 if test x"$ac_file" = x-; then
23349 echo "/* Generated by configure. */" >$tmp/config.h
23350 else
23351 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23353 cat $tmp/in >>$tmp/config.h
23354 rm -f $tmp/in
23355 if test x"$ac_file" != x-; then
23356 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23357 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23358 echo "$as_me: $ac_file is unchanged" >&6;}
23359 else
23360 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23362 X"$ac_file" : 'X\(//\)[^/]' \| \
23363 X"$ac_file" : 'X\(//\)$' \| \
23364 X"$ac_file" : 'X\(/\)' \| \
23365 . : '\(.\)' 2>/dev/null ||
23366 echo X"$ac_file" |
23367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23369 /^X\(\/\/\)$/{ s//\1/; q; }
23370 /^X\(\/\).*/{ s//\1/; q; }
23371 s/.*/./; q'`
23372 { if $as_mkdir_p; then
23373 mkdir -p "$ac_dir"
23374 else
23375 as_dir="$ac_dir"
23376 as_dirs=
23377 while test ! -d "$as_dir"; do
23378 as_dirs="$as_dir $as_dirs"
23379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$as_dir" : 'X\(//\)[^/]' \| \
23382 X"$as_dir" : 'X\(//\)$' \| \
23383 X"$as_dir" : 'X\(/\)' \| \
23384 . : '\(.\)' 2>/dev/null ||
23385 echo X"$as_dir" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23388 /^X\(\/\/\)$/{ s//\1/; q; }
23389 /^X\(\/\).*/{ s//\1/; q; }
23390 s/.*/./; q'`
23391 done
23392 test ! -n "$as_dirs" || mkdir $as_dirs
23393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23395 { (exit 1); exit 1; }; }; }
23397 rm -f $ac_file
23398 mv $tmp/config.h $ac_file
23400 else
23401 cat $tmp/config.h
23402 rm -f $tmp/config.h
23404 done
23405 _ACEOF
23407 cat >>$CONFIG_STATUS <<\_ACEOF
23409 { (exit 0); exit 0; }
23410 _ACEOF
23411 chmod +x $CONFIG_STATUS
23412 ac_clean_files=$ac_clean_files_save
23415 # configure is writing to config.log, and then calls config.status.
23416 # config.status does its own redirection, appending to config.log.
23417 # Unfortunately, on DOS this fails, as config.log is still kept open
23418 # by configure, so config.status won't be able to write to it; its
23419 # output is simply discarded. So we exec the FD to /dev/null,
23420 # effectively closing config.log, so it can be properly (re)opened and
23421 # appended to by config.status. When coming back to configure, we
23422 # need to make the FD available again.
23423 if test "$no_create" != yes; then
23424 ac_cs_success=:
23425 ac_config_status_args=
23426 test "$silent" = yes &&
23427 ac_config_status_args="$ac_config_status_args --quiet"
23428 exec 5>/dev/null
23429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23430 exec 5>>config.log
23431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23432 # would make configure fail if this is the last instruction.
23433 $ac_cs_success || { (exit 1); exit 1; }
23437 echo "creating Modules/Setup"
23438 if test ! -f Modules/Setup
23439 then
23440 cp $srcdir/Modules/Setup.dist Modules/Setup
23443 echo "creating Modules/Setup.local"
23444 if test ! -f Modules/Setup.local
23445 then
23446 echo "# Edit this file for local setup changes" >Modules/Setup.local
23449 echo "creating Makefile"
23450 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23451 -s Modules Modules/Setup.config \
23452 Modules/Setup.local Modules/Setup
23453 mv config.c Modules